]> git.itanic.dy.fi Git - linux-stable/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>
Fri, 23 Sep 2022 12:15:50 +0000 (14:15 +0200)
commit1bbcd88c3c99430162bfd2f1f3f0cdf8e55d2334
tree6f889c5f69cdf42991f05dbc612fd9b0a581065c
parent87cd4c02bdb174a5f47252fe3363aa53853b9561
rxrpc: Fix local destruction being repeated

[ Upstream commit d3d863036d688313f8d566b87acd7d99daf82749 ]

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