From: Cyrill Gorcunov <gorcunov@gmail.com>
To: Eric Dumazet <eric.dumazet@gmail.com>
Cc: Michal Ostrowski <mostrows@gmail.com>,
Denys Fedoryschenko <denys@visp.net.lb>,
netdev <netdev@vger.kernel.org>,
linux-ppp@vger.kernel.org, paulus@samba.org,
mostrows@earthlink.net
Subject: Re: kernel panic in latest vanilla stable, while using nameif with "alive" pppoe interfaces
Date: Mon, 19 Oct 2009 23:29:10 +0400 [thread overview]
Message-ID: <20091019192910.GC5233@lenovo> (raw)
In-Reply-To: <4ADCB3A4.8060408@gmail.com>
[Eric Dumazet - Mon, Oct 19, 2009 at 08:44:52PM +0200]
...
|
| Not really :)
|
| I dont believe you should care of namespace, and/or mess with its refcount at all.
|
| Please dont use maybe_get_net() : This function should not ever be used in drivers/net
|
| You can add a BUG_ON(dev_net(xxxx)->count <= 0) if you really want, but if this
| assertion is false, this is not because of pppoe.
|
...
| So pppoe_flush_dev() can run concurently and dev_put(po->ppoe_dev) at same time.
|
| In fact pppoe_flush_dev() can change po->ppoe_dev anytime, so you should check
| all occurences of po->ppoe_dev use in the code and check if appropriate locking is done.
|
| pppoe_rcv_core() is not safe
| pppoe_ioctl() is not safe
| pppoe_sendmsg() is not safe
| __pppoe_xmit() is not safe
|
Sigh... seem so (which is mostly my fault not Michal). Every time we touch pppoe_dev we
should dev_hold on it and dev_put as only done all we need. Async nature
of notifier seem to be a key here.
-- Cyrill
next prev parent reply other threads:[~2009-10-19 19:29 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-18 21:02 kernel panic in latest vanilla stable, while using nameif with "alive" pppoe interfaces Denys Fedoryschenko
2009-10-19 3:34 ` Michal Ostrowski
2009-10-19 11:36 ` Denys Fedoryschenko
2009-10-19 12:01 ` Denys Fedoryschenko
2009-10-19 12:36 ` Eric Dumazet
2009-10-19 13:19 ` Michal Ostrowski
2009-10-19 15:50 ` Cyrill Gorcunov
2009-10-19 16:05 ` Michal Ostrowski
2009-10-19 17:12 ` Eric Dumazet
2009-10-19 18:07 ` Michal Ostrowski
2009-10-19 18:44 ` Eric Dumazet
2009-10-19 19:29 ` Cyrill Gorcunov [this message]
2009-10-19 20:54 ` Michal Ostrowski
2009-10-20 3:42 ` Eric Dumazet
2009-10-20 5:02 ` Cyrill Gorcunov
2009-10-20 5:05 ` Eric Dumazet
2009-10-20 5:17 ` Cyrill Gorcunov
2009-10-20 6:04 ` Cyrill Gorcunov
2009-10-19 20:57 ` Cyrill Gorcunov
2009-10-19 21:22 ` Michal Ostrowski
2009-10-20 0:08 ` Denys Fedoryschenko
2009-10-20 3:04 ` Cyrill Gorcunov
2009-10-20 11:36 ` Denys Fedoryschenko
2009-10-20 11:50 ` Cyrill Gorcunov
2009-10-20 11:52 ` Denys Fedoryschenko
2009-10-20 13:42 ` Cyrill Gorcunov
2009-10-20 13:50 ` Denys Fedoryschenko
2009-10-20 13:59 ` Cyrill Gorcunov
2009-10-20 14:20 ` Denys Fedoryschenko
2009-10-20 14:23 ` Cyrill Gorcunov
2009-10-20 19:08 ` Cyrill Gorcunov
2009-10-23 15:18 ` Cyrill Gorcunov
2009-10-25 18:10 ` Denys Fedoryschenko
2009-10-20 2:28 ` 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=20091019192910.GC5233@lenovo \
--to=gorcunov@gmail.com \
--cc=denys@visp.net.lb \
--cc=eric.dumazet@gmail.com \
--cc=linux-ppp@vger.kernel.org \
--cc=mostrows@earthlink.net \
--cc=mostrows@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=paulus@samba.org \
/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).