Re: UBSAN whinge in ihci-hub.c

From: Greg Kroah-Hartman
Date: Tue May 17 2016 - 18:16:52 EST


On Tue, May 17, 2016 at 05:52:40PM -0400, Valdis Kletnieks wrote:
> So, not content in the amount of breakage I generate already, I
> compiled with UBSAN enabled...
>
> The immediately relevant part:
>
> [ 2.418576] ================================================================================
> [ 2.418579] UBSAN: Undefined behaviour in drivers/usb/host/ehci-hub.c:877:47
> [ 2.418582] index -1 is out of range for type 'u32 [1]'

<snip>

It's a known bug in ubsan, please see the linux-usb archives for the
details :(