]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
xfrm: avoid synchronize_rcu during netns destruction
authorFlorian Westphal <fw@strlen.de>
Wed, 14 Apr 2021 16:12:53 +0000 (18:12 +0200)
committerSteffen Klassert <steffen.klassert@secunet.com>
Mon, 19 Apr 2021 10:25:11 +0000 (12:25 +0200)
commit6218fe186109b93a2fa2343e13981e016e9961ab
treea28194aa53b05dd3dcebbddbffed0e2ba9626e63
parent7baf867fef7cc65d666792e9d1b911beffe74ad7
xfrm: avoid synchronize_rcu during netns destruction

Use the new exit_pre hook to NULL the netlink socket.
The net namespace core will do a synchronize_rcu() between the exit_pre
and exit/exit_batch handlers.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/xfrm/xfrm_user.c