RBP: 00007f6640253ab1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f66403f9080 R15: 00007ffce9c68c58 ---[ end trace 593f38ae4f7c62df ]--- 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: 13865 Comm: syz.2.3147 Tainted: G W 5.4.292-syzkaller-00021-gcd8e74fa0fa3 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 RIP: 0010:kill_device drivers/base/core.c:3025 [inline] RIP: 0010:device_del+0xe7/0xfb0 drivers/base/core.c:3052 Code: 00 74 08 48 89 df e8 08 38 0d ff 41 bf c8 00 00 00 48 89 5c 24 18 4c 03 3b 4c 89 fb 48 c1 eb 03 48 b8 00 00 00 00 00 fc ff df <0f> b6 04 03 84 c0 0f 85 3c 0e 00 00 45 0f b6 27 44 89 e6 83 e6 01 RSP: 0018:ffff8881e5ab7a40 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: 0000000000000019 RCX: 1ffff1103d2a141b RDX: 0000000000000001 RSI: 0000000000000008 RDI: ffff8881e5ab79c0 RBP: ffff8881e5ab7b20 R08: dffffc0000000000 R09: ffffed103cb56f39 R10: ffffed103cb56f39 R11: 1ffff1103cb56f38 R12: dffffc0000000000 R13: ffff8881e950a070 R14: ffff8881e950a110 R15: 00000000000000c8 FS: 00007f663e8196c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f72736cdd04 CR3: 00000001a6bd0000 CR4: 00000000003406b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: del_gendisk+0x89c/0xa90 block/genhd.c:835 loop_remove+0x46/0xb0 drivers/block/loop.c:2194 loop_control_ioctl+0x487/0x550 drivers/block/loop.c:2293 do_vfs_ioctl+0x753/0x13f0 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+0xe1/0x120 fs/ioctl.c:747 do_syscall_64+0xcf/0x170 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x5c/0xc1 RIP: 0033:0x7f66401d1969 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f663e819038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f66403f9080 RCX: 00007f66401d1969 RDX: 0000000000100002 RSI: 0000000000004c81 RDI: 0000000000000008 RBP: 00007f6640253ab1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f66403f9080 R15: 00007ffce9c68c58 Modules linked in: ---[ end trace 593f38ae4f7c62e0 ]--- RIP: 0010:kill_device drivers/base/core.c:3025 [inline] RIP: 0010:device_del+0xe7/0xfb0 drivers/base/core.c:3052 Code: 00 74 08 48 89 df e8 08 38 0d ff 41 bf c8 00 00 00 48 89 5c 24 18 4c 03 3b 4c 89 fb 48 c1 eb 03 48 b8 00 00 00 00 00 fc ff df <0f> b6 04 03 84 c0 0f 85 3c 0e 00 00 45 0f b6 27 44 89 e6 83 e6 01 RSP: 0018:ffff8881e5ab7a40 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: 0000000000000019 RCX: 1ffff1103d2a141b RDX: 0000000000000001 RSI: 0000000000000008 RDI: ffff8881e5ab79c0 RBP: ffff8881e5ab7b20 R08: dffffc0000000000 R09: ffffed103cb56f39 R10: ffffed103cb56f39 R11: 1ffff1103cb56f38 R12: dffffc0000000000 R13: ffff8881e950a070 R14: ffff8881e950a110 R15: 00000000000000c8 FS: 00007f663e8196c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000020000057f000 CR3: 00000001a6bd0000 CR4: 00000000003406a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 00 74 08 48 add %dh,0x48(%rax,%rcx,1) 4: 89 df mov %ebx,%edi 6: e8 08 38 0d ff call 0xff0d3813 b: 41 bf c8 00 00 00 mov $0xc8,%r15d 11: 48 89 5c 24 18 mov %rbx,0x18(%rsp) 16: 4c 03 3b add (%rbx),%r15 19: 4c 89 fb mov %r15,%rbx 1c: 48 c1 eb 03 shr $0x3,%rbx 20: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 27: fc ff df * 2a: 0f b6 04 03 movzbl (%rbx,%rax,1),%eax <-- trapping instruction 2e: 84 c0 test %al,%al 30: 0f 85 3c 0e 00 00 jne 0xe72 36: 45 0f b6 27 movzbl (%r15),%r12d 3a: 44 89 e6 mov %r12d,%esi 3d: 83 e6 01 and $0x1,%esi