All of lore.kernel.org
 help / color / mirror / Atom feed
From: Eric Leblond <eric@inl.fr>
To: Nuutti Kotivuori <naked@iki.fi>
Cc: Netfilter Development Mailinglist
	<netfilter-devel@lists.netfilter.org>,
	Patrick McHardy <kaber@trash.net>
Subject: Re: netfilter QUEUE target and packet socket interactions buggy or not
Date: Sun, 18 Sep 2005 09:41:35 +0200	[thread overview]
Message-ID: <1127029295.5493.32.camel@localhost.localdomain> (raw)
In-Reply-To: <871x3p875j.fsf@aka.i.naked.iki.fi>

Le vendredi 16 septembre 2005 à 16:38 +0300, Nuutti Kotivuori a écrit :
> Just to reiterate, I still haven't been able to reproduce this on the
> mainline kernel, only with RHEL 4 kernels. So if you want to skip
> this, that's fine.

It remembers me the problem I had with RHEL4 :

https://lists.netfilter.org/pipermail/netfilter-devel/2005-July/020505.html

I did not have to study the problem in detail but it may be helpful for
your current problem.

BR,

> 
> Patrick McHardy wrote:
> > Nuutti Kotivuori wrote:
> >>
> >> Appended here is a backtrace with the tg3 driver. Also, it seems that
> >> the bug cannot be reproduced with uniprocessor, only SMP.
> >>
> >> Unable to handle kernel NULL pointer dereference at virtual address 00000018
> >
> > This means inode->i_security was NULL. AFAICT it is only set to NULL in
> > inode_free_security() when the inode is freed. This shouldn't happen
> > while the packet is queued since the skb should hold a reference to
> > the socket on the output path. So it could be some protocol forgetting
> > to increase the refcnt when taking a reference. What kind of packet
> > is this? And what kernel version are you running? Until recently
> > ip_conntrack did some fiddling with skb->sk which could lead to
> > a packet on the output path with skb->sk set but no reference taken.
> 
> I finally managed to add enough debug dumps to find out what packet it
> is. It is a TCP FIN,ACK packet, going outwards, originating from the
> machine which crashes. It seems that the TCP FIN,ACK packet get sent
> outwards, is caught by the QUEUE target in netfilter, goes to
> userspace, comes back, continues onwards, gets rejected by the filter
> rule in packet socket and then hits the selinux outbound handler and
> at that point, the socket has been freed, so it crashes. Atleast this
> is my understanding at the moment. This all is very confusing, though.
> 
> -- Naked
> 

  parent reply	other threads:[~2005-09-18  7:41 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-12 22:12 netfilter QUEUE target and packet socket interactions buggy or not Nuutti Kotivuori
2005-09-12 22:11 ` David S. Miller
2005-09-12 22:34   ` Nuutti Kotivuori
2005-09-13 10:54     ` Nuutti Kotivuori
2005-09-13 16:33       ` Patrick McHardy
2005-09-13 18:22         ` Nuutti Kotivuori
2005-09-13 18:22           ` Nuutti Kotivuori
2005-09-14  2:52           ` Patrick McHardy
2005-09-14  8:31             ` Nuutti Kotivuori
2005-09-14 12:10               ` Nuutti Kotivuori
2005-09-14 12:20           ` Nuutti Kotivuori
2005-09-15  8:50             ` Nuutti Kotivuori
2005-09-17 17:59             ` Patrick McHardy
2005-09-16 13:38         ` Nuutti Kotivuori
2005-09-17 17:57           ` Patrick McHardy
2005-09-18  7:27             ` David S. Miller
2005-09-18 10:37               ` Nuutti Kotivuori
2005-09-19 10:54                 ` Nuutti Kotivuori
2005-09-19 13:34                 ` Nuutti Kotivuori
2005-09-18  7:41           ` Eric Leblond [this message]
2005-09-14 11:20 ` Nuutti Kotivuori

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=1127029295.5493.32.camel@localhost.localdomain \
    --to=eric@inl.fr \
    --cc=kaber@trash.net \
    --cc=naked@iki.fi \
    --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.