kasan: CONFIG_KASAN_INLINE enabled kasan: GPF could be caused by NULL-ptr deref or user memory access general protection fault: 0000 [#1] PREEMPT SMP KASAN Modules linked in: CPU: 0 PID: 10969 Comm: systemd-udevd Not tainted 4.14.288-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/29/2022 task: ffff88809ba7e000 task.stack: ffff88809f5b0000 RIP: 0010:kobject_uevent_env+0xb2/0xf30 lib/kobject_uevent.c:356 RSP: 0018:ffff88809f5b7c00 EFLAGS: 00010206 RAX: 0000000000000018 RBX: 0000000000000002 RCX: 1ffff1101374fd20 RDX: 0000000000000000 RSI: 0000000000000002 RDI: 00000000000000c0 RBP: ffff88808f484b90 R08: ffffffff8b9ba560 R09: 0000000000000003 R10: 0000000000000000 R11: ffff88809ba7e000 R12: 00000000000000a0 R13: dffffc0000000000 R14: ffff88808f484a88 R15: 00000000000000a0 FS: 00007f1cdd1df8c0(0000) GS:ffff8880ba400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f94bf0fe028 CR3: 000000009955b000 CR4: 00000000003406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: loop_clr_fd+0x59f/0xc20 drivers/block/loop.c:1069 __lo_release drivers/block/loop.c:1660 [inline] lo_release+0xff/0x190 drivers/block/loop.c:1678 __blkdev_put+0x5aa/0x800 fs/block_dev.c:1803 blkdev_close+0x86/0xb0 fs/block_dev.c:1875 __fput+0x25f/0x7a0 fs/file_table.c:210 task_work_run+0x11f/0x190 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:191 [inline] exit_to_usermode_loop+0x1ad/0x200 arch/x86/entry/common.c:164 prepare_exit_to_usermode arch/x86/entry/common.c:199 [inline] syscall_return_slowpath arch/x86/entry/common.c:270 [inline] do_syscall_64+0x4a3/0x640 arch/x86/entry/common.c:297 entry_SYSCALL_64_after_hwframe+0x46/0xbb RIP: 0033:0x7f1cdc325270 RSP: 002b:00007ffd9282aa08 EFLAGS: 00000246 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000007 RCX: 00007f1cdc325270 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000007 RBP: 00007f1cdd1df710 R08: 00005618f1495d90 R09: 00005618f1495b00 R10: 00007f1cdd1df8c0 R11: 0000000000000246 R12: 0000000000000000 R13: 00005618f1486900 R14: 0000000000000003 R15: 000000000000000e Code: 03 42 80 3c 28 00 0f 85 dd 0b 00 00 4d 8b 64 24 18 4d 85 e4 0f 84 fa 0b 00 00 e8 ea 56 57 fa 49 8d 7c 24 20 48 89 f8 48 c1 e8 03 <42> 80 3c 28 00 0f 85 d4 0b 00 00 49 8b 6c 24 20 48 85 ed 74 b0 RIP: kobject_uevent_env+0xb2/0xf30 lib/kobject_uevent.c:356 RSP: ffff88809f5b7c00 ---[ end trace 81f7805df468fdd7 ]--- ---------------- Code disassembly (best guess): 0: 03 42 80 add -0x80(%rdx),%eax 3: 3c 28 cmp $0x28,%al 5: 00 0f add %cl,(%rdi) 7: 85 dd test %ebx,%ebp 9: 0b 00 or (%rax),%eax b: 00 4d 8b add %cl,-0x75(%rbp) e: 64 24 18 fs and $0x18,%al 11: 4d 85 e4 test %r12,%r12 14: 0f 84 fa 0b 00 00 je 0xc14 1a: e8 ea 56 57 fa callq 0xfa575709 1f: 49 8d 7c 24 20 lea 0x20(%r12),%rdi 24: 48 89 f8 mov %rdi,%rax 27: 48 c1 e8 03 shr $0x3,%rax * 2b: 42 80 3c 28 00 cmpb $0x0,(%rax,%r13,1) <-- trapping instruction 30: 0f 85 d4 0b 00 00 jne 0xc0a 36: 49 8b 6c 24 20 mov 0x20(%r12),%rbp 3b: 48 85 ed test %rbp,%rbp 3e: 74 b0 je 0xfffffff0