Re: [PATCH net] net: usb: lan78xx: fix use of improperly initialized dev->chipid in lan78xx_reset
From: I Viswanath <hidden>
Date: 2025-10-07 08:35:30
Also in:
linux-kernel-mentees, linux-usb, lkml
From: I Viswanath <hidden>
Date: 2025-10-07 08:35:30
Also in:
linux-kernel-mentees, linux-usb, lkml
On Tue, 7 Oct 2025 at 06:52, David Hunter [off-list ref] wrote:
Please describe the testing you performed.
I used the reproducer provided at https://syzkaller.appspot.com/bug?extid=62ec8226f01cb4ca19d9 and QEMU to verify my patch. I applied the fix patch for the bug before my testing. For testing, I set a hardware breakpoint at lan78xx_init_mac_address, triggered the reproducer, and inspected the value of dev->chipid at that point. Without my patch, dev->chipid was always 0. With my patch, it matched the upper 16 bits of the value read from the ID_REV register Thanks I Viswanath