Article View: linux.kernel.netdev
Article #20692Re: [BUG] netdevsim: nsim_start_peer_tx_queue() indexes the peer's TX queues with an RX queue index
From: netdev-bot+sashiko
Date: Mon, 23 Nov 2026 03:49
Date: Mon, 23 Nov 2026 03:49
75 lines
10706 bytes
10706 bytes
Thank you for your contribution! Sashiko AI review found 1 potential
issue(s) to consider.
Critical: 0 ยท High: 0 ยท Medium: 1 ยท Low: 0
If you believe none of the issues are legitimate, please reply to each
issue of Medium severity or higher and explain why the AI is wrong.
If any of them are legitimate and you plan to respin, please let patchwork
know by including "pw-bot: cr" as a separate line at the end of your reply
(one such reply per series is enough).
- [Medium] The commit message for 7bdc53e966c0 is the raw multipart MIME
email.
--
netdevsim: nsim_start_peer_tx_queue() indexes the peer's TX queues with an RX queue index
This commit adds a check to nsim_start_peer_tx_queue() in
drivers/net/netdevsim/netdev.c. The peer's TX queue is now woken only when
rq->napi.index is below peer_dev->real_num_tx_queues.
This fixes a KASAN slab-out-of-bounds read in nsim_poll(). The read happens
when a device is relinked to a peer that has fewer TX queues while its RX
queues still hold traffic from the old peer.
> netdevsim: nsim_start_peer_tx_queue() indexes the peer's TX queues with an RX queue index
>
> --===============8293946977515997899==
> Content-Type: text/plain; charset="us-ascii"
> Content-Transfer-Encoding: 7bit
>
> Hi Jakub,
[Severity: Medium]
It looks like the cover email was applied here instead of the attached
patch. The subject is the title of the bug report. The attached
format-patch has its own subject:
netdevsim: bound the peer TX queue index in nsim_start_peer_tx_queue()
The changelog body is the raw multipart MIME message. It includes the MIME
boundary lines, the per-part Content-Type, Content-Transfer-Encoding and
Content-Disposition headers, and the full repro.c source. It also includes
the base64-encoded config.gz attachment:
> --===============8293946977515997899==
> Content-Type: application/gzip
> Content-Transfer-Encoding: base64
> Content-Disposition: attachment; filename="config.gz"
> MIME-Version: 1.0
>
[ ... ]
The real changelog and its trailers come at the very end, inside the
embedded attachment, after a nested format-patch header:
> >>From 0a9629d8c7c93ef16dd000ab4cf04e9792044987 Mon Sep 17 00:00:00 2001
> From: Kyuwon Cho <kyuwoncho18@gmail.com>
> Date: Thu, 19 Nov 2026 11:36:52 +0900
> Subject: [PATCH net] netdevsim: bound the peer TX queue index in
> nsim_start_peer_tx_queue()
[ ... ]
> Fixes: ff2ac4df58ad ("netdevsim: implement peer queue flow control")
> Signed-off-by: Kyuwon Cho <kyuwoncho18@gmail.com>
Could this be re-applied from
0001-netdevsim-bound-the-peer-TX-queue-index-in-nsim_star.patch? Then the
subject and body would be the patch's own changelog, with the Fixes: and
Signed-off-by: tags kept. The reproducer and kernel config could stay in
the mail thread and be referenced with a Link: tag.
--
Sashiko AI review ยท https://netdev-ai.bots.linux.dev/sashiko/#/patchset/179505710275.3511681.13434978152402269948%40gmail.com
Technical Details
Message-ID:
<179540578385.3135.5126417737226790045@kernel.org>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-369003-linux-kernel-netdev=dewy.ruReferences:
<179505710275.3511681.13434978152402269948@gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-369003-linux-kernel-netdev=dewy.ru From: netdev-bot+sashiko@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [BUG] netdevsim: nsim_start_peer_tx_queue() indexes the peer's TX queues with an RX queue index Date: Mon, 23 Nov 2026 03:49:43 +0000 Organization: Usenet Network Message-ID: <179540578385.3135.5126417737226790045@kernel.org> References: <179505710275.3511681.13434978152402269948@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="3784572"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:0KEduNNMpWH920ZNFCbj77Rg8zY= sha256:LoPNn4KcXp0HXHyT4e2uwBgAbuaT09aGG2ke/Xo3R0U= sha1:6iXSCIOLWCDBFXiAxp7xXqDEfEM= sha256:kkk+uj0R6uIbgUy8rOaovAShhow9ur6EuwFLm1Lwhp8= 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 59FB6125D83; Mon, 23 Nov 2026 06:50:06 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.4 X-Spam-Status: No, score=-3.4 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, URIBL_BLOCKED=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 sVBcGT-1aD9f; Mon, 23 Nov 2026 06:49:58 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-369003-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 C12EE125D89; Mon, 23 Nov 2026 06:49:49 +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 7586F263B8; Mon, 23 Nov 2026 03:49:47 +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=1795405786; b=lnEULLVR3qVHt2sGMlDY4g4F0SSOnZQIpXDMOT2YoWRCE9SKEfOA5aAlL1yiXpht92f8 sIQKnGxNZrhmmjSRlyYM1T8jmE1RQCWNkK0FaRHZY98dg7IZYwkTP79BLtZ2Odq9427j7 fNGYQbeTXePB8zHLcOeB3TgOsAoP7vN+CQiRd0HOSvxpjliKlWCgPfV+0SPuj13fF5ccK CzN/QtojOhfrbwSxXgJvb/Yj6oCmjbK77iVdG7h0sCd2fYGU/mXsdRO6CSq5Hxw9PiZvr g6rr4JN5cNowj6vfyVr507h0Zk+qETsh/9WNYsXY1uL2ZiS5PSKTOluBaItEUM+EypA== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795405786; h=X-Original-To:Received:Received:DKIM-Signature:Subject:From:To:Cc: Date:Message-ID:In-Reply-To:References:X-sashiko-severity: Content-Type:Content-Transfer-Encoding:X-Mailing-List:List-Id: List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner: Precedence:MIME-Version; bh=f8iyGXNmQvV5cTF4wbciC3whz9LR368QT9AC0uWH/+U=; b=CNZKhp8tnrvmclWiskkUimJq2sdXyzeeOhVNFeVwT5YwfbO9+7QF7oCF7rL2ySPxywFq frYb6lKa5xaPDCK5fKknWEfnJkcXh/NAFze2BKC1x3Yldpwa03bhsWP3LgpxVtWjjNbUY E5V092BUOPPj+JuwK2BcIMhO7OQKp/BedRiFeleAjnApbvyDlkBpeqsfjQ/muFV53sa+J q2kCps8fgaOuQc/gClStHXKdRFe17jqG+bOuLgkspYXLlQs1xxSWhDeIA63GBzTRTxl+b qCj123MDAmIVqi7OC0/KYYm50YGo2cMSUfMyi1yikj/1WR6Ux/cyDMSnKGo5NK5BZEA== 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=PaPdDxiT; 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 451F3606A333; Mon, 23 Nov 2026 03:49:46 +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=PaPdDxiT 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=1795405785; b=ZJHxSXxXvcWrT8ofSmceL8WxK4LyEWBQ+bHPZTaoUHP3V0Tezxx1oncgI0IgN7lnICCw cCUtjsPtVDYEuH67qVEQSWEHj/BVInaCzLAsjQhnaSujJJrajB3QqaUMGQVrxaZf5gkE8 31SdOwpwFzeW2Mkpyvy+o73phryyBTjrd2ecdTMGVzUwKKL4Edh1DpiGJt/vAlTQ7zilh DRNb5OFZT0JWq9Bjbk/Ey1NCG0zfdLU0Ww8JwpKVr10tl/S7wVqeUmF85UBdSnuBZRLN7 ur3syuJf8Vs1K1h+CMamDhWAyyToVFc1YmwwGeRIfXH5708OHW7sgi9qZcxunjiODUw== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795405785; h=Received:DKIM-Signature:Subject:From:To:Cc:Date:Message-ID: In-Reply-To:References:X-sashiko-severity:Content-Type: Content-Transfer-Encoding:MIME-Version; bh=f8iyGXNmQvV5cTF4wbciC3whz9LR368QT9AC0uWH/+U=; b=28HeGlafclZuoZgLSRoo97T3dKMpOMNpsiE6L+hOF7rFSGI/U2hGQUM+0jDjPgvJyNub UvN/+uNtE9h1/dn+uI/H4FaFpPbjq5LdkMe/MnQ6U9JTJIz4kykt6VD83KhfR8LWRRjjj CYBgAuYsi3w6kqARek85q5dCo18ZJTiFJVNppxkqD6HX2uPFmdCdcPPSAGh1lQDJ4+MZZ 51oUQsnZTX5cmx1tNSjV818ibu4NFgG9JR8/ovUF+Vv7y+WLUdBAYyksWdffxuOH7n4zW jNSp5MUm0E8d5i0Yd1AFEXTPZr/xkZ2voTWB6WIlEJvDX/HEEIy6/2KC6bMmSUNrSmA== 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=PaPdDxiT; 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 62EC5606A31A; Mon, 23 Nov 2026 03:49:45 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 54F971F000CF; Mon, 23 Nov 2026 03:49:44 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795405784; bh=f8iyGXNmQvV5cTF4wbciC3whz9LR368QT9AC0uWH/+U=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=PaPdDxiT0ZzWJF7DBMqH3luU5AtZBAAviGm8XkUt3lzOWMwrjtqRn0qsY7WboX0eQ iQq4Wt32cHVBgluXJkcGpBEXZqtLLbyGTgK2jecATH3j9mHHDx7wI31iG2Gnmt52hO 5giAxFTkg+jhbJFx7atKXv1e5e+ILcl1P5jlOK11ROhC2Pt9oCjH5mAGgTqIx4P7PV ZvaSjb063KI14Uoi8nAmIqJ3NZd9ClfFOhs2P/ObLiDKjH5IG3a6rybHiQRiRxiAe1 H9SaWC8u5Yes/8w1n5XWUbjnOU4XSQGbtD7NM6mMY103TMqqdKLus6+13k7RtXzJnd m1qnrmvOQRbeQ== X-Cc: kuba@kernel.org, leitao@debian.org, andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org X-In-Reply-To: <179505710275.3511681.13434978152402269948@gmail.com> X-sashiko-severity: Medium 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