Re: [PATCH v2] i3c: dw: avoid shift-out-of-bounds when DAA assigns no devices
Alexandre Belloni <[email protected]> Sun, 5 Jul 2026 23:34:47 +0200
| Newsgroups | org.infradead.lists.linux-i3c |
|---|---|
| Message-ID | <178328728112.59680.8356433709607736206.b4-ty@b4> |
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
--
linux-i3c mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-i3c