Skip to contentSkip to conversation

FAILED: patch "[PATCH] io_uring/zcrx: clear RQ headers on init" failed to apply to 6.18-stable tree

PATCH [email protected] 1 participant 1 message May 1

Subsystems (3)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

The patch below does not apply to the 6.18-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.18.y
git checkout FETCH_HEAD
git cherry-pick -x 4f02cc4071a18c78bfff571d796edef055d57daa
# <resolve conflicts, build, test, etc.>
git commit -s
git send-email --to '<[email protected]>' --in-reply-to '2026050156-bungee-quarters-ab9c@gregkh' --subject-prefix 'PATCH 6.18.y' HEAD^..

Possible dependencies:

thanks,

greg k-h

------------------ original commit in Linus's tree ------------------

From 4f02cc4071a18c78bfff571d796edef055d57daa Mon Sep 17 00:00:00 2001
From: Pavel Begunkov <[email protected]>
Date: Tue, 21 Apr 2026 09:46:44 +0100
Subject: [PATCH] io_uring/zcrx: clear RQ headers on init

It might be unexpected to users if the RQ head/tail after a ring creation are not zeroed, fix that.

io_uring/zcrx.c +1 -0
index fab3693ecb0d..2eb09219f0a0 100644
@@ -396,6 +396,7 @@ static int io_allocate_rbuf_ring(struct io_ring_ctx *ctx,
 	ifq->rq.ring = (struct io_uring *)ptr;
 	ifq->rq.rqes = (struct io_uring_zcrx_rqe *)(ptr + off);
 
+	memset(ifq->rq.ring, 0, sizeof(*ifq->rq.ring));
 	return 0;
 }