]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net/handshake: Unpin sock->file if a handshake is cancelled
authorChuck Lever <chuck.lever@oracle.com>
Thu, 11 May 2023 15:49:17 +0000 (11:49 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 12 May 2023 08:24:08 +0000 (09:24 +0100)
commitf921bd41001ccff2249f5f443f2917f7ef937daf
tree5c5e6295d23bc728141180ea348cdb091aae1c3b
parente36a93e1723eb09c8393604ddc8ef2966f592597
net/handshake: Unpin sock->file if a handshake is cancelled

If user space never calls DONE, sock->file's reference count remains
elevated. Enable sock->file to be freed eventually in this case.

Reported-by: Jakub Kacinski <kuba@kernel.org>
Fixes: 3b3009ea8abb ("net/handshake: Create a NETLINK service for handling handshake requests")
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/handshake/handshake.h
net/handshake/request.c