public inbox for linux-usb@vger.kernel.org
 help / color / mirror / Atom feed
* [REGRESSION] In v5.15.146 an ax88179_178a USB ethernet adapter causes crashes
@ 2024-01-12 18:01 Jeffery Miller
  2024-01-12 19:32 ` Justin Chen
  0 siblings, 1 reply; 3+ messages in thread
From: Jeffery Miller @ 2024-01-12 18:01 UTC (permalink / raw)
  To: stable; +Cc: Linux kernel regressions list, justinpopo6, kuba, linux-usb

For 5.15 attempting to use an ax88179_178a adapter "0b95:1790 ASIX
Electronics Corp. AX88179 Gigabit Ethernet"
started causing crashes.
This did not reproduce in the 6.6 kernel.

The crashes were narrowed down to the following two commits brought
into v5.15.146:

commit d63fafd6cc28 ("net: usb: ax88179_178a: avoid failed operations
when device is disconnected")
commit f860413aa00c ("net: usb: ax88179_178a: wol optimizations")

Those two use an uninitialized pointer `dev->driver_priv`.

In later kernels this pointer is initialized in commit 2bcbd3d8a7b4
("net: usb: ax88179_178a: move priv to driver_priv").

Picking in the two following commits fixed the issue for me on 5.15:
commit 9718f9ce5b86 ("net: usb: ax88179_178a: remove redundant init code")
commit 2bcbd3d8a7b4 ("net: usb: ax88179_178a: move priv to driver_priv")

The commit 9718f9ce5b86 ("net: usb: ax88179_178a: remove redundant
init code") was required for
the fix to apply cleanly.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-01-13  9:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-12 18:01 [REGRESSION] In v5.15.146 an ax88179_178a USB ethernet adapter causes crashes Jeffery Miller
2024-01-12 19:32 ` Justin Chen
2024-01-13  9:36   ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox