From: Greg Kroah-Hartman Date: Mon, 3 Nov 2025 22:45:24 +0000 (+0900) Subject: fix up queue-5.15/bpf-sync-pending-irq-work-before-freeing-ring-buffer.patch X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4ca0e14cab02fdf5ff0bb22e816f68a9df7927cd;p=thirdparty%2Fkernel%2Fstable-queue.git fix up queue-5.15/bpf-sync-pending-irq-work-before-freeing-ring-buffer.patch --- diff --git a/queue-5.15/bpf-sync-pending-irq-work-before-freeing-ring-buffer.patch b/queue-5.15/bpf-sync-pending-irq-work-before-freeing-ring-buffer.patch index 8ea97f9b2f..1b91503880 100644 --- a/queue-5.15/bpf-sync-pending-irq-work-before-freeing-ring-buffer.patch +++ b/queue-5.15/bpf-sync-pending-irq-work-before-freeing-ring-buffer.patch @@ -25,22 +25,17 @@ Link: https://lore.kernel.org/r/20251020180301.103366-1-nooraineqbal@gmail.com Signed-off-by: Alexei Starovoitov Signed-off-by: Sasha Levin --- - kernel/bpf/ringbuf.c | 2 ++ + kernel/bpf/ringbuf.c | 2 ++ 1 file changed, 2 insertions(+) -diff --git a/kernel/bpf/ringbuf.c b/kernel/bpf/ringbuf.c -index eb6ff0d0c06b6..5798d6dbdcb43 100644 --- a/kernel/bpf/ringbuf.c +++ b/kernel/bpf/ringbuf.c -@@ -184,6 +184,8 @@ static struct bpf_map *ringbuf_map_alloc(union bpf_attr *attr) +@@ -190,6 +190,8 @@ static void bpf_ringbuf_free(struct bpf_ + struct page **pages = rb->pages; + int i, nr_pages = rb->nr_pages; - static void bpf_ringbuf_free(struct bpf_ringbuf *rb) - { + irq_work_sync(&rb->work); + - /* copy pages pointer and nr_pages to local variable, as we are going - * to unmap rb itself with vunmap() below - */ --- -2.51.0 - + vunmap(rb); + for (i = 0; i < nr_pages; i++) + __free_page(pages[i]);