------------[ cut here ]------------ WARNING: CPU: 0 PID: 8056 at block/genhd.c:586 del_gendisk+0x690/0x724 block/genhd.c:586 Modules linked in: CPU: 0 PID: 8056 Comm: syz.0.879 Not tainted 5.15.173-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : del_gendisk+0x690/0x724 block/genhd.c:586 lr : del_gendisk+0x690/0x724 block/genhd.c:586 sp : ffff800021067bc0 x29: ffff800021067be0 x28: ffff0000e4c80000 x27: 1fffe0001cfa622a x26: 1fffe0001ce4f310 x25: 1ffff0000420cf88 x24: ffff0000e7279880 x23: 0000000000000000 x22: ffff0000e72798a0 x21: ffff0000e7279800 x20: ffff0000ccc2f1c0 x19: 0000000000000240 x18: 0000000000000000 x17: 0000000000000002 x16: ffff8000082eada8 x15: 0000000000004c82 x14: 1ffff0000296c06c x13: dfff800000000000 x12: 0000000000080000 x11: 0000000000000d13 x10: ffff800028601000 x9 : 0000000000000d14 x8 : ffff80000a8df6f0 x7 : ffff80000c0f7648 x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000001 x3 : ffff800011c132b4 x2 : 0000000000000000 x1 : 0000000000000000 x0 : 0000000000000000 Call trace: del_gendisk+0x690/0x724 block/genhd.c:586 loop_remove drivers/block/loop.c:2452 [inline] loop_control_remove drivers/block/loop.c:2509 [inline] loop_control_ioctl+0x4a8/0x62c drivers/block/loop.c:2547 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:874 [inline] __se_sys_ioctl fs/ioctl.c:860 [inline] __arm64_sys_ioctl+0x14c/0x1c8 fs/ioctl.c:860 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:608 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 irq event stamp: 836 hardirqs last enabled at (835): [] kasan_quarantine_put+0xdc/0x204 mm/kasan/quarantine.c:231 hardirqs last disabled at (836): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:396 softirqs last enabled at (816): [] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:31 softirqs last disabled at (814): [] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:18 ---[ end trace d2a23e2c57d70a45 ]---