Update with more data on this crash.

Hardware: Hauppauge WinTV-QuadHD (two dualHD devices, USB ID 2040:8265,
em28174) behind an ASMedia USB controller (PCI ID 1b21:2142,
0000:06:00.0). Ubuntu 26.04 server.

Summary: the oops is in em28xx_close_extension when the em28xx devices
are disconnected. It does not need a module unload; unbinding the USB
controller is enough.

Results by kernel:
- 7.0.0-14-generic: unbinding the xHCI controller and rebinding it completes 
cleanly. The em28xx devices disconnect and re-enumerate, and all four tuners 
are back within about 7 seconds. No oops.
- 7.0.0-42-generic: oops in em28xx_close_extension on both modprobe -r 
em28xx_dvb em28xx_rc and the xHCI unbind (modprobe -r also froze once).
- 7.0.0-43-generic: same oops with modprobe -r and with the xHCI unbind.
- 7.0.0-44-generic: same oops, this time with only the xHCI unbind (nothing was 
unloaded beforehand, and mythtv-backend was stopped so nothing was using 
/dev/dvb).

Trace from 7.0.0-44 (full log attached as kernel-7.0.0-44-oops.txt):

BUG: kernel NULL pointer dereference, address: 0000000000000000
Oops: Oops: 0000 [#1] SMP NOPTI
RIP: 0010:em28xx_close_extension+0x80/0x130 [em28xx]

After the oops, the process doing the unbind is killed, only adapter2
and adapter3 still have a frontend0, and adapter0 and adapter1 are gone.
Only a reboot recovers.

To reproduce: with nothing holding /dev/dvb, echo the controller's PCI
address to /sys/bus/pci/drivers/xhci_hcd/unbind.

Context: I do this reset after resume as a workaround, because the
tuners are not usable after suspend/resume without it (tested on
7.0.0-43 with a plain rtcwake). So the crash happens on every resume on
affected kernels.

I have not tested kernels between -14 and -42, or a mainline kernel.
Happy to test any of those, or a patch, if useful.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2172747

Title:
  Kernel oops in em28xx_usb_disconnect when resetting Hauppauge WinTV-
  dualHD

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2172747/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to