netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Patch net-next 0/3] net: forbid net devices named "all" "default" or "config"
@ 2014-07-23 22:17 Cong Wang
  2014-07-23 22:17 ` [Patch net-next 1/3] ipv4: fail early when creating netdev named all or default Cong Wang
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Cong Wang @ 2014-07-23 22:17 UTC (permalink / raw)
  To: netdev; +Cc: stephane.chazelas, 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.

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

 net/8021q/vlan.c     | 21 +++++++++-------
 net/8021q/vlanproc.c |  2 ++
 net/ipv4/devinet.c   | 37 ++++++++++++++++++++++-------
 net/ipv6/addrconf.c  | 67 ++++++++++++++++++++++++++++++++++------------------
 4 files changed, 87 insertions(+), 40 deletions(-)

-- 
1.8.3.1

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

end of thread, other threads:[~2014-07-25  6:32 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-23 22:17 [Patch net-next 0/3] net: forbid net devices named "all" "default" or "config" Cong Wang
2014-07-23 22:17 ` [Patch net-next 1/3] ipv4: fail early when creating netdev named all or default Cong Wang
2014-07-24  1:05   ` Florian Fainelli
2014-07-24  3:00     ` Andy Gospodarek
2014-07-24 17:41       ` Cong Wang
2014-07-23 22:17 ` [Patch net-next 2/3] ipv6: " Cong Wang
2014-07-23 22:17 ` [Patch net-next 3/3] vlan: fail early when creating netdev named config Cong Wang
2014-07-25  6:32 ` [Patch net-next 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).