BUG: sleeping function called from invalid context at arch/x86/mm/fault.c:1400 in_atomic(): 0, irqs_disabled(): 1, non_block: 0, pid: 4262, name: udevd 1 lock held by udevd/4262: #0: ffff888093e19518 (&mm->mmap_sem#2){++++}, at: do_user_addr_fault arch/x86/mm/fault.c:1383 [inline] #0: ffff888093e19518 (&mm->mmap_sem#2){++++}, at: do_page_fault+0x34b/0x12e1 arch/x86/mm/fault.c:1517 irq event stamp: 5474812 hardirqs last enabled at (5474811): [] kmem_cache_free+0x98/0x320 mm/slab.c:3695 hardirqs last disabled at (5474812): [] syscall_return_slowpath arch/x86/entry/common.c:277 [inline] hardirqs last disabled at (5474812): [] do_syscall_64+0x20a/0x790 arch/x86/entry/common.c:304 softirqs last enabled at (5473952): [] __do_softirq+0x6cd/0x98c kernel/softirq.c:319 softirqs last disabled at (5473911): [] invoke_softirq kernel/softirq.c:373 [inline] softirqs last disabled at (5473911): [] irq_exit+0x19b/0x1e0 kernel/softirq.c:413 CPU: 1 PID: 4262 Comm: udevd Not tainted 5.6.0-rc3-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:6798 __might_sleep+0x95/0x190 kernel/sched/core.c:6751 do_user_addr_fault arch/x86/mm/fault.c:1400 [inline] do_page_fault+0x378/0x12e1 arch/x86/mm/fault.c:1517 page_fault+0x39/0x40 arch/x86/entry/entry_64.S:1203 RIP: 0010:prepare_exit_to_usermode arch/x86/entry/common.c:189 [inline] RIP: 0010:syscall_return_slowpath arch/x86/entry/common.c:278 [inline] RIP: 0010:do_syscall_64+0x2c9/0x790 arch/x86/entry/common.c:304 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: 0018:ffffc900015d7f20 EFLAGS: 00010046 RAX: 0000000000000000 RBX: ffff888093e16640 RCX: ffffffff8100a857 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000001 RBP: ffffc900015d7f48 R08: ffff888093e16640 R09: ffffed10127c2cc9 R10: ffffed10127c2cc8 R11: ffff888093e16647 R12: ffffc900015d7f58 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000