* [PATCH] reject creation of netdev names with colons
@ 2015-02-18 0:31 Matthew Thode
2015-02-22 2:46 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Matthew Thode @ 2015-02-18 0:31 UTC (permalink / raw)
To: davem; +Cc: netdev, linux-kernel, Matthew Thode
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>
---
net/core/dev.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/core/dev.c b/net/core/dev.c
index d030575..efbad386 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -946,7 +946,7 @@ bool dev_valid_name(const char *name)
return false;
while (*name) {
- if (*name == '/' || isspace(*name))
+ if (*name == '/' || *name == ':' || isspace(*name))
return false;
name++;
}
--
2.0.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] reject creation of netdev names with colons
2015-02-18 0:31 [PATCH] reject creation of netdev names with colons Matthew Thode
@ 2015-02-22 2:46 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2015-02-22 2:46 UTC (permalink / raw)
To: mthode; +Cc: netdev, linux-kernel
From: Matthew Thode <mthode@mthode.org>
Date: Tue, 17 Feb 2015 18:31:57 -0600
> 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>
Applied thanks.
Please put a proper subsystem prefix in your Subject line
for future patches. In this case an appropriate prefix
would have been "net: reject..."
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-02-22 2:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-18 0:31 [PATCH] reject creation of netdev names with colons Matthew Thode
2015-02-22 2:46 ` David Miller
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.