net: reject creation of netdev names with colons
authorMatthew Thode <mthode@mthode.org>
Wed, 18 Feb 2015 00:31:57 +0000 (18:31 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Mar 2015 12:22:27 +0000 (13:22 +0100)
commitcde81ed79fc1540a3c3e775515d72f441aef8e6c
tree59234bc6b924db19c163f7b1a697fbc4d9ff70e0
parentcae79d75dd639bca743b91d5532a09d90bc3492d
net: reject creation of netdev names with colons

[ Upstream commit a4176a9391868bfa87705bcd2e3b49e9b9dd2996 ]

colons are used as a separator in netdev device lookup in dev_ioctl.c

Specific functions are SIOCGIFTXQLEN SIOCETHTOOL SIOCSIFNAME

Signed-off-by: Matthew Thode <mthode@mthode.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/core/dev.c