All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pablo Neira <pablo@eurodev.net>
To: Harald Welte <laforge@netfilter.org>
Cc: Netfilter Developers <netfilter-devel@lists.netfilter.org>,
	Henrik Nordstrom <hno@marasystems.com>
Subject: Re: ctnetlink & helper_locking_fix conflict
Date: Wed, 10 Nov 2004 19:45:28 +0100	[thread overview]
Message-ID: <419261C8.2010707@eurodev.net> (raw)
In-Reply-To: <20041109171106.GF22257@sunbeam.de.gnumonks.org>

Harald Welte wrote:

>On Tue, Nov 09, 2004 at 08:13:33AM +0100, Henrik Nordstrom wrote:
>  
>
>>Hi,
>>
>>there is a conflict between the above two patches. The helper_locking_fix 
>>removes the locks from the helpers, but ctnetlink adds code using these 
>>locks.
>>
>>>From reading the code I think the helper side locking should be removed 
>>from the ctnetlink additions as well, but just wanted to verify with you.
>>    
>>
>
>I think it is safe.  We're holding a write lock on ip_conntrack_lock and
>thus it's safe to change the helper data.
>
>If you have a fix for ctnetlink, that would be appreciated
>  
>

I think that there's a minor race. In ip_conntrack_in()

855                 ret = ct->helper->help(*pskb, ct, ctinfo)

This call isn't in a locked section. Someone could be calling the helper 
at the same time that ctnetlink is modifying the private helper info. 
I've annotated this issue since I'll be working in that code (change 
API) once I've done with the event stuff.

Pablo

      reply	other threads:[~2004-11-10 18:45 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-09  7:13 ctnetlink & helper_locking_fix conflict Henrik Nordstrom
2004-11-09 17:11 ` Harald Welte
2004-11-10 18:45   ` Pablo Neira [this message]

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=419261C8.2010707@eurodev.net \
    --to=pablo@eurodev.net \
    --cc=hno@marasystems.com \
    --cc=laforge@netfilter.org \
    --cc=netfilter-devel@lists.netfilter.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 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.