syzbot


WARNING: locking bug in vfs_setxattr

Status: moderation: reported on 2025/09/30 17:00
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+47b82338e14ef35d6347@syzkaller.appspotmail.com
First crash: 7d09h, last: 7d09h

Sample crash report:
gfs2: fsid=syz:syz.0: first mount done, others may mount
------------[ cut here ]------------
Looking for class "&inode->i_rwsem" with key lockdep_annotate_inode_mutex_key.__key, but found a different class "&sb->s_type->i_mutex_key" with the same key
WARNING: CPU: 1 PID: 8619 at kernel/locking/lockdep.c:942 look_up_lock_class+0xd6/0x170 kernel/locking/lockdep.c:939
Modules linked in:
CPU: 1 UID: 0 PID: 8619 Comm: syz.1.579 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/18/2025
RIP: 0010:look_up_lock_class+0xd6/0x170 kernel/locking/lockdep.c:939
Code: 01 0f 85 8c 00 00 00 c6 05 e4 0f 13 04 01 90 49 8b 16 49 8b 76 18 48 8b 8b b8 00 00 00 48 c7 c7 d4 ba ad 8d e8 fb cc 08 f6 90 <0f> 0b 90 90 eb 63 90 89 f3 e8 0c ac 4a f9 e8 37 81 26 f6 48 c7 c7
RSP: 0018:ffffc90004e67848 EFLAGS: 00010046
RAX: 105e84d0c1685000 RBX: ffffffff93530a18 RCX: 0000000000080000
RDX: ffffc9001c802000 RSI: 000000000000ba2e RDI: 000000000000ba2f
RBP: 0000000000000000 R08: ffff8880b8724253 R09: 1ffff110170e484a
R10: dffffc0000000000 R11: ffffed10170e484b R12: 0000000000000000
R13: ffff888052876598 R14: ffff888052876598 R15: ffffffff8e716638
FS:  00007f2af1fa76c0(0000) GS:ffff888125d12000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005555892b1588 CR3: 00000000303bd000 CR4: 0000000000350ef0
Call Trace:
 <TASK>
 register_lock_class+0x51/0x320 kernel/locking/lockdep.c:1294
 __lock_acquire+0x99/0xd20 kernel/locking/lockdep.c:5112
 lock_acquire+0x120/0x360 kernel/locking/lockdep.c:5868
 down_write+0x96/0x1f0 kernel/locking/rwsem.c:1590
 inode_lock include/linux/fs.h:870 [inline]
 vfs_setxattr+0x144/0x2f0 fs/xattr.c:320
 do_setxattr fs/xattr.c:636 [inline]
 filename_setxattr+0x274/0x600 fs/xattr.c:665
 path_setxattrat+0x364/0x3a0 fs/xattr.c:713
 __do_sys_setxattr fs/xattr.c:747 [inline]
 __se_sys_setxattr fs/xattr.c:743 [inline]
 __x64_sys_setxattr+0xbc/0xe0 fs/xattr.c:743
 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:0x7f2af118eec9
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:00007f2af1fa7038 EFLAGS: 00000246 ORIG_RAX: 00000000000000bc
RAX: ffffffffffffffda RBX: 00007f2af13e6090 RCX: 00007f2af118eec9
RDX: 00002000000001c0 RSI: 0000200000000100 RDI: 00002000000000c0
RBP: 00007f2af1211f91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000009 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f2af13e6128 R14: 00007f2af13e6090 R15: 00007ffde115a9a8
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/09/26 16:48 upstream 4ff71af020ae 0abd0691 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING: locking bug in vfs_setxattr
* Struck through repros no longer work on HEAD.