]> Git Repo - linux.git/commit
[NETFILTER]: Use pskb_trim in {ip,ip6,nfnetlink}_queue
authorPatrick McHardy <[email protected]>
Wed, 15 Nov 2006 03:48:09 +0000 (19:48 -0800)
committerDavid S. Miller <[email protected]>
Thu, 16 Nov 2006 05:18:48 +0000 (21:18 -0800)
commitd8a585d78efdf191a64ca655136ac1e49fd27cf4
tree5effa2c2ec3a46fef6aaee1b7484d10318970d0e
parent7fdeaf68a16f8102659cf1b30f57247d8ccbeef0
[NETFILTER]: Use pskb_trim in {ip,ip6,nfnetlink}_queue

Based on patch by James D. Nurmi:

I've got some code very dependant on nfnetlink_queue, and turned up a
large number of warns coming from skb_trim.  While it's quite possibly
my code, having not seen it on older kernels made me a bit suspect.

Anyhow, based on some googling I turned up this thread:
http://lkml.org/lkml/2006/8/13/56

And believe the issue to be related, so attached is a small patch to
the kernel -- not sure if this is completely correct, but for anyone
else hitting the WARN_ON(1) in skbuff.h, it might be helpful..

Signed-off-by: James D. Nurmi <[email protected]>
Ported to ip6_queue and nfnetlink_queue and added return value
checks.

Signed-off-by: Patrick McHardy <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
net/ipv4/netfilter/ip_queue.c
net/ipv6/netfilter/ip6_queue.c
net/netfilter/nfnetlink_queue.c
This page took 0.045104 seconds and 4 git commands to generate.