🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #25612

Re: [PATCH net] net/mlx5: Fix left shift overflow calculating sf_bar_length

#25612
From: patchwork-bot+netdevbpf
Date: Wed, 02 Dec 2026 04:20
48 lines
9561 bytes
Hello:

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

On Thu, 26 Nov 2026 23:08:49 +0200 you wrote:
> From: Amir Tzin <amirtz@nvidia.com>
> 
> If the log_min_sf_size firmware capability is >= 20, the calculation of
> sf_bar_length overflows [1]. Use BIT_ULL which cast the calculation to
> unsigned long long.
> 
> [1]
> [] ------------[ cut here ]------------
> [] UBSAN: shift-out-of-bounds in
>    drivers/net/ethernet/mellanox/mlx5/core/sf/dev/dev.c:346:27
> [] shift exponent 34 is too large for 32-bit type 'int'
> [] Tainted: [O]=OOT_MODULE, [E]=UNSIGNED_MODULE
> [] Hardware name: Nvidia BlueField-4/BlueField-4, BIOS 26.07.3 20260708
> [] Workqueue: events work_for_cpu_fn
> [] Call trace:
> [] show_stack+0x24/0x50 (C)
> []  dump_stack_lvl+0x80/0x140
> []  dump_stack+0x1c/0x38
> []  __ubsan_handle_shift_out_of_bounds+0x154/0x260
> []  mlx5_sf_dev_table_create+0x4e0/0x4f0 [mlx5_core]
> []  mlx5_load+0x108/0x3e0 [mlx5_core]
> []  mlx5_init_one_devl_locked+0x3d0/0x820 [mlx5_core]
> []  probe_one+0x444/0x618 [mlx5_core]
> []  local_pci_probe+0x4c/0xe0
> []  work_for_cpu_fn+0x28/0x58
> []  process_one_work+0x178/0x430
> []  worker_thread+0x310/0x430
> []  kthread+0x114/0x130
> []  ret_from_fork+0x10/0x20
> [] ---[ end trace ]---
> 
> [...]

Here is the summary with links:
  - [net] net/mlx5: Fix left shift overflow calculating sf_bar_length
    https://git.kernel.org/netdev/net/c/0f8829325889

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

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-can.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-375548-linux-kernel-netdev=dewy.ru
From: patchwork-bot+netdevbpf@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net] net/mlx5: Fix left shift overflow calculating
 sf_bar_length
