BUG: sleeping function called from invalid context at arch/x86/mm/fault.c:1399 in_atomic(): 0, irqs_disabled(): 1, non_block: 0, pid: 9848, name: udevd 1 lock held by udevd/9848: #0: ffff888093cbf258 (&mm->mmap_sem#2){++++}, at: do_user_addr_fault arch/x86/mm/fault.c:1382 [inline] #0: ffff888093cbf258 (&mm->mmap_sem#2){++++}, at: __do_page_fault+0x33c/0xd80 arch/x86/mm/fault.c:1506 irq event stamp: 334912 hardirqs last enabled at (334911): [] count_memcg_events include/linux/memcontrol.h:750 [inline] hardirqs last enabled at (334911): [] count_memcg_event_mm include/linux/memcontrol.h:771 [inline] hardirqs last enabled at (334911): [] handle_mm_fault+0x7a0/0xa50 mm/memory.c:4144 hardirqs last disabled at (334912): [] trace_hardirqs_off_thunk+0x1a/0x1c arch/x86/entry/thunk_64.S:42 softirqs last enabled at (334074): [] memcpy include/linux/string.h:380 [inline] softirqs last enabled at (334074): [] fpu__copy+0x17e/0x8c0 arch/x86/kernel/fpu/core.c:195 softirqs last disabled at (334072): [] fpu__copy+0xa7/0x8c0 arch/x86/kernel/fpu/core.c:183 CPU: 1 PID: 9848 Comm: udevd Not tainted 5.5.0-rc7-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x197/0x210 lib/dump_stack.c:118 ___might_sleep.cold+0x1fb/0x23e kernel/sched/core.c:6800 __might_sleep+0x95/0x190 kernel/sched/core.c:6753 do_user_addr_fault arch/x86/mm/fault.c:1399 [inline] __do_page_fault+0x369/0xd80 arch/x86/mm/fault.c:1506 do_page_fault+0x38/0x590 arch/x86/mm/fault.c:1530 page_fault+0x39/0x40 arch/x86/entry/entry_64.S:1203 RIP: 0010:prepare_exit_to_usermode+0xdb/0x3a0 arch/x86/entry/common.c:189 Code: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 <00> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 RSP: 0000:ffffc90002aaff28 EFLAGS: 00010046 RAX: 0000000000000000 RBX: ffff88809009e500 RCX: ffffffff81009c99 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000001 RBP: ffffc90002aaff48 R08: ffff88809009e500 R09: ffffed1012013ca1 R10: ffffed1012013ca0 R11: ffff88809009e507 R12: ffffc90002aaff58 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000