[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: linux-image-2.26.32-5-686: Kerneloops and race condition after USB2 HDD disconnection, preventing clean shutdown



On Fri, Oct 07, 2011 at 11:24:49PM +0100, Ad L. wrote:
> Prior to the bug report:
> - the use of any mailing list is new to me, and therefore I'm
> refraining from attaching any files, even if they're plain text files

Attachments are fine, but:

> - I hope I'm sending in a proper bug report to the right place.

You should actually use the 'reportbug' program.  That will end
up sending the bug report to this list, but it will also be
recorded in the bug tracking system (BTS) with its own number.

> - Just found these closely related bugs mentioned, but still filing
> the bug report, as I'm uncertain if this one is similar enough, the
> platform is different (i386, not amd64),

There is really very little difference between architectures above
low-level virtual memory management and some basic device drivers,
and even those are very similar between 32-bit and 64-bit x86.

But you are seeing a BUG message reported from a completely
different place in the kernel:

[...]
> Oct  7 07:54:49 localhost kernel: [ 1412.873695] BUG: unable to handle
> kernel paging request at 015ef000
> Oct  7 07:54:49 localhost kernel: [ 1412.873706] IP: [<c1140c27>]
> __percpu_counter_add+0x21/0x6d
> Oct  7 07:54:49 localhost kernel: [ 1412.873727] *pde = 00000000
> Oct  7 07:54:49 localhost kernel: [ 1412.873735] Oops: 0000 [#1] SMP
> Oct  7 07:54:49 localhost kernel: [ 1412.873745] last sysfs file:
> /sys/devices/pci0000:00/0000:00:1d.7/usb1/1-3/1-3:1.0/host6/target6:0:0/6:0:0:0/block/sde/size
> Oct  7 07:54:49 localhost kernel: [ 1412.873756] Modules linked in:
> usb_storage xt_multiport iptable_filter ip_tables x_tables
> speedstep_lib cpufreq_stats cpufreq_userspace cpufreq_conservative
> cpufreq_powersave fuse ext2 ext4 jbd2 crc16 loop snd_wavefront
> snd_cs4236 snd_wss_lib snd_opl3_lib snd_hwdep radeon snd_mpu401
> snd_mpu401_uart snd_seq_midi snd_seq_midi_event snd_intel8x0
> snd_ac97_codec ac97_bus snd_rawmidi snd_pcm snd_seq snd_timer
> snd_seq_device i2c_i801 psmouse ttm snd ns558 drm_kms_helper drm
> i2c_algo_bit pcspkr gameport soundcore serio_raw evdev snd_page_alloc
> i2c_core button shpchp processor rng_core pci_hotplug ext3 jbd mbcache
> raid1 md_mod dm_mirror dm_region_hash dm_log dm_mod sg sr_mod cdrom
> sd_mod crc_t10dif ata_generic fan 8139too ata_piix uhci_hcd sata_via
> thermal 8139cp mii ehci_hcd libata scsi_mod usbcore nls_base
> thermal_sys [last unloaded: scsi_wait_scan]
> Oct  7 07:54:49 localhost kernel: [ 1412.873949]
> Oct  7 07:54:49 localhost kernel: [ 1412.873959] Pid: 2489, comm:
> xfdesktop Not tainted (2.6.32-5-686 #1)
> Oct  7 07:54:49 localhost kernel: [ 1412.873969] EIP:
> 0060:[<c1140c27>] EFLAGS: 00010006 CPU: 1
> Oct  7 07:54:49 localhost kernel: [ 1412.873979] EIP is at
> __percpu_counter_add+0x21/0x6d
> Oct  7 07:54:49 localhost kernel: [ 1412.873987] EAX: 00000001 EBX:
> f658600c ECX: 00000000 EDX: 00000001
> Oct  7 07:54:49 localhost kernel: [ 1412.873994] ESI: f6a55728 EDI:
> 015ef000 EBP: 00000010 ESP: f6279cf4
> Oct  7 07:54:49 localhost kernel: [ 1412.874001]  DS: 007b ES: 007b
> FS: 00d8 GS: 00e0 SS: 0068
> Oct  7 07:54:49 localhost kernel: [ 1412.874010] Process xfdesktop
> (pid: 2489, ti=f6278000 task=f6cf7b80 task.ti=f6278000)
> Oct  7 07:54:49 localhost kernel: [ 1412.874016] Stack:
> Oct  7 07:54:49 localhost kernel: [ 1412.874021]  f658600c f6cf7b80
> f6a55728 00000000 f71af400 c108d515 00000010 00000000
> Oct  7 07:54:49 localhost kernel: [ 1412.874039] <0> c1bb45e0 c10cded2
> 00000000 f5e85d40 f5867200 f8c5da83 00000001 033d4acb
> Oct  7 07:54:49 localhost kernel: [ 1412.874059] <0> 00000000 f5867200
> f5867200 00000000 00000001 f8c60077 f6279d84 f8c601c8
> Oct  7 07:54:49 localhost kernel: [ 1412.874081] Call Trace:
> Oct  7 07:54:49 localhost kernel: [ 1412.874099]  [<c108d515>] ?
> account_page_dirtied+0x2f/0x4b
> Oct  7 07:54:49 localhost kernel: [ 1412.874114]  [<c10cded2>] ?
> __set_page_dirty+0x44/0x82
> Oct  7 07:54:49 localhost kernel: [ 1412.874156]  [<f8c5da83>] ?
> ext4_commit_super+0x114/0x160 [ext4]
> Oct  7 07:54:49 localhost kernel: [ 1412.874188]  [<f8c60077>] ?
> ext4_handle_error+0x6f/0x8e [ext4]
> Oct  7 07:54:49 localhost kernel: [ 1412.874219]  [<f8c601c8>] ?
> ext4_error+0x3a/0x40 [ext4]
> Oct  7 07:54:49 localhost kernel: [ 1412.874250]  [<f8c522a8>] ?
> ext4_find_entry+0x3a9/0x517 [ext4]
> Oct  7 07:54:49 localhost kernel: [ 1412.874269]  [<c108c109>] ?
> __alloc_pages_nodemask+0xf3/0x4d9
> Oct  7 07:54:49 localhost kernel: [ 1412.874286]  [<c10c1064>] ?
> d_alloc+0x1b/0x154
> Oct  7 07:54:49 localhost kernel: [ 1412.874316]  [<f8c52cfb>] ?
> ext4_lookup+0x24/0xae [ext4]
> Oct  7 07:54:49 localhost kernel: [ 1412.874328]  [<c10b9ca9>] ?
> do_lookup+0xa6/0x116
> Oct  7 07:54:49 localhost kernel: [ 1412.874339]  [<c10ba518>] ?
> __link_path_walk+0x4b7/0x5de
> Oct  7 07:54:49 localhost kernel: [ 1412.874350]  [<c10ba7f5>] ?
> path_walk+0x4f/0xa3
> Oct  7 07:54:49 localhost kernel: [ 1412.874362]  [<c10bb971>] ?
> do_path_lookup+0x1f/0x69
> Oct  7 07:54:49 localhost kernel: [ 1412.874373]  [<c10bcad9>] ?
> user_path_at+0x37/0x5f
> Oct  7 07:54:49 localhost kernel: [ 1412.874388]  [<c10b6257>] ?
> vfs_fstatat+0x2a/0x50
> Oct  7 07:54:49 localhost kernel: [ 1412.874400]  [<c10a53e9>] ?
> free_pages_and_swap_cache+0x3b/0x48
> Oct  7 07:54:49 localhost kernel: [ 1412.874411]  [<c10b62be>] ?
> vfs_lstat+0x13/0x15
> Oct  7 07:54:49 localhost kernel: [ 1412.874422]  [<c10b62cf>] ?
> sys_lstat64+0xf/0x23
> Oct  7 07:54:49 localhost kernel: [ 1412.874435]  [<c109e9c7>] ?
> remove_vma+0x43/0x48
> Oct  7 07:54:49 localhost kernel: [ 1412.874446]  [<c109f608>] ?
> do_munmap+0x221/0x23b
> Oct  7 07:54:49 localhost kernel: [ 1412.874456]  [<c109f65b>] ?
> sys_munmap+0x39/0x3e
> Oct  7 07:54:49 localhost kernel: [ 1412.874470]  [<c10030fb>] ?
> sysenter_do_call+0x12/0x28
> Oct  7 07:54:49 localhost kernel: [ 1412.874476] Code: ce 12 00 31 d2
> 89 d0 5b 5e c3 55 57 56 53 83 ec 04 89 04 24 8b 1c 24 64 a1 54 39 41
> c1 8b 6c 24 18 8b 7b 14 03 3c 85 30 7d 3b c1 <8b> 07 89 c3 89 c6 c1 fe
> 1f 89 e8 01 d3 11 ce 99 39 d6 7f 15 7c
> Oct  7 07:54:49 localhost kernel: [ 1412.874594] EIP: [<c1140c27>]
> __percpu_counter_add+0x21/0x6d SS:ESP 0068:f6279cf4
> Oct  7 07:54:49 localhost kernel: [ 1412.874609] CR2: 00000000015ef000
> Oct  7 07:54:49 localhost kernel: [ 1412.874618] ---[ end trace
> aad58f9263b7c46e ]---
[...]

Please use reportbug to submit a report to the BTS.  Don't include
with hwinfo, fstab or mtab.  Do include the kernel log from boot time,
the BUG messages (from 'cut here' down to 'end trace') and any
messages logged shortly before.

Ben.

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


Reply to: