From: Patrick McHardy <kaber@trash.net>
To: Yasuyuki KOZAKAI <yasuyuki.kozakai@toshiba.co.jp>
Cc: netfilter-devel@lists.netfilter.org, pablo@netfilter.org,
kadlec@blackhole.kfki.hu
Subject: Re: [PATCH 2/2]: nf_conntrack: fix the race on assign helper to new conntrack
Date: Fri, 24 Nov 2006 11:07:18 +0100 [thread overview]
Message-ID: <4566C456.1000400@trash.net> (raw)
In-Reply-To: <200611231718.kANHIMtk027611@toshiba.co.jp>
Yasuyuki KOZAKAI wrote:
> The found helper cannot be assigned to conntrack after unlocking
> nf_conntrack_lock. This tries to find helper to assign again.
Both applied, thanks.
BTW, we have quite a few more helper races. Basically all code
not holding nf_conntrack_lock relies on the synchronize_net()
in nf_conntrack_helper_unregister() for help->helper not to
go away. But there is neither rcu disabling (but we can rely
on nf_hook_slow for this in most of the code) nor copying the
pointer before checking and derefencing it anywhere.
The same is true for all the NAT hook funtions, and probably others.
next parent reply other threads:[~2006-11-24 10:07 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200611231718.kANHIMtk027611@toshiba.co.jp>
2006-11-24 10:07 ` Patrick McHardy [this message]
2006-11-24 11:53 ` [PATCH 2/2]: nf_conntrack: fix the race on assign helper to new conntrack Patrick McHardy
2006-11-23 17:18 Yasuyuki KOZAKAI
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=4566C456.1000400@trash.net \
--to=kaber@trash.net \
--cc=kadlec@blackhole.kfki.hu \
--cc=netfilter-devel@lists.netfilter.org \
--cc=pablo@netfilter.org \
--cc=yasuyuki.kozakai@toshiba.co.jp \
/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.