------------[ cut here ]------------ WARNING: CPU: 1 PID: 10841 at block/genhd.c:590 del_gendisk+0x70f/0x790 block/genhd.c:590 Modules linked in: CPU: 1 PID: 10841 Comm: syz.2.1818 Not tainted 5.15.185-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 RIP: 0010:del_gendisk+0x70f/0x790 block/genhd.c:590 Code: 00 00 4c 89 f6 e8 c1 c2 fa ff 4c 89 f7 be 01 00 00 00 48 83 c4 18 5b 41 5c 41 5d 41 5e 41 5f 5d e9 26 36 fd ff e8 e1 16 b2 fd <0f> 0b 48 83 c4 18 5b 41 5c 41 5d 41 5e 41 5f 5d c3 44 89 e1 80 e1 RSP: 0018:ffffc900037ffd88 EFLAGS: 00010283 RAX: ffffffff83c5ab3f RBX: 0000000000000000 RCX: 0000000000080000 RDX: ffffc9000f8d0000 RSI: 0000000000000415 RDI: 0000000000000416 RBP: ffff88805fb7c080 R08: dffffc0000000000 R09: fffff520006fffb1 R10: fffff520006fffb1 R11: 1ffff920006fffb0 R12: ffff88805fb7c0a0 R13: ffff888145f71f98 R14: ffff88802355e3c0 R15: ffff88805fb7c000 FS: 00007f5af06036c0(0000) GS:ffff8880b9100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f4f13a35f98 CR3: 000000007d722000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: loop_remove+0x3e/0xd0 drivers/block/loop.c:2453 loop_control_remove drivers/block/loop.c:2510 [inline] loop_control_ioctl+0x45f/0x550 drivers/block/loop.c:2548 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:874 [inline] __se_sys_ioctl+0xfa/0x170 fs/ioctl.c:860 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f5af27dd929 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:00007f5af0603038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f5af2a05160 RCX: 00007f5af27dd929 RDX: 000000000700003f RSI: 0000000000004c81 RDI: 000000000000000b RBP: 00007f5af285fb39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f5af2a05160 R15: 00007fff36902978