🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #7872

Re: [PATCH net] net: xps: bound the cleanup loop by the old map's num_tc

#7872
From: patchwork-bot+netdevbpf
Date: Tue, 27 Oct 2026 11:20
25 lines
8654 bytes
Hello:

This patch was applied to netdev/net.git (main)
by Paolo Abeni <pabeni@redhat.com>:

On Wed, 21 Oct 2026 23:55:38 +0800 you wrote:
> __netif_set_xps_queue() walks the OLD dev_maps to free its entries.  The
> per-row trip count uses the NEW num_tc while the row stride uses the OLD
> dev_maps->num_tc, so when dev->num_tc was raised without rebuilding the
> XPS map the last row indexes attr_map[] past the allocation:
> 
>   BUG: KASAN: slab-out-of-bounds in __netif_set_xps_queue+0x1458/0x1ee8
>   Read of size 8 at addr ffff000014f69458 by task insmod/112
> 
> [...]

Here is the summary with links:
  - [net] net: xps: bound the cleanup loop by the old map's num_tc
    https://git.kernel.org/netdev/net/c/6d5a2cb0b7d6

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID: <179310001483.3743855.12990694604364154535.git-patchwork-notify@kernel.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-352385-linux-kernel-netdev=dewy.ru
References: <20261021155538.67867-1-phx0fer@gmail.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-352385-linux-kernel-netdev=dewy.ru
From: patchwork-bot+netdevbpf@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net] net: xps: bound the cleanup loop by the old map's
 num_tc
