------------[ cut here ]------------ DEBUG_LOCKS_WARN_ON(lock->magic != lock) WARNING: CPU: 1 PID: 10934 at kernel/locking/mutex.c:564 __mutex_lock_common kernel/locking/mutex.c:564 [inline] WARNING: CPU: 1 PID: 10934 at kernel/locking/mutex.c:564 __mutex_lock+0x369/0xa60 kernel/locking/mutex.c:735 Modules linked in: CPU: 1 UID: 0 PID: 10934 Comm: syz.2.1480 Not tainted 6.12.0-syzkaller-09567-g7eef7e306d3c #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:__mutex_lock_common kernel/locking/mutex.c:564 [inline] RIP: 0010:__mutex_lock+0x369/0xa60 kernel/locking/mutex.c:735 Code: d0 7c 08 84 d2 0f 85 6d 06 00 00 8b 0d 40 99 32 05 85 c9 75 19 90 48 c7 c6 40 ca 6c 8b 48 c7 c7 a0 c8 6c 8b e8 58 bd 20 f6 90 <0f> 0b 90 90 90 e9 f2 fd ff ff 4c 8d b5 60 ff ff ff 48 89 df 4c 89 RSP: 0018:ffffc9000b857b10 EFLAGS: 00010286 RAX: 0000000000000000 RBX: ffff88807a94cdf0 RCX: ffffc9000d159000 RDX: 0000000000080000 RSI: ffffffff814f0d66 RDI: 0000000000000001 RBP: ffffc9000b857c50 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 000000002d2d2d2d R12: dffffc0000000000 R13: 0000000000000002 R14: 0000000000000000 R15: ffffc9000b857b90 FS: 00007efdd2e576c0(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f782767f000 CR3: 0000000063da6000 CR4: 0000000000350ef0 Call Trace: ocfs2_trim_fs_lock_res_init+0x23/0x60 fs/ocfs2/dlmglue.c:702 ocfs2_trim_fs+0xea/0x970 fs/ocfs2/alloc.c:7662 ocfs2_ioctl+0x626/0x6f0 fs/ocfs2/ioctl.c:936 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:906 [inline] __se_sys_ioctl fs/ioctl.c:892 [inline] __x64_sys_ioctl+0x193/0x200 fs/ioctl.c:892 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7efdd1f7e819 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007efdd2e57038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007efdd2135fa0 RCX: 00007efdd1f7e819 RDX: 0000000020000180 RSI: 00000000c0185879 RDI: 0000000000000004 RBP: 00007efdd1ff175e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007efdd2135fa0 R15: 00007ffd8b0e8af8