fix DELETE_LIST netfilter oopses
Subsystems (2)
PATCH 1/1 fix DELETE_LIST netfilter oopses
Hi!
We've now narrowed down the issue of kernel oopses in combination with 'LIST_DELETE' syslog messages happening in certain setups.
Apparently people who do not enable CONFIG_IP_NF_NAT_LOCAL and do DNAT/REDIRECT and want to connect locally from the gateway via DNAT to the DNAT'ed address experience the bug ;)
Please push the attached patch [courtesy of KOVACS Krisztian and Henrik Nordstrom] to 2.4.x and 2.6.x ASAP, thanks.
I know that patch looks ugly, but considering the verbose comment I think it's ok.
Thanks,
Signature · 5 lines
- Harald Welte <[email protected]> http://www.netfilter.org/ ============================================================================ "Fragmentation is like classful addressing -- an interesting early architectural error that shows how much experimentation was going on while IP was being designed." -- Paul Vixie
net/ipv4/netfilter/ip_nat_standalone.c +10 -1
@@ -114,7 +114,16 @@WRITE_LOCK (&ip_nat_lock);/* Seen it before? This can happen for loopback, retrans, or local packets.. */ -if (!(info->initialized & (1 << maniptype))) { + if (!(info->initialized & (1 << maniptype)) +#ifndef CONFIG_IP_NF_NAT_LOCAL +/* If this session has already been confirmed we must not +* touch it again even if there is no mapping set up. +* Can only happen on local->local traffic with +* CONFIG_IP_NF_NAT_LOCAL disabled. +*/ + && !(ct->status & IPS_CONFIRMED) +#endif + ) {unsigned int ret; if (ct->master
David S. Miller
AppliedQuoted 9 lines · On Mon, 29 Mar 2004 13:32:39 +0200 Harald Welte <[email protected]> wrote:
We've now narrowed down the issue of kernel oopses in combination with '
LIST_DELETE' syslog messages happening in certain setups.Apparently people who do not enable
CONFIG_IP_NF_NAT_LOCALand do DNAT/REDIRECT and want to connect locally from the gateway via DNAT to the DNAT'ed address experience the bug ;)Please push the attached patch [courtesy of KOVACS Krisztian and Henrik Nordstrom] to 2.4.x and 2.6.x ASAP, thanks.
Applied, thanks guys.