From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758009Ab1IAVEp (ORCPT ); Thu, 1 Sep 2011 17:04:45 -0400 Received: from silver.sucs.swan.ac.uk ([137.44.10.1]:54184 "EHLO silver.sucs.swan.ac.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757887Ab1IAVEo (ORCPT ); Thu, 1 Sep 2011 17:04:44 -0400 Date: Thu, 1 Sep 2011 22:04:42 +0100 From: Sitsofe Wheeler To: Jens Axboe Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: BUG: unable to handle kernel paging request at 6b6b6c6f (bdi_lock_two+0x22/0x50) Message-ID: <20110901210442.GA9660@sucs.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When pulling out a USB flash disk formatted with a single FAT32 partition the following oops and errors are produced: [ 112.414392] FAT-fs (sdc1): Directory bread(block 2303) failed [ 112.427087] FAT-fs (sdc1): FAT read failed (blocknr 685) [ 112.427466] Buffer I/O error on device sdc1, logical block 13094017 [ 112.427474] lost page write due to I/O error on sdc1 [ 112.427744] FAT-fs (sdc1): FAT read failed (blocknr 685) [ 112.427832] FAT-fs (sdc1): unable to read inode block for updating (i_pos 209504275) [ 112.523097] BUG: unable to handle kernel paging request at 6b6b6c6f [ 112.523229] IP: [] __lock_acquire+0x23f/0x1740 [ 112.523328] *pde = 00000000 [ 112.523381] Oops: 0002 [#1] DEBUG_PAGEALLOC [ 112.523459] [ 112.523490] Pid: 1486, comm: nautilus Not tainted 3.1.0-rc4-00131-g9e79e3e-dirty #488 ASUSTeK Computer INC. 900/900 [ 112.523665] EIP: 0060:[] EFLAGS: 00010002 CPU: 0 [ 112.523751] EIP is at __lock_acquire+0x23f/0x1740 [ 112.523826] EAX: 00000001 EBX: daa5b510 ECX: 6b6b6b6b EDX: 00000000 [ 112.523922] ESI: 00000002 EDI: ee4f9e84 EBP: dae63d2c ESP: dae63cbc [ 112.524011] DS: 007b ES: 007b FS: 0000 GS: 00e0 SS: 0068 [ 112.524011] Process nautilus (pid: 1486, ti=dae62000 task=daa5b510 task.ti=dae62000) [ 112.524011] Stack: [ 112.524011] dae63d38 00000246 b026be79 00000000 00160007 00000006 dc198958 00000282 [ 112.524011] daa5b528 daa5b950 b08ff1b0 00000000 b0afab18 00000001 00000000 000052d7 [ 112.524011] ee802280 ef513308 dc198e60 dc198958 00000282 dc198000 00160006 b0ca9414 [ 112.524011] Call Trace: [ 112.524011] [] ? kobject_release+0x49/0x90 [ 112.524011] [] lock_acquire+0x7b/0x90 [ 112.524011] [] ? bdi_lock_two+0x22/0x50 [ 112.524011] [] _raw_spin_lock_nested+0x3a/0x50 [ 112.524011] [] ? bdi_lock_two+0x22/0x50 [ 112.524011] [] bdi_lock_two+0x22/0x50 [ 112.524011] [] bdev_inode_switch_bdi+0x2e/0xa0 [ 112.524011] [] __blkdev_put+0xbf/0x160 [ 112.524011] [] __blkdev_put+0xf3/0x160 [ 112.524011] [] blkdev_put+0x42/0x120 [ 112.524011] [] kill_block_super+0x3f/0x70 [ 112.524011] [] deactivate_locked_super+0x3d/0x70 [ 112.524011] [] deactivate_super+0x50/0x70 [ 112.524011] [] mntput_no_expire+0x68/0xa0 [ 112.524011] [] mntput+0x13/0x30 [ 112.524011] [] path_put+0x15/0x20 [ 112.524011] [] terminate_walk+0x4d/0x60 [ 112.524011] [] do_last+0x60f/0x6d0 [ 112.524011] [] path_openat+0x98/0x320 [ 112.524011] [] ? lock_release_non_nested+0x57/0x2e0 [ 112.524011] [] do_filp_open+0x30/0x80 [ 112.524011] [] ? _raw_spin_unlock+0x1d/0x30 [ 112.524011] [] ? alloc_fd+0xbc/0x100 [ 112.524011] [] do_sys_open+0xf1/0x1c0 [ 112.524011] [] sys_open+0x29/0x40 [ 112.524011] [] sysenter_do_call+0x12/0x36 [ 112.524011] Code: 83 3d 60 ed c6 b0 00 75 d3 b8 88 3c 65 b0 ba 77 0b 00 00 e8 14 0f fd ff 31 c0 eb c2 8b 45 c4 8b 4c 87 04 85 c9 0f 84 1c fe ff ff 81 04 01 00 00 a1 e4 d7 77 b0 8b 93 20 04 00 00 85 c0 89 55 [ 112.524011] EIP: [] __lock_acquire+0x23f/0x1740 SS:ESP 0068:dae63cbc [ 112.524011] CR2: 000000006b6b6c6f [ 112.524011] BUG: scheduling while atomic: nautilus/1486/0x10000003 [ 112.524011] INFO: lockdep is turned off. [ 112.524011] irq event stamp: 140881 [ 112.524011] hardirqs last enabled at (140881): [] __slab_free+0x1d5/0x300 [ 112.524011] hardirqs last disabled at (140880): [] __slab_free+0x10b/0x300 [ 112.524011] softirqs last enabled at (140830): [] __do_softirq+0xd0/0x130 [ 112.524011] softirqs last disabled at (140819): [] do_softirq+0x7e/0xd0 [ 112.524011] Pid: 1486, comm: nautilus Not tainted 3.1.0-rc4-00131-g9e79e3e-dirty #488 [ 112.524011] Call Trace: [ 112.524011] [] __schedule_bug+0x6e/0x80 [ 112.524011] [] schedule+0x547/0x640 [ 112.524011] [] ? bit_putcs+0x29f/0x410 [ 112.524011] [] _cond_resched+0x2f/0x50 [ 112.524011] [] mutex_lock_nested+0x26/0x50 [ 112.524011] [] drm_fb_helper_pan_display+0x26/0xd0 [ 112.524011] [] fb_pan_display+0x108/0x160 [ 112.524011] [] ? drm_fb_helper_fill_var+0x200/0x200 [ 112.524011] [] bit_update_start+0x1d/0x50 [ 112.524011] [] fbcon_switch+0x375/0x540 [ 112.524011] [] ? bit_cursor+0x522/0x5a0 [ 112.524011] [] redraw_screen+0x12e/0x230 [ 112.524011] [] fbcon_blank+0x1d9/0x2f0 [ 112.524011] [] ? up+0x22/0x40 [ 112.524011] [] ? console_unlock+0x1f5/0x260 [ 112.524011] [] ? trace_hardirqs_off+0xb/0x10 [ 112.524011] [] ? _raw_spin_unlock_irqrestore+0x57/0x60 [ 112.524011] [] ? debug_object_activate+0xc9/0x140 [ 112.524011] [] ? trace_hardirqs_off+0xb/0x10 [ 112.524011] [] ? _raw_spin_unlock_irqrestore+0x57/0x60 [ 112.524011] [] ? mod_timer+0x100/0x1b0 [ 112.524011] [] ? trace_hardirqs_off+0xb/0x10 [ 112.524011] [] ? _raw_spin_unlock_irqrestore+0x57/0x60 [ 112.524011] [] ? mod_timer+0x100/0x1b0 [ 112.524011] [] do_unblank_screen+0xa4/0x1d0 [ 112.524011] [] unblank_screen+0xa/0x10 [ 112.524011] [] bust_spinlocks+0x15/0x30 [ 112.524011] [] oops_end+0x13/0x90 [ 112.524011] [] ? printk+0x18/0x1a [ 112.524011] [] no_context+0xbe/0x150 [ 112.524011] [] __bad_area_nosemaphore+0x98/0x140 [ 112.524011] [] bad_area_nosemaphore+0x12/0x20 [ 112.524011] [] do_page_fault+0x220/0x330 [ 112.524011] [] ? dump_trace+0x7d/0xf0 [ 112.524011] [] ? mark_held_locks+0x65/0xf0 [ 112.524011] [] ? vmalloc_sync_all+0x120/0x120 [ 112.524011] [] error_code+0x6a/0x70 [ 112.524011] [] ? __lock_acquire+0x23f/0x1740 [ 112.524011] [] ? kobject_release+0x49/0x90 [ 112.524011] [] lock_acquire+0x7b/0x90 [ 112.524011] [] ? bdi_lock_two+0x22/0x50 [ 112.524011] [] _raw_spin_lock_nested+0x3a/0x50 [ 112.524011] [] ? bdi_lock_two+0x22/0x50 [ 112.524011] [] bdi_lock_two+0x22/0x50 [ 112.524011] [] bdev_inode_switch_bdi+0x2e/0xa0 [ 112.524011] [] __blkdev_put+0xbf/0x160 [ 112.524011] [] __blkdev_put+0xf3/0x160 [ 112.524011] [] blkdev_put+0x42/0x120 [ 112.524011] [] kill_block_super+0x3f/0x70 [ 112.524011] [] deactivate_locked_super+0x3d/0x70 [ 112.524011] [] deactivate_super+0x50/0x70 [ 112.524011] [] mntput_no_expire+0x68/0xa0 [ 112.524011] [] mntput+0x13/0x30 [ 112.524011] [] path_put+0x15/0x20 [ 112.524011] [] terminate_walk+0x4d/0x60 [ 112.524011] [] do_last+0x60f/0x6d0 [ 112.524011] [] path_openat+0x98/0x320 [ 112.524011] [] ? lock_release_non_nested+0x57/0x2e0 [ 112.524011] [] do_filp_open+0x30/0x80 [ 112.524011] [] ? _raw_spin_unlock+0x1d/0x30 [ 112.524011] [] ? alloc_fd+0xbc/0x100 [ 112.524011] [] do_sys_open+0xf1/0x1c0 [ 112.524011] [] sys_open+0x29/0x40 [ 112.524011] [] sysenter_do_call+0x12/0x36 [ 112.714179] BUG: scheduling while atomic: nautilus/1486/0x10000003 [ 112.715923] INFO: lockdep is turned off. [ 112.717530] Pid: 1486, comm: nautilus Not tainted 3.1.0-rc4-00131-g9e79e3e-dirty #488 [ 112.719609] Call Trace: [ 112.721318] [] __schedule_bug+0x6e/0x80 [ 112.723065] [] schedule+0x547/0x640 [ 112.724806] [] ? get_color+0x29/0x130 [ 112.726566] [] _cond_resched+0x2f/0x50 [ 112.728298] [] mutex_lock_nested+0x26/0x50 [ 112.730047] [] drm_fb_helper_pan_display+0x26/0xd0 [ 112.731817] [] fb_pan_display+0x108/0x160 [ 112.733593] [] ? drm_fb_helper_fill_var+0x200/0x200 [ 112.735420] [] bit_update_start+0x1d/0x50 [ 112.737226] [] fbcon_switch+0x375/0x540 [ 112.739058] [] ? bit_cursor+0x522/0x5a0 [ 112.740862] [] redraw_screen+0x12e/0x230 [ 112.742672] [] ? mod_timer+0x31/0x1b0 [ 112.744487] [] do_unblank_screen+0x17c/0x1d0 [ 112.746315] [] unblank_screen+0xa/0x10 [ 112.748426] [] bust_spinlocks+0x15/0x30 [ 112.750328] [] oops_end+0x13/0x90 [ 112.752201] [] ? printk+0x18/0x1a [ 112.754086] [] no_context+0xbe/0x150 [ 112.755959] [] __bad_area_nosemaphore+0x98/0x140 [ 112.757862] [] bad_area_nosemaphore+0x12/0x20 [ 112.759782] [] do_page_fault+0x220/0x330 [ 112.761731] [] ? dump_trace+0x7d/0xf0 [ 112.763669] [] ? mark_held_locks+0x65/0xf0 [ 112.765611] [] ? vmalloc_sync_all+0x120/0x120 [ 112.767584] [] error_code+0x6a/0x70 [ 112.769537] [] ? __lock_acquire+0x23f/0x1740 [ 112.771510] [] ? kobject_release+0x49/0x90 [ 112.773483] [] lock_acquire+0x7b/0x90 [ 112.775451] [] ? bdi_lock_two+0x22/0x50 [ 112.777465] [] _raw_spin_lock_nested+0x3a/0x50 [ 112.779468] [] ? bdi_lock_two+0x22/0x50 [ 112.781477] [] bdi_lock_two+0x22/0x50 [ 112.783478] [] bdev_inode_switch_bdi+0x2e/0xa0 [ 112.785440] [] __blkdev_put+0xbf/0x160 [ 112.787361] [] __blkdev_put+0xf3/0x160 [ 112.789192] [] blkdev_put+0x42/0x120 [ 112.791021] [] kill_block_super+0x3f/0x70 [ 112.792860] [] deactivate_locked_super+0x3d/0x70 [ 112.794713] [] deactivate_super+0x50/0x70 [ 112.796559] [] mntput_no_expire+0x68/0xa0 [ 112.798399] [] mntput+0x13/0x30 [ 112.800225] [] path_put+0x15/0x20 [ 112.802018] [] terminate_walk+0x4d/0x60 [ 112.803791] [] do_last+0x60f/0x6d0 [ 112.805546] [] path_openat+0x98/0x320 [ 112.807312] [] ? lock_release_non_nested+0x57/0x2e0 [ 112.809105] [] do_filp_open+0x30/0x80 [ 112.810922] [] ? _raw_spin_unlock+0x1d/0x30 [ 112.812755] [] ? alloc_fd+0xbc/0x100 [ 112.814545] [] do_sys_open+0xf1/0x1c0 [ 112.816341] [] sys_open+0x29/0x40 [ 112.818138] [] sysenter_do_call+0x12/0x36 [ 112.832789] ---[ end trace c920879a71b7788e ]--- [ 112.832801] note: nautilus[1486] exited with preempt_count 2 [ 112.832809] BUG: sleeping function called from invalid context at mm/memory.c:3905 [ 112.832898] in_atomic(): 1, irqs_disabled(): 0, pid: 1486, name: nautilus [ 112.832903] INFO: lockdep is turned off. [ 112.832912] Pid: 1486, comm: nautilus Tainted: G D 3.1.0-rc4-00131-g9e79e3e-dirty #488 [ 112.832918] Call Trace: [ 112.832933] [] __might_sleep+0xd4/0x100 [ 112.832944] [] might_fault+0x25/0xa0 [ 112.832955] [] exit_robust_list+0x35/0x140 [ 112.832964] [] mm_release+0xce/0xe0 [ 112.832973] [] ? exit_signals+0x65/0xe0 [ 112.832982] [] exit_mm+0x18/0x100 [ 112.832990] [] do_exit+0xd7/0x660 [ 112.832998] [] ? kmsg_dump+0xdf/0x120 [ 112.833018] [] ? kmsg_dump+0x5c/0x120 [ 112.833028] [] oops_end+0x6d/0x90 [ 112.833039] [] ? printk+0x18/0x1a [ 112.833048] [] no_context+0xbe/0x150 [ 112.833056] [] __bad_area_nosemaphore+0x98/0x140 [ 112.833065] [] bad_area_nosemaphore+0x12/0x20 [ 112.833073] [] do_page_fault+0x220/0x330 [ 112.833081] [] ? dump_trace+0x7d/0xf0 [ 112.833090] [] ? mark_held_locks+0x65/0xf0 [ 112.833098] [] ? vmalloc_sync_all+0x120/0x120 [ 112.833107] [] error_code+0x6a/0x70 [ 112.833115] [] ? __lock_acquire+0x23f/0x1740 [ 112.833125] [] ? kobject_release+0x49/0x90 [ 112.833134] [] lock_acquire+0x7b/0x90 [ 112.833142] [] ? bdi_lock_two+0x22/0x50 [ 112.833151] [] _raw_spin_lock_nested+0x3a/0x50 [ 112.833159] [] ? bdi_lock_two+0x22/0x50 [ 112.833168] [] bdi_lock_two+0x22/0x50 [ 112.833177] [] bdev_inode_switch_bdi+0x2e/0xa0 [ 112.833185] [] __blkdev_put+0xbf/0x160 [ 112.833193] [] __blkdev_put+0xf3/0x160 [ 112.833200] [] blkdev_put+0x42/0x120 [ 112.833210] [] kill_block_super+0x3f/0x70 [ 112.833219] [] deactivate_locked_super+0x3d/0x70 [ 112.833227] [] deactivate_super+0x50/0x70 [ 112.833237] [] mntput_no_expire+0x68/0xa0 [ 112.833245] [] mntput+0x13/0x30 [ 112.833253] [] path_put+0x15/0x20 [ 112.833261] [] terminate_walk+0x4d/0x60 [ 112.833268] [] do_last+0x60f/0x6d0 [ 112.833276] [] path_openat+0x98/0x320 [ 112.833285] [] ? lock_release_non_nested+0x57/0x2e0 [ 112.833293] [] do_filp_open+0x30/0x80 [ 112.833301] [] ? _raw_spin_unlock+0x1d/0x30 [ 112.833309] [] ? alloc_fd+0xbc/0x100 [ 112.833317] [] do_sys_open+0xf1/0x1c0 [ 112.833325] [] sys_open+0x29/0x40 [ 112.833333] [] sysenter_do_call+0x12/0x36 [ 112.833341] BUG: scheduling while atomic: nautilus/1486/0x10000003 [ 112.833345] INFO: lockdep is turned off. [ 112.833352] Pid: 1486, comm: nautilus Tainted: G D 3.1.0-rc4-00131-g9e79e3e-dirty #488 [ 112.833357] Call Trace: [ 112.833365] [] __schedule_bug+0x6e/0x80 [ 112.833373] [] schedule+0x547/0x640 [ 112.833381] [] ? show_trace_log_lvl+0x47/0x60 [ 112.833390] [] ? show_trace+0x1b/0x30 [ 112.833398] [] ? dump_stack+0x6e/0x76 [ 112.833406] [] ? __might_sleep+0xd4/0x100 [ 112.833414] [] _cond_resched+0x2f/0x50 [ 112.833422] [] might_fault+0x2a/0xa0 [ 112.833431] [] exit_robust_list+0x35/0x140 [ 112.833439] [] mm_release+0xce/0xe0 [ 112.833447] [] ? exit_signals+0x65/0xe0 [ 112.833455] [] exit_mm+0x18/0x100 [ 112.833464] [] do_exit+0xd7/0x660 [ 112.833472] [] ? kmsg_dump+0xdf/0x120 [ 112.833480] [] ? kmsg_dump+0x5c/0x120 [ 112.833488] [] oops_end+0x6d/0x90 [ 112.833496] [] ? printk+0x18/0x1a [ 112.833504] [] no_context+0xbe/0x150 [ 112.833512] [] __bad_area_nosemaphore+0x98/0x140 [ 112.833521] [] bad_area_nosemaphore+0x12/0x20 [ 112.833529] [] do_page_fault+0x220/0x330 [ 112.833537] [] ? dump_trace+0x7d/0xf0 [ 112.833545] [] ? mark_held_locks+0x65/0xf0 [ 112.833554] [] ? vmalloc_sync_all+0x120/0x120 [ 112.833561] [] error_code+0x6a/0x70 [ 112.833570] [] ? __lock_acquire+0x23f/0x1740 [ 112.833578] [] ? kobject_release+0x49/0x90 [ 112.833587] [] lock_acquire+0x7b/0x90 [ 112.833595] [] ? bdi_lock_two+0x22/0x50 [ 112.833604] [] _raw_spin_lock_nested+0x3a/0x50 [ 112.833612] [] ? bdi_lock_two+0x22/0x50 [ 112.833620] [] bdi_lock_two+0x22/0x50 [ 112.833628] [] bdev_inode_switch_bdi+0x2e/0xa0 [ 112.833636] [] __blkdev_put+0xbf/0x160 [ 112.833644] [] __blkdev_put+0xf3/0x160 [ 112.833652] [] blkdev_put+0x42/0x120 [ 112.833660] [] kill_block_super+0x3f/0x70 [ 112.833669] [] deactivate_locked_super+0x3d/0x70 [ 112.833678] [] deactivate_super+0x50/0x70 [ 112.833686] [] mntput_no_expire+0x68/0xa0 [ 112.833694] [] mntput+0x13/0x30 [ 112.833702] [] path_put+0x15/0x20 [ 112.833709] [] terminate_walk+0x4d/0x60 [ 112.833717] [] do_last+0x60f/0x6d0 [ 112.833725] [] path_openat+0x98/0x320 [ 112.833733] [] ? lock_release_non_nested+0x57/0x2e0 [ 112.833742] [] do_filp_open+0x30/0x80 [ 112.833750] [] ? _raw_spin_unlock+0x1d/0x30 [ 112.833758] [] ? alloc_fd+0xbc/0x100 [ 112.833766] [] do_sys_open+0xf1/0x1c0 [ 112.833774] [] sys_open+0x29/0x40 [ 112.833781] [] sysenter_do_call+0x12/0x36 [ 118.372745] [drm:drm_mode_getfb] *ERROR* invalid framebuffer id -- Sitsofe | http://sucs.org/~sits/