------------[ cut here ]------------ WARNING: CPU: 1 PID: 4670 at block/genhd.c:592 del_gendisk+0x703/0x780 Modules linked in: CPU: 0 PID: 4670 Comm: syz-executor.1 Not tainted 5.15.161-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 RIP: 0010:del_gendisk+0x703/0x780 block/genhd.c:592 Code: 00 00 4c 89 f6 e8 3d 88 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 52 14 fd ff e8 ad 3e 8e fd <0f> 0b 48 83 c4 18 5b 41 5c 41 5d 41 5e 41 5f 5d c3 89 e9 80 e1 07 RSP: 0018:ffffc9000138fdf0 EFLAGS: 00010283 RAX: ffffffff83f21c23 RBX: 0000000000000240 RCX: 0000000000040000 RDX: ffffc9000394c000 RSI: 00000000000003f0 RDI: 00000000000003f1 RBP: 0000000000000000 R08: ffffffff83f21638 R09: fffff52000271fb9 R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff1100f659610 R13: ffff88807b2cb000 R14: ffff88801e3ed580 R15: ffff88807b2cb080 FS: 00007f94cfd926c0(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fc26b2f6d58 CR3: 000000001af6d000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: loop_remove drivers/block/loop.c:2452 [inline] loop_control_remove drivers/block/loop.c:2509 [inline] loop_control_ioctl+0x552/0x700 drivers/block/loop.c:2547