From: Ingo Molnar <mingo@elte.hu>
To: Patrick McHardy <kaber@trash.net>
Cc: David Miller <davem@davemloft.net>,
akpm@linux-foundation.org, netdev@vger.kernel.org,
dipankar@in.ibm.com, paulmck@us.ibm.com
Subject: Re: [patch 11/11] netfilter warning fix
Date: Wed, 7 Feb 2007 09:07:22 +0100 [thread overview]
Message-ID: <20070207080722.GC2434@elte.hu> (raw)
In-Reply-To: <45C974FD.5070404@trash.net>
* Patrick McHardy <kaber@trash.net> wrote:
> > this means that this particular use could be fixed by converting the
> > preempt_disable()/enable() pair in nf_ct_l4proto_find_get() to
> > rcu_read_lock()/unlock(), correct?
>
> That is another bug (all uses of preempt_disable in netfilter
> actually), but calling __nf_ct_l[34]proto_find without rcu_read_lock
> is broken as well.
>
> > Furthermore, every user of synchronize_net() [and synchronize_rcu()
> > in general] needs to be reviewed.
>
> I'll take care of netfilter.
great! Netfilter is one of the main users of synchronize_net() (about
90% of the synchronize_net() callsites are in netfilter), and one of the
main (well, in fact pretty much only) users of preempt_disable().
Dave, Patrick, can we lift the nack on PREEMPT_RCU, as far as networking
goes? We really need some progress regarding it, and i think Paul is way
too modest about pushing it. His patchset been in beta testing for like
2 years meanwhile. PREEMPT_RCU has already found a nice set of
bugs/uncleanlinesses elsewhere too, so even if you never actually enable
PREEMPT_RCU (it's off by default), it's a nice generalization of the RCU
framework that also tightens up its semantics. I think we need that,
before existing code learns to depend on non-generic details of
'classic' RCU too much. [my other interest in it, as you might have
guessed, is that PREEMPT_RT depends on PREEMPT_RCU architecturally, but
that shouldnt worry you - i think the upstream arguments alone are
strong enough.]
Ingo
next prev parent reply other threads:[~2007-02-07 8:07 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-06 0:31 [patch 11/11] netfilter warning fix akpm
2007-02-06 2:10 ` David Miller
2007-02-06 2:18 ` Andrew Morton
2007-02-06 2:44 ` David Miller
2007-02-06 2:53 ` Andrew Morton
2007-02-06 12:34 ` Ingo Molnar
2007-02-06 19:43 ` David Miller
2007-02-06 21:02 ` Ingo Molnar
2007-02-06 21:23 ` David Miller
2007-02-06 21:58 ` Ingo Molnar
2007-02-07 6:43 ` Patrick McHardy
2007-02-07 8:07 ` Ingo Molnar [this message]
2007-02-07 8:13 ` David Miller
2007-02-07 8:16 ` Patrick McHardy
2007-02-07 8:18 ` Ingo Molnar
2007-02-06 9:21 ` Martin Josefsson
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=20070207080722.GC2434@elte.hu \
--to=mingo@elte.hu \
--cc=akpm@linux-foundation.org \
--cc=davem@davemloft.net \
--cc=dipankar@in.ibm.com \
--cc=kaber@trash.net \
--cc=netdev@vger.kernel.org \
--cc=paulmck@us.ibm.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.