syzbot


WARNING in ocfs2_trim_fs_lock_res_init

Status: upstream: reported on 2025/08/18 00:25
Reported-by: syzbot+3b7e4c4935cee6d86a1d@syzkaller.appspotmail.com
First crash: 13d, last: 13d
Similar bugs (3)
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 13d 13d 0/3 upstream: reported on 2025/08/17 23:17
upstream WARNING in ocfs2_trim_fs_lock_res_init ocfs2 -1 51 5d16h 305d 0/29 upstream: reported on 2024/10/29 23:05
linux-5.15 WARNING in ocfs2_trim_fs_lock_res_init -1 2 316d 316d 0/3 auto-obsoleted due to no activity on 2025/01/27 05:01

Sample crash report:
loop0: detected capacity change from 0 to 32768
ocfs2: Readonly device (7,0) detected. Cluster services will not be used for this mount. Recovery will be skipped.
ocfs2: Mounting device (7,0) on (node local, slot 65535) with ordered data mode.
------------[ cut here ]------------
DEBUG_LOCKS_WARN_ON(lock->magic != lock)
WARNING: CPU: 1 PID: 5934 at kernel/locking/mutex.c:582 __mutex_lock_common kernel/locking/mutex.c:582 [inline]
WARNING: CPU: 1 PID: 5934 at kernel/locking/mutex.c:582 __mutex_lock+0xb8c/0xcc0 kernel/locking/mutex.c:747
Modules linked in:
CPU: 1 PID: 5934 Comm: syz.0.10 Not tainted 6.6.102-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/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 3d ca d4 03 00 0f 85 81 f5 ff ff 48 c7 c7 60 a4 aa 8a 48 c7 c6 00 a5 aa 8a e8 34 19 da 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:ffffc90004b2f7e0 EFLAGS: 00010246
RAX: 90878262fc896c00 RBX: ffff88807db78df0 RCX: 0000000000080000
RDX: ffffc9000cf4a000 RSI: 0000000000001db8 RDI: 0000000000001db9
RBP: ffffc90004b2f940 R08: ffff8880b8f28c13 R09: 1ffff110171e5182
R10: dffffc0000000000 R11: ffffed10171e5183 R12: 0000000000000000
R13: 1ffff92000965f0c R14: dffffc0000000000 R15: 0000000000000000
FS:  00007fc122d5a6c0(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2ea1bff8 CR3: 000000007eb6d000 CR4: 00000000003506e0
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:0x7fc121f8ebe9
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:00007fc122d5a038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007fc1221b5fa0 RCX: 00007fc121f8ebe9
RDX: 0000200000000080 RSI: 00000000c0185879 RDI: 0000000000000005
RBP: 00007fc122011e19 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fc1221b6038 R14: 00007fc1221b5fa0 R15: 00007ffc197dc968
 </TASK>

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/08/18 00:32 linux-6.6.y bb9c90ab9c5a 1804e95e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in ocfs2_trim_fs_lock_res_init
2025/08/18 00:29 linux-6.6.y bb9c90ab9c5a 1804e95e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in ocfs2_trim_fs_lock_res_init
2025/08/18 00:27 linux-6.6.y bb9c90ab9c5a 1804e95e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in ocfs2_trim_fs_lock_res_init
2025/08/18 00:24 linux-6.6.y bb9c90ab9c5a 1804e95e .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.