RBP: 00007f43812b7ab1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f438145d160 R15: 00007ffd28b0df38 ---[ end trace b9539bf134d99681 ]--- general protection fault, probably for non-canonical address 0xdffffc000000001a: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x00000000000000d0-0x00000000000000d7] CPU: 0 PID: 5069 Comm: syz.0.1372 Tainted: G W 5.10.236-syzkaller-00012-gab07aeb2c93d #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 RIP: 0010:kill_device drivers/base/core.c:3387 [inline] RIP: 0010:device_del+0xea/0xed0 drivers/base/core.c:3415 Code: 74 08 4c 89 e7 e8 36 52 f3 fe 41 bf d0 00 00 00 4c 89 64 24 28 4d 03 3c 24 4d 89 fe 49 c1 ee 03 48 b8 00 00 00 00 00 fc ff df <41> 0f b6 04 06 84 c0 0f 85 1f 0d 00 00 45 0f b6 27 44 89 e6 83 e6 RSP: 0018:ffffc90001027c20 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: ffff88812c7d7108 RCX: ffffffff84739e7c RDX: 0000000000000001 RSI: 0000000000000008 RDI: ffffc90001027ba0 RBP: ffffc90001027d10 R08: dffffc0000000000 R09: fffff52000204f75 R10: fffff52000204f75 R11: 1ffff92000204f74 R12: ffff88812c7d70d0 R13: ffffe8ffffd1af80 R14: 000000000000001a R15: 00000000000000d0 FS: 00007f437f85c6c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffffffffffffe8 CR3: 000000011dbce000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: del_gendisk+0x834/0x9e0 block/genhd.c:953 loop_remove+0x46/0xb0 drivers/block/loop.c:2210 loop_control_ioctl+0x487/0x550 drivers/block/loop.c:2309 vfs_ioctl fs/ioctl.c:48 [inline] __do_sys_ioctl fs/ioctl.c:753 [inline] __se_sys_ioctl+0x121/0x1a0 fs/ioctl.c:739 __x64_sys_ioctl+0x7b/0x90 fs/ioctl.c:739 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7f4381235969 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:00007f437f85c038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f438145d160 RCX: 00007f4381235969 RDX: 0000000000100002 RSI: 0000000000004c81 RDI: 0000000000000003 RBP: 00007f43812b7ab1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f438145d160 R15: 00007ffd28b0df38 Modules linked in: ---[ end trace b9539bf134d99682 ]--- RIP: 0010:kill_device drivers/base/core.c:3387 [inline] RIP: 0010:device_del+0xea/0xed0 drivers/base/core.c:3415 Code: 74 08 4c 89 e7 e8 36 52 f3 fe 41 bf d0 00 00 00 4c 89 64 24 28 4d 03 3c 24 4d 89 fe 49 c1 ee 03 48 b8 00 00 00 00 00 fc ff df <41> 0f b6 04 06 84 c0 0f 85 1f 0d 00 00 45 0f b6 27 44 89 e6 83 e6 RSP: 0018:ffffc90001027c20 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: ffff88812c7d7108 RCX: ffffffff84739e7c RDX: 0000000000000001 RSI: 0000000000000008 RDI: ffffc90001027ba0 RBP: ffffc90001027d10 R08: dffffc0000000000 R09: fffff52000204f75 R10: fffff52000204f75 R11: 1ffff92000204f74 R12: ffff88812c7d70d0 R13: ffffe8ffffd1af80 R14: 000000000000001a R15: 00000000000000d0 FS: 00007f437f85c6c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffffffffffffe8 CR3: 000000011dbce000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 74 08 je 0xa 2: 4c 89 e7 mov %r12,%rdi 5: e8 36 52 f3 fe call 0xfef35240 a: 41 bf d0 00 00 00 mov $0xd0,%r15d 10: 4c 89 64 24 28 mov %r12,0x28(%rsp) 15: 4d 03 3c 24 add (%r12),%r15 19: 4d 89 fe mov %r15,%r14 1c: 49 c1 ee 03 shr $0x3,%r14 20: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 27: fc ff df * 2a: 41 0f b6 04 06 movzbl (%r14,%rax,1),%eax <-- trapping instruction 2f: 84 c0 test %al,%al 31: 0f 85 1f 0d 00 00 jne 0xd56 37: 45 0f b6 27 movzbl (%r15),%r12d 3b: 44 89 e6 mov %r12d,%esi 3e: 83 .byte 0x83 3f: e6 .byte 0xe6