Messages in this thread | | | Date | Mon, 9 Dec 2013 18:38:11 -0800 | Subject | might_sleep warning in filemap_fault() | From | Alexei Starovoitov <> |
| |
Hi,
seeing the following trace on 3.10.xx kernels, including 3.10.23. 3.12.4 and 3.13rc2 are fine. Is there a patch waiting to be backported?
[ 96.393807] llc[2903]: segfault at 8 ip 0000000000692da7 sp 00007fff1a6baf30 error 4 in llc[400000+7f8000] [ 96.394304] BUG: sleeping function called from invalid context at include/linux/pagemap.h:375 [ 96.394306] in_atomic(): 0, irqs_disabled(): 1, pid: 2903, name: llc [ 96.394307] 1 lock held by llc/2903: [ 96.394308] #0: (sb_writers#8){.+.+.+}, at: [<ffffffff81205033>] do_coredump+0xf83/0x1110 [ 96.394314] irq event stamp: 68216 [ 96.394315] hardirqs last enabled at (68215): [<ffffffff816864a1>] __mutex_unlock_slowpath+0xd1/0x180 [ 96.394318] hardirqs last disabled at (68216): [<ffffffff81002b55>] math_state_restore+0x35/0x150 [ 96.394320] softirqs last enabled at (65780): [<ffffffff8104f663>] __do_softirq+0x183/0x3f0 [ 96.394322] softirqs last disabled at (65761): [<ffffffff8104fa85>] irq_exit+0xb5/0xc0 [ 96.394325] CPU: 1 PID: 2903 Comm: llc Not tainted 3.10.1 #31 [ 96.394326] Hardware name: System manufacturer System Product Name/P8Z77 WS, BIOS 3007 07/26/2012 [ 96.394327] ffffffff819fcac9 ffff8807f5ec96e8 ffffffff81682103 ffff8807f5ec9718 [ 96.394329] ffffffff81081e60 00000000000007fa 00000000000007fa ffff8807f5fe6f00 [ 96.394331] ffff880809bc81e0 ffff8807f5ec9788 ffffffff8114149e 0000000000000006 [ 96.394333] Call Trace: [ 96.394335] [<ffffffff81682103>] dump_stack+0x19/0x1b [ 96.394338] [<ffffffff81081e60>] __might_sleep+0x180/0x230 [ 96.394340] [<ffffffff8114149e>] filemap_fault+0xce/0x470 [ 96.394342] [<ffffffff81165dbe>] __do_fault+0x6e/0x470 [ 96.394344] [<ffffffff81168a9f>] handle_pte_fault+0x8f/0x8b0 [ 96.394346] [<ffffffff81169ac0>] handle_mm_fault+0x210/0x300 [ 96.394348] [<ffffffff81169e1e>] __get_user_pages+0x19e/0x5c0 [ 96.394349] [<ffffffff8116a285>] get_dump_page+0x45/0x60 [ 96.394351] [<ffffffff811fe371>] elf_core_dump+0x16b1/0x1930 [ 96.394353] [<ffffffff811fd6cc>] ? elf_core_dump+0xa0c/0x1930 [ 96.394356] [<ffffffff811a2f0f>] ? __sb_start_write+0xef/0x1c0 [ 96.394358] [<ffffffff81205033>] ? do_coredump+0xf83/0x1110 [ 96.394359] [<ffffffff81205033>] ? do_coredump+0xf83/0x1110 [ 96.394361] [<ffffffff81204ce9>] do_coredump+0xc39/0x1110 [ 96.394364] [<ffffffff8105fc02>] get_signal_to_deliver+0x2b2/0x930 [ 96.394366] [<ffffffff81002387>] do_signal+0x57/0x5a0 [ 96.394368] [<ffffffff8168df6b>] ? __do_page_fault+0x50b/0x570 [ 96.394370] [<ffffffff81060434>] ? __set_current_blocked+0x34/0x60 [ 96.394372] [<ffffffff8167d1f9>] ? printk+0x61/0x63 [ 96.394374] [<ffffffff810b9495>] ? trace_hardirqs_on_caller+0x105/0x1d0 [ 96.394376] [<ffffffff810b956d>] ? trace_hardirqs_on+0xd/0x10 [ 96.394378] [<ffffffff8168a10d>] ? retint_signal+0x11/0x84 [ 96.394380] [<ffffffff81002935>] do_notify_resume+0x65/0x80 [ 96.394382] [<ffffffff813349de>] ? trace_hardirqs_on_thunk+0x3a/0x3f [ 96.394384] [<ffffffff8168a142>] retint_signal+0x46/0x84 [ 96.394386] ------------[ cut here ]------------ [ 96.394388] WARNING: at kernel/lockdep.c:2740 lockdep_trace_alloc+0xc5/0xd0() [ 96.394389] DEBUG_LOCKS_WARN_ON(irqs_disabled_flags(flags)) [ 96.394390] Modules linked in: bridge stp llc vhost_net macvtap macvlan dm_crypt iscsi_tcp libiscsi_tcp libiscsi scsi_transport_iscsi kvm_intel kvm ghash_clmulni_intel aesni_intel ablk_helper cryptd lrw gf128mul glue_helper aes_x86_64 hid_generic eeepc_wmi asus_wmi sparse_keymap mxm_wmi led_class dm_multipath microcode usbhid hid parport_pc ppdev psmouse e1000e lpc_ich firewire_ohci mfd_core igb firewire_core crc_itu_t dca ptp pps_core binfmt_misc wmi lp parport video [ 96.394411] CPU: 1 PID: 2903 Comm: llc Not tainted 3.10.1 #31 [ 96.394412] Hardware name: System manufacturer System Product Name/P8Z77 WS, BIOS 3007 07/26/2012 [ 96.394413] 0000000000000009 ffff8807f5ec9328 ffffffff81682103 ffff8807f5ec9368 [ 96.394415] ffffffff81045d80 0000000000000082 0000000000000096 0000000000000000 [ 96.394416] 0000000000000000 0000000000000003 0000000000000002 ffff8807f5ec93c8 [ 96.394418] Call Trace: [ 96.394420] [<ffffffff81682103>] dump_stack+0x19/0x1b [ 96.394422] [<ffffffff81045d80>] warn_slowpath_common+0x70/0xa0 [ 96.394424] [<ffffffff81045e66>] warn_slowpath_fmt+0x46/0x50 [ 96.394426] [<ffffffff810b9ac5>] lockdep_trace_alloc+0xc5/0xd0 [ 96.394428] [<ffffffff81148a7c>] __alloc_pages_nodemask+0x7c/0xa80 [ 96.394430] [<ffffffff8168a142>] ? retint_signal+0x46/0x84 [ 96.394432] [<ffffffff810b47e4>] ? __lock_is_held+0x54/0x80 [ 96.394434] [<ffffffff8132c0cb>] ? radix_tree_lookup_element+0xeb/0x190 [ 96.394437] [<ffffffff81185098>] alloc_pages_current+0xb8/0x180 [ 96.394439] [<ffffffff8113ecff>] __page_cache_alloc+0xaf/0xd0 [ 96.394441] [<ffffffff8113fb6f>] grab_cache_page_write_begin+0x7f/0xf0 [ 96.394443] [<ffffffff8124fd82>] ext4_da_write_begin+0x92/0x3a0 [ 96.394445] [<ffffffff8113e32e>] generic_file_buffered_write+0x11e/0x2a0 [ 96.394447] [<ffffffff811407bd>] __generic_file_aio_write+0x1cd/0x3d0 [ 96.394449] [<ffffffff816862cf>] ? mutex_lock_nested+0x27f/0x380 [ 96.394451] [<ffffffff81140a2a>] generic_file_aio_write+0x6a/0xd0 [ 96.394453] [<ffffffff81245cf9>] ext4_file_write+0xa9/0x450 [ 96.394455] [<ffffffff81689bdb>] ? _raw_spin_unlock+0x2b/0x50 [ 96.394456] [<ffffffff81168681>] ? follow_page_mask+0x261/0x4e0 [ 96.394458] [<ffffffff81165809>] ? spin_unlock+0x9/0x10 [ 96.394459] [<ffffffff81168866>] ? follow_page_mask+0x446/0x4e0 [ 96.394461] [<ffffffff8119fcb0>] do_sync_write+0x80/0xb0 [ 96.394463] [<ffffffff81203d09>] dump_write+0x59/0x70 [ 96.394465] [<ffffffff811fe3e4>] elf_core_dump+0x1724/0x1930 [ 96.394467] [<ffffffff811fd6cc>] ? elf_core_dump+0xa0c/0x1930 [ 96.394469] [<ffffffff811a2f0f>] ? __sb_start_write+0xef/0x1c0 [ 96.394471] [<ffffffff81205033>] ? do_coredump+0xf83/0x1110 [ 96.394472] [<ffffffff81205033>] ? do_coredump+0xf83/0x1110 [ 96.394474] [<ffffffff81204ce9>] do_coredump+0xc39/0x1110 [ 96.394476] [<ffffffff8105fc02>] get_signal_to_deliver+0x2b2/0x930 [ 96.394479] [<ffffffff81002387>] do_signal+0x57/0x5a0 [ 96.394480] [<ffffffff8168df6b>] ? __do_page_fault+0x50b/0x570 [ 96.394482] [<ffffffff81060434>] ? __set_current_blocked+0x34/0x60 [ 96.394483] [<ffffffff8167d1f9>] ? printk+0x61/0x63 [ 96.394485] [<ffffffff810b9495>] ? trace_hardirqs_on_caller+0x105/0x1d0 [ 96.394487] [<ffffffff810b956d>] ? trace_hardirqs_on+0xd/0x10 [ 96.394488] [<ffffffff8168a10d>] ? retint_signal+0x11/0x84 [ 96.394490] [<ffffffff81002935>] do_notify_resume+0x65/0x80 [ 96.394492] [<ffffffff813349de>] ? trace_hardirqs_on_thunk+0x3a/0x3f [ 96.394493] [<ffffffff8168a142>] retint_signal+0x46/0x84 [ 96.394495] ---[ end trace 254c0cab3bbaa900 ]---
| |