]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
[NETFILTER]: nf_conntrack: Don't track locally generated special ICMP error
authorYasuyuki Kozakai <yasuyuki.kozakai@toshiba.co.jp>
Sun, 15 Jul 2007 03:45:41 +0000 (20:45 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 15 Jul 2007 03:45:41 +0000 (20:45 -0700)
commit130e7a83d7ec8c5c673225e0fa8ea37b1ed507a5
tree35b4d5f60070309cb592b156590c1fb431e37ef6
parente2a3123fbe58da9fd3f35cd242087896ace6049f
[NETFILTER]: nf_conntrack: Don't track locally generated special ICMP error

The conntrack assigned to locally generated ICMP error is usually the one
assigned to the original packet which has caused the error. But if
the original packet is handled as invalid by nf_conntrack, no conntrack
is assigned to the original packet. Then nf_ct_attach() cannot assign
any conntrack to the ICMP error packet. In that case the current
nf_conntrack_icmp assigns appropriate conntrack to it. But the current
code mistakes the direction of the packet. As a result, NAT code mistakes
the address to be mangled.

To fix the bug, this changes nf_conntrack_icmp not to assign conntrack
to such ICMP error. Actually no address is necessary to be mangled
in this case.

Spotted by Jordan Russell.

Signed-off-by: Yasuyuki Kozakai <yasuyuki.kozakai@toshiba.co.jp>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/netfilter/nf_conntrack_proto_icmp.c