BUG: sleeping function called from invalid context at arch/x86/mm/fault.c:1253 in_atomic(): 0, irqs_disabled(): 1, non_block: 0, pid: 3897, name: systemd-udevd 1 lock held by systemd-udevd/3897: #0: ffff8880933dc4e8 (&mm->mmap_lock#2){++++}-{3:3}, at: mmap_read_trylock include/linux/mmap_lock.h:56 [inline] #0: ffff8880933dc4e8 (&mm->mmap_lock#2){++++}-{3:3}, at: do_user_addr_fault+0x344/0xba0 arch/x86/mm/fault.c:1236 irq event stamp: 9532994 hardirqs last enabled at (9532993): [] kfree+0x141/0x220 mm/slab.c:3758 hardirqs last disabled at (9532994): [] idtentry_enter_cond_rcu+0x2e/0x50 arch/x86/entry/common.c:649 softirqs last enabled at (9532452): [] asm_call_on_stack+0xf/0x20 arch/x86/entry/entry_64.S:711 softirqs last disabled at (9532401): [] asm_call_on_stack+0xf/0x20 arch/x86/entry/entry_64.S:711 CPU: 0 PID: 3897 Comm: systemd-udevd Not tainted 5.8.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+0x1f0/0x31e lib/dump_stack.c:118 ___might_sleep+0x3c0/0x570 kernel/sched/core.c:6941 do_user_addr_fault+0x377/0xba0 arch/x86/mm/fault.c:1253 handle_page_fault arch/x86/mm/fault.c:1365 [inline] exc_page_fault+0x124/0x1f0 arch/x86/mm/fault.c:1418 asm_exc_page_fault+0x1e/0x30 arch/x86/include/asm/idtentry.h:542 RIP: 0010:_etext+0x111d1b/0x1fe4cb 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:ffffc90000e77f10 EFLAGS: 00010082 RAX: 0000000000000282 RBX: 0000000000000100 RCX: e6e3fc30ad33b200 RDX: ffff8880a3b0a240 RSI: 0000000000000000 RDI: ffffc90000e77f58 RBP: 0000000000000000 R08: ffffffff81beb57d R09: fffff520001cefc8 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: ffffc90000e77f58 R15: ffff8880a3b0a240 BUG: kernel NULL pointer dereference, address: 0000000000000282 #PF: supervisor write access in kernel mode #PF: error_code(0x0002) - not-present page PGD 0 P4D 0 Oops: 0002 [#2] PREEMPT SMP KASAN CPU: 0 PID: 3897 Comm: systemd-udevd Tainted: G D W 5.8.0-rc7-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:_etext+0x111d1b/0x1fe4cb 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:ffffc90000e77f10 EFLAGS: 00010082 RAX: 0000000000000282 RBX: 0000000000000100 RCX: e6e3fc30ad33b200 RDX: ffff8880a3b0a240 RSI: 0000000000000000 RDI: ffffc90000e77f58 RBP: 0000000000000000 R08: ffffffff81beb57d R09: fffff520001cefc8 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: ffffc90000e77f58 R15: ffff8880a3b0a240 FS: 00007feed36768c0(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000282 CR3: 00000000a3fd3000 CR4: 00000000001426f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: Modules linked in: CR2: 0000000000000282 ---[ end trace 1160ac5a0c5f1310 ]--- RIP: 0010:_etext+0x111d1b/0x1fe4cb 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:ffffc90006047f10 EFLAGS: 00010082 RAX: 0000000000000282 RBX: 0000000000004000 RCX: 45749efcbbc95d00 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffc90006047f58 RBP: 0000000000000000 R08: ffffffff817a3370 R09: fffffbfff173a469 R10: fffffbfff173a469 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: ffffc90006047f58 R15: ffff888052a5c000 FS: 00007feed36768c0(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000282 CR3: 00000000a3fd3000 CR4: 00000000001426f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400