Re: UBSAN: array-index-out-of-bounds in ehci_hub_control

2021-04-15 Thread Alan Stern
On Thu, Apr 15, 2021 at 04:10:45PM +0200, Dmitry Vyukov wrote: > Hi, > > I've got this report while booting v5.10.13 kernel, but upstream code > seems to be the same. > The access to port_status, the code is: > > struct ehci_regs { > u32 port_status[0]; /* up to N_PORTS */ > u32

UBSAN: array-index-out-of-bounds in ehci_hub_control

2021-04-15 Thread Dmitry Vyukov
Hi, I've got this report while booting v5.10.13 kernel, but upstream code seems to be the same. The access to port_status, the code is: struct ehci_regs { u32 port_status[0]; /* up to N_PORTS */ u32 reserved3[9];