From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2A7F138F229 for ; Mon, 9 Mar 2026 10:22:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773051724; cv=none; b=JYfLIEgZCuuNrTXa/HTso8oAe9r3EpC7JIkv8RhRmeubhcQWo35eEWzqTSbYpV9a61K4RUk8ahTNWQ7WNN0Zq6WmND/+TEfEA2SAQD9j/fBbBTq99HGx8M36gvgYOklnJWaNc/anspMWnqeOeUbLwC63g6xh+rzcESWcNMfRuk0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773051724; c=relaxed/simple; bh=0QQVXdKK8LWU0HJMYPOx/CYfgVy3u8AWzrHLoi2lcVk=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=TR4ejYg9XjgBXX31dkMQIHJdabvh5Md2OGLJpWr9blGSiEzU6QJ23ITHsHRAbRT+eM0kKzYPVfQAtV/UHox788uvtjG7jGMykGP5SGc3yJrLDVWcpk1hkuoYwdFIvaO4xxBFNP6qUrRJKMIpH3CE+iaMTzYAcOG29KdJ3v9wDVY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=fbHE8oCe; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="fbHE8oCe" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B3695C4CEF7; Mon, 9 Mar 2026 10:22:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1773051724; bh=0QQVXdKK8LWU0HJMYPOx/CYfgVy3u8AWzrHLoi2lcVk=; h=Subject:To:Cc:From:Date:From; b=fbHE8oCef2QhNI7Y1FOs7PbeVqTgEQPPD2zVBE54LulGaVzBuljwOFy6Q9h77aONY D8boOKtxqIDg4p7CyUU46sVTXI6LxNl8VWOOglTunQKpDcg3IarZtCBl4xJRmkxRON dZRT3jEXbRxSoebFcSb/P5O3kV6q43t61U4NwFNM= Subject: FAILED: patch "[PATCH] RDMA/irdma: Fix kernel stack leak in irdma_create_user_ah()" failed to apply to 5.15-stable tree To: jgg@ziepe.ca,jgg@nvidia.com,leon@kernel.org Cc: From: Date: Mon, 09 Mar 2026 11:22:01 +0100 Message-ID: <2026030901-book-commodity-3938@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit The patch below does not apply to the 5.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 . 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-5.15.y git checkout FETCH_HEAD git cherry-pick -x 74586c6da9ea222a61c98394f2fc0a604748438c # git commit -s git send-email --to '' --in-reply-to '2026030901-book-commodity-3938@gregkh' --subject-prefix 'PATCH 5.15.y' HEAD^.. Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From 74586c6da9ea222a61c98394f2fc0a604748438c Mon Sep 17 00:00:00 2001 From: Jason Gunthorpe Date: Mon, 16 Feb 2026 11:02:49 -0400 Subject: [PATCH] RDMA/irdma: Fix kernel stack leak in irdma_create_user_ah() struct irdma_create_ah_resp { // 8 bytes, no padding __u32 ah_id; // offset 0 - SET (uresp.ah_id = ah->sc_ah.ah_info.ah_idx) __u8 rsvd[4]; // offset 4 - NEVER SET <- LEAK }; rsvd[4]: 4 bytes of stack memory leaked unconditionally. Only ah_id is assigned before ib_respond_udata(). The reserved members of the structure were not zeroed. Cc: stable@vger.kernel.org Fixes: b48c24c2d710 ("RDMA/irdma: Implement device supported verb APIs") Signed-off-by: Jason Gunthorpe Link: https://patch.msgid.link/3-v1-83e918d69e73+a9-rdma_udata_rc_jgg@nvidia.com Signed-off-by: Leon Romanovsky diff --git a/drivers/infiniband/hw/irdma/verbs.c b/drivers/infiniband/hw/irdma/verbs.c index 15af53237217..7251cd7a2147 100644 --- a/drivers/infiniband/hw/irdma/verbs.c +++ b/drivers/infiniband/hw/irdma/verbs.c @@ -5212,7 +5212,7 @@ static int irdma_create_user_ah(struct ib_ah *ibah, #define IRDMA_CREATE_AH_MIN_RESP_LEN offsetofend(struct irdma_create_ah_resp, rsvd) struct irdma_ah *ah = container_of(ibah, struct irdma_ah, ibah); struct irdma_device *iwdev = to_iwdev(ibah->pd->device); - struct irdma_create_ah_resp uresp; + struct irdma_create_ah_resp uresp = {}; struct irdma_ah *parent_ah; int err;