Date: Wed, 02 Dec 2026 04:20:07 +0000
Organization: Usenet Network
Message-ID: <179618520700.1177297.12241661834034360879.git-patchwork-notify@kernel.org>
References: <20261126210849.766754-1-tariqt@nvidia.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="1885850"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:6yWBBmJqRYnnqgQV52sR7bIX9Lo= sha256:Gy8ULiLuC4vJgcy8li8uxCPHZSBH4o7FztszPRAMS/w=
	sha1:2LaTnP+gF5rkODW9K2uQXtkSw+Y= sha256:nG1Jief/uozi++a1XddZBTmURGD1PvEuFSiB58pO1fg=
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 E79A311755C; Wed,  2 Dec 2026 07:20:31 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.501
X-Spam-Status: No, score=-3.501 tagged_above=-9999 required=6.31
	tests=[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 UnqxUtuWpNsO;
	Wed,  2 Dec 2026 07:20:28 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-375548-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 tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
	by mail.dewy.ru (Postfix) with ESMTPS id F0802117557; Wed,  2 Dec 2026 07:20:19 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by tor.lore.kernel.org (Postfix) with ESMTP id 5E78527BD4; Wed,  2 Dec 2026 04:20:15 +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=1796185214;
	b=jrKF0FkVT8oogEC/NrVWmqf/Y+c7OslK7joj8g60gIz7JmENXvcKAwlHb0RbMktuNGNX
	 SSwla6csqDUWNsZoqfk9zEhk+jsao3XJc0VfKWD12FSa4f5YviXyhUflU2RePNSk1fDkg
	 bvGjYi/Un79gG0rudjIhsZLEVQIoRj+z1NBZN7sIugBtLsxrDqE36yoZ85PBNqMynhiq6
	 c/j8ljDwe4wQbX21MMyyPTvvaBmFU8YS2iMAy+OQK/b/G/WcEukRiIzJOMlkLIKnllkrl
	 i4a7Sl070ZFWNFeWFUQRSAo0wxeUPwXSYn46SYRLh0aq2XIPaTkkCQYMHvJ9bTsO8UA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796185214;
	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=QemmhweHtuc5VpxTaoUiKjb4c/Gf8v1F0G3lgnOyd3Y=;
	b=h4lBpJ0Yzpl5xb+vFt3gmhzQSL7Dr47keeJIpZGGZJgXYwWtBub41PPazF6G7SdAz0N8
	 I6U4fsyyS/Ju30grM64m0NfJVAGPLpNpXKtPD9x+UyALS4g0cDacm1aDJgENlmYi1Luu6
	 5sb/fYy+9UxOZcWNm3Ksei6iJO3ds83MGSODgHfVoTLTHXD2AYdUwaiL3jSGy6cn6x5SZ
	 mekPyPVl/THpHXWPL0ZBbVHV+nN0x0u7drmhoqa0tRZnTYfXVkk61Z1RJnQ/miaUdopS7
	 TGUJBAE7rRCSBRh/qdF728cO3YTVSBeEfrbWGsHceo+gatnHYIx8cxqLlkT6SOJ2D0g==
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=X1nDvtbr;
	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 918BB606A323;
	Wed,  2 Dec 2026 04:20:14 +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=X1nDvtbr
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=1796185208;
	b=xJkh/tODSe5Hp/KyongQNhtGikBBOe7Y1W6I4JOmWP55Rg5d9Da7Ds1ne2veNd+bAbzh
	 9cHUm/IJ+svjvVI5lHvaCyiLzaf71c7mQYrrH+nDYox7abG7u6cvEwRbD03LyopQtlOYh
	 JbPiTVWDmcTZ8OfVGxSmm2nDIteTwPvd+YozyYukI3wTyqyHBsp+ff1DVf2RN5WLeNFk5
	 5BuJOdGYfE6jhB7SGk14T8SAzvVD/X5LOV04o6UUTxW9k6MJQb2xL4k9uaQPrPXZ5CsPp
	 7p57Z1RvL1M6+5Rtuv/kpw0frv36s/1xS9RnTcoqyaOaP2KLlv/76p0EbsCRa0FobqA==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796185208;
	h=Received:DKIM-Signature:Received:Content-Type:MIME-Version:
	 Content-Transfer-Encoding:Subject:From:Message-Id:Date:References:
	 In-Reply-To:To:Cc;
	bh=QemmhweHtuc5VpxTaoUiKjb4c/Gf8v1F0G3lgnOyd3Y=;
	b=KhEThhvmjMdcKymUkZpopzaZPI7fUQASuR7KaaJb2uo6FMNw18Ko19+QlO0ZlU1ffEiK
	 oBZidxd3X7H1L4w0nAHX5+UjANuV4v/tEOBK6Tlq/FFgCK3h6UL5+OqfkIhZfkX6ePg34
	 lwDNSxAtUHJXCoxeHwV7XnQUA/MEmo3LcnKJtCq1ObA5ZgBZy9Tl6dyW0klGL/iRYoRDm
	 7IQ1U4n6zK+0lG1sp9hJZMK08nm59wlFagLq77U9iH5O+GGfOkM2HGCdJg5Z/NePQGUP5
	 0VORyse5krpcEbUxlX59QjEhsIK12qqXXCjWQjsmQ5/8Z3tXOvImb7VVO5jqVeNihEg==
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=X1nDvtbr;
	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 AFCD7606A322;
	Wed,  2 Dec 2026 04:20:08 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3E19E1F00893;
	Wed,  2 Dec 2026 04:20:08 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1796185208;
	bh=QemmhweHtuc5VpxTaoUiKjb4c/Gf8v1F0G3lgnOyd3Y=;
	h=Subject:From:Date:References:In-Reply-To:To:Cc;
	b=X1nDvtbrRJco7JcFS3KFtY2CnwN5A5a1kuECQDaPAPK7UsDWxEq6wpVMVCoISkk4k
	 oPMnuzj8hbFDdxx5UnZMxBXKZRXyap3YEmrbEkYrn0D7XbuNGeT3GRtrFG9CmSOKRr
	 ObKIKye/dE0gHptJ6OhZeH/9PkoqyaaGDLfwl528ggF1QwYvH/2clADf8fxY8G96+k
	 pe6QooryV3SfLqcZAicbUCQF409ITM3Lfg5gblEbld4fYlDGfwBjGDKGjXFSGL8Mft
	 UlAP3T6cIQY0bmkteoRIKGPQI79ukbbotHa2RsKIATY5nugJ+b94IP/NeuKBcbvCW0
	 OIkwblEwW5OXA==
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 346F1380821E;
	Wed,  2 Dec 2026 04:20:08 +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: <20261126210849.766754-1-tariqt@nvidia.com>
X-Cc: andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@kernel.org,
 kuba@kernel.org, netdev@vger.kernel.org, pabeni@redhat.com,
 willemb@google.com, amirtz@nvidia.com, gal@nvidia.com, leon@kernel.org,
 linux-rdma@vger.kernel.org, mbloch@nvidia.com, parav@nvidia.com,
 saeedm@nvidia.com, shayd@nvidia.com, vuhuong@nvidia.com