From: Cong Wang <xiyou.wangcong@gmail.com>
To: netdev@vger.kernel.org
Cc: stephane.chazelas@gmail.com, davem@davemloft.net,
Cong Wang <xiyou.wangcong@gmail.com>
Subject: [Patch net-next 0/3] net: forbid net devices named "all" "default" or "config"
Date: Wed, 23 Jul 2014 15:17:29 -0700 [thread overview]
Message-ID: <1406153852-22511-1-git-send-email-xiyou.wangcong@gmail.com> (raw)
/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
next reply other threads:[~2014-07-23 22:17 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-23 22:17 Cong Wang [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1406153852-22511-1-git-send-email-xiyou.wangcong@gmail.com \
--to=xiyou.wangcong@gmail.com \
--cc=davem@davemloft.net \
--cc=netdev@vger.kernel.org \
--cc=stephane.chazelas@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).