gregkh@ wrote:
The patch below does not apply to the 5.4-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to stable@vger.kernel.org.
thanks,
greg k-h
Hi Greg,
We should get it backported its a fairly rare event, but then we get bug reports when it happens.
I'll prepare patches, let them run in our test env for a bit and then send them out.
Thanks! John
------------------ original commit in Linus's tree ------------------
From 476d98018f32e68e7c5d4e8456940cf2b6d66f10 Mon Sep 17 00:00:00 2001 From: John Fastabend john.fastabend@gmail.com Date: Tue, 27 Jul 2021 09:04:59 -0700 Subject: [PATCH] bpf, sockmap: On cleanup we additionally need to remove cached skb
Its possible if a socket is closed and the receive thread is under memory pressure it may have cached a skb. We need to ensure these skbs are free'd along with the normal ingress_skb queue.
[...]