llc: avoid blocking in llc_sap_close()
authorCong Wang <xiyou.wangcong@gmail.com>
Tue, 11 Sep 2018 18:42:06 +0000 (11:42 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Nov 2019 08:52:18 +0000 (09:52 +0100)
commit7228cb8d997fac5813e78cfd17740d51773962c0
tree3777ee67b85bc68ca8d7dbba731e6c987f942f8a
parent1d642b3f9e68ff34a4d0f5e7e88b8454f460eab1
llc: avoid blocking in llc_sap_close()

[ Upstream commit 9708d2b5b7c648e8e0a40d11e8cea12f6277f33c ]

llc_sap_close() is called by llc_sap_put() which
could be called in BH context in llc_rcv(). We can't
block in BH.

There is no reason to block it here, kfree_rcu() should
be sufficient.

Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/net/llc.h
net/llc/llc_core.c