Bug#719623: linux-image-3.10-2-amd64: kernel panic on inserting DVB-T stick

2013-08-25 Thread Johannes Rohr

Am 14.08.2013 10:34, schrieb Bjørn Mork:

I took a quick look at the code and wonder if the problem is caused by
an initial zero statistics message?  This is all just a wild guess, but
if it is correct, then the attached untested patch might fix it...


I have just tested the patch against Debian's kernel sources linux-3.11~rc4

On first try, the kernel panic does not seem to occur with this kernel. 
So possible you solved it!


Thanks,

Johannes



Bjørn




--
To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/521a668a.6010...@gmail.com



Bug#719623: linux-image-3.10-2-amd64: kernel panic on inserting DVB-T stick

2013-08-14 Thread Bjørn Mork
I took a quick look at the code and wonder if the problem is caused by
an initial zero statistics message?  This is all just a wild guess, but
if it is correct, then the attached untested patch might fix it...


Bjørn

From d78a0599d5b5d4da384eae08bf7da316389dfbe5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bj=C3=B8rn=20Mork?= bj...@mork.no
Date: Wed, 14 Aug 2013 10:24:39 +0200
Subject: [PATCH] [media] siano: fix divide error on 0 counters
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

ts_packets and ets_packets counters can be 0.  Don't fall over
if they are. Fixes:

[  846.851711] divide error:  [#1] SMP
[  846.851806] Modules linked in: smsdvb dvb_core ir_lirc_codec lirc_dev ir_sanyo_decoder ir_mce_kbd_decoder ir_sony_decoder ir_jvc_decoder ir_rc6_decoder ir_rc5_decoder ir_nec_decoder rc_hauppauge smsusb smsmdtv rc_core pci_stub vboxpci(O) vboxnetadp(O) vboxnetflt(O) vboxdrv(O) parport_pc ppdev lp parport cpufreq_userspace cpufreq_powersave cpufreq_stats cpufreq_conservative rfcomm bnep binfmt_misc uinput nfsd auth_rpcgss oid_registry nfs_acl nfs lockd dns_resolver fscache sunrpc ext4 jbd2 fuse tp_smapi(O) thinkpad_ec(O) loop firewire_sbp2 dm_crypt snd_hda_codec_conexant snd_hda_intel snd_hda_codec snd_hwdep snd_pcm_oss snd_mixer_oss snd_pcm thinkpad_acpi nvram snd_page_alloc hid_generic snd_seq_midi snd_seq_midi_event arc4 usbhid snd_rawmidi uvcvideo hid iwldvm coretemp kvm_intel mac8021
 1 cdc_wdm
[  846.853477]  cdc_acm snd_seq videobuf2_vmalloc videobuf2_memops videobuf2_core videodev media kvm radeon r852 ttm joydev cdc_ether usbnet pcmcia mii sm_common nand btusb drm_kms_helper tpm_tis acpi_cpufreq bluetooth iwlwifi nand_ecc drm nand_ids i2c_i801 mtd snd_seq_device iTCO_wdt iTCO_vendor_support r592 memstick lpc_ich mperf tpm yenta_socket pcmcia_rsrc pcmcia_core cfg80211 snd_timer snd pcspkr i2c_algo_bit crc16 i2c_core tpm_bios processor mfd_core wmi psmouse mei_me rfkill mei serio_raw soundcore evdev battery button video ac microcode ext3 mbcache jbd md_mod dm_mirror dm_region_hash dm_log dm_mod sg sr_mod sd_mod cdrom crc_t10dif firewire_ohci sdhci_pci sdhci mmc_core firewire_core crc_itu_t thermal thermal_sys ahci libahci ehci_pci uhci_hcd ehci_hcd libata scsi_mod usbcore e1000
 e usb_common
[  846.855310]  ptp pps_core
[  846.855356] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G   O 3.10-2-amd64 #1 Debian 3.10.5-1
[  846.855490] Hardware name: LENOVO 4061WFA/4061WFA, BIOS 6FET92WW (3.22 ) 12/14/2011
[  846.855609] task: 81613400 ti: 8160 task.ti: 8160
[  846.855636] RIP: 0010:[a092be0c]  [a092be0c] smsdvb_onresponse+0x264/0xa86 [smsdvb]
[  846.863906] RSP: 0018:88013bc03cf0  EFLAGS: 00010046
[  846.863906] RAX:  RBX: 880133bf6000 RCX: 
[  846.863906] RDX:  RSI: 88005d3b58c0 RDI: 880133bf6000
[  846.863906] RBP: 88005d1da000 R08: 0058 R09: 0015
[  846.863906] R10: 1a0d R11: 021a R12: 88005d3b58c0
[  846.863906] R13: 88005d1da008 R14: ff8d R15: 880036cf5060
[  846.863906] FS:  () GS:88013bc0() knlGS:
[  846.863906] CS:  0010 DS:  ES:  CR0: 8005003b
[  846.863906] CR2: 7f3a4b69ae50 CR3: 36dac000 CR4: 000407f0
[  846.863906] DR0:  DR1:  DR2: 
[  846.863906] DR3:  DR6: 0ff0 DR7: 0400
[  846.863906] Stack:
[  846.863906]  88007a102000 88005d1da000 88005d3b58c0 00085824
[  846.863906]  a08c5aa3 88005d1da000 8800a6907390 8800a69073b0
[  846.863906]  8800a6907000 a08b642c 021a 8800a69073b0
[  846.863906] Call Trace:
[  846.863906]  IRQ
[  846.863906]
[  846.863906]  [a08c5aa3] ? smscore_onresponse+0x1d5/0x353 [smsmdtv]
[  846.863906]  [a08b642c] ? smsusb_onresponse+0x146/0x192 [smsusb]
[  846.863906]  [a004cb1a] ? usb_hcd_giveback_urb+0x6c/0xac [usbcore]
[  846.863906]  [a0217be1] ? ehci_urb_done+0x62/0x72 [ehci_hcd]
[  846.863906]  [a0217c82] ? qh_completions+0x91/0x364 [ehci_hcd]
[  846.863906]  [a0219bba] ? ehci_work+0x8a/0x68e [ehci_hcd]
[  846.863906]  [8107336c] ? timekeeping_get_ns.constprop.10+0xd/0x31
[  846.863906]  [81064d41] ? update_cfs_rq_blocked_load+0xde/0xec
[  846.863906]  [81058ec2] ? run_posix_cpu_timers+0x25/0x575
[  846.863906]  [a021aa46] ? ehci_irq+0x211/0x23d [ehci_hcd]
[  846.863906]  [a004c0c1] ? usb_hcd_irq+0x31/0x48 [usbcore]
[  846.863906]  [810996fd] ? handle_irq_event_percpu+0x49/0x1a4
[  846.863906]  [8109988a] ? handle_irq_event+0x32/0x4b
[  846.863906]  [8109bd76] ? handle_fasteoi_irq+0x80/0xb6
[  846.863906]  [8100e93e] ? handle_irq+0x18/0x20
[  846.863906]  [8100e657] ? 

Bug#719623: linux-image-3.10-2-amd64: kernel panic on inserting DVB-T stick

2013-08-13 Thread Johannes Rohr
Package: src:linux
Version: 3.10.5-1
Severity: important

I use a USB DVB-T stick using the smsdvb module. Up to kernel 3.9 it mostly 
works fine. As of kernel 3.10, inserting the stick causes a kernel panic. Via 
lsusb, the device is identified as 

 008 Device 005: ID 2040:c000 Hauppauge Windham

I wrote down the last two lines of the backtrace from the screen in the hope 
that it helps:

RIP[a08d7e2a] smsdvb_04 response+0x264 0xa33[smsdvb]
RSP88013bc03cf0

I suppose in order to be useful I would need to log the entire backtrace. I am 
not sure how to do this. Maybe the easiest is to take a photo of the screen and 
send it to the BTS?!?

Thanks,

Johannes


-- Package-specific info:
** Kernel log: boot messages should be attached

** Model information
sys_vendor: LENOVO
product_name: 4061WFA
product_version: ThinkPad W500
chassis_vendor: LENOVO
chassis_version: Not Available
bios_vendor: LENOVO
bios_version: 6FET92WW (3.22 )
board_vendor: LENOVO
board_name: 4061WFA
board_version: Not Available

** PCI devices:
00:00.0 Host bridge [0600]: Intel Corporation Mobile 4 Series Chipset Memory 
Controller Hub [8086:2a40] (rev 07)
Subsystem: Lenovo Device [17aa:20e0]
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR+ FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast TAbort- TAbort- 
MAbort+ SERR- PERR- INTx-
Latency: 0
Capabilities: access denied

00:01.0 PCI bridge [0604]: Intel Corporation Mobile 4 Series Chipset PCI 
Express Graphics Port [8086:2a41] (rev 07) (prog-if 00 [Normal decode])
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR+ FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast TAbort- TAbort- 
MAbort- SERR- PERR- INTx-
Latency: 0, Cache Line Size: 64 bytes
Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
I/O behind bridge: 2000-2fff
Memory behind bridge: cff0-cfff
Prefetchable memory behind bridge: d000-dfff
Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=fast TAbort- TAbort- 
MAbort- SERR- PERR-
BridgeCtl: Parity- SERR+ NoISA- VGA+ MAbort- Reset- FastB2B-
PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
Capabilities: access denied
Kernel driver in use: pcieport

00:03.0 Communication controller [0780]: Intel Corporation Mobile 4 Series 
Chipset MEI Controller [8086:2a44] (rev 07)
Subsystem: Lenovo Device [17aa:20e6]
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR- FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast TAbort- TAbort- 
MAbort- SERR- PERR- INTx-
Latency: 0
Interrupt: pin A routed to IRQ 48
Region 0: Memory at fc226800 (64-bit, non-prefetchable) [size=16]
Capabilities: access denied
Kernel driver in use: mei

00:03.3 Serial controller [0700]: Intel Corporation Mobile 4 Series Chipset AMT 
SOL Redirection [8086:2a47] (rev 07) (prog-if 02 [16550])
Subsystem: Lenovo Device [17aa:20ec]
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=fast TAbort- TAbort- 
MAbort- SERR- PERR- INTx-
Latency: 0
Interrupt: pin B routed to IRQ 17
Region 0: I/O ports at 1828 [size=8]
Region 1: Memory at fc224000 (32-bit, non-prefetchable) [size=4K]
Capabilities: access denied
Kernel driver in use: serial

00:19.0 Ethernet controller [0200]: Intel Corporation 82567LM Gigabit Network 
Connection [8086:10f5] (rev 03)
Subsystem: Lenovo Device [17aa:20ee]
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR+ FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast TAbort- TAbort- 
MAbort- SERR- PERR- INTx-
Latency: 0
Interrupt: pin A routed to IRQ 46
Region 0: Memory at fc20 (32-bit, non-prefetchable) [size=128K]
Region 1: Memory at fc225000 (32-bit, non-prefetchable) [size=4K]
Region 2: I/O ports at 1840 [size=32]
Capabilities: access denied
Kernel driver in use: e1000e

00:1a.0 USB controller [0c03]: Intel Corporation 82801I (ICH9 Family) USB UHCI 
Controller #4 [8086:2937] (rev 03) (prog-if 00 [UHCI])
Subsystem: Lenovo Device [17aa:20f0]
Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium TAbort- 
TAbort- MAbort- SERR- PERR- INTx-
Latency: 0
Interrupt: pin A routed to IRQ 20
Region 4: I/O ports at 1860 [size=32]
Capabilities: access denied
Kernel driver in use: uhci_hcd

00:1a.1 USB controller [0c03]: Intel 

Bug#719623: linux-image-3.10-2-amd64: kernel panic on inserting DVB-T stick

2013-08-13 Thread Johannes Rohr
Package: src:linux
Version: 3.10.5-1
Followup-For: Bug #719623

Hi, I have finally gotten around to setting up kdump-tools. Here is the dmesg 
showing the kernel panic:


[  834.408077] usb 8-1: new high-speed USB device number 4 using ehci-pci
[  834.541089] usb 8-1: New USB device found, idVendor=2040, idProduct=c000
[  834.541100] usb 8-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  834.541107] usb 8-1: Product: WinTV MiniStick
[  834.541114] usb 8-1: Manufacturer: Hauppauge Computer Works
[  834.541121] usb 8-1: SerialNumber: 4034278603
[  834.671496] usb 8-1: firmware: agent loaded sms1xxx-hcw-55xxx-dvbt-02.fw 
into memory
[  834.718327] smscore_load_firmware_family2: line: 986: sending 
MSG_SMS_DATA_VALIDITY_REQ expecting 0xcfed1755
[  834.720055] smscore_onresponse: line: 1563: MSG_SMS_DATA_VALIDITY_RES, 
checksum = 0xcfed1755
[  835.124341] sms_ir_init: Allocating rc device
[  835.124363] sms_ir_init: IR port 0, timeout 100 ms
[  835.124370] sms_ir_init: Input device (IR) SMS IR (Hauppauge WinTV 
MiniStick) is set for key events
[  835.152073] Registered IR keymap rc-hauppauge
[  835.152394] input: SMS IR (Hauppauge WinTV MiniStick) as 
/devices/pci:00/:00:1d.7/usb8/8-1/rc/rc0/input19
[  835.152906] rc0: SMS IR (Hauppauge WinTV MiniStick) as 
/devices/pci:00/:00:1d.7/usb8/8-1/rc/rc0
[  835.157104] IR NEC protocol handler initialized
[  835.158165] IR RC5(x) protocol handler initialized
[  835.159973] IR RC6 protocol handler initialized
[  835.161217] IR JVC protocol handler initialized
[  835.161988] IR Sony protocol handler initialized
[  835.162633] IR MCE Keyboard/mouse protocol handler initialized
[  835.163143] IR SANYO protocol handler initialized
[  835.163645] lirc_dev: IR Remote Control driver registered, major 246 
[  835.163868] input: MCE IR Keyboard/Mouse (smsmdtv) as 
/devices/virtual/input/input20
[  835.164968] rc rc0: lirc_dev: driver ir-lirc-codec (smsmdtv) registered at 
minor = 0
[  835.164970] IR LIRC bridge handler initialized
[  835.213673] DVB: registering new adapter (Hauppauge WinTV MiniStick)
[  835.214387] usb 8-1: DVB: registering adapter 0 frontend 0 (Siano Mobile 
Digital MDTV Receiver)...
[  835.215533] usbcore: registered new interface driver smsusb
[  846.851711] divide error:  [#1] SMP 
[  846.851806] Modules linked in: smsdvb dvb_core ir_lirc_codec lirc_dev 
ir_sanyo_decoder ir_mce_kbd_decoder ir_sony_decoder ir_jvc_decoder 
ir_rc6_decoder ir_rc5_decoder ir_nec_decoder rc_hauppauge smsusb smsmdtv 
rc_core pci_stub vboxpci(O) vboxnetadp(O) vboxnetflt(O) vboxdrv(O) parport_pc 
ppdev lp parport cpufreq_userspace cpufreq_powersave cpufreq_stats 
cpufreq_conservative rfcomm bnep binfmt_misc uinput nfsd auth_rpcgss 
oid_registry nfs_acl nfs lockd dns_resolver fscache sunrpc ext4 jbd2 fuse 
tp_smapi(O) thinkpad_ec(O) loop firewire_sbp2 dm_crypt snd_hda_codec_conexant 
snd_hda_intel snd_hda_codec snd_hwdep snd_pcm_oss snd_mixer_oss snd_pcm 
thinkpad_acpi nvram snd_page_alloc hid_generic snd_seq_midi snd_seq_midi_event 
arc4 usbhid snd_rawmidi uvcvideo hid iwldvm coretemp kvm_intel mac80211 cdc_wdm
[  846.853477]  cdc_acm snd_seq videobuf2_vmalloc videobuf2_memops 
videobuf2_core videodev media kvm radeon r852 ttm joydev cdc_ether usbnet 
pcmcia mii sm_common nand btusb drm_kms_helper tpm_tis acpi_cpufreq bluetooth 
iwlwifi nand_ecc drm nand_ids i2c_i801 mtd snd_seq_device iTCO_wdt 
iTCO_vendor_support r592 memstick lpc_ich mperf tpm yenta_socket pcmcia_rsrc 
pcmcia_core cfg80211 snd_timer snd pcspkr i2c_algo_bit crc16 i2c_core tpm_bios 
processor mfd_core wmi psmouse mei_me rfkill mei serio_raw soundcore evdev 
battery button video ac microcode ext3 mbcache jbd md_mod dm_mirror 
dm_region_hash dm_log dm_mod sg sr_mod sd_mod cdrom crc_t10dif firewire_ohci 
sdhci_pci sdhci mmc_core firewire_core crc_itu_t thermal thermal_sys ahci 
libahci ehci_pci uhci_hcd ehci_hcd libata scsi_mod usbcore e1000e usb_common
[  846.855310]  ptp pps_core
[  846.855356] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G   O 
3.10-2-amd64 #1 Debian 3.10.5-1
[  846.855490] Hardware name: LENOVO 4061WFA/4061WFA, BIOS 6FET92WW (3.22 ) 
12/14/2011
[  846.855609] task: 81613400 ti: 8160 task.ti: 
8160
[  846.855636] RIP: 0010:[a092be0c]  [a092be0c] 
smsdvb_onresponse+0x264/0xa86 [smsdvb]
[  846.863906] RSP: 0018:88013bc03cf0  EFLAGS: 00010046
[  846.863906] RAX:  RBX: 880133bf6000 RCX: 
[  846.863906] RDX:  RSI: 88005d3b58c0 RDI: 880133bf6000
[  846.863906] RBP: 88005d1da000 R08: 0058 R09: 0015
[  846.863906] R10: 1a0d R11: 021a R12: 88005d3b58c0
[  846.863906] R13: 88005d1da008 R14: ff8d R15: 880036cf5060
[  846.863906] FS:  () GS:88013bc0() 
knlGS:
[  846.863906] CS:  0010 DS:  ES:  CR0: 8005003b
[  846.863906] CR2: