RBP: 00007f65f4c002a0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f65f4d98160 R15: 00007ffdd7a12378 ---[ end trace a09e32420a2fdcac ]--- general protection fault, probably for non-canonical address 0xdffffc000000001a: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x00000000000000d0-0x00000000000000d7] CPU: 1 PID: 23161 Comm: syz.4.6307 Tainted: G W 5.10.234-syzkaller-00023-g3f5f2283d684 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024 RIP: 0010:kill_device drivers/base/core.c:3387 [inline] RIP: 0010:device_del+0xdf/0xf00 drivers/base/core.c:3415 Code: 20 42 80 3c 28 00 74 08 48 89 df e8 ab 24 dd fe 4c 89 7c 24 40 41 bf d0 00 00 00 48 89 5c 24 18 4c 03 3b 4d 89 fc 49 c1 ec 03 <43> 0f b6 04 2c 84 c0 0f 85 0a 0d 00 00 41 0f b6 1f 89 de 83 e6 01 RSP: 0018:ffffc900019b7b80 EFLAGS: 00010202 RAX: 1ffff11024a1c81a RBX: ffff8881250e40d0 RCX: ffffffff84b27a25 RDX: 0000000000000001 RSI: 0000000000000008 RDI: ffffc900019b7b00 RBP: ffffc900019b7c70 R08: dffffc0000000000 R09: fffff52000336f61 R10: 0000000000000000 R11: dffffc0000000001 R12: 000000000000001a R13: dffffc0000000000 R14: ffff8881250e4108 R15: 00000000000000d0 FS: 00007f65f31a76c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f8f3e548f98 CR3: 00000001181db000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: del_gendisk+0x88d/0xa90 block/genhd.c:953 loop_remove+0x46/0xb0 drivers/block/loop.c:2210 loop_control_ioctl+0x564/0x620 drivers/block/loop.c:2309 vfs_ioctl fs/ioctl.c:48 [inline] __do_sys_ioctl fs/ioctl.c:753 [inline] __se_sys_ioctl+0x114/0x190 fs/ioctl.c:739 __x64_sys_ioctl+0x7b/0x90 fs/ioctl.c:739 do_syscall_64+0x34/0x70 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7f65f4b7f169 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:00007f65f31a7038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f65f4d98160 RCX: 00007f65f4b7f169 RDX: 0000000000100001 RSI: 0000000000004c81 RDI: 0000000000000006 RBP: 00007f65f4c002a0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f65f4d98160 R15: 00007ffdd7a12378 Modules linked in: ---[ end trace a09e32420a2fdcad ]--- RIP: 0010:kill_device drivers/base/core.c:3387 [inline] RIP: 0010:device_del+0xdf/0xf00 drivers/base/core.c:3415 Code: 20 42 80 3c 28 00 74 08 48 89 df e8 ab 24 dd fe 4c 89 7c 24 40 41 bf d0 00 00 00 48 89 5c 24 18 4c 03 3b 4d 89 fc 49 c1 ec 03 <43> 0f b6 04 2c 84 c0 0f 85 0a 0d 00 00 41 0f b6 1f 89 de 83 e6 01 RSP: 0018:ffffc900019b7b80 EFLAGS: 00010202 RAX: 1ffff11024a1c81a RBX: ffff8881250e40d0 RCX: ffffffff84b27a25 RDX: 0000000000000001 RSI: 0000000000000008 RDI: ffffc900019b7b00 RBP: ffffc900019b7c70 R08: dffffc0000000000 R09: fffff52000336f61 R10: 0000000000000000 R11: dffffc0000000001 R12: 000000000000001a R13: dffffc0000000000 R14: ffff8881250e4108 R15: 00000000000000d0 FS: 00007f65f31a76c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000110c302c14 CR3: 00000001181db000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 20 42 80 and %al,-0x80(%rdx) 3: 3c 28 cmp $0x28,%al 5: 00 74 08 48 add %dh,0x48(%rax,%rcx,1) 9: 89 df mov %ebx,%edi b: e8 ab 24 dd fe call 0xfedd24bb 10: 4c 89 7c 24 40 mov %r15,0x40(%rsp) 15: 41 bf d0 00 00 00 mov $0xd0,%r15d 1b: 48 89 5c 24 18 mov %rbx,0x18(%rsp) 20: 4c 03 3b add (%rbx),%r15 23: 4d 89 fc mov %r15,%r12 26: 49 c1 ec 03 shr $0x3,%r12 * 2a: 43 0f b6 04 2c movzbl (%r12,%r13,1),%eax <-- trapping instruction 2f: 84 c0 test %al,%al 31: 0f 85 0a 0d 00 00 jne 0xd41 37: 41 0f b6 1f movzbl (%r15),%ebx 3b: 89 de mov %ebx,%esi 3d: 83 e6 01 and $0x1,%esi