[PATCH v2] i3c: dw: avoid shift-out-of-bounds when DAA assigns no devices
Alexandre Belloni
alexandre.belloni at bootlin.com
Sun Jul 5 14:34:47 PDT 2026
On Tue, 30 Jun 2026 10:29:04 -0700, Jakub Kicinski wrote:
> On an empty bus ENTDAA assigns nothing, so cmd->rx_len (the count
> of addresses left unassigned) equals master->maxdevs.
>
> The GENMASK() index master->maxdevs - cmd->rx_len - 1 then becomes -1,
> which trips up UBSAN. This happens every time on boot on a Gigabyte/AMD
> server:
>
> [...]
Applied, thanks!
[1/1] i3c: dw: avoid shift-out-of-bounds when DAA assigns no devices
https://git.kernel.org/i3c/c/eeedacd0866e
Best regards,
--
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
More information about the linux-i3c
mailing list