]> git.baikalelectronics.ru Git - kernel.git/commit
rxrpc: Fix local destruction being repeated
authorDavid Howells <dhowells@redhat.com>
Fri, 6 May 2022 22:55:21 +0000 (23:55 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Sep 2022 09:03:58 +0000 (11:03 +0200)
commit3ee917e4c143369c4fbf2ea88ea113136a9000a1
tree739f13f8c131fc17931eb0d60e2436d7af93002e
parent68e08876d2cd1d1110ca1624174ae67c9294d204
rxrpc: Fix local destruction being repeated

[ Upstream commit 632933d0fffb600ba5327df70cb8c3a9a9766cf8 ]

If the local processor work item for the rxrpc local endpoint gets requeued
by an event (such as an incoming packet) between it getting scheduled for
destruction and the UDP socket being closed, the rxrpc_local_destroyer()
function can get run twice.  The second time it can hang because it can end
up waiting for cleanup events that will never happen.

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/rxrpc/local_object.c