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 BA136273D77; Sun, 1 Mar 2026 02:05:53 +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=1772330753; cv=none; b=Aon3siv4Y3oamuCVXsrvzaO5yYeaK6zzA553UQJwXmPgKObp/CwCnS52ivaErYlV/5nWPZVs4nE6Hdsz6vFRQY61ygVYZ229KAhjpHhPvzkn0iK6nH1UTmkb7DJMasN/nQi46mwsxJms1N3A0TXmeRGnr4VPnaBLnDaQV/knGUw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772330753; c=relaxed/simple; bh=KgQCxdZohFyJ8LaaVOXU0cS1MeqPQQt5jSy9Q7V3Ed4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=k/GEhK41U9ZwF5sqKUQDQzkPHaUL+CDcXAfSdZHjAfjpHmh0y0AuhUeXgmFqdZY0mSGco+oZu/KmKg7VrfLxoMfJWmrcfesphBk6H5tOHRhasuk7TgzDFpTc5SwQOfjDujy5fRbNyMBPTQxapPr/AOcHenDZOgeIvtPFcmQOqLA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Vxc6f2su; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Vxc6f2su" Received: by smtp.kernel.org (Postfix) with ESMTPSA id F2EF3C19421; Sun, 1 Mar 2026 02:05:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1772330753; bh=KgQCxdZohFyJ8LaaVOXU0cS1MeqPQQt5jSy9Q7V3Ed4=; h=From:To:Cc:Subject:Date:From; b=Vxc6f2suvQPgblquw4c/IY+g/sXf31iGNapUdLEXyqldHOv63sU4OkUAju2Jz1JP0 hFcBSIFZs5eiVn+tiIiyTbDhV0PZRTKzSPkOVZWGM8K0a+3k5V2ggPSwPWpLpa2DH8 7FDSpHvi7L1MXl746e6BAuHhE3ApDejXpPgW/MrnvkovJzaS+FNc59hxD1PpqCZziH AbY4Ox2g+0DSTJlsqj3pzxaDo6DDr02A2iKvtTyy+A4QVohkgjnMSmB4fapNzCLjD2 Qoa9w5bNt9Ae7tIEoNtDjH2wiqN1YFRfatjxlwpeC48ctbbh5tdZyRD+g2/gcprwM7 gMrWArHDQ2yWQ== From: Sasha Levin To: stable@vger.kernel.org, den@valinux.co.jp Cc: Frank Li , Dave Jiang , Jon Mason , ntb@lists.linux.dev Subject: FAILED: Patch "NTB: ntb_transport: Fix too small buffer for debugfs_name" failed to apply to 5.10-stable tree Date: Sat, 28 Feb 2026 21:05:51 -0500 Message-ID: <20260301020551.1734713-1-sashal@kernel.org> X-Mailer: git-send-email 2.51.0 Precedence: bulk X-Mailing-List: ntb@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Hint: ignore X-stable: review Content-Transfer-Encoding: 8bit The patch below does not apply to the 5.10-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 . Thanks, Sasha ------------------ original commit in Linus's tree ------------------ >From 6a4b50585d74fe45d3ade1e3e86ba8aae79761a5 Mon Sep 17 00:00:00 2001 From: Koichiro Den Date: Wed, 7 Jan 2026 13:24:57 +0900 Subject: [PATCH] NTB: ntb_transport: Fix too small buffer for debugfs_name The buffer used for "qp%d" was only 4 bytes, which truncates names like "qp10" to "qp1" and causes multiple queues to share the same directory. Enlarge the buffer and use sizeof() to avoid truncation. Fixes: fce8a7bb5b4b ("PCI-Express Non-Transparent Bridge Support") Cc: # v3.9+ Reviewed-by: Frank Li Reviewed-by: Dave Jiang Signed-off-by: Koichiro Den Signed-off-by: Jon Mason --- drivers/ntb/ntb_transport.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/ntb/ntb_transport.c b/drivers/ntb/ntb_transport.c index a7dd983adf7b0..50f3b1f1b9262 100644 --- a/drivers/ntb/ntb_transport.c +++ b/drivers/ntb/ntb_transport.c @@ -1252,9 +1252,9 @@ static int ntb_transport_init_queue(struct ntb_transport_ctx *nt, qp->tx_max_entry = tx_size / qp->tx_max_frame; if (nt->debugfs_node_dir) { - char debugfs_name[4]; + char debugfs_name[8]; - snprintf(debugfs_name, 4, "qp%d", qp_num); + snprintf(debugfs_name, sizeof(debugfs_name), "qp%d", qp_num); qp->debugfs_dir = debugfs_create_dir(debugfs_name, nt->debugfs_node_dir); -- 2.51.0