syzbot


WARNING in ocfs2_trim_fs_lock_res_init (2)

Status: upstream: reported on 2025/12/16 21:39
Reported-by: syzbot+8be863e9cfecb2c648d7@syzkaller.appspotmail.com
First crash: 6d22h, last: 1d01h
Similar bugs (4)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 WARNING in ocfs2_trim_fs_lock_res_init (2) -1 1 127d 127d 0/3 auto-obsoleted due to no activity on 2025/11/25 23:17
upstream WARNING in ocfs2_trim_fs_lock_res_init ocfs2 -1 85 8d08h 419d 0/29 upstream: reported on 2024/10/29 23:05
linux-6.6 WARNING in ocfs2_trim_fs_lock_res_init -1 4 127d 127d 0/2 auto-obsoleted due to no activity on 2025/11/26 00:33
linux-5.15 WARNING in ocfs2_trim_fs_lock_res_init -1 2 430d 430d 0/3 auto-obsoleted due to no activity on 2025/01/27 05:01

Sample crash report:
(syz.4.100,6432,1):ocfs2_block_check_validate:402 ERROR: CRC32 failed: stored: 0xb3775c19, computed 0x2dd1c265. Applying ECC.
ocfs2: Readonly device (7,4) detected. Cluster services will not be used for this mount. Recovery will be skipped.
ocfs2: Mounting device (7,4) on (node local, slot 65535) with ordered data mode.
------------[ cut here ]------------
DEBUG_LOCKS_WARN_ON(lock->magic != lock)
WARNING: CPU: 0 PID: 6432 at kernel/locking/mutex.c:582 __mutex_lock_common kernel/locking/mutex.c:582 [inline]
WARNING: CPU: 0 PID: 6432 at kernel/locking/mutex.c:582 __mutex_lock+0xb8c/0xcc0 kernel/locking/mutex.c:747
Modules linked in:
CPU: 0 PID: 6432 Comm: syz.4.100 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025
RIP: 0010:__mutex_lock_common kernel/locking/mutex.c:582 [inline]
RIP: 0010:__mutex_lock+0xb8c/0xcc0 kernel/locking/mutex.c:747
Code: 04 08 84 c0 0f 85 20 01 00 00 83 3d 9d 38 da 03 00 0f 85 81 f5 ff ff 48 c7 c7 80 a7 aa 8a 48 c7 c6 20 a8 aa 8a e8 84 ef df f6 <0f> 0b e9 67 f5 ff ff 0f 0b e9 47 f9 ff ff 0f 0b e9 ff f5 ff ff 48
RSP: 0018:ffffc90003b877e0 EFLAGS: 00010246
RAX: c73fb6d471c40400 RBX: ffff88807dfe8df0 RCX: ffff88802f315a00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000002
RBP: ffffc90003b87940 R08: ffffc90003b873e7 R09: 1ffff92000770e7c
R10: dffffc0000000000 R11: fffff52000770e7d R12: 0000000000000000
R13: 1ffff92000770f0c R14: dffffc0000000000 R15: 0000000000000000
FS:  00007f23ad82e6c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fbb9a275a10 CR3: 00000000670c5000 CR4: 00000000003506f0
Call Trace:
 <TASK>
 ocfs2_trim_fs_lock_res_init+0x33/0x1c0 fs/ocfs2/dlmglue.c:702
 ocfs2_trim_fs+0x12a/0x22d0 fs/ocfs2/alloc.c:7663
 ocfs2_ioctl+0x694/0x750 fs/ocfs2/ioctl.c:935
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:871 [inline]
 __se_sys_ioctl+0xfd/0x170 fs/ioctl.c:857
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f23ac98f749
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:00007f23ad82e038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f23acbe5fa0 RCX: 00007f23ac98f749
RDX: 0000200000000080 RSI: 00000000c0185879 RDI: 0000000000000004
RBP: 00007f23aca13f91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f23acbe6038 R14: 00007f23acbe5fa0 R15: 00007ffd7c697dc8
 </TASK>

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/12/22 18:36 linux-6.6.y 5fa4793a2d2d d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in ocfs2_trim_fs_lock_res_init
2025/12/16 21:38 linux-6.6.y 5fa4793a2d2d d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in ocfs2_trim_fs_lock_res_init
* Struck through repros no longer work on HEAD.