]> git.baikalelectronics.ru Git - kernel.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)
commitffef618d50d800ca602a65210c28264122585ec1
treeb2b5ec39519bbf6416ae021f108739290e565b50
parent256058748556bd7a973a7d4951a658ac99ee397c
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