]> git.baikalelectronics.ru Git - kernel.git/commit
[NETFILTER]: Drop conntrack reference when packet leaves IP
authorPatrick McHardy <kaber@trash.net>
Mon, 25 Apr 2005 19:01:07 +0000 (12:01 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 Apr 2005 19:01:07 +0000 (12:01 -0700)
commitd0ec572bc44483a495550cdb20b09da8b41d0b43
tree081d0f1223db0f7cda1fdaa3058ed4fefb28d9fc
parent773527afb4fc069a44646f1ce9938f52d5de92b4
[NETFILTER]: Drop conntrack reference when packet leaves IP

In the event a raw socket is created for sending purposes only, the creator
never bothers to check the socket's receive queue.  But we continue to
add skbs to its queue until it fills up.

Unfortunately, if ip_conntrack is loaded on the box, each skb we add to the
queue potentially holds a reference to a conntrack.  If the user attempts
to unload ip_conntrack, we will spin around forever since the queued skbs
are pinned.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_output.c
net/ipv4/netfilter/ip_conntrack_standalone.c