From: Patrick McHardy <kaber@trash.net>
To: Herbert Xu <herbert@gondor.apana.org.au>
Cc: Andrew Morton <akpm@osdl.org>,
netdev@oss.sgi.com, netfilter-devel@lists.netfilter.org
Subject: Re: CONFIG_NETFILTER_DEBUG spew
Date: Sun, 01 May 2005 17:17:01 +0200 [thread overview]
Message-ID: <4274F2ED.9080404@trash.net> (raw)
In-Reply-To: <20050501111507.GA2133@gondor.apana.org.au>
[-- Attachment #1: Type: text/plain, Size: 902 bytes --]
Herbert Xu wrote:
> On Sun, May 01, 2005 at 10:28:09AM +0000, Andrew Morton wrote:
>
>>With the below .config, `telnet localhost' spews stuff like this:
>>
>>[ 179.995229] ip_local_deliver: bad loopback skb: PRE_ROUTING LOCAL_IN
>>[ 179.995274] skb: pf=2 (unowned) dev=lo len=54
>>[ 179.995304] PROTO=6 127.0.0.1:23 127.0.0.1:2737 L=54 S=0x10 I=37030 F=0x4000 T=64
>>
>>2.6.12-rc3 doesn't do this - it's something to do with changes in Linus's
>>tree post-2.6.12-rc3.
>
> Patrick, looks like we need to fix nf_debug_ip_local_deliver to
> reflect the newly added nf_reset on the ip_output path.
You're right. I'm tempted to remove the entire nf_debug stuff,
as far as I know it has never found a real bug. But for now
I've only fixed the warning.
> BTW, should we do nf_reset in ip_dev_loopback_xmit as well?
I think so. I'll send a patch later, I'm a bit in a hurry right now.
Regards
Patrick
[-- Attachment #2: x --]
[-- Type: text/plain, Size: 1477 bytes --]
[NETFILTER]: Fix nf_debug_ip_local_deliver()
Signed-off-by: Patrick McHardy <kaber@trash.net>
---
commit a91b6fa8bc4b1626d413d58c21cfcfecabbb4a61
tree 9544bb88b28c2e3ca4b0a66fedfa2bb540ec06e2
parent e8108c98dd6d65613fa0ec9d2300f89c48d554bf
author Patrick McHardy <kaber@trash.net> 1114952978 +0200
committer Patrick McHardy <kaber@trash.net> 1114952978 +0200
Index: net/core/netfilter.c
===================================================================
--- 3608de2fc88b062070a9d197eda9cac1fb9635d3/net/core/netfilter.c (mode:100644 sha1:e51cfa46950cf8f1f4dea42be94e71d76d8c3c5b)
+++ 9544bb88b28c2e3ca4b0a66fedfa2bb540ec06e2/net/core/netfilter.c (mode:100644 sha1:92c51824797dd15018e579eb5753cc372e04fd3d)
@@ -217,21 +217,10 @@
* NF_IP_RAW_INPUT and NF_IP_PRE_ROUTING. */
if (!skb->dev) {
printk("ip_local_deliver: skb->dev is NULL.\n");
- }
- else if (strcmp(skb->dev->name, "lo") == 0) {
- if (skb->nf_debug != ((1 << NF_IP_LOCAL_OUT)
- | (1 << NF_IP_POST_ROUTING)
- | (1 << NF_IP_PRE_ROUTING)
- | (1 << NF_IP_LOCAL_IN))) {
- printk("ip_local_deliver: bad loopback skb: ");
- debug_print_hooks_ip(skb->nf_debug);
- nf_dump_skb(PF_INET, skb);
- }
- }
- else {
+ } else {
if (skb->nf_debug != ((1<<NF_IP_PRE_ROUTING)
| (1<<NF_IP_LOCAL_IN))) {
- printk("ip_local_deliver: bad non-lo skb: ");
+ printk("ip_local_deliver: bad skb: ");
debug_print_hooks_ip(skb->nf_debug);
nf_dump_skb(PF_INET, skb);
}
next prev parent reply other threads:[~2005-05-01 15:17 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-01 10:28 CONFIG_NETFILTER_DEBUG spew Andrew Morton
2005-05-01 11:15 ` Herbert Xu
2005-05-01 15:17 ` Patrick McHardy [this message]
2005-05-03 23:20 ` David S. Miller
2005-05-05 11:14 ` Harald Welte
2005-05-05 22:36 ` Patrick McHardy
2005-05-02 16:12 ` Patrick McHardy
2005-05-02 21:36 ` Herbert Xu
2005-05-03 23:20 ` David S. Miller
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=4274F2ED.9080404@trash.net \
--to=kaber@trash.net \
--cc=akpm@osdl.org \
--cc=herbert@gondor.apana.org.au \
--cc=netdev@oss.sgi.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).