Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0BE3A606A31A for ; Mon, 30 Nov 2026 23:06:21 +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=aiExDb4a Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 688BB10E427; Mon, 30 Nov 2026 23:06:15 +0000 (UTC) Received: from tor.source.kernel.org (tor.source.kernel.org [172.105.4.254]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5947E10E427 for ; Mon, 30 Nov 2026 23:06:09 +0000 (UTC) Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id 5D26260F4E; Mon, 30 Nov 2026 23:06:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A37851F00898; Mon, 30 Nov 2026 23:06:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796079967; bh=/Cml9rQ8JstcwS/rZ+wdMwQcnAeFKXBfTXZlfMKiIhk=; h=From:Subject:Reply-To:To:In-Reply-To:References:Date; b=aiExDb4agyGyEFAFEQWHnBYR3lc+y6iwRkyGQdd66Z+h3aach0PSMp9VvfHlFKbBo pjhU/upNHim+zo+V4pQiI2MjGl6lOUtl1fcl6H/70UM9jCqb9+M/0pFdjizdewG/zy 7KaQfl3QR6nsOTlloR8Vx9AIXOJb3iQmvnxxiWWh8W6WDYXpxkWffjrG/keceU3kcx gUYDfqGOi3Ukr5XeR02+rWpWWk5LYG/zSXAoZd6jLVkR+iaqwGcLEClD69YsfRUO7A mkYJPA8cvfyh1kED9Pfgc+lIlKK574zCEIJGwrT5fvCCKJSR3GpFDWo7ujlXyW80wS TbE04mucOqWpg== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH V2 3/5] accel/amdxdna: Check mailbox message overflow To: "David Zhang" , dri-devel@lists.freedesktop.org In-Reply-To: <20261130225904.1103363-4-yidong.zhang@amd.com> References: <20261130225904.1103363-1-yidong.zhang@amd.com> <20261130225904.1103363-4-yidong.zhang@amd.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Mon, 30 Nov 2026 23:06:07 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: sashiko-reviews@lists.linux.dev Sender: "dri-devel" X-Spam-Status: No, score=-10.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 X-Archived-By: Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] accel/amdxdna: missing Fixes trailer for mailbox_get_msg() overflow fix -- commit 7c4708ceb06e8b8187eb081e9d10a5df7f3551e0 Author: David Zhang > accel/amdxdna: Check mailbox message overflow > > The message size is the firmware-supplied total_size plus the header > size, computed in a u32. A total_size near U32_MAX wraps the sum to a > small value that passes the ring buffer bounds checks, and the consumer > is then called with the unchecked total_size. > > Reject the message when the addition overflows. > > Signed-off-by: David Zhang [Severity: Low] This fixes the unchecked u32 addition in mailbox_get_msg() introduced by b87f920b9344 ("accel/amdxdna: Support hardware mailbox"). Should this include: Fixes: b87f920b9344 ("accel/amdxdna: Support hardware mailbox") --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261130225904.1103= 363-1-yidong.zhang@amd.com?part=3D3