A diff with the fix is attached.

It is indeed the changes in /drivers/media/usb/pvrusb2/pvrusb2-eeprom.c
between 4.4.0-87 and 4.4.0-89 that causes the driver to crash.

I reverted the changes and compiled them in 4.4.0-96. After finding the
newly compiled pvrusb2.ko and placing it in my existing -96 kernel,
everything worked perfectly.

I can't fully figure out the bug though, in the working -87 version a
dummy object is created and used in the call to
tveeprom_hauppauge_analog(), which I can't see is using it. I guess
there may be a macro or something that expands and then references the
object. In the non-working -98 version, the fake object has been
replaced with NULL and that seem to cause the problem. Meanwhile, the
mainline kernel seem to have removed the parameter entirely.

Source code for reference:
Working:
http://kernel.ubuntu.com/git/ubuntu/ubuntu-xenial.git/tree/drivers/media/usb/pvrusb2/pvrusb2-
eeprom.c?h=Ubuntu-4.4.0-87.110

Non-working:
http://kernel.ubuntu.com/git/ubuntu/ubuntu-xenial.git/tree/drivers/media/usb/pvrusb2/pvrusb2-eeprom.c?h=Ubuntu-4.4.0-89.112

Mainline kernel change that caused the bug:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/drivers/media/usb/pvrusb2/pvrusb2-eeprom.c?h=v4.14-rc1&id=6830733d53a4517588e56227b9c8538633f0c496

Later removal of the problematic function argument in mainline kernel:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/drivers/media/usb/pvrusb2/pvrusb2-eeprom.c?h=v4.14-rc1&id=446aba663b8240b24202cb8902b0d5c8f91aa3da
(I have no idea if the current mainline kernel works or not)

I hope this can get resolved for future 4.4.0 kernels in 16.04 LTS!





** Attachment added: "diff.txt"
   
https://bugs.launchpad.net/ubuntu/+bug/1710419/+attachment/4955829/+files/diff.txt

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

Title:
   WinTV-PVR-USB2 24xxx (pvrusb2) will not mount

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to