netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Patch net-next v2 0/3] net: forbid net devices named "all" "default" or "config"
@ 2014-07-25 22:25 Cong Wang
  2014-07-25 22:25 ` [Patch net-next v2 1/3] ipv4: fail early when creating netdev named all or default Cong Wang
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Cong Wang @ 2014-07-25 22:25 UTC (permalink / raw)
  To: netdev; +Cc: stephane.chazelas, f.fainelli, davem, Cong Wang

/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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-07-29 18:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-25 22:25 [Patch net-next v2 0/3] net: forbid net devices named "all" "default" or "config" Cong Wang
2014-07-25 22:25 ` [Patch net-next v2 1/3] ipv4: fail early when creating netdev named all or default Cong Wang
2014-07-25 22:25 ` [Patch net-next v2 2/3] ipv6: " Cong Wang
2014-07-25 22:25 ` [Patch net-next v2 3/3] vlan: fail early when creating netdev named config Cong Wang
2014-07-29 18:44 ` [Patch net-next v2 0/3] net: forbid net devices named "all" "default" or "config" David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).