FAILED: patch "[PATCH] io_uring/zcrx: fix area release on registration failure" failed to apply to 6.15-stable tree
Subsystems (3)
[email protected]
maintainerThe patch below does not apply to the 6.15-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 <[email protected]>.
To reproduce the conflict and resubmit, you may use the following commands:
git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.15.y
git checkout FETCH_HEAD
git cherry-pick -x 0ec33c81d9c7342f03864101ddb2e717a0cce03e
# <resolve conflicts, build, test, etc.>
git commit -s
git send-email --to '<[email protected]>' --in-reply-to '2025062018-ahead-armory-59ac@gregkh' --subject-prefix 'PATCH 6.15.y' HEAD^..
Possible dependencies:
thanks,
greg k-h
------------------ original commit in Linus's tree ------------------
From 0ec33c81d9c7342f03864101ddb2e717a0cce03e Mon Sep 17 00:00:00 2001
From: Pavel Begunkov <[email protected]>
Date: Tue, 27 May 2025 18:07:33 +0100
Subject: [PATCH] io_uring/zcrx: fix area release on registration failure
On area registration failure there might be no ifq set and it's not safe to access area->ifq in the release path without checking it first.
io_uring/zcrx.c +2 -1
@@ -366,7 +366,8 @@ static void io_free_rbuf_ring(struct io_zcrx_ifq *ifq)static void io_zcrx_free_area (struct io_zcrx_area *area) { -io_zcrx_unmap_area (area->ifq, area); +if (area->ifq) +io_zcrx_unmap_area (area->ifq, area);io_release_area_mem (&area->mem);kvfree (area->freelist);
Jens Axboe
maintainerQuoted 6 lines · On 6/20/25 4:34 AM, [email protected] wrote:
The patch below does not apply to the 6.15-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 <[email protected]>.
Quoted 8 lines
To reproduce the conflict and resubmit, you may use the following commands:
git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.15.y
git checkoutFETCH_HEAD
git cherry-pick -x0ec33c81d9c7342f03864101ddb2e717a0cce03e
# <resolve conflicts, build, test, etc.>
git commit -s
git send-email --to '<[email protected]>' --in-reply-to '2025062018-ahead-armory-59ac@gregkh' --subject-prefix 'PATCH 6.15.y' HEAD^..
Here's one for 6.15-stable.
Signature · 1 line
Jens Axboe
From 4a1b0f1b90d14e69430c5aa7682988d35eeb8b69 Mon Sep 17 00:00:00 2001
From: Pavel Begunkov <[email protected]>
Date: Tue, 27 May 2025 18:07:33 +0100
Subject: [PATCH] io_uring/zcrx: fix area release on registration failure
Commit 0ec33c81d9c7342f03864101ddb2e717a0cce03e upstream.
On area registration failure there might be no ifq set and it's not safe to access area->ifq in the release path without checking it first.
--- io_uring/zcrx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
io_uring/zcrx.c +2 -1
@@ -187,7 +187,8 @@ static void io_free_rbuf_ring(struct io_zcrx_ifq *ifq)static void io_zcrx_free_area (struct io_zcrx_area *area) { -io_zcrx_unmap_area (area->ifq, area); +if (area->ifq) +io_zcrx_unmap_area (area->ifq, area);kvfree (area->freelist);kvfree (area->nia.niovs);
Signature · 1 line
2.50.0