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=1796217489; b=zJFtDV6FXrM4MZ/3lV6OdvjjIlmvJRQXAuLjharka+gGYByeRJZw+33QDgxF0OI0oe4+ qSlJpoxgM2kloMzNK+4uitg/g7CMv4GhghC9jrLHWXDlNCt9QTQYHjXRL/+5L96jItNfd 6GzxpBY5VYeLa2cXNndpHMhqDbEMeDpv74L4oNIk04pyOBanVrXSMwTxlXgYP/tbhIp9K auICcSLjh1YUCDzDVLoXpDr26sFWEO5Sw85Oy3PaWr8bpmuRRpyxmtADO5ArsVYmAkdpF UPzWG/Mx9T906/4ayf3yudZt2UYVw4Ycxynb1YkqnASFrzueCn6s7MNxbbNz+nbY4nQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796217489; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=n+MzKRtN/tiKx0tdtSQd1Qmof9cajtLvfF8m4CAPeHg=; b=QuLz9HammI9x0KwlBjsSswruIIalrrXP92Sp3Awy6/SWKPjwCQATDSpqTtbCqLz4LmqP gd2YlR9SNR957Wp+hbfrlrh5cesCyVn2PN4VvykYbzSBp313qpnFrFUOThv98iAIcmoSE sg/lc2H+mEGxxPDfxXRq2NFJ7dtrqgbkos2s6q0yXYhbqBcOrEsHN51RxFzHhiSGdDcfq p2WyS3KzLMS9Q9JLjGoam/wIvJ2vukYjrd/a38iaRXthaMSuDW5BLjpGkAEinKIxjfkiM MKQ9m58Owz9Yj+8WUd9wdmO9WLc2vIwNgzz3ans7+LgRz4v5/ORopyLHCx0OfmvZEZw== 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=lKlf5TOz; 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 BF987606A31A for ; Wed, 2 Dec 2026 13:18:09 +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=lKlf5TOz Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2064C1F000C1; Wed, 2 Dec 2026 13:18:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796217489; bh=n+MzKRtN/tiKx0tdtSQd1Qmof9cajtLvfF8m4CAPeHg=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=lKlf5TOzEBdAFygFurs4sfgvSIQAuD6+BEO9v3xIyCgyB5vQ2Yd2AMwQuZ3cTG8on Trs0zx6VUHeiG4C6En9Z6R49PGZ+VK2WAmnbNEFmbCWSlDY9P60jqnVJqyiE/TB9gY LPLiF82MrWwoayebewqUE/TeblNhahjqHR5UxuTlE2MCc5zNAovEWjE6F9QBihLo1z N9KrGLzdafH5qi3obHe0pNEuAqMitPuisVgtBoSBqoHAF8hfHwHuYONpra2lW2lh7D if1HuFGFy9oHhtqpV2Mq002pyQkFt6Zeb4MW8LkPqiM9X+PA0YyKPMHq3v9DDrm84M bBQ3Vgar2l9vA== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH net] net/mlx5e: Fix shared buffer size underflow Reply-To: sashiko-reviews@lists.linux.dev To: "Tariq Toukan" Cc: linux-rdma@vger.kernel.org In-Reply-To: <20261202131331.3445566-1-tariqt@nvidia.com> References: <20261202131331.3445566-1-tariqt@nvidia.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Wed, 02 Dec 2026 13:18:08 +0000 X-Mailing-List: linux-rdma@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list > From: Elliot Edmunds >=20 > port_update_shared_buffer() computes shared_buffer_size as a u32. > When the new headroom exceeds the current headroom plus both pools, > it wraps, passes the "< 4" check, and the wrapped split is written > to SBPR. mlnx_qos exits 0 with the pools reading 32709/32748 cells. >=20 > Refuse such a request before any register write. >=20 > Fixes: a440030d8946 ("net/mlx5e: Update shared buffer along with device b= uffer changes") > Signed-off-by: Elliot Edmunds > Reviewed-by: Maher Sanalla > Reviewed-by: Alex Lazar > Signed-off-by: Tariq Toukan Sashiko has reviewed this patch and found no issues. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261202131331.3445= 566-1-tariqt@nvidia.com?part=3D1