🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #24680

Re: [PATCH net v2] net/mlx5: fix a stack over-read in the QP debugfs

#24680
From: patchwork-bot+netdevbpf
Date: Mon, 30 Nov 2026 16:10
25 lines
8885 bytes
Hello:

This patch was applied to netdev/net.git (main)
by Willem de Bruijn <willemb@google.com>:

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
Technical Details
Message-ID: <179605501099.3403811.17721994765648267154.git-patchwork-notify@kernel.org>
Path: mbox-mo1.pugleaf.net!news-lon.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-374300-linux-kernel-netdev=dewy.ru
References: <20261122145152.1473-1-chenaibing@cmss.chinamobile.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lon.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-374300-linux-kernel-netdev=dewy.ru
From: patchwork-bot+netdevbpf@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net v2] net/mlx5: fix a stack over-read in the QP debugfs
Date: Mon, 30 Nov 2026 16:10:10 +0000
Organization: Usenet Network
Message-ID: <179605501099.3403811.17721994765648267154.git-patchwork-notify@kernel.org>
References: <20261122145152.1473-1-chenaibing@cmss.chinamobile.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="1464443"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:cRQ7LmX7yT6fOqd4cVrHXsS6ric= sha256:1FzsGnMxV1Xr+Gyho5iUugNwPEnmORa1REyX/TMhSSo=
	sha1:DTW+CxXSaEEyYcTZhJWDEYY4lF0= sha256:hRSpJcp+M16wyzKdsUjCN70EXQua2kv9cMZn43it5uk=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id 85A29125FF4; Mon, 30 Nov 2026 19:10:42 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.401
X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1,
	DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=kernel.org
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id OeIld3pffxkM;
	Mon, 30 Nov 2026 19:10:39 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-374300-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 0E8AE125FF2; Mon, 30 Nov 2026 19:10:31 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sea.lore.kernel.org (Postfix) with ESMTP id A1D362E55B; Mon, 30 Nov 2026 16:10:14 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1796055013;
	b=zrdJTi7oFJvTiWlf/wpl1AwucZqVwBeIH3jT9i5OkQLz/bLXC5CPQKIqDhG/9BARUFpE
	 /ejRii+54HWsT2JE+pazaRss7lis/906UiNj1srwtU4NoMvOirzuwoVRHboudcZVRTJ2H
	 RBNYePJ9fRfz6HIEMkifWlNNPobjoWTNzd7OvLVtZ49xxkyUy7FGaO48O84zN5Jax9BVC
	 h1Xlre6M3LJHESaiBqKSaUBLvVazM+hNi/plpLNvuj6+GIiZqTkv3qBNMK8eJpu7Jx4gS
	 Sp0Hntn2Mk8wTXUFP2sxjyPl7gjIOKzMZU/3syJ64l/iMljrcncvv9LHjb0QcvqXPLg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796055013;
	h=X-Original-To:Received:Received:DKIM-Signature:Received:Content-Type:
	 X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
	 List-Unsubscribe:List-Owner:Precedence:MIME-Version:
	 Content-Transfer-Encoding:Subject:From:Message-Id:Date:References:
	 In-Reply-To:To:Cc;
	bh=/1e0E6aSBicFaRedOC/890wtvH20xmSW4KrTxaWfY9w=;
	b=WVquB0LxkfrqtEhuN3mjrw6XI3tuIY9PCarjY+tNVq9K2YLBzmx6RH0RzY3RJn1Wfcgx
	 VMoHu4ndMT2+9UxafsqwLJqc3xyN2CBS2xU9yDfNEVFoKIqHkiNNkZOnt4JsiRzddSx30
	 mP/CknsV+Qdl5NzW66o47/ZyZIM02mKLcSf26yeJiU5rsxgw1lajbSFDApoYJ+peRO6nY
	 Zg0+G/rI7J9CuyHAc3DnABbYa9GYuidDKlzhQ5Oh24Ls85eQfwYbvilACLx2yA/7BvQUf
	 0k+6ZIsCTxSNJbbENeA41frVnnSpMkMUJriDB1by2GjxaHUIsxeR1Lqv0e/HAGy07Cg==
X-ARC-Authentication-Results: i=2; 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=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 8B03B606A68E;
	Mon, 30 Nov 2026 16:10:13 +0000 (UTC)
X-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
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18
X-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==
X-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==
X-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
X-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)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7A9F41F00929;
	Mon, 30 Nov 2026 16:10:12 +0000 (UTC)
X-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==
X-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)
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-In-Reply-To: <20261122145152.1473-1-chenaibing@cmss.chinamobile.com>
X-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