]> 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)
committerDavid Howells <dhowells@redhat.com>
Thu, 1 Sep 2022 10:44:12 +0000 (11:44 +0100)
commitd3d863036d688313f8d566b87acd7d99daf82749
treee35e93a6835ffa7decb606a228a30f46557e47f2
parent0d40f728e28393a8817d1fcae923dfa3409e488c
rxrpc: Fix local destruction being repeated

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>
net/rxrpc/local_object.c