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 <[email protected]>

> 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 <[email protected]>

[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/[email protected]?part=3

Reply via email to