------------[ cut here ]------------ DEBUG_LOCKS_WARN_ON(lock->magic != lock) WARNING: CPU: 1 PID: 8526 at kernel/locking/mutex.c:577 __mutex_lock_common+0x1a5c/0x2678 kernel/locking/mutex.c:577 Modules linked in: CPU: 1 UID: 0 PID: 8526 Comm: syz.5.362 Not tainted syzkaller #0 PREEMPT Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/03/2025 pstate: 63400005 (nZCv daif +PAN -UAO +TCO +DIT -SSBS BTYPE=--) pc : __mutex_lock_common+0x1a5c/0x2678 kernel/locking/mutex.c:577 lr : __mutex_lock_common+0x1a5c/0x2678 kernel/locking/mutex.c:577 sp : ffff80009f457520 x29: ffff80009f457700 x28: ffff80009f457680 x27: ffff80009f457660 x26: ffff80009f457620 x25: 0000000000000000 x24: dfff800000000000 x23: 0000000000000000 x22: 0000000000000000 x21: 0000000000000000 x20: 0000000000000000 x19: ffff0000d27d8df0 x18: 0000000000000000 x17: 0000000000000000 x16: ffff800082dee3c0 x15: 0000000000000001 x14: 1fffe000337de118 x13: 0000000000000000 x12: 0000000000000000 x11: ffff6000337de119 x10: 0000000000000003 x9 : aada0eb2b40ad500 x8 : aada0eb2b40ad500 x7 : 0000000000000000 x6 : ffff80008ae096c4 x5 : 0000000000000000 x4 : 0000000000000001 x3 : 0000000000000010 x2 : ffff80009f457190 x1 : ffff80008b3fb340 x0 : 0000000000000001 Call trace: __mutex_lock_common+0x1a5c/0x2678 kernel/locking/mutex.c:577 (P) __mutex_lock kernel/locking/mutex.c:760 [inline] mutex_lock_nested+0x2c/0x38 kernel/locking/mutex.c:812 ocfs2_trim_fs_lock_res_init+0x30/0x18c fs/ocfs2/dlmglue.c:703 ocfs2_trim_fs+0x118/0x1fc8 fs/ocfs2/alloc.c:7681 ocfs2_ioctl+0x650/0x738 fs/ocfs2/ioctl.c:932 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:597 [inline] __se_sys_ioctl fs/ioctl.c:583 [inline] __arm64_sys_ioctl+0x14c/0x1c4 fs/ioctl.c:583 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x254 arch/arm64/kernel/syscall.c:49 el0_svc_common+0xe8/0x23c arch/arm64/kernel/syscall.c:132 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151 el0_svc+0x5c/0x254 arch/arm64/kernel/entry-common.c:724 el0t_64_sync_handler+0x84/0x12c arch/arm64/kernel/entry-common.c:743 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:596 irq event stamp: 113 hardirqs last enabled at (113): [] kasan_quarantine_put+0x1a0/0x1c8 mm/kasan/quarantine.c:234 hardirqs last disabled at (112): [] kasan_quarantine_put+0x38/0x1c8 mm/kasan/quarantine.c:207 softirqs last enabled at (92): [] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:32 softirqs last disabled at (90): [] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:19 ---[ end trace 0000000000000000 ]--- (syz.5.362,8526,1):ocfs2_trim_fs:7688 ERROR: status = -30