FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian Kernel

 
 
LinkBack Thread Tools
 
Old 11-18-2011, 05:44 PM
Thomas Schmitt
 
Default Bug#649198: linux-image-2.6.32-5-amd64: Kernel Oops on try to use an USB CD drive that was powered off

Package: linux-2.6
Version: 2.6.32-35
Severity: normal


I experienced a kernel Oops at three occasions when i switched off
a USB CD drive while it was in use by an application.
It first happened with qemu (stress test), then with blkid (gnawing
on medium with LEC uncorrectable error), and now with my own application
(deliberately provoked).

I opened a file descriptor on /dev/sr2 by
$ xorriso -outdev /dev/sr2 -dialog on
waited for the dialog prompt and switched off the drive's power.
Logged by this line
[ 215.717297] usb 1-3: USB disconnect, address 5
Some seconds later i let xorriso attempt an ioctl(SG_IO) transaction,
by entering to the xorriso command prompt:
-toc

The reaction on the xorriso terminal is quite immediately:
Killed
Message from syslogd@debian2 at Nov 18 18:59:41 ...
kernel:[ 231.149073] Oops: 0011 [#1] SMP
and some of the lines which appear in the kernel log below.
(Not all. They appear randomly picked.)

The system seems still running well now.
The drive re-appeared as /dev/sr3 when i switched it on again.
/dev/sr2 does not exist any more.

The first power off
[ 137.749886] usb 1-3: USB disconnect, address 3
was made when no userspace application had a file descriptor open.
No Oops happened and the drive re-appeared under its old device file
address /dev/sr2.

(I have switched off USB drives on older Linux kernels in the past.
Including the one of Debian 5. There never happened an Oops. Sometimes
/dev/sr numbers were not re-used.)

-- Package-specific info:
** Version:
Linux version 2.6.32-5-amd64 (Debian 2.6.32-35) (dannf@debian.org) (gcc version 4.3.5 (Debian 4.3.5-4) ) #1 SMP Tue Jun 14 09:42:28 UTC 2011

** Command line:
BOOT_IMAGE=/boot/vmlinuz-2.6.32-5-amd64 root=UUID=e3378181-54dc-4fe3-97e2-d7f2b6c1d296 ro quiet

** Tainted: D (128)
* Kernel has oopsed before.

** Kernel log:
[ 15.745638] Bluetooth: HCI socket layer initialized
[ 15.839019] Bluetooth: L2CAP ver 2.14
[ 15.839021] Bluetooth: L2CAP socket layer initialized
[ 15.854583] Bluetooth: RFCOMM TTY layer initialized
[ 15.854588] Bluetooth: RFCOMM socket layer initialized
[ 15.854590] Bluetooth: RFCOMM ver 1.11
[ 15.966296] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 15.966299] Bluetooth: BNEP filters: protocol multicast
[ 15.981540] Bridge firewalling registered
[ 16.446574] Bluetooth: SCO (Voice Link) ver 0.6
[ 16.446577] Bluetooth: SCO socket layer initialized
[ 17.026555] lp0: using parport0 (interrupt-driven).
[ 17.064563] ppdev: user-space parallel port driver
[ 20.402265] powernow-k8: Found 1 AMD Athlon(tm) II X4 620 Processor processors (4 cpu cores) (version 2.20.00)
[ 20.402310] powernow-k8: 0 : pstate 0 (2600 MHz)
[ 20.402311] powernow-k8: 1 : pstate 1 (1900 MHz)
[ 20.402313] powernow-k8: 2 : pstate 2 (1400 MHz)
[ 20.402314] powernow-k8: 3 : pstate 3 (800 MHz)
[ 20.640051] eth0: no IPv6 routers present
[ 137.749886] usb 1-3: USB disconnect, address 3
[ 160.256082] usb 1-3: new high speed USB device using ehci_hcd and address 5
[ 160.390473] usb 1-3: New USB device found, idVendor=152d, idProduct=2336
[ 160.390482] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=5
[ 160.390489] usb 1-3: Product: JM20336 SATA, USB Combo
[ 160.390494] usb 1-3: Manufacturer: JMicron
[ 160.390498] usb 1-3: SerialNumber: 306663601043
[ 160.390699] usb 1-3: configuration #1 chosen from 1 choice
[ 160.391820] scsi9 : SCSI emulation for USB Mass Storage devices
[ 160.392007] usb-storage: device found at 5
[ 160.392011] usb-storage: waiting for device to settle before scanning
[ 165.392426] usb-storage: device scan complete
[ 165.397853] scsi 9:0:0:0: CD-ROM Optiarc BD RW BD-5300S 1.04 PQ: 0 ANSI: 0
[ 165.433854] sr2: scsi3-mmc drive: 5x/48x writer dvd-ram cd/rw xa/form2 cdda tray
[ 165.434123] sr 9:0:0:0: Attached scsi CD-ROM sr2
[ 165.434266] sr 9:0:0:0: Attached scsi generic sg3 type 5
[ 215.717297] usb 1-3: USB disconnect, address 5
[ 231.149032] kernel tried to execute NX-protected page - exploit attempt? (uid: 1000)
[ 231.149041] BUG: unable to handle kernel paging request at ffffea0003fefb90
[ 231.149050] IP: [<ffffea0003fefb90>] 0xffffea0003fefb90
[ 231.149064] PGD 168c067 PUD 168d067 PMD 8000000004c001e3
[ 231.149073] Oops: 0011 [#1] SMP
[ 231.149080] last sysfs file: /sys/devices/pci0000:00/0000:00:12.2/class
[ 231.149087] CPU 3
[ 231.149091] Modules linked in: powernow_k8 cpufreq_powersave cpufreq_stats cpufreq_conservative cpufreq_userspace ppdev lp sco bridge stp bnep rfcomm l2cap crc16 bluetooth rfkill kvm_amd kvm binfmt_misc fuse loop snd_hda_codec_atihdmi snd_hda_codec_realtek snd_hda_intel snd_hda_codec snd_hwdep snd_pcm snd_seq snd_timer snd_seq_device radeon ttm edac_core drm_kms_helper snd soundcore parport_pc snd_page_alloc edac_mce_amd drm parport k10temp i2c_algo_bit i2c_piix4 i2c_core shpchp pci_hotplug pcspkr evdev processor button ext3 jbd mbcache usbhid hid sg usb_storage sd_mod sr_mod crc_t10dif cdrom ata_generic ohci_hcd ahci r8169 ehci_hcd thermal mii pata_atiixp thermal_sys usbcore libata nls_base scsi_mod [last unloaded: scsi_wait_scan]
[ 231.149201] Pid: 2266, comm: xorriso Not tainted 2.6.32-5-amd64 #1 GA-MA74GM-S2H
[ 231.149207] RIP: 0010:[<ffffea0003fefb90>] [<ffffea0003fefb90>] 0xffffea0003fefb90
[ 231.149218] RSP: 0018:ffff88011f181be0 EFLAGS: 00010086
[ 231.149223] RAX: ffffea0003fefb90 RBX: ffff880125f7f0c0 RCX: 0000000000000010
[ 231.149229] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff880116578000
[ 231.149235] RBP: ffff880116578000 R08: 0000000000000000 R09: ffff880125f7f0c0
[ 231.149240] R10: 0000000000000000 R11: ffffea0003fefb90 R12: 0000000000000000
[ 231.149246] R13: 0000000000000000 R14: 0000000000000000 R15: ffff880125f7f0c0
[ 231.149253] FS: 00007fb0e663b700(0000) GS:ffff880005380000(0000) knlGS:0000000000000000
[ 231.149259] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 231.149264] CR2: ffffea0003fefb90 CR3: 0000000126bb8000 CR4: 00000000000006e0
[ 231.149270] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 231.149276] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
[ 231.149282] Process xorriso (pid: 2266, threadinfo ffff88011f180000, task ffff88011f06dbd0)
[ 231.149287] Stack:
[ 231.149291] ffffffff8117f7f1 0000001000000041 0000000000000000 0000000000000101
[ 231.149299] <0> ffff88000000dd00 0000000000000041 ffff880125f7f0c0 ffff880116578000
[ 231.149308] <0> 0000000000000000 0000000000000000 0000000000000000 ffff880125f7f0c0
[ 231.149318] Call Trace:
[ 231.149331] [<ffffffff8117f7f1>] ? get_request+0x30/0x2ba
[ 231.149341] [<ffffffff8117fa9c>] ? get_request_wait+0x21/0x188
[ 231.149352] [<ffffffff810b9c48>] ? get_page_from_freelist+0x56b/0x760
[ 231.149375] [<ffffffffa0007274>] ? scsi_execute+0x3b/0x12f [scsi_mod]
[ 231.149395] [<ffffffffa00073a8>] ? scsi_execute_req+0x40/0xb9 [scsi_mod]
[ 231.149413] [<ffffffffa00073ef>] ? scsi_execute_req+0x87/0xb9 [scsi_mod]
[ 231.149432] [<ffffffffa0001d20>] ? ioctl_internal_command+0x64/0x16a [scsi_mod]
[ 231.149451] [<ffffffffa0001e80>] ? scsi_set_medium_removal+0x5a/0x98 [scsi_mod]
[ 231.149465] [<ffffffffa0068eae>] ? cdrom_release+0x18f/0x1fe [cdrom]
[ 231.149475] [<ffffffff810d51ae>] ? page_add_new_anon_rmap+0x58/0x78
[ 231.149486] [<ffffffff810ccb17>] ? handle_mm_fault+0x35c/0x80f
[ 231.149497] [<ffffffffa009a3d2>] ? sr_block_release+0x11/0x1d [sr_mod]
[ 231.149507] [<ffffffff811126a2>] ? __blkdev_put+0x94/0x14c
[ 231.149516] [<ffffffff810efc5d>] ? __fput+0x100/0x1af
[ 231.149524] [<ffffffff810ed0c2>] ? filp_close+0x5b/0x62
[ 231.149531] [<ffffffff810ed15d>] ? sys_close+0x94/0xcd
[ 231.149539] [<ffffffff81010b42>] ? system_call_fastpath+0x16/0x1b
[ 231.149544] Code: 00 15 00 20 2c 45 81 ff ff ff ff 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 10 00 00 00 ad de 00 02 20 00 00 00 ad de <00> 00 00 00 00 00 00 02 01 00 00 00 ff ff ff ff 02 00 02 00 00
[ 231.149607] RIP [<ffffea0003fefb90>] 0xffffea0003fefb90
[ 231.149616] RSP <ffff88011f181be0>
[ 231.149620] CR2: ffffea0003fefb90
[ 231.149626] ---[ end trace 6ae1ca446db37801 ]---
[ 582.544084] usb 1-3: new high speed USB device using ehci_hcd and address 6
[ 582.678026] usb 1-3: New USB device found, idVendor=152d, idProduct=2336
[ 582.678036] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=5
[ 582.678043] usb 1-3: Product: JM20336 SATA, USB Combo
[ 582.678048] usb 1-3: Manufacturer: JMicron
[ 582.678052] usb 1-3: SerialNumber: 306663601043
[ 582.678257] usb 1-3: configuration #1 chosen from 1 choice
[ 582.679378] scsi10 : SCSI emulation for USB Mass Storage devices
[ 582.679564] usb-storage: device found at 6
[ 582.679573] usb-storage: waiting for device to settle before scanning
[ 587.676372] usb-storage: device scan complete
[ 587.680667] scsi 10:0:0:0: CD-ROM Optiarc BD RW BD-5300S 1.04 PQ: 0 ANSI: 0
[ 587.719166] sr3: scsi3-mmc drive: 5x/48x writer dvd-ram cd/rw xa/form2 cdda tray
[ 587.719443] sr 10:0:0:0: Attached scsi CD-ROM sr3
[ 587.719591] sr 10:0:0:0: Attached scsi generic sg3 type 5

