net/tap: check interface name in kvargs
authorStephen Hemminger <stephen@networkplumber.org>
Fri, 11 Jan 2019 20:35:16 +0000 (12:35 -0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 14 Jan 2019 16:44:29 +0000 (17:44 +0100)
commit7d0c83270982e3f1366cbb479e000b8eb6c1d1bb
tree5e03a5200637e4f2ebf8d18eaed7bc44808f815c
parent12ad0b6572d0793d0dc100b32caec5a2859399ed
net/tap: check interface name in kvargs

If interface name is passed to remote or iface then check
the length and for invalid characters. This avoids problems where
name gets truncated or rejected by kernel.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by Keith Wiles <keith.wiles@intel.com>
drivers/net/tap/rte_eth_tap.c