syzbot


WARNING: locking bug in ocfs2_inode_lock_full_nested

Status: upstream: reported on 2025/09/26 01:34
Subsystems: ocfs2
[Documentation on labels]
Reported-by: syzbot+f1b7d3d179cd1db8518a@syzkaller.appspotmail.com
First crash: 4d10h, last: 4d10h
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [ocfs2?] WARNING: locking bug in ocfs2_inode_lock_full_nested 0 (1) 2025/09/26 01:34
Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 WARNING: locking bug in ocfs2_inode_lock_full_nested 4 3 207d 247d 0/3 auto-obsoleted due to no activity on 2025/06/10 19:15

Sample crash report:
loop3: detected capacity change from 0 to 1024
------------[ cut here ]------------
DEBUG_LOCKS_WARN_ON(!test_bit(class_idx, lock_classes_in_use))
WARNING: CPU: 0 PID: 10994 at kernel/locking/lockdep.c:5207 __lock_acquire+0xc0c/0xd20 kernel/locking/lockdep.c:5207
Modules linked in:
CPU: 0 UID: 0 PID: 10994 Comm: syz.3.280 Not tainted syzkaller #0 PREEMPT_{RT,(full)} 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/18/2025
RIP: 0010:__lock_acquire+0xc0c/0xd20 kernel/locking/lockdep.c:5207
Code: ff ff 90 e8 26 94 18 03 85 c0 74 22 83 3d bf 60 81 0d 00 75 19 90 48 c7 c7 2c 9f 21 8d 48 c7 c6 ca ed 09 8d e8 75 2c e7 ff 90 <0f> 0b 90 90 90 e9 8f 00 00 00 90 0f 0b 90 e9 8d fe ff ff 90 e8 eb
RSP: 0018:ffffc90004b97410 EFLAGS: 00010046
RAX: a5a653e04eba8400 RBX: ffff88802d45d940 RCX: 0000000000080000
RDX: ffffc9000db71000 RSI: 0000000000000af6 RDI: 0000000000000af7
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: dffffc0000000000 R11: ffffed1017104863 R12: 0000000000000004
R13: 0000000000000004 R14: ffff88802d45e4b0 R15: 0000000000000000
FS:  00007f39acc7e6c0(0000) GS:ffff8881268bc000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 000000003cd8e000 CR4: 00000000003526f0
Call Trace:
 <TASK>
 lock_acquire+0x120/0x360 kernel/locking/lockdep.c:5868
 rt_spin_lock+0x88/0x2c0 kernel/locking/spinlock_rt.c:56
 spin_lock include/linux/spinlock_rt.h:44 [inline]
 ocfs2_is_hard_readonly fs/ocfs2/ocfs2.h:665 [inline]
 ocfs2_inode_lock_full_nested+0x120/0x1b20 fs/ocfs2/dlmglue.c:2446
 ocfs2_inode_lock_tracker+0x1be/0x660 fs/ocfs2/dlmglue.c:2691
 ocfs2_setattr+0x731/0x1b40 fs/ocfs2/file.c:1173
 notify_change+0xb34/0xe60 fs/attr.c:552
 chown_common+0x40c/0x5c0 fs/open.c:791
 do_fchownat+0x161/0x270 fs/open.c:822
 __do_sys_lchown fs/open.c:847 [inline]
 __se_sys_lchown fs/open.c:845 [inline]
 __x64_sys_lchown+0x85/0xa0 fs/open.c:845
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f39aea1ec29
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:00007f39acc7e038 EFLAGS: 00000246 ORIG_RAX: 000000000000005e
RAX: ffffffffffffffda RBX: 00007f39aec65fa0 RCX: 00007f39aea1ec29
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000200000000a80
RBP: 00007f39aeaa1e41 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f39aec66038 R14: 00007f39aec65fa0 R15: 00007ffeedc44808
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/09/22 01:30 upstream 2d5bd41a4505 67c37560 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING: locking bug in ocfs2_inode_lock_full_nested
* Struck through repros no longer work on HEAD.