------------[ cut here ]------------ WARNING: CPU: 1 PID: 3960 at block/genhd.c:589 del_gendisk+0x698/0x72c block/genhd.c:589 Modules linked in: CPU: 1 PID: 3960 Comm: syz-executor385 Not tainted 5.15.120-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/03/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 : ffff80001a2d7bc0 x29: ffff80001a2d7be0 x28: ffff0000da5c3680 x27: 1fffe0001acc162a x26: 1fffe000191b2110 x25: 1ffff0000345af88 x24: ffff0000c8d90880 x23: 0000000000000000 x22: ffff0000c8d908a0 x21: ffff0000c8d90800 x20: ffff0000cc91c718 x19: 0000000000000240 x18: 0000000000000000 x17: ff8080000c01db2c x16: ffff8000082e8c60 x15: ffff80000c01db2c x14: 1ffff0000291e06a x13: ffffffffffffffff x12: 0000000000000000 x11: ff8080000a825850 x10: 0000000000000000 x9 : ffff80000a825850 x8 : ffff0000da5c3680 x7 : ffff80000c01dd94 x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000001 x3 : ffff800011a21464 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:596 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 irq event stamp: 13524 hardirqs last enabled at (13523): [] kasan_quarantine_put+0xdc/0x204 mm/kasan/quarantine.c:231 hardirqs last disabled at (13524): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:387 softirqs last enabled at (12856): [] softirq_handle_end kernel/softirq.c:401 [inline] softirqs last enabled at (12856): [] __do_softirq+0xb5c/0xe20 kernel/softirq.c:587 softirqs last disabled at (12847): [] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline] softirqs last disabled at (12847): [] invoke_softirq kernel/softirq.c:439 [inline] softirqs last disabled at (12847): [] __irq_exit_rcu+0x28c/0x534 kernel/softirq.c:636 ---[ end trace 8620a6fa9472fbd2 ]---