** Model information
sys_vendor: Gigabyte Technology Co., Ltd.
product_name: GA-MA74GM-S2H
product_version:
chassis_vendor: Gigabyte Technology Co., Ltd.
chassis_version:
bios_vendor: Award Software International, Inc.
bios_version: FD
board_vendor: Gigabyte Technology Co., Ltd.
board_name: GA-MA74GM-S2H
board_version: x.x

** Loaded modules:
Module Size Used by
powernow_k8 10978 0
cpufreq_powersave 902 0
cpufreq_stats 2659 0
cpufreq_conservative 5162 0
cpufreq_userspace 1992 0
ppdev 5030 0
lp 7462 0
sco 7225 2
bridge 39630 0
stp 1440 1 bridge
bnep 9427 2
rfcomm 29613 0
l2cap 24736 6 bnep,rfcomm
crc16 1319 1 l2cap
bluetooth 41827 6 sco,bnep,rfcomm,l2cap
rfkill 13044 3 bluetooth
kvm_amd 31862 0
kvm 214248 1 kvm_amd
binfmt_misc 6431 1
fuse 50892 1
loop 11799 0
snd_hda_codec_atihdmi 2251 1
snd_hda_codec_realtek 235602 1
snd_hda_intel 20035 1
snd_hda_codec 54244 3 snd_hda_codec_atihdmi,snd_hda_codec_realtek,snd_hd a_intel
snd_hwdep 5380 1 snd_hda_codec
snd_pcm 60503 2 snd_hda_intel,snd_hda_codec
snd_seq 42881 0
snd_timer 15582 2 snd_pcm,snd_seq
snd_seq_device 4493 1 snd_seq
radeon 574844 2
ttm 40146 1 radeon
edac_core 29261 0
drm_kms_helper 20369 1 radeon
snd 46526 10 snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec, snd_hwdep,snd_pcm,snd_seq,snd_timer,snd_seq_device
soundcore 4598 1 snd
parport_pc 18855 1
snd_page_alloc 6249 2 snd_hda_intel,snd_pcm
edac_mce_amd 6433 0
drm 142327 4 radeon,ttm,drm_kms_helper
parport 27954 3 ppdev,lp,parport_pc
k10temp 2715 0
i2c_algo_bit 4225 1 radeon
i2c_piix4 8328 0
i2c_core 15819 5 radeon,drm_kms_helper,drm,i2c_algo_bit,i2c_piix4
shpchp 26264 0
pci_hotplug 21203 1 shpchp
pcspkr 1699 0
evdev 7352 8
processor 29935 1 powernow_k8
button 4650 0
ext3 106630 1
jbd 37085 1 ext3
mbcache 5050 1 ext3
usbhid 33292 2
hid 63257 1 usbhid
sg 24069 0
usb_storage 39961 1
sd_mod 29921 3
sr_mod 12602 1
crc_t10dif 1276 1 sd_mod
cdrom 29415 1 sr_mod
ata_generic 3239 0
ohci_hcd 19343 0
ahci 32534 2
r8169 29279 0
ehci_hcd 32081 0
thermal 11674 0
mii 3210 1 r8169
pata_atiixp 3489 0
thermal_sys 11942 2 processor,thermal
usbcore 122498 7 usbhid,usb_storage,ohci_hcd,ehci_hcd
libata 133760 3 ata_generic,ahci,pata_atiixp
nls_base 6377 1 usbcore
scsi_mod 126517 5 sg,usb_storage,sd_mod,sr_mod,libata

