public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Harald Welte <laforge@gnumonks.org>
To: "David S. Miller" <davem@redhat.com>
Cc: ionut@cs.columbia.edu, mhaque@haque.net, linux-kernel@vger.kernel.org
Subject: Re: Netfilter is broken (was Re: ip_defrag is broken (was: Re: test12 lockups -- need feedback))
Date: Fri, 15 Dec 2000 01:20:00 +0100	[thread overview]
Message-ID: <20001215012000.B6775@coruscant.gnumonks.org> (raw)
In-Reply-To: <Pine.LNX.4.30.0012141204210.27848-100000@age.cs.columbia.edu> <200012141955.LAA08814@pizda.ninka.net>
In-Reply-To: <200012141955.LAA08814@pizda.ninka.net>; from davem@redhat.com on Thu, Dec 14, 2000 at 11:55:43AM -0800

On Thu, Dec 14, 2000 at 11:55:43AM -0800, David S. Miller wrote:
>    Date: Thu, 14 Dec 2000 12:07:38 -0800 (PST)
>    From: Ion Badulescu <ionut@cs.columbia.edu>
> 
>    I'm afraid I won't be able to answer this question, since I'm
>    leaving for a 3-week vacation in about 50 minutes and I need my
>    firewall functional until then. :-) Maybe other people who have
>    seen this problem can experiment further.
> 
> Ok, regardless I'm very confident netfilter is doing something
> very bad.
> 
> Essentially it is feeding SKBs into IPv4 receive processing which
> have a NULL skb->dev, that has always been illegal.  Now it OOPSs
> so we can spot such violations.

mmh... After checking some of my assumptions with the code again, I don't
think that netfilter does something wrong.

Referring to some of the other messages in this thread, ip_conntrack seems
to be blamed.

Conntrack is registered at the NF_IP_PRE_ROUTING hook and calls ip_defrag
for all skb's it receives. But we don't touch the dev member of the skb
at all... 

Or is there something wrong with:

- packet arrives in net/ipv4/ip_input.c:ip_rcv()
- netfilter hook NF_IP_PRE_ROUTING is called
- net/ipv4/netfilter/ip_conntrack_core.c:ip_conntrack_in() is called
- net/ipv4/netfilter/ip_conntrack_core.c:ip_ct_gather_frags() is called
- net/ipv4/ip_input.c:ip_defrag() is called

Isn't the skb->dev member supposed to still point to the receiving 
device?


> David S. Miller

-- 
Live long and prosper
- Harald Welte / laforge@gnumonks.org                http://www.gnumonks.org
============================================================================
GCS/E/IT d- s-: a-- C+++ UL++++$ P+++ L++++$ E--- W- N++ o? K- w--- O- M- 
V-- PS+ PE-- Y+ PGP++ t++ 5-- !X !R tv-- b+++ DI? !D G+ e* h+ r% y+(*)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

  reply	other threads:[~2000-12-15  0:52 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-12-13 23:22 test12 lockups -- need feedback Mohammad A. Haque
2000-12-14  0:22 ` Mikael Djurfeldt
2000-12-14  0:29   ` Mikael Djurfeldt
2000-12-14  1:28     ` dep
2000-12-14  2:58 ` Mohammad A. Haque
2000-12-14  3:48   ` Mohammad A. Haque
2000-12-14 12:21     ` Ingo Oeser
2000-12-14 11:42       ` Mohammad A. Haque
2000-12-15 15:20         ` Ingo Oeser
2000-12-14 12:10       ` dep
2000-12-14 12:15         ` Mohammad A. Haque
2000-12-14 13:16           ` dep
2000-12-14 14:41           ` Bob_Tracy
2000-12-14 18:38           ` ip_defrag is broken (was: Re: test12 lockups -- need feedback) Ion Badulescu
2000-12-14 19:27             ` David S. Miller
2000-12-14 19:52               ` Ion Badulescu
2000-12-14 19:43                 ` David S. Miller
2000-12-14 20:07                   ` Ion Badulescu
2000-12-14 19:55                     ` Netfilter is broken (was Re: ip_defrag is broken (was: Re: test12 lockups -- need feedback)) David S. Miller
2000-12-15  0:20                       ` Harald Welte [this message]
2000-12-15  0:11                         ` David S. Miller
2000-12-15  0:48                           ` Andi Kleen
2000-12-15  1:25                             ` Harald Welte
2000-12-14 20:35                     ` ip_defrag is broken (was: Re: test12 lockups -- need feedback) Mohammad A. Haque
2000-12-14 20:23                       ` David S. Miller
2000-12-14 21:25                         ` Mohammad A. Haque
2000-12-14 22:50                           ` Mohammad A. Haque
2000-12-14 23:58                             ` Mohammad A. Haque
2000-12-15  8:52                             ` Jasper Spaans
2000-12-15  9:22                             ` Tom Leete
2000-12-15  2:25                         ` Tom Leete
2000-12-15 13:12                         ` Rusty Russell
2000-12-14 20:49             ` Bob_Tracy

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=20001215012000.B6775@coruscant.gnumonks.org \
    --to=laforge@gnumonks.org \
    --cc=davem@redhat.com \
    --cc=ionut@cs.columbia.edu \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mhaque@haque.net \
    /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