diff options
author | Jeremy Kerr <jk@codeconstruct.com.au> | 2023-01-24 05:01:06 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-02-01 10:34:48 +0300 |
commit | a8f2ee10718fc657cdc6a7a5e5ac6194eabeebbb (patch) | |
tree | 6d3a4149af4493a1512fd0c3142c31ffb9ad7861 /drivers/thermal/intel | |
parent | 6a524787965f6fec33cde3a046da6ef2b500e807 (diff) | |
download | linux-a8f2ee10718fc657cdc6a7a5e5ac6194eabeebbb.tar.xz |
net: mctp: mark socks as dead on unhash, prevent re-add
[ Upstream commit b98e1a04e27fddfdc808bf46fe78eca30db89ab3 ]
Once a socket has been unhashed, we want to prevent it from being
re-used in a sk_key entry as part of a routing operation.
This change marks the sk as SOCK_DEAD on unhash, which prevents addition
into the net's key list.
We need to do this during the key add path, rather than key lookup, as
we release the net keys_lock between those operations.
Fixes: 4a992bbd3650 ("mctp: Implement message fragmentation & reassembly")
Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/thermal/intel')
0 files changed, 0 insertions, 0 deletions