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.
This behaviour can be witnessed in Fedora distributions which use
NetworkManager. Arguably there should be an option to create a 'sending-only'
socket which won't suffer from this problem, but in the interim I think
the cleanest solution is to drop the conntrack reference before adding the skb
to the socket's queue. The below patch does just that.
This fixes Netfilter bugzilla #91 and Redhat bugzilla #112630.
Phil
Signed-off-by: Phil Oester <kernel@xxxxxxxxxxxx>
patch-ref
Description: Text document
|