Bug 216020
Summary: | drivers/usb/ folder compilation with allyesconfig fails | ||
---|---|---|---|
Product: | Drivers | Reporter: | Kushagra Verma (kushagra765) |
Component: | USB | Assignee: | Default virtual assignee for Drivers/USB (drivers_usb) |
Status: | NEW --- | ||
Severity: | normal | ||
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 5.18 | Subsystem: | |
Regression: | No | Bisected commit-id: |
Description
Kushagra Verma
2022-05-24 14:58:45 UTC
On Tue, May 24, 2022 at 02:58:45PM +0000, bugzilla-daemon@kernel.org wrote: > https://bugzilla.kernel.org/show_bug.cgi?id=216020 > > Bug ID: 216020 > Summary: drivers/usb/ folder compilation with allyesconfig > fails > Product: Drivers > Version: 2.5 > Kernel Version: 5.18 > Hardware: All > OS: Linux > Tree: Mainline > Status: NEW > Severity: normal > Priority: P1 > Component: USB > Assignee: drivers_usb@kernel-bugs.kernel.org > Reporter: kushagra765@outlook.com > Regression: No > > When compiling the drivers/usb/ folder with GCC version 12.1.0, the > compilation > fails with the following errors: There are numerous errors when building the kernel with gcc 12.1 right now. It is being worked on, please see the development efforts on the linux-kernel mailing list if you wish to help out. Also, patches for this are always gladly accepted, no need to file a bugzilla report for this. thanks, greg k-h (In reply to Greg Kroah-Hartman from comment #1) > On Tue, May 24, 2022 at 02:58:45PM +0000, bugzilla-daemon@kernel.org wrote: > > https://bugzilla.kernel.org/show_bug.cgi?id=216020 > > > > Bug ID: 216020 > > Summary: drivers/usb/ folder compilation with allyesconfig > > fails > > Product: Drivers > > Version: 2.5 > > Kernel Version: 5.18 > > Hardware: All > > OS: Linux > > Tree: Mainline > > Status: NEW > > Severity: normal > > Priority: P1 > > Component: USB > > Assignee: drivers_usb@kernel-bugs.kernel.org > > Reporter: kushagra765@outlook.com > > Regression: No > > > > When compiling the drivers/usb/ folder with GCC version 12.1.0, the > > compilation > > fails with the following errors: > > There are numerous errors when building the kernel with gcc 12.1 right > now. It is being worked on, please see the development efforts on the > linux-kernel mailing list if you wish to help out. > > Also, patches for this are always gladly accepted, no need to file a > bugzilla report for this. Ok. > > thanks, > > greg k-h Thanks, Kushagra The warnings about ene_ub6250.c are accurate. The driver uses (EntryOffset % 512) to index a 512-byte buffer and dereferences a 16-bit value at that location, without checking for proper alignment. It then dereferences another 16-bit value located 10 bytes farther on, without checking for overflow. Not having the specs for this type of device, I don't know how this is meant to work. Perhaps EntryOffset % 512 is always supposed to be 0. But perhaps not, so I don't want to make any hasty changes. |