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 BD9762D9EFF; Sun, 1 Mar 2026 01:58:45 +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=1772330325; cv=none; b=OiAyW7M4xsjviiymRzg4Msx8gCDtHELrGfb7Q9dSiNRqc5p2mUF0Dc4YZeYN2qXdgqElggb6NQUWpzXlk0O7zkv9kqRu0PqlTvnVDxfWIENmAtB0D0H/J2ev69+2aUg+y+9IGa1nczZ3t8dUQTiJuKW7nNkYQS5pF5eHU1jx7cI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772330325; c=relaxed/simple; bh=jjQsGJzZIdXuKSGmbymMAftWK8PbGeFSQuhz1M3uBJg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ZU5WZLEngj7Y07IXR/fU1kwTXdyUfSznpTOYyiHErajefwFOo3TD88hgBtzvHIdIH8+bc9gkMbnAt961o70gBTQWRGwLj+WVe8b62eSjrzr0u5311X5A3c6TWfSky9zfzn6x0MnxrRRz6yaqPL15M64gsUQiMM0oyD5FP0DwbEA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=nz6Guyov; 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="nz6Guyov" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AE9F5C19424; Sun, 1 Mar 2026 01:58:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1772330325; bh=jjQsGJzZIdXuKSGmbymMAftWK8PbGeFSQuhz1M3uBJg=; h=From:To:Cc:Subject:Date:From; b=nz6GuyovywMtMLvcxCz4Asnk4ILP5lJHZLY1ALgmYJ04JdwYj0AfaEQU6KIC4u+P9 7+hofqvzBHGluckqNYR59lLLeSN3THTnMOA9vG5afkwLMyQ60ze7jHg3av3sxvDvor pf2NptIq8wEVRscWvy7KZ4Ibm0BNYoc+DBh0+W6E/+XZoaSJP9+vvxzpbVbH0WIS+B KwzMgo9axgxeiJ7taBYdN2QkJOTY5cW5/gwabdlmX5VERPMnfqqGsjw30XvmiPxklO E5R12ifHAbr8Tg0T42igBgClwJM20EqwQTk+/Cg6yL+ohXxAZXz3ZhQOaxFYFued/v ogwCoJHMde+YA== 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.15-stable tree Date: Sat, 28 Feb 2026 20:58:43 -0500 Message-ID: <20260301015843.1724298-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.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 . 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