Date: Tue, 27 Oct 2026 11:20:14 +0000
Organization: Usenet Network
Message-ID: <179310001483.3743855.12990694604364154535.git-patchwork-notify@kernel.org>
References: <20261021155538.67867-1-phx0fer@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="1521569"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:bvEwI6OgCBdaydXT+ZiT8GXm96E= sha256:OS49sktY76Kl+QSaI9rtkDje74sibu48+nbwElBqE2w=
	sha1:4ZeiI0LnNVei4PYtz/0JJU/wTB8= sha256:uJVzRLJfRZYIMBNtr3p5dhyIyhBH9cyoLoN5iMu05LI=
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 2C984125BF0; Tue, 27 Oct 2026 14:26:43 +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 85-zWWY0H8RI;
	Tue, 27 Oct 2026 14:26: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-352385-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 82C5C125BE8; Tue, 27 Oct 2026 14:26: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 C1CD720E9B; Tue, 27 Oct 2026 11:20:17 +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=1793100017;
	b=NxTTOYLuZnz0xd4LZ87hM8fv258cujklmY04LgkO//6gDLw8rZpDfUxik1rmL92eOppt
	 BbZehxfFex98b3c7Urvtlqmgp3BBIEv1Ninw6RpR5lYVDbfOmLB884W9hfz9KrX8LbNWN
	 FlvxcxQeiAHKW1d6Vpivgq2tUxbXBrSJErl48QQB5qszZEBloaAyDYs1O8kPOBmOtZjIP
	 CaaKPnY0D4KJunO2fqEZkP0Fh7ytj0K7S0ltiUGlEYXOPtx8i5VyD2WYGlBD2feCXsSNG
	 L2bQJWXoIDo7Xp+//JTQiU8Y0FhdN26cmvNrG/WUVLlDBVKoi0lJ77kWjiI1erOdYFw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793100017;
	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=CuiZddo/01BhTAXEP7M7RaEfIKgYuXoE3a1KQe8iOqo=;
	b=vqp6MSCwxhSxGHC6PHSSyN/Y6Sy2mNquxBxO6s46zndbtVq+4v+yFDgbUPwcQn1OplZA
	 YKT9GkVtuOOxVPIkmSQydteSL/iJ/gqfnDULGakVSllgoWWpMlgCpKlnJHIhuNjvjAfKK
	 ElpOLIM8jG0YB8Plo4kFTDwT/B2M1z7zuQQVRcKG6SQzQ++/ihqaRPTM9QOJ4Of/lv3UC
	 DEQTC5nXVKQ7m08n4aAUVMvsRM1fM91VnNp8ci2lihNO5RThzpneJ8yI3UVSlJHTQhrhq
	 M8HwjCruWyDk5VnBumPVmdMwI6F4RBDIOZL7DfUnlwGPUUsTBx7b/jT3UkMXsR8t/BQ==
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=XGlPIRoh;
	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 994AA606A321;
	Tue, 27 Oct 2026 11:20:17 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=XGlPIRoh
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=1793100016;
	b=qj0wqjm/6k7u4TThIbUTP32Kbxu5xyRklagI6tYTUDUsRoVHyIoQN8JsNiQik5UdfkAN
	 3e5H2pFl+QlNrix5c/PcMrn93cYLYr+S8iFJl8UXuSxENIUskiHmEQazyIBGHZijKGaqW
	 58FRMbVq4RzJQldLGgjXprClpRWnzNnZIjF1N3uCtNnJ04HzyEa9d59bgHPeWty5HQsCg
	 McVXHKQbHdfQkqX9c6eXFRFUyzYCRjbgx0dltHoir3Sf2TGMLWlld/Vw+ovNZOzX5fJk3
	 U2HVP7/GX4G7KO6a4YWc2APF3W2MA/SISOe10N4l2gCWEpvrMmUqcNF9Xnpz5WChdZQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793100016;
	h=Received:DKIM-Signature:Received:Content-Type:MIME-Version:
	 Content-Transfer-Encoding:Subject:From:Message-Id:Date:References:
	 In-Reply-To:To:Cc;
	bh=CuiZddo/01BhTAXEP7M7RaEfIKgYuXoE3a1KQe8iOqo=;
	b=4jbf6k1r5GDwKfWjYWq7sDS6vyrvW3jEi/icl13Wwu4fJS12rcle/iUIoE1jrDbZh8m+
	 SgiPMKCTOgJjNvrAz0QS4nYPoWzy7MCErYM5lEIxKlziZkUIhUPCn9bQRymKZmdnXdjTV
	 O9WBz87p1RvzB2OU6/6ARt4fPsgUeM40/KoioZ7fdiuMADT0D7iyjN5t6mam8TLzcrkuu
	 /exLP0DEyFw/NsKrqHwxJ0BXAw8TDrmEiojz09GdPBY0quAyEUa0OR+2Sf1D1kPDeo+32
	 O4Lgb+WSn61BokbFZHrkXADrugzoML1sX56XBE0pQiOt9SE8zzYxE5/fa442pai6EDA==
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=XGlPIRoh;
	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 7C039606A31A
	for <netdev@vger.kernel.org>; Tue, 27 Oct 2026 11:20:16 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0F2541F01825;
	Tue, 27 Oct 2026 11:20:16 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1793100016;
	bh=CuiZddo/01BhTAXEP7M7RaEfIKgYuXoE3a1KQe8iOqo=;
	h=Subject:From:Date:References:In-Reply-To:To:Cc;
	b=XGlPIRohVj/j60H1/kL8KNzIiIfM3rNfeHke70FxRYvp6IxY4rWQmD9oMKVrXiuHh
	 bKlaapwpQ/AhdyqGHwbCIhBtrvvfp7MPtR7jASuqrmNs2C/BI6KM4iFN4lVTzvyjsx
	 AUkmCSRryI5xyHIHT4MeczgwDDhjBqomyI24jqM/fDnTg0gA8O5JojyUt+GrrIqxSO
	 4F15CLsAa++ZBBhmd+2SxMsZjEEQLvQgrbev5yHvVHJ3/vXcND5KDpjvKyc/MqgHC6
	 j8SgiuE2ybxTt3Mc2b3mjWX0tww+WGYEXtMiFniJ8PMQ64L+7HI6EMxliql6dbnQ6o
	 yQVwTYvOwLZ4Q==
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 0741B3AA9388;
	Tue, 27 Oct 2026 11:20:16 +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: <20261021155538.67867-1-phx0fer@gmail.com>
X-Cc: davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org,
 pabeni@redhat.com, netdev@vger.kernel.org