From: sashiko-bot@kernel.org
To: "David Zhang" <yidong.zhang@amd.com>, dri-devel@lists.freedesktop.org
Subject: Re: [PATCH V2 3/5] accel/amdxdna: Check mailbox message overflow
Date: Mon, 30 Nov 2026 23:06:07 +0000 [thread overview]
Message-ID: <sashiko-outbox-242194@kernel.org> (raw)
In-Reply-To: <20261130225904.1103363-4-yidong.zhang@amd.com>
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 <yidong.zhang@amd.com>
> 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 <yidong.zhang@amd.com>
[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")
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261130225904.1103363-1-yidong.zhang@amd.com?part=3
next prev parent reply other threads:[~2026-11-30 23:06 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-30 22:58 [PATCH V2 0/5] accel/amdxdna: Add AIE4 async events and TDR David Zhang
2026-11-30 22:59 ` [PATCH V2 1/5] accel/amdxdna: Add AIE4 async event buffers David Zhang
2026-12-01 16:43 ` Lizhi Hou
2026-11-30 22:59 ` [PATCH V2 2/5] accel/amdxdna: Add AIE4 context recovery David Zhang
2026-12-01 16:51 ` Lizhi Hou
2026-11-30 22:59 ` [PATCH V2 3/5] accel/amdxdna: Check mailbox message overflow David Zhang
2026-11-30 23:06 ` sashiko-bot [this message]
2026-12-01 17:40 ` Lizhi Hou
2026-11-30 22:59 ` [PATCH V2 4/5] accel/amdxdna: Handle AIE4 firmware notifications David Zhang
2026-12-01 17:20 ` Lizhi Hou
2026-11-30 22:59 ` [PATCH V2 5/5] accel/amdxdna: Recover hung AIE4 contexts David Zhang
2026-12-01 17:21 ` Lizhi Hou
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=sashiko-outbox-242194@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=yidong.zhang@amd.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox