[Bug 714] Kernel panics in same_src()
bugzilla-daemon at bugzilla.netfilter.org
bugzilla-daemon at bugzilla.netfilter.org
Sat Nov 19 06:41:49 CET 2011
http://bugzilla.netfilter.org/show_bug.cgi?id=714
--- Comment #3 from Dmitry Petuhov <d.petuhov at electro-com.ru> 2011-11-19 06:41:49 ---
I will try to add some debugging like
-----------------
--- nf_nat_core.c.orig 2011-03-08 02:18:15.000000000 +0300
+++ nf_nat_core.c 2011-11-19 09:25:28.000000000 +0400
@@ -132,6 +132,28 @@
const struct nf_conntrack_tuple *t;
t = &ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple;
+ if (tuple == NULL) {
+ printk(KERN_ERR "nf_nat_core: same_src: NULL tuple passed\n");
+ return 0;
+ }
+ if (t == NULL) {
+ printk(KERN_ERR "nf_nat_core: same_src: NULL original tuple in
ct "
+ "for proto %u srcaddr %u.%u.%u.%u dstaddr
%u.%u.%u.%u"
+ "src port %u dst port %u\n",
+ tuple->dst.protonum, NIPQUAD(tuple->src.u3.ip),
+
NIPQUAD(tuple->dst.u3.ip),tuple->src.u.all,tuple->dst.u.all);
+ t = &ct->tuplehash[IP_CT_DIR_REPLY].tuple;
+ if (t == NULL) {
+ printk(KERN_ERR "nf_nat_core: same_src: also NULL reply
tuple in ct\n");
+ } else {
+ printk(KERN_ERR "nf_nat_core: same_src: reply tuple in
ct: "
+ "proto %u srcaddr %u.%u.%u.%u dstaddr
%u.%u.%u.%u"
+ "src port %u dst port %u\n",
+ t->dst.protonum, NIPQUAD(t->src.u3.ip),
+
NIPQUAD(t->dst.u3.ip),t->src.u.all,t->dst.u.all);
+ }
+ return 0;
+ }
return (t->dst.protonum == tuple->dst.protonum &&
t->src.u3.ip == tuple->src.u3.ip &&
t->src.u.all == tuple->src.u.all);
--------------------
to module to see what poiner is null. Can it be helpful? I'm bad C programmer,
so it may look ugly or be completely useless...
--
Configure bugmail: http://bugzilla.netfilter.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
More information about the netfilter-buglog
mailing list