------------[ cut here ]------------ DEBUG_LOCKS_WARN_ON(lock->magic != lock) WARNING: CPU: 0 PID: 10708 at kernel/locking/mutex.c:587 __mutex_lock_common kernel/locking/mutex.c:587 [inline] WARNING: CPU: 0 PID: 10708 at kernel/locking/mutex.c:587 __mutex_lock+0xc41/0xd70 kernel/locking/mutex.c:752 Modules linked in: CPU: 0 UID: 0 PID: 10708 Comm: syz.3.583 Not tainted 6.12.0-rc4-syzkaller-00161-gae90f6a6170d #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:__mutex_lock_common kernel/locking/mutex.c:587 [inline] RIP: 0010:__mutex_lock+0xc41/0xd70 kernel/locking/mutex.c:752 Code: 0f b6 04 20 84 c0 0f 85 18 01 00 00 83 3d f6 34 55 04 00 75 19 90 48 c7 c7 00 b5 0a 8c 48 c7 c6 a0 b5 0a 8c e8 00 fd 8e f5 90 <0f> 0b 90 90 90 e9 bd f4 ff ff 90 0f 0b 90 e9 cf f8 ff ff 90 0f 0b RSP: 0018:ffffc900046377c0 EFLAGS: 00010246 RAX: 63f6062096e8e400 RBX: 0000000000000000 RCX: ffff888067c8bc00 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: ffffc90004637918 R08: ffffffff8155d322 R09: 1ffff110170e519a R10: dffffc0000000000 R11: ffffed10170e519b R12: dffffc0000000000 R13: ffff888061b3cdf0 R14: 0000000000000000 R15: ffff888020ef6000 FS: 00007f6e8a0ae6c0(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fcbf95ff000 CR3: 000000007c2b6000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ocfs2_trim_fs_lock_res_init+0x35/0x4d0 fs/ocfs2/dlmglue.c:702 ocfs2_trim_fs+0x13c/0x2940 fs/ocfs2/alloc.c:7662 ocfs2_ioctl+0x71a/0x7d0 fs/ocfs2/ioctl.c:936 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:907 [inline] __se_sys_ioctl+0xf9/0x170 fs/ioctl.c:893 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f6e8937e719 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:00007f6e8a0ae038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f6e89535f80 RCX: 00007f6e8937e719 RDX: 0000000020000000 RSI: 00000000c0185879 RDI: 0000000000000004 RBP: 00007f6e893f132e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f6e89535f80 R15: 00007ffe0daebe48