]> git.karo-electronics.de Git - linux-beck.git/commit
IPVS netns exit causes crash in conntrack
authorHans Schillstrom <hans.schillstrom@ericsson.com>
Mon, 13 Jun 2011 07:06:57 +0000 (09:06 +0200)
committerSimon Horman <horms@verge.net.au>
Mon, 13 Jun 2011 08:41:47 +0000 (17:41 +0900)
commit8f4e0a18682d91abfad72ede3d3cb5f3ebdf54b4
treeb2b5ec39519bbf6416ae021f108739290e565b50
parentd232b8dded624af3e346b13807a591c63b601c44
IPVS netns exit causes crash in conntrack

Quote from Patric Mc Hardy
"This looks like nfnetlink.c excited and destroyed the nfnl socket, but
ip_vs was still holding a reference to a conntrack. When the conntrack
got destroyed it created a ctnetlink event, causing an oops in
netlink_has_listeners when trying to use the destroyed nfnetlink
socket."

If nf_conntrack_netlink is loaded before ip_vs this is not a problem.

This patch simply avoids calling ip_vs_conn_drop_conntrack()
when netns is dying as suggested by Julian.

Signed-off-by: Hans Schillstrom <hans.schillstrom@ericsson.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
net/netfilter/ipvs/ip_vs_conn.c
net/netfilter/ipvs/ip_vs_core.c