** PCI devices:
00:00.0 Host bridge [0600]: ATI Technologies Inc RS690 Host Bridge [1002:7911]
Subsystem: Giga-byte Technology Device [1458:5000]
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: 32

00:01.0 PCI bridge [0604]: ATI Technologies Inc RS690 PCI to PCI Bridge (Internal gfx) [1002:7912] (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=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 99
Bus: primary=00, secondary=01, subordinate=01, sec-latency=68
I/O behind bridge: 0000e000-0000efff
Memory behind bridge: fde00000-fdffffff
Prefetchable memory behind bridge: 00000000d8000000-00000000dfffffff
Secondary status: 66MHz+ FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- <SERR- <PERR-
BridgeCtl: Parity- SERR- NoISA- VGA+ MAbort- >Reset- FastB2B-
PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
Capabilities: <access denied>

00:06.0 PCI bridge [0604]: ATI Technologies Inc RS690 PCI to PCI Bridge (PCI Express Port 2) [1002:7916] (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: 4 bytes
Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
I/O behind bridge: 0000d000-0000dfff
Memory behind bridge: fdd00000-fddfffff
Prefetchable memory behind bridge: 00000000fda00000-00000000fdafffff
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:11.0 SATA controller [0106]: ATI Technologies Inc SB700/SB800 SATA Controller [AHCI mode] [1002:4391] (prog-if 01 [AHCI 1.0])
Subsystem: Giga-byte Technology Device [1458:b002]
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: 32
Interrupt: pin A routed to IRQ 22
Region 0: I/O ports at ff00 [size=8]
Region 1: I/O ports at fe00 [size=4]
Region 2: I/O ports at fd00 [size=8]
Region 3: I/O ports at fc00 [size=4]
Region 4: I/O ports at fb00 [size=16]
Region 5: Memory at fe02f000 (32-bit, non-prefetchable) [size=1K]
Capabilities: <access denied>
Kernel driver in use: ahci

00:12.0 USB Controller [0c03]: ATI Technologies Inc SB700/SB800 USB OHCI0 Controller [1002:4397] (prog-if 10 [OHCI])
Subsystem: Giga-byte Technology Device [1458:5004]
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: 32, Cache Line Size: 4 bytes
Interrupt: pin A routed to IRQ 16
Region 0: Memory at fe02e000 (32-bit, non-prefetchable) [size=4K]
Kernel driver in use: ohci_hcd

00:12.1 USB Controller [0c03]: ATI Technologies Inc SB700 USB OHCI1 Controller [1002:4398] (prog-if 10 [OHCI])
Subsystem: Giga-byte Technology Device [1458:5004]
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: 32, Cache Line Size: 4 bytes
Interrupt: pin A routed to IRQ 16
Region 0: Memory at fe02d000 (32-bit, non-prefetchable) [size=4K]
Kernel driver in use: ohci_hcd

00:12.2 USB Controller [0c03]: ATI Technologies Inc SB700/SB800 USB EHCI Controller [1002:4396] (prog-if 20 [EHCI])
Subsystem: Giga-byte Technology Device [1458:5004]
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: 32, Cache Line Size: 64 bytes
Interrupt: pin B routed to IRQ 17
Region 0: Memory at fe02c000 (32-bit, non-prefetchable) [size=256]
Capabilities: <access denied>
Kernel driver in use: ehci_hcd

00:13.0 USB Controller [0c03]: ATI Technologies Inc SB700/SB800 USB OHCI0 Controller [1002:4397] (prog-if 10 [OHCI])
Subsystem: Giga-byte Technology Device [1458:5004]
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: 32, Cache Line Size: 4 bytes
Interrupt: pin A routed to IRQ 18
Region 0: Memory at fe02b000 (32-bit, non-prefetchable) [size=4K]
Kernel driver in use: ohci_hcd

00:13.1 USB Controller [0c03]: ATI Technologies Inc SB700 USB OHCI1 Controller [1002:4398] (prog-if 10 [OHCI])
Subsystem: Giga-byte Technology Device [1458:5004]
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: 32, Cache Line Size: 4 bytes
Interrupt: pin A routed to IRQ 18
Region 0: Memory at fe02a000 (32-bit, non-prefetchable) [size=4K]
Kernel driver in use: ohci_hcd

00:13.2 USB Controller [0c03]: ATI Technologies Inc SB700/SB800 USB EHCI Controller [1002:4396] (prog-if 20 [EHCI])
Subsystem: Giga-byte Technology Device [1458:5004]
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: 32, Cache Line Size: 64 bytes
Interrupt: pin B routed to IRQ 19
Region 0: Memory at fe029000 (32-bit, non-prefetchable) [size=256]
Capabilities: <access denied>
Kernel driver in use: ehci_hcd

00:14.0 SMBus [0c05]: ATI Technologies Inc SBx00 SMBus Controller [1002:4385] (rev 3c)
Subsystem: Giga-byte Technology Device [1458:4385]
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-
Capabilities: <access denied>
Kernel driver in use: piix4_smbus

00:14.1 IDE interface [0101]: ATI Technologies Inc SB700/SB800 IDE Controller [1002:439c] (prog-if 8a [Master SecP PriP])
Subsystem: Giga-byte Technology Device [1458:5002]
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: 32
Interrupt: pin A routed to IRQ 16
Region 0: I/O ports at 01f0 [size=8]
Region 1: I/O ports at 03f4 [size=1]
Region 2: I/O ports at 0170 [size=8]
Region 3: I/O ports at 0374 [size=1]
Region 4: I/O ports at fa00 [size=16]
Capabilities: <access denied>
Kernel driver in use: pata_atiixp

00:14.2 Audio device [0403]: ATI Technologies Inc SBx00 Azalia (Intel HDA) [1002:4383]
Subsystem: Giga-byte Technology Device [1458:a002]
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=slow >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 32, Cache Line Size: 4 bytes
Interrupt: pin ? routed to IRQ 16
Region 0: Memory at fe024000 (64-bit, non-prefetchable) [size=16K]
Capabilities: <access denied>
Kernel driver in use: HDA Intel

00:14.3 ISA bridge [0601]: ATI Technologies Inc SB700/SB800 LPC host controller [1002:439d]
Subsystem: Giga-byte Technology Device [1458:5001]
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

00:14.4 PCI bridge [0604]: ATI Technologies Inc SBx00 PCI to PCI Bridge [1002:4384] (prog-if 01 [Subtractive decode])
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: 64
Bus: primary=00, secondary=03, subordinate=03, sec-latency=64
I/O behind bridge: 0000c000-0000cfff
Memory behind bridge: fdc00000-fdcfffff
Prefetchable memory behind bridge: fdb00000-fdbfffff
Secondary status: 66MHz- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort+ <SERR- <PERR-
BridgeCtl: Parity- SERR- NoISA- VGA- MAbort- >Reset- FastB2B-
PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-

00:14.5 USB Controller [0c03]: ATI Technologies Inc SB700/SB800 USB OHCI2 Controller [1002:4399] (prog-if 10 [OHCI])
Subsystem: Giga-byte Technology Device [1458:5004]
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: 32, Cache Line Size: 4 bytes
Interrupt: pin C routed to IRQ 18
Region 0: Memory at fe028000 (32-bit, non-prefetchable) [size=4K]
Kernel driver in use: ohci_hcd

00:18.0 Host bridge [0600]: Advanced Micro Devices [AMD] Family 10h Processor HyperTransport Configuration [1022:1200]
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-
Capabilities: <access denied>

00:18.1 Host bridge [0600]: Advanced Micro Devices [AMD] Family 10h Processor Address Map [1022:1201]
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-

00:18.2 Host bridge [0600]: Advanced Micro Devices [AMD] Family 10h Processor DRAM Controller [1022:1202]
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-

00:18.3 Host bridge [0600]: Advanced Micro Devices [AMD] Family 10h Processor Miscellaneous Control [1022:1203]
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-
Capabilities: <access denied>
Kernel driver in use: k10temp

00:18.4 Host bridge [0600]: Advanced Micro Devices [AMD] Family 10h Processor Link Control [1022:1204]
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-

01:05.0 VGA compatible controller [0300]: ATI Technologies Inc Radeon 2100 [1002:796e] (prog-if 00 [VGA controller])
Subsystem: Giga-byte Technology Device [1458:d000]
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: 32, Cache Line Size: 4 bytes
Interrupt: pin A routed to IRQ 18
Region 0: Memory at d8000000 (64-bit, prefetchable) [size=128M]
Region 2: Memory at fdfe0000 (64-bit, non-prefetchable) [size=64K]
Region 4: I/O ports at ee00 [size=256]
Region 5: Memory at fde00000 (32-bit, non-prefetchable) [size=1M]
Expansion ROM at <unassigned> [disabled]
Capabilities: <access denied>
Kernel driver in use: radeon

01:05.2 Audio device [0403]: ATI Technologies Inc Radeon X1200 Series Audio Controller [1002:7919]
Subsystem: Giga-byte Technology Device [1458:7919]
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: 32, Cache Line Size: 4 bytes
Interrupt: pin B routed to IRQ 19
Region 0: Memory at fdffc000 (64-bit, non-prefetchable) [size=16K]
Capabilities: <access denied>
Kernel driver in use: HDA Intel

02:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller [10ec:8168] (rev 02)
Subsystem: Giga-byte Technology GA-EP45-DS5 Motherboard [1458:e000]
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
Interrupt: pin A routed to IRQ 25
Region 0: I/O ports at de00 [size=256]
Region 2: Memory at fdaff000 (64-bit, prefetchable) [size=4K]
Region 4: Memory at fdae0000 (64-bit, prefetchable) [size=64K]
[virtual] Expansion ROM at fda00000 [disabled] [size=64K]
Capabilities: <access denied>
Kernel driver in use: r8169


** USB devices:
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 002: ID 051d:0002 American Power Conversion Uninterruptible Power Supply
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 002: ID 04d9:048e Holtek Semiconductor, Inc. Optical Mouse
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 006: ID 152d:2336 JMicron Technology Corp. / JMicron USA Technology Corp. Hard Disk Drive
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


-- System Information:
Debian Release: 6.0.2
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=ISO-8859-1) (ignored: LC_ALL set to en_US)
Shell: /bin/sh linked to /bin/bash

Versions of packages linux-image-2.6.32-5-amd64 depends on:
ii debconf [debconf-2.0] 1.5.36.1 Debian configuration management sy
ii initramfs-tools [linux-initra 0.98.8 tools for generating an initramfs
ii linux-base 2.6.32-35 Linux image base package
ii module-init-tools 3.12-1 tools for managing Linux kernel mo

Versions of packages linux-image-2.6.32-5-amd64 recommends:
pn firmware-linux-free <none> (no description available)

Versions of packages linux-image-2.6.32-5-amd64 suggests:
pn grub | lilo <none> (no description available)
pn linux-doc-2.6.32 <none> (no description available)

Versions of packages linux-image-2.6.32-5-amd64 is related to:
pn firmware-bnx2 <none> (no description available)
pn firmware-bnx2x <none> (no description available)
pn firmware-ipw2x00 <none> (no description available)
pn firmware-ivtv <none> (no description available)
pn firmware-iwlwifi <none> (no description available)
pn firmware-linux <none> (no description available)
pn firmware-linux-nonfree <none> (no description available)
pn firmware-qlogic <none> (no description available)
pn firmware-ralink <none> (no description available)
pn xen-hypervisor <none> (no description available)

-- debconf-show failed



--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20111118184412.2569.744.reportbug@debian2.local">h ttp://lists.debian.org/20111118184412.2569.744.reportbug@debian2.local
 
Old 11-18-2011, 07:14 PM
Ben Hutchings
 
Default Bug#649198: linux-image-2.6.32-5-amd64: Kernel Oops on try to use an USB CD drive that was powered off

This sounds like a bug that was fixed in version 2.6.32-36. Please
update to the current stable point release (Debian 6.0.3) and let us
know whether the bug is fixed.

Ben.

--
Ben Hutchings
We get into the habit of living before acquiring the habit of thinking.
- Albert Camus



--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20111118201409.GM3366@decadent.org.uk">http://lists.debian.org/20111118201409.GM3366@decadent.org.uk
 
Old 11-19-2011, 10:40 AM
"Thomas Schmitt"
 
Default Bug#649198: linux-image-2.6.32-5-amd64: Kernel Oops on try to use an USB CD drive that was powered off

Hi,

Ben Hutchings wrote:
> Please
> update to the current stable point release (Debian 6.0.3) and let us
> know whether the bug is fixed.

I am not a skilled Debian admin. So i need instructions for any Debian
specific action you want me to perform.

Following the advise of the maintainer of my upstream packages in Debian
i checked /etc/apt/sources.list and performed apt-get update,
apt-get upgrade.

But after reboot uname -a still says 2.6.32-5.
The date has changed, though:
Linux debian2 2.6.32-5-amd64 #1 SMP Mon Oct 3 03:59:20 UTC 2011 x86_64
The previous one was
Linux debian2 2.6.32-5-amd64 #1 SMP Tue Jun 14 09:42:28 UTC 2011 x86_64

Some messages from that upgrade attempt are listed below.


I can still reproduce the kernel Oops by having a file descriptor open,
switching off the USB drive, and then trying to use the file descriptor
with ioctl(SG_IO).

Nov 19 11:32:21 debian2 kernel: [ 5287.380722] usb 1-3: USB disconnect, address 3
Nov 19 11:32:29 debian2 kernel: [ 5295.341307] PGD 77fb9067 PUD 0
Nov 19 11:32:29 debian2 kernel: [ 5295.341328] CPU 3
Nov 19 11:32:29 debian2 kernel: [ 5295.341332] Modules linked in: ppdev lp sco bridge stp bnep rfcomm l2cap crc16 bluetooth rfkill powernow_k8 cpufreq_powersave cpufreq_stats cpufreq_conservative cpufreq_userspace kvm_amd kvm binfmt_misc fuse loop snd_hda_codec_atihdmi snd_hda_codec_realtek snd_hda_intel snd_hda_codec snd_hwdep snd_pcm snd_seq snd_timer snd_seq_device snd radeon ttm soundcore snd_page_alloc drm_kms_helper drm i2c_algo_bit shpchp pci_hotplug i2c_piix4 i2c_core edac_core edac_mce_amd k10temp pcspkr parport_pc parport button evdev processor ext3 jbd mbcache usbhid hid sg sd_mod sr_mod crc_t10dif cdrom ata_generic usb_storage pata_atiixp ahci libata ohci_hcd ehci_hcd thermal r8169 thermal_sys mii scsi_mod usbcore nls_base [last unloaded: scsi_wait_scan]
Nov 19 11:32:29 debian2 kernel: [ 5295.341436] Pid: 2636, comm: xorriso Not tainted 2.6.32-5-amd64 #1 GA-MA74GM-S2H
Nov 19 11:32:29 debian2 kernel: [ 5295.341442] RIP: 0010:[<0000000101500003>] [<0000000101500003>] 0x101500003
Nov 19 11:32:29 debian2 kernel: [ 5295.341453] RSP: 0018:ffff880109643be0 EFLAGS: 00010206
Nov 19 11:32:29 debian2 kernel: [ 5295.341458] RAX: 0000000101500003 RBX: 0000000000000000 RCX: ffff880123e91198
Nov 19 11:32:29 debian2 kernel: [ 5295.341463] RDX: 0000000000000010 RSI: ffff880123e91110 RDI: ffff880124cf8000
Nov 19 11:32:29 debian2 kernel: [ 5295.341442] RIP: 0010:[<0000000101500003>] [<0000000101500003>] 0x101500003
Nov 19 11:32:29 debian2 kernel: [ 5295.341453] RSP: 0018:ffff880109643be0 EFLAGS: 00010206
Nov 19 11:32:29 debian2 kernel: [ 5295.341458] RAX: 0000000101500003 RBX: 0000000000000000 RCX: ffff880123e91198
Nov 19 11:32:29 debian2 kernel: [ 5295.341463] RDX: 0000000000000010 RSI: ffff880123e91110 RDI: ffff880124cf8000
Nov 19 11:32:29 debian2 kernel: [ 5295.341469] RBP: ffff880124cf8000 R08: ffff880124cf8000 R09: ffff880126aaae40
Nov 19 11:32:29 debian2 kernel: [ 5295.341474] R10: 0000000000000000 R11: 0000000101500003 R12: ffff880123e91110
Nov 19 11:32:29 debian2 kernel: [ 5295.341479] R13: 0000000001000000 R14: 0000000000000001 R15: 0000000000000001
Nov 19 11:32:29 debian2 kernel: [ 5295.341486] FS: 00007faa824d8700(0000) GS:ffff880005380000(0000) knlGS:0000000000000000
Nov 19 11:32:29 debian2 kernel: [ 5295.341492] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Nov 19 11:32:29 debian2 kernel: [ 5295.341497] CR2: 0000000101500003 CR3: 000000007b72e000 CR4: 00000000000006e0
Nov 19 11:32:29 debian2 kernel: [ 5295.341503] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
Nov 19 11:32:29 debian2 kernel: [ 5295.341508] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
Nov 19 11:32:29 debian2 kernel: [ 5295.341515] Process xorriso (pid: 2636, threadinfo ffff880109642000, task ffff880124442a60)
Nov 19 11:32:29 debian2 kernel: [ 5295.341522] ffffffff8117f52f 00000010810c78a0 0000000000000000 0000000000000801
Nov 19 11:32:29 debian2 kernel: [ 5295.341531] <0> ffff88000000c680 0000000000000041 ffff880126aaae40 ffff880124cf8000
Nov 19 11:32:29 debian2 kernel: [ 5295.341540] <0> 0000000000000000 0000000000000000 0000000000000000 ffff880126aaae40
Nov 19 11:32:29 debian2 kernel: [ 5295.341562] [<ffffffff8117f52f>] ? get_request+0x1f0/0x2ba
Nov 19 11:32:29 debian2 kernel: [ 5295.341572] [<ffffffff8117f61a>] ? get_request_wait+0x21/0x188
Nov 19 11:32:29 debian2 kernel: [ 5295.341583] [<ffffffff810b9dd8>] ? get_page_from_freelist+0x56b/0x760
Nov 19 11:32:29 debian2 kernel: [ 5295.341607] [<ffffffffa003e274>] ? scsi_execute+0x3b/0x12f [scsi_mod]
Nov 19 11:32:29 debian2 kernel: [ 5295.341626] [<ffffffffa003e3a8>] ? scsi_execute_req+0x40/0xb9 [scsi_mod]
Nov 19 11:32:29 debian2 kernel: [ 5295.341644] [<ffffffffa003e3ef>] ? scsi_execute_req+0x87/0xb9 [scsi_mod]
Nov 19 11:32:29 debian2 kernel: [ 5295.341662] [<ffffffffa0038d20>] ? ioctl_internal_command+0x64/0x16a [scsi_mod]
Nov 19 11:32:29 debian2 kernel: [ 5295.341681] [<ffffffffa0038e80>] ? scsi_set_medium_removal+0x5a/0x98 [scsi_mod]
Nov 19 11:32:29 debian2 kernel: [ 5295.341695] [<ffffffffa00cdeae>] ? cdrom_release+0x18f/0x1fe [cdrom]
Nov 19 11:32:29 debian2 kernel: [ 5295.341706] [<ffffffff810cccda>] ? handle_mm_fault+0x35c/0x80f
Nov 19 11:32:29 debian2 kernel: [ 5295.341718] [<ffffffffa00d93d2>] ? sr_block_release+0x11/0x1d [sr_mod]
Nov 19 11:32:29 debian2 kernel: [ 5295.341728] [<ffffffff8111285a>] ? __blkdev_put+0x94/0x14c
Nov 19 11:32:29 debian2 kernel: [ 5295.341737] [<ffffffff810efe1d>] ? __fput+0x100/0x1af
Nov 19 11:32:29 debian2 kernel: [ 5295.341745] [<ffffffff810ed282>] ? filp_close+0x5b/0x62
Nov 19 11:32:29 debian2 kernel: [ 5295.341752] [<ffffffff810ed31d>] ? sys_close+0x94/0xcd
Nov 19 11:32:29 debian2 kernel: [ 5295.341761] [<ffffffff81010b42>] ? system_call_fastpath+0x16/0x1b
Nov 19 11:32:29 debian2 kernel: [ 5295.341778] RSP <ffff880109643be0>
Nov 19 11:32:29 debian2 kernel: [ 5295.341821] ---[ end trace 0cf3d73533629d6a ]---

------------------------------------------------------------------------

/etc/apt/sources.list has:

# deb http://ftp.de.debian.org/debian/ squeeze main

deb http://ftp.de.debian.org/debian/ squeeze main
deb-src http://ftp.de.debian.org/debian/ squeeze main

deb http://security.debian.org/ squeeze/updates main
deb-src http://security.debian.org/ squeeze/updates main

deb http://ftp.de.debian.org/debian/ squeeze-updates main
deb-src http://ftp.de.debian.org/debian/ squeeze-updates main

------------------------------------------------------------------------

As superuser: apt-get update

[...no complaints to spot...]

Fetched 119 kB in 5s (23.0 kB/s)
Reading package lists... Done

------------------------------------------------------------------------

As superuser: apt-get upgrade

[...]
Get:25 http://ftp.de.debian.org/debian/ squeeze/main linux-image-2.6.32-5-amd64 amd64 2.6.32-38 [28.7 MB]
[...]
Preparing to replace linux-base 2.6.32-35 (using .../linux-base_2.6.32-38_all.deb) ...
Unpacking replacement linux-base ...
Preparing to replace linux-image-2.6.32-5-amd64 2.6.32-35 (using .../linux-image-2.6.32-5-amd64_2.6.32-38_amd64.deb) ...
Unpacking replacement linux-image-2.6.32-5-amd64 ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 2.6.32-5-amd64 /boot/vmlinuz-2.6.32-5-amd64
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 2.6.32-5-amd64 /boot/vmlinuz-2.6.32-5-amd64
[...]
Setting up linux-base (2.6.32-38) ...
Setting up linux-image-2.6.32-5-amd64 (2.6.32-38) ...
Running depmod.
Running update-initramfs.
update-initramfs: Generating /boot/initrd.img-2.6.32-5-amd64
[...]
------------------------------------------------------------------------

There is only one vmlinuz in /boot
$ ls -lt /boot
drwxr-xr-x 3 root root 4096 Nov 19 09:57 grub
-rw-r--r-- 1 root root 9263062 Nov 19 09:56 initrd.img-2.6.32-5-amd64
-rw-r--r-- 1 root root 106153 Oct 3 10:19 config-2.6.32-5-amd64
-rw-r--r-- 1 root root 1663715 Oct 3 10:19 System.map-2.6.32-5-amd64
-rw-r--r-- 1 root root 2420384 Oct 3 10:10 vmlinuz-2.6.32-5-amd64

------------------------------------------------------------------------


Have a nice day

Thomas



--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 9795498422376@192.168.2.69">http://lists.debian.org/9795498422376@192.168.2.69
 
Old 11-19-2011, 03:22 PM
Ben Hutchings
 
Default Bug#649198: linux-image-2.6.32-5-amd64: Kernel Oops on try to use an USB CD drive that was powered off

On Sat, 2011-11-19 at 12:40 +0100, Thomas Schmitt wrote:
> Hi,
>
> Ben Hutchings wrote:
> > Please
> > update to the current stable point release (Debian 6.0.3) and let us
> > know whether the bug is fixed.
>
> I am not a skilled Debian admin. So i need instructions for any Debian
> specific action you want me to perform.
>
> Following the advise of the maintainer of my upstream packages in Debian
> i checked /etc/apt/sources.list and performed apt-get update,
> apt-get upgrade.

That's right.

> But after reboot uname -a still says 2.6.32-5.
> The date has changed, though:
> Linux debian2 2.6.32-5-amd64 #1 SMP Mon Oct 3 03:59:20 UTC 2011 x86_64
> The previous one was
> Linux debian2 2.6.32-5-amd64 #1 SMP Tue Jun 14 09:42:28 UTC 2011 x86_64

The version string that uname shows is kept unchanged as long as
possible, so that third-party kernel modules do not need to be rebuilt
after an upgrade. You can use 'cat /proc/version' to get the package
version.

> Some messages from that upgrade attempt are listed below.
>
>
> I can still reproduce the kernel Oops by having a file descriptor open,
> switching off the USB drive, and then trying to use the file descriptor
> with ioctl(SG_IO).
>
> Nov 19 11:32:21 debian2 kernel: [ 5287.380722] usb 1-3: USB disconnect, address 3
> Nov 19 11:32:29 debian2 kernel: [ 5295.341307] PGD 77fb9067 PUD 0
> Nov 19 11:32:29 debian2 kernel: [ 5295.341328] CPU 3
> Nov 19 11:32:29 debian2 kernel: [ 5295.341332] Modules linked in: ppdev lp sco bridge stp bnep rfcomm l2cap crc16 bluetooth rfkill powernow_k8 cpufreq_powersave cpufreq_stats cpufreq_conservative cpufreq_userspace kvm_amd kvm binfmt_misc fuse loop snd_hda_codec_atihdmi snd_hda_codec_realtek snd_hda_intel snd_hda_codec snd_hwdep snd_pcm snd_seq snd_timer snd_seq_device snd radeon ttm soundcore snd_page_alloc drm_kms_helper drm i2c_algo_bit shpchp pci_hotplug i2c_piix4 i2c_core edac_core edac_mce_amd k10temp pcspkr parport_pc parport button evdev processor ext3 jbd mbcache usbhid hid sg sd_mod sr_mod crc_t10dif cdrom ata_generic usb_storage pata_atiixp ahci libata ohci_hcd ehci_hcd thermal r8169 thermal_sys mii scsi_mod usbcore nls_base [last unloaded: scsi_wait_scan]
> Nov 19 11:32:29 debian2 kernel: [ 5295.341436] Pid: 2636, comm: xorriso Not tainted 2.6.32-5-amd64 #1 GA-MA74GM-S2H
> Nov 19 11:32:29 debian2 kernel: [ 5295.341442] RIP: 0010:[<0000000101500003>] [<0000000101500003>] 0x101500003
> Nov 19 11:32:29 debian2 kernel: [ 5295.341453] RSP: 0018:ffff880109643be0 EFLAGS: 00010206
> Nov 19 11:32:29 debian2 kernel: [ 5295.341458] RAX: 0000000101500003 RBX: 0000000000000000 RCX: ffff880123e91198
> Nov 19 11:32:29 debian2 kernel: [ 5295.341463] RDX: 0000000000000010 RSI: ffff880123e91110 RDI: ffff880124cf8000
> Nov 19 11:32:29 debian2 kernel: [ 5295.341442] RIP: 0010:[<0000000101500003>] [<0000000101500003>] 0x101500003
> Nov 19 11:32:29 debian2 kernel: [ 5295.341453] RSP: 0018:ffff880109643be0 EFLAGS: 00010206
> Nov 19 11:32:29 debian2 kernel: [ 5295.341458] RAX: 0000000101500003 RBX: 0000000000000000 RCX: ffff880123e91198
> Nov 19 11:32:29 debian2 kernel: [ 5295.341463] RDX: 0000000000000010 RSI: ffff880123e91110 RDI: ffff880124cf8000
> Nov 19 11:32:29 debian2 kernel: [ 5295.341469] RBP: ffff880124cf8000 R08: ffff880124cf8000 R09: ffff880126aaae40
> Nov 19 11:32:29 debian2 kernel: [ 5295.341474] R10: 0000000000000000 R11: 0000000101500003 R12: ffff880123e91110
> Nov 19 11:32:29 debian2 kernel: [ 5295.341479] R13: 0000000001000000 R14: 0000000000000001 R15: 0000000000000001
> Nov 19 11:32:29 debian2 kernel: [ 5295.341486] FS: 00007faa824d8700(0000) GS:ffff880005380000(0000) knlGS:0000000000000000
> Nov 19 11:32:29 debian2 kernel: [ 5295.341492] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
> Nov 19 11:32:29 debian2 kernel: [ 5295.341497] CR2: 0000000101500003 CR3: 000000007b72e000 CR4: 00000000000006e0
> Nov 19 11:32:29 debian2 kernel: [ 5295.341503] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
> Nov 19 11:32:29 debian2 kernel: [ 5295.341508] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
> Nov 19 11:32:29 debian2 kernel: [ 5295.341515] Process xorriso (pid: 2636, threadinfo ffff880109642000, task ffff880124442a60)
> Nov 19 11:32:29 debian2 kernel: [ 5295.341522] ffffffff8117f52f 00000010810c78a0 0000000000000000 0000000000000801
> Nov 19 11:32:29 debian2 kernel: [ 5295.341531] <0> ffff88000000c680 0000000000000041 ffff880126aaae40 ffff880124cf8000
> Nov 19 11:32:29 debian2 kernel: [ 5295.341540] <0> 0000000000000000 0000000000000000 0000000000000000 ffff880126aaae40
> Nov 19 11:32:29 debian2 kernel: [ 5295.341562] [<ffffffff8117f52f>] ? get_request+0x1f0/0x2ba
> Nov 19 11:32:29 debian2 kernel: [ 5295.341572] [<ffffffff8117f61a>] ? get_request_wait+0x21/0x188
> Nov 19 11:32:29 debian2 kernel: [ 5295.341583] [<ffffffff810b9dd8>] ? get_page_from_freelist+0x56b/0x760
> Nov 19 11:32:29 debian2 kernel: [ 5295.341607] [<ffffffffa003e274>] ? scsi_execute+0x3b/0x12f [scsi_mod]
> Nov 19 11:32:29 debian2 kernel: [ 5295.341626] [<ffffffffa003e3a8>] ? scsi_execute_req+0x40/0xb9 [scsi_mod]
> Nov 19 11:32:29 debian2 kernel: [ 5295.341644] [<ffffffffa003e3ef>] ? scsi_execute_req+0x87/0xb9 [scsi_mod]
> Nov 19 11:32:29 debian2 kernel: [ 5295.341662] [<ffffffffa0038d20>] ? ioctl_internal_command+0x64/0x16a [scsi_mod]
> Nov 19 11:32:29 debian2 kernel: [ 5295.341681] [<ffffffffa0038e80>] ? scsi_set_medium_removal+0x5a/0x98 [scsi_mod]
> Nov 19 11:32:29 debian2 kernel: [ 5295.341695] [<ffffffffa00cdeae>] ? cdrom_release+0x18f/0x1fe [cdrom]
> Nov 19 11:32:29 debian2 kernel: [ 5295.341706] [<ffffffff810cccda>] ? handle_mm_fault+0x35c/0x80f
> Nov 19 11:32:29 debian2 kernel: [ 5295.341718] [<ffffffffa00d93d2>] ? sr_block_release+0x11/0x1d [sr_mod]
> Nov 19 11:32:29 debian2 kernel: [ 5295.341728] [<ffffffff8111285a>] ? __blkdev_put+0x94/0x14c
> Nov 19 11:32:29 debian2 kernel: [ 5295.341737] [<ffffffff810efe1d>] ? __fput+0x100/0x1af
> Nov 19 11:32:29 debian2 kernel: [ 5295.341745] [<ffffffff810ed282>] ? filp_close+0x5b/0x62
> Nov 19 11:32:29 debian2 kernel: [ 5295.341752] [<ffffffff810ed31d>] ? sys_close+0x94/0xcd
> Nov 19 11:32:29 debian2 kernel: [ 5295.341761] [<ffffffff81010b42>] ? system_call_fastpath+0x16/0x1b
> Nov 19 11:32:29 debian2 kernel: [ 5295.341778] RSP <ffff880109643be0>
> Nov 19 11:32:29 debian2 kernel: [ 5295.341821] ---[ end trace 0cf3d73533629d6a ]---
[...]

This shows a crash in close() not ioctl(). But anyway, definitely
another bug to be fixed.

Ben.

--
Ben Hutchings
The world is coming to an end. Please log off.
 
Old 11-19-2011, 04:34 PM
"Thomas Schmitt"
 
Default Bug#649198: linux-image-2.6.32-5-amd64: Kernel Oops on try to use an USB CD drive that was powered off

Hi,

> cat /proc/version

Says:
Linux version 2.6.32-5-amd64 (Debian 2.6.32-38) (ben@decadent.org.uk) (gcc version 4.3.5 (Debian 4.3.5-4) ) #1 SMP Mon Oct 3 03:59:20 UTC 2011

I was confused by the similarity of "2.6.32-5-amd64" and "2.6.32-38"
which made me think that "-38" should replace "-5".


> This shows a crash in close() not ioctl().

This is plausible, now that you stated it.

The xorriso command -toc causes ioctl(SG_IO) on the open filedescriptor.
If the ioctl() fails, then the file descriptor gets closed, indeed.

The original Oopses, which made me dig by xorriso, were with qemu which
uses SG_IO, and with blkid, which probably does not.
The Oops with qemu happened when i shut down client and qemu. At that
time qemu had reported I/O errors as reply to my attempts to talk to
the powerless drive. blkid was started by udevd.


> But anyway, definitely another bug to be fixed.

It was always a cool feature of Linux and USB drives that i could
revive a stuck drive without rebooting the system. Very helpful when
doing MMC experiments.
This still works with squeeze, but it is quite ugly when all terminals
scream "Kernel Oops" and a black window pops up urging me to report it.

The machine is dedicated to testing. Just give me instructions if you
want me to make experiments.


Have a nice day

Thomas




--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 97955114524715@192.168.2.69">http://lists.debian.org/97955114524715@192.168.2.69
 

Thread Tools




All times are GMT. The time now is 10:51 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org