[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1406327110-17227-1-git-send-email-xiyou.wangcong@gmail.com>
Date: Fri, 25 Jul 2014 15:25:07 -0700
From: Cong Wang <xiyou.wangcong@...il.com>
To: netdev@...r.kernel.org
Cc: stephane.chazelas@...il.com, f.fainelli@...il.com,
davem@...emloft.net, Cong Wang <xiyou.wangcong@...il.com>
Subject: [Patch net-next v2 0/3] net: forbid net devices named "all" "default" or "config"
/proc/sys/net/ipv[46]/conf/<dev> could conflict with
/proc/sys/net/ipv[46]/conf/(all|default). And /proc/net/vlan/<dev>
could conflict with /proc/net/vlan/config. Besides kernel warnings,
undefined behavior such as duplicated proc files also appears, therefore
we should forbid these names.
v2: introduce a helper function, suggested by Florian
fix error handling for ipv6_add_dev() in addrconf_init()
Cong Wang (3):
ipv4: fail early when creating netdev named all or default
ipv6: fail early when creating netdev named all or default
vlan: fail early when creating netdev named config
include/net/ip.h | 6 ++++
net/8021q/vlan.c | 21 +++++++++-----
net/8021q/vlanproc.c | 2 ++
net/ipv4/devinet.c | 36 +++++++++++++++++------
net/ipv6/addrconf.c | 82 ++++++++++++++++++++++++++++++++++------------------
5 files changed, 102 insertions(+), 45 deletions(-)
--
1.8.3.1
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists