------------[ cut here ]------------ WARNING: CPU: 1 PID: 20867 at block/genhd.c:589 del_gendisk+0x698/0x72c block/genhd.c:589 Modules linked in: CPU: 1 PID: 20867 Comm: syz-executor.1 Not tainted 5.15.138-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023 pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : del_gendisk+0x698/0x72c block/genhd.c:589 lr : del_gendisk+0x698/0x72c block/genhd.c:589 sp : ffff80001f9e7bc0 x29: ffff80001f9e7be0 x28: ffff00011eac8000 x27: 1fffe00019f6982a x26: 1fffe00022279810 x25: 1ffff00003f3cf88 x24: ffff0001113cc080 x23: 0000000000000000 x22: ffff0001113cc0a0 x21: ffff0001113cc000 x20: ffff0000ccfe2aa8 x19: 0000000000000240 x18: 0000000000000000 x17: ff8080000c02bfe4 x16: ffff8000082e99b0 x15: ffff80000c02bfe4 x14: 1ffff0000292406a x13: ffffffffffffffff x12: 0000000000040000 x11: 0000000000000c3a x10: ffff80002170c000 x9 : ffff80000a82ea44 x8 : 0000000000000c3b x7 : ffff80000c02c24c x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000001 x3 : ffff800011a3ab14 x2 : 0000000000000000 x1 : 0000000000000000 x0 : 0000000000000000 Call trace: del_gendisk+0x698/0x72c block/genhd.c:589 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: 140 hardirqs last enabled at (139): [] kasan_quarantine_put+0xdc/0x204 mm/kasan/quarantine.c:231 hardirqs last disabled at (140): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:396 softirqs last enabled at (122): [] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:31 softirqs last disabled at (120): [] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:18 ---[ end trace 6de37fcc3e858f5e ]---