summaryrefslogtreecommitdiff
path: root/net/mac802154
diff options
context:
space:
mode:
authorUrsula Braun <ubraun@linux.ibm.com>2019-04-11 12:17:34 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-07-10 10:53:44 +0300
commit3ddc2a10070675fc93cf36d0496ba5bf78ef667a (patch)
tree608052f2ec2798ecf5d673e43ed9f5293b9abd05 /net/mac802154
parentcd54dc4cd37d0b18280c29f2bf25ba08d6895b3c (diff)
downloadlinux-3ddc2a10070675fc93cf36d0496ba5bf78ef667a.tar.xz
net/smc: move unhash before release of clcsock
[ Upstream commit f61bca58f6c36e666c2b807697f25e5e98708162 ] Commit <26d92e951fe0> ("net/smc: move unhash as early as possible in smc_release()") fixes one occurrence in the smc code, but the same pattern exists in other places. This patch covers the remaining occurrences and makes sure, the unhash operation is done before the smc->clcsock is released. This avoids a potential use-after-free in smc_diag_dump(). Reviewed-by: Karsten Graul <kgraul@linux.ibm.com> Signed-off-by: Ursula Braun <ubraun@linux.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'net/mac802154')
0 files changed, 0 insertions, 0 deletions