[DVB] dib0700 DVB devices not working with kernels >= 3.19.x (vivid + trusty) < 4.2.x (wily)

Bug #1457187 reported by stargazer
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Linux
Unknown
Unknown
linux (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Hello,

starting with kernel >= 3.19 (vivid) my USB TV-Stick DVB-T "Terratec Cinergy DT XS Diversity" stopped working.
=> BUG: unable to handle kernel NULL pointer dereference

This problem was not in kernel 3.16.x. (Utopic)

System: Kubuntu 14.04.2 64bit, kernel 3.19.x (lts-vivid, 3.19.0-18-generic #18~14.04.1-Ubuntu )

There is a bugreport available, where I have added my device-problem too and a patch is available.

https://bugzilla.kernel.org/show_bug.cgi?id=92301

Patch:
http://permalink.gmane.org/gmane.linux.kernel.stable/135755

Please add this patch to kernels >= 3.19 (LTS HWE Vivid kernel Trusty 14.04, Vivid 15.04 and newer; linux-generic-lts-vivid, linux-image-generic-lts-vivid, ... )

Thank you for your support!

Best regards, Bernhard

- log messsages:

Apr 9 18:01:03 stargazer kernel: [ 70.017022] usb 3-2.4.1: new high-speed USB device number 4 using xhci_hcd
Apr 9 18:01:03 stargazer kernel: [ 70.107491] usb 3-2.4.1: New USB device found, idVendor=0ccd, idProduct=005a
Apr 9 18:01:03 stargazer kernel: [ 70.107494] usb 3-2.4.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Apr 9 18:01:03 stargazer kernel: [ 70.107495] usb 3-2.4.1: Product: Cinergy DT XS
Apr 9 18:01:03 stargazer kernel: [ 70.107497] usb 3-2.4.1: Manufacturer: TerraTec
Apr 9 18:01:03 stargazer kernel: [ 70.107498] usb 3-2.4.1: SerialNumber: 070201001111
Apr 9 18:01:03 stargazer mtp-probe: checking bus 3, device 4: "/sys/devices/pci0000:00/0000:00:1c.0/0000:06:00.0/0000:07:09.0/0000:0b:00.0/usb3/3-2/3-2.4/3-2.4.1"
Apr 9 18:01:03 stargazer mtp-probe: bus: 3, device: 4 was not an MTP device
Apr 9 18:01:03 stargazer kernel: [ 70.139371] dvb-usb: found a 'Terratec Cinergy DT XS Diversity' in cold state, will try to load a firmware
Apr 9 18:01:03 stargazer kernel: [ 70.139617] dvb-usb: downloading firmware from file 'dvb-usb-dib0700-1.20.fw'
Apr 9 18:01:03 stargazer kernel: [ 70.543833] dib0700: firmware started successfully.
Apr 9 18:01:04 stargazer kernel: [ 71.047012] dvb-usb: found a 'Terratec Cinergy DT XS Diversity' in warm state.
Apr 9 18:01:04 stargazer kernel: [ 71.047309] dvb-usb: will pass the complete MPEG2 transport stream to the software demuxer.
Apr 9 18:01:04 stargazer kernel: [ 71.047746] DVB: registering new adapter (Terratec Cinergy DT XS Diversity)
Apr 9 18:01:04 stargazer kernel: [ 71.057441] BUG: unable to handle kernel NULL pointer dereference at 0000000000000080
Apr 9 18:01:04 stargazer kernel: [ 71.057450] IP: [<ffffffffc0ded141>] dib7000p_attach+0x11/0xa0 [dib7000p]
Apr 9 18:01:04 stargazer kernel: [ 71.057457] PGD cd4be067 PUD cd4e4067 PMD 0
Apr 9 18:01:04 stargazer kernel: [ 71.057463] Oops: 0002 [#1] SMP
Apr 9 18:01:04 stargazer kernel: [ 71.057466] Modules linked in: dib7000p dvb_usb_dib0700(+) dib7000m dib0090 dib0070 dib3000mc dibx000_common dvb_usb dvb_core rc_core dm_crypt nf_conntrack_ipv6 nf_defrag_ipv6 ip6table_filter ip6_tables nf_conntrack_ipv4 nf_defrag_ipv4 xt_conntrack nf_conntrack iptable_filter ip_tables x_tables snd_hda_codec_hdmi snd_usb_audio joydev snd_usbmidi_lib gpio_ich mxm_wmi hid_logitech_hidpp snd_hda_codec_via snd_hda_codec_generic nvidia(POE) snd_hda_intel kvm_intel snd_hda_controller snd_hda_codec kvm snd_hwdep snd_pcm snd_seq_midi snd_seq_midi_event snd_rawmidi serio_raw i7core_edac edac_core snd_seq snd_seq_device snd_timer snd drm soundcore lpc_ich shpchp rfcomm bnep bluetooth wmi mac_hid binfmt_misc parport_pc ppdev coretemp lp parport pata_acpi hid_logitech_dj hid_generic usbhid hid psmouse firewire_ohci firewire_core r8169 ahci crc_itu_t pata_jmicron mii libahci
Apr 9 18:01:04 stargazer kernel: [ 71.057531] CPU: 2 PID: 3496 Comm: systemd-udevd Tainted: P OE 3.19.0-12-generic #12~14.04.1-Ubuntu
Apr 9 18:01:04 stargazer kernel: [ 71.057533] Hardware name: System manufacturer System Product Name/P7P55D-E PRO, BIOS 1703 06/26/2012
Apr 9 18:01:04 stargazer kernel: [ 71.057535] task: ffff880036275850 ti: ffff8800cd548000 task.ti: ffff8800cd548000
Apr 9 18:01:04 stargazer kernel: [ 71.057537] RIP: 0010:[<ffffffffc0ded141>] [<ffffffffc0ded141>] dib7000p_attach+0x11/0xa0 [dib7000p]
Apr 9 18:01:04 stargazer kernel: [ 71.057541] RSP: 0018:ffff8800cd54ba68 EFLAGS: 00010202
Apr 9 18:01:04 stargazer kernel: [ 71.057543] RAX: 0000000000000010 RBX: ffff8803e0aed278 RCX: 0000000000000001
Apr 9 18:01:04 stargazer kernel: [ 71.057545] RDX: 0000000000000001 RSI: ffffffffc0df4758 RDI: 0000000000000010
Apr 9 18:01:04 stargazer kernel: [ 71.057546] RBP: ffff8800cd54ba68 R08: ffffffff810f1470 R09: ffff88041fc57140
Apr 9 18:01:04 stargazer kernel: [ 71.057548] R10: ffffea000f66a680 R11: ffffffff81088634 R12: 0000000000000000
Apr 9 18:01:04 stargazer kernel: [ 71.057549] R13: 0000000000000010 R14: ffff8803e0aed278 R15: ffff8803e0aed398
Apr 9 18:01:04 stargazer kernel: [ 71.057552] FS: 00007f688ee9d880(0000) GS:ffff88041fc40000(0000) knlGS:0000000000000000
Apr 9 18:01:04 stargazer kernel: [ 71.057554] CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b
Apr 9 18:01:04 stargazer kernel: [ 71.057555] CR2: 0000000000000080 CR3: 00000000cd4e7000 CR4: 00000000000007e0
Apr 9 18:01:04 stargazer kernel: [ 71.057557] Stack:
Apr 9 18:01:04 stargazer kernel: [ 71.057558] ffff8800cd54ba98 ffffffffc0e6105b ffff8803e0aed398 ffff8803e0aed278
Apr 9 18:01:04 stargazer kernel: [ 71.057561] ffff8803e0aed278 0000000000000000 ffff8800cd54bad8 ffffffffc0df88d8
Apr 9 18:01:04 stargazer kernel: [ 71.057564] ffff8803e0aec000 0000000000000000 ffff8803e0aed278 ffff8803e0aec000
Apr 9 18:01:04 stargazer kernel: [ 71.057567] Call Trace:
Apr 9 18:01:04 stargazer kernel: [ 71.057575] [<ffffffffc0e6105b>] stk7700d_frontend_attach+0x3b/0x200 [dvb_usb_dib0700]
Apr 9 18:01:04 stargazer kernel: [ 71.057580] [<ffffffffc0df88d8>] dvb_usb_adapter_frontend_init+0xf8/0x1b0 [dvb_usb]
Apr 9 18:01:04 stargazer kernel: [ 71.057583] [<ffffffffc0df7acc>] dvb_usb_device_init+0x4fc/0x750 [dvb_usb]
Apr 9 18:01:04 stargazer kernel: [ 71.057588] [<ffffffffc0e5d33a>] dib0700_probe+0x6a/0x100 [dvb_usb_dib0700]
Apr 9 18:01:04 stargazer kernel: [ 71.057594] [<ffffffff817b11b6>] ? mutex_lock+0x16/0x37
Apr 9 18:01:04 stargazer kernel: [ 71.057598] [<ffffffff815add1b>] usb_probe_interface+0x1bb/0x300
Apr 9 18:01:04 stargazer kernel: [ 71.057603] [<ffffffff814f2d2d>] driver_probe_device+0x12d/0x3e0
Apr 9 18:01:04 stargazer kernel: [ 71.057606] [<ffffffff814f30bb>] __driver_attach+0x9b/0xa0
Apr 9 18:01:04 stargazer kernel: [ 71.057609] [<ffffffff814f3020>] ? __device_attach+0x40/0x40
Apr 9 18:01:04 stargazer kernel: [ 71.057612] [<ffffffff814f0c33>] bus_for_each_dev+0x63/0xa0
Apr 9 18:01:04 stargazer kernel: [ 71.057615] [<ffffffff814f270e>] driver_attach+0x1e/0x20
Apr 9 18:01:04 stargazer kernel: [ 71.057618] [<ffffffff814f2300>] bus_add_driver+0x180/0x240
Apr 9 18:01:04 stargazer kernel: [ 71.057621] [<ffffffff814f38a4>] driver_register+0x64/0xf0
Apr 9 18:01:04 stargazer kernel: [ 71.057624] [<ffffffff815ac4e2>] usb_register_driver+0x82/0x160
Apr 9 18:01:04 stargazer kernel: [ 71.057628] [<ffffffffc0e81000>] ? 0xffffffffc0e81000
Apr 9 18:01:04 stargazer kernel: [ 71.057633] [<ffffffffc0e8101e>] dib0700_driver_init+0x1e/0x1000 [dvb_usb_dib0700]
Apr 9 18:01:04 stargazer kernel: [ 71.057637] [<ffffffff81002144>] do_one_initcall+0xd4/0x210
Apr 9 18:01:04 stargazer kernel: [ 71.057641] [<ffffffff811cd549>] ? kmem_cache_alloc_trace+0x199/0x220
Apr 9 18:01:04 stargazer kernel: [ 71.057645] [<ffffffff810f639d>] ? load_module+0x162d/0x1ca0
Apr 9 18:01:04 stargazer kernel: [ 71.057648] [<ffffffff810f63d6>] load_module+0x1666/0x1ca0
Apr 9 18:01:04 stargazer kernel: [ 71.057651] [<ffffffff810f1c90>] ? store_uevent+0x40/0x40
Apr 9 18:01:04 stargazer kernel: [ 71.057655] [<ffffffff810f6b86>] SyS_finit_module+0x86/0xb0
Apr 9 18:01:04 stargazer kernel: [ 71.057659] [<ffffffff817b328d>] system_call_fastpath+0x16/0x1b
Apr 9 18:01:04 stargazer kernel: [ 71.057660] Code: 48 8b 87 18 03 00 00 48 89 e5 48 05 68 16 00 00 5d c3 0f 1f 84 00 00 00 00 00 66 66 66 66 90 55 48 85 ff 48 89 f8 48 89 e5 74 7f <48> c7 47 70 80 ec de c0 48 c7 47 68 f0 dc de c0 48 c7 47 30 70
Apr 9 18:01:04 stargazer kernel: [ 71.057688] RIP [<ffffffffc0ded141>] dib7000p_attach+0x11/0xa0 [dib7000p]
Apr 9 18:01:04 stargazer kernel: [ 71.057692] RSP <ffff8800cd54ba68>
Apr 9 18:01:04 stargazer kernel: [ 71.057693] CR2: 0000000000000080
Apr 9 18:01:04 stargazer kernel: [ 71.057696] ---[ end trace 36adf9b87fe4bc99 ]---

stargazer (stargazer05)
Changed in linux-meta-lts-vivid (Ubuntu):
status: New → Confirmed
Changed in linux-meta-lts-vivid (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Alejandro G. García (neopad) wrote :

Hi.

The same here.
Trace attached.

But in my case, when the device is plugged, the system some times don't boot, too slow or gnome present serious problems like no mouse pointer. If the system is previously started without the device and then plug it, the system hangs.

Can't make the installation of the OS if the device is plugged.

Revision history for this message
stargazer (stargazer05) wrote :

Dear Ubuntu kernel team!

Do you know, when the patch will be included in kernel 3.19 in vivid and in lts-vivid for trusty?

Is there a patched kernel, which I can test for you ?

Revision history for this message
stargazer (stargazer05) wrote :

DVB patch from bugzilla.kernel.org attached:

https://bugzilla.kernel.org/show_bug.cgi?id=92301

Please include this patch in kernels >= 3.19 LTS HWE Vivid kernel Trusty 14.04, Vivid 15.04 and newer

I have also tested upstream kernels 4.0.6 and 4.1, but the problem is not solved, so the patch is not mainlined.

tags: added: patch
Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

Thank you for providing a patch, and making Ubuntu better.

Can you provide some information on the status of the patch with regards to getting it merged upstream? Has it been sent upstream, what sort of feedback has it received, is it getting applied to a subsystem maintainer's tree, etc?

People affected by this bug are probably wondering why the kernel team doesn't just apply the patch and fix it. The reason is that the kernel team is reluctant (not opposed) to apply any patch to a stable kernel that is not from upstream. Applying patches that don't come from upstream add greatly to the support of the kernel as other upstream patches may touch the same area as the non-upstream patch and may prevent them from applying cleanly.

To submit your patch, send your patch with the detailed description/changelog and your Signoff (ending with Signed-off-by: your name <email>), to the emails listed from ./scripts/get_maintainer.pl drivers/SUBSYSTEM-DETAILS (the get_maintainer.pl is from the kernel sources). Once you have sent the patch upstream and it's accepted, please drop a note here so that we can cherry-pick/include the patch into Ubuntu kernel.

Changed in linux-meta-lts-vivid (Ubuntu):
status: Confirmed → Triaged
affects: linux-meta-lts-vivid (Ubuntu) → linux (Ubuntu)
tags: added: kernel-da-key
Revision history for this message
stargazer (stargazer05) wrote :

See bug report:
https://bugzilla.kernel.org/show_bug.cgi?id=92301

- Question from me:

Do you know when the patch will be included in the latest kernel and lts-kernels; 3.18, 4.0, 4.1?

- The writer of the patch, Thomas Reitmayr, answered the following:

I found the patch only in the linux-next tree, so that probably means 4.2, although it was forwarded to the linux-stable mailing list. Not sure how the process looks like for getting it into an lts kernel.

- Other posts from Thomas Reitmayr:

I submitted a patch to <email address hidden>. As described in the commit message the problem was introduced in kernel version 3.17 and concerns a few device types handled by dvb_usb_dib0700.
See http://permalink.gmane.org/gmane.linux.drivers.video-input-infrastructure/90691

Patch landed in linux-stable mailing list, see
http://permalink.gmane.org/gmane.linux.kernel.stable/135755

Revision history for this message
stargazer (stargazer05) wrote :

Furthermore I have tested kernels 4.0.6 and 4.1, but the problem is not solved.

Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

Thanks for also sending this patch to upstream stable. The Ubuntu kernels will get this patch through the normal stable update process.

Revision history for this message
stargazer (stargazer05) wrote : Re: [DVB] dib0700 DVB devices not working with kernels >= 3.19.x (vivid + trusty) <= 4.2.x (wily)

I have tested lts-wily kernel for precise => kernel 4.2 (4.2.0-7-generic #7~14.04.1).

With this kernel the usb dvb-t stick works again.

summary: [DVB] dib0700 DVB devices not working with kernels >= 3.19.x (vivid +
- trusty)
+ trusty) <= 4.2.x (wily)
summary: [DVB] dib0700 DVB devices not working with kernels >= 3.19.x (vivid +
- trusty) <= 4.2.x (wily)
+ trusty) < 4.2.x (wily)
Changed in linux (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.