From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796055012; b=bsGpd/OuEnN2A6yjAmrqqu6bLI9ijiquCNQcdkLO1pIwMsoZaTC9nhUYfmomT/bCx8/f eTbA/PNmvrjZd3gJuXqY9mGbJcPoLJgBPa2ecE5hCqNH18ydBCjPhj1Yld6TuDTmBRrHR 5746VolojGX89l5eBXV4grwDiAykjJiiyflWL7X2X1dWaGwNMzxSNlkd1oeEy/UF4rSTy nYxJuPR7Whc4yy+6gTSXeT61rEUuE9iV3HcRkHL6hhoP5lLLyMuaSQHGejtj4L3Dk5w4H CgSU49IMAAo8Be1fGNkOO60Sin1/NX4zuFBfyKWnGW6vHj/EzchkFPZ1b+fsqQk9exA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796055012; h=Received:DKIM-Signature:Received:Content-Type:MIME-Version: Content-Transfer-Encoding:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; bh=/1e0E6aSBicFaRedOC/890wtvH20xmSW4KrTxaWfY9w=; b=R5eRpkVLgy1NLKZ3jtqGwrmFGruLqZZFICCL6RifaNZnCD1FBh/ghtgLkUyzJMdRy5Tv gccft6SQeg6pkRjT+jA8oZfcsN+7u1gu0gMPFNQ91yS6l2W+0Qg4E1zRwZpIQ69LALPt/ 7+VOzP/iN2S2dMECIzUcf/iQG2OiF3qdyPpI7DErAwG8t+8nzqQpXxulLUEeIe4obn5n4 nWfKJphAx3cDDEF/ZlUF9WJo5duxmbPi64IauXgZlvKgGUr0tc8NmMwav3GYVlLk3RRsx gMsEcDKbC23hnp1TUQCCp7ezUI4RGjTCQOVx7v90DwfV+5Gxqm6NIGBQ6Xmi9kIbl9A== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=lgQzCvHj; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ACD33606A32E; Mon, 30 Nov 2026 16:10:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=lgQzCvHj Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7A9F41F00929; Mon, 30 Nov 2026 16:10:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796055012; bh=/1e0E6aSBicFaRedOC/890wtvH20xmSW4KrTxaWfY9w=; h=Subject:From:Date:References:In-Reply-To:To:Cc; b=lgQzCvHjKghAeKmz9FbEVeEhqoCG7fF2L01zFTCdc5Ki9KcNKfjJpBKjaE0IKMVqW N944regY6tU2LGNBJjuV171csZ9TxArHjacNCmmNtxxey3PtxxkTE3tNi8sgjiRTtq JV16XLSwxiFvMohlJHj1tTf97Uec2Lg3cbx4hygfFs+91AN8yWFNWabL58RxqHM+14 qSzmDD8wFPDkeUB2o3lyvJhcJiIsCD8fP9hE32kQKq8y7Lh7QAXOHETA8gTmB6gUFW UcviR2KgAplLeMwLAE1ZMYAogZiBfw68oi9RkpDJ/mnIJnQdrF3DXIIS1Ll9L5/doH 8s2LqCdPQfXoQ== Received: from [10.30.226.235] (localhost [IPv6:::1]) by aws-us-west-2-korg-oddjob-rhel9-1.codeaurora.org (Postfix) with ESMTP id 7194E39E4DAB; Mon, 30 Nov 2026 16:10:12 +0000 (UTC) Content-Type: text/plain; charset="utf-8" X-Mailing-List: netdev@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH net v2] net/mlx5: fix a stack over-read in the QP debugfs From: patchwork-bot+netdevbpf@kernel.org Message-Id: <179605501099.3403811.17721994765648267154.git-patchwork-notify@kernel.org> Date: Mon, 30 Nov 2026 16:10:10 +0000 References: <20261122145152.1473-1-chenaibing@cmss.chinamobile.com> In-Reply-To: <20261122145152.1473-1-chenaibing@cmss.chinamobile.com> To: Aibing Chen Cc: saeedm@nvidia.com, leon@kernel.org, tariqt@nvidia.com, mbloch@nvidia.com, andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org, linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org Hello: This patch was applied to netdev/net.git (main) by Willem de Bruijn : On Sun, 22 Nov 2026 22:51:52 +0800 you wrote: > dbg_read() formats the field into char tbuf[18] and passes the return > value of snprintf() to simple_read_from_buffer() as the number of > available bytes. snprintf() returns the length the output would have > had, not the number of bytes written, so when the string does not fit > that value is larger than the buffer: the longest QP transport string is > "Invalid transport type" (22 characters), so with the trailing newline > the function returns 23 while only 18 bytes were written. > > [...] Here is the summary with links: - [net,v2] net/mlx5: fix a stack over-read in the QP debugfs https://git.kernel.org/netdev/net/c/622f31147e57 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html