entry_SYSCALL_64_after_hwframe+0x5c/0xc1 ---[ end trace a3bf48aa00af871d ]--- 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 CPU: 0 PID: 2448 Comm: syz-executor.2 Tainted: G W 5.4.259-syzkaller-00009-gc0585bc7c835 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 RIP: 0010:strlen+0x28/0x60 lib/string.c:552 Code: 40 00 41 57 41 56 41 54 53 49 89 fe 48 c7 c0 ff ff ff ff 49 bf 00 00 00 00 00 fc ff df 48 89 fb 49 89 c4 48 89 d8 48 c1 e8 03 <42> 0f b6 04 38 84 c0 75 12 48 ff c3 49 8d 44 24 01 43 80 7c 26 01 RSP: 0018:ffff8881e2ed7a00 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffc90001f4d001 RDX: 00000000001fffe0 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: ffffffff81bd7e4c R09: 000000000000ffff R10: 0000000000200000 R11: dffffc0000000001 R12: ffffffffffffffff R13: dffffc0000000000 R14: 0000000000000000 R15: dffffc0000000000 FS: 00007f2f9c0d36c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f72f7ad9c98 CR3: 00000001ef620000 CR4: 00000000003406b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: kernfs_name_hash fs/kernfs/dir.c:310 [inline] kernfs_find_ns+0x83/0x440 fs/kernfs/dir.c:855 kernfs_remove_by_name_ns+0x37/0x100 fs/kernfs/dir.c:1517 del_gendisk+0x9c7/0xc30 block/genhd.c:833 loop_remove+0x42/0xa0 drivers/block/loop.c:2194 loop_control_ioctl+0x564/0x620 drivers/block/loop.c:2293 do_vfs_ioctl+0x742/0x1720 fs/ioctl.c:47 ksys_ioctl fs/ioctl.c:742 [inline] __do_sys_ioctl fs/ioctl.c:749 [inline] __se_sys_ioctl fs/ioctl.c:747 [inline] __x64_sys_ioctl+0xd4/0x110 fs/ioctl.c:747 do_syscall_64+0xca/0x1c0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x5c/0xc1 Modules linked in: ---[ end trace a3bf48aa00af871e ]--- RIP: 0010:strlen+0x28/0x60 lib/string.c:552 Code: 40 00 41 57 41 56 41 54 53 49 89 fe 48 c7 c0 ff ff ff ff 49 bf 00 00 00 00 00 fc ff df 48 89 fb 49 89 c4 48 89 d8 48 c1 e8 03 <42> 0f b6 04 38 84 c0 75 12 48 ff c3 49 8d 44 24 01 43 80 7c 26 01 RSP: 0018:ffff8881e2ed7a00 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffc90001f4d001 RDX: 00000000001fffe0 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: ffffffff81bd7e4c R09: 000000000000ffff R10: 0000000000200000 R11: dffffc0000000001 R12: ffffffffffffffff R13: dffffc0000000000 R14: 0000000000000000 R15: dffffc0000000000 FS: 00007f2f9c0d36c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f72f7ad9c98 CR3: 00000001ef620000 CR4: 00000000003406b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 40 00 41 57 rex add %al,0x57(%rcx) 4: 41 56 push %r14 6: 41 54 push %r12 8: 53 push %rbx 9: 49 89 fe mov %rdi,%r14 c: 48 c7 c0 ff ff ff ff mov $0xffffffffffffffff,%rax 13: 49 bf 00 00 00 00 00 movabs $0xdffffc0000000000,%r15 1a: fc ff df 1d: 48 89 fb mov %rdi,%rbx 20: 49 89 c4 mov %rax,%r12 23: 48 89 d8 mov %rbx,%rax 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 42 0f b6 04 38 movzbl (%rax,%r15,1),%eax <-- trapping instruction 2f: 84 c0 test %al,%al 31: 75 12 jne 0x45 33: 48 ff c3 inc %rbx 36: 49 8d 44 24 01 lea 0x1(%r12),%rax 3b: 43 rex.XB 3c: 80 .byte 0x80 3d: 7c 26 jl 0x65 3f: 01 .byte 0x1