syzbot


WARNING in vfs_setxattr (2)

Status: upstream: reported on 2025/10/20 19:54
Reported-by: syzbot+631c0639dcfc415f4294@syzkaller.appspotmail.com
First crash: 103d, last: 10d
Similar bugs (6)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 WARNING in vfs_setxattr -1 12 244d 524d 0/3 auto-obsoleted due to no activity on 2025/09/09 22:45
upstream WARNING in vfs_setxattr fs -1 1 1122d 1118d 0/29 auto-obsoleted due to no activity on 2023/04/06 11:38
linux-6.1 WARNING in vfs_setxattr -1 132 5d14h 659d 0/3 upstream: reported on 2024/04/12 18:51
upstream WARNING in vfs_setxattr (2) fs -1 1 961d 957d 0/29 auto-obsoleted due to no activity on 2023/09/13 15:16
upstream WARNING in vfs_setxattr (3) gfs2 -1 C 613 1d10h 170d 0/29 upstream: reported C repro on 2025/08/15 12:51
linux-6.6 WARNING in vfs_setxattr -1 14 9d18h 199d 0/2 upstream: reported on 2025/07/16 17:24

Sample crash report:
------------[ cut here ]------------
DEBUG_RWSEMS_WARN_ON((rwsem_owner(sem) != current) && !rwsem_test_oflags(sem, RWSEM_NONSPINNABLE)): count = 0x0, magic = 0xffff88805f0b8330, owner = 0x0, curr 0xffff88801d483b80, list empty
WARNING: CPU: 1 PID: 4566 at kernel/locking/rwsem.c:1350 __up_write kernel/locking/rwsem.c:1349 [inline]
WARNING: CPU: 1 PID: 4566 at kernel/locking/rwsem.c:1350 up_write+0x3a1/0x420 kernel/locking/rwsem.c:1604
Modules linked in:
CPU: 1 PID: 4566 Comm: syz.3.71 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025
RIP: 0010:__up_write kernel/locking/rwsem.c:1349 [inline]
RIP: 0010:up_write+0x3a1/0x420 kernel/locking/rwsem.c:1604
Code: 44 d0 48 c7 c7 00 1b 2b 8a 48 c7 c6 c0 1d 2b 8a 48 8b 14 24 4c 89 f1 4d 89 e0 4c 8b 4c 24 08 41 52 e8 03 9d 54 08 48 83 c4 08 <0f> 0b e9 6b fd ff ff 48 c7 c1 48 0c 8a 8d 80 e1 07 80 c1 03 38 c1
RSP: 0018:ffffc90002f0faf0 EFLAGS: 00010296
RAX: bfdacbef94def300 RBX: ffff88805f0b8330 RCX: 0000000000080000
RDX: ffffc9000f8ac000 RSI: 0000000000015608 RDI: 0000000000015609
RBP: dffffc0000000000 R08: ffff8880b9133d7f R09: 1ffff110172267af
R10: dffffc0000000000 R11: ffffed10172267b0 R12: 0000000000000000
R13: ffff88805f0b8388 R14: ffff88805f0b8330 R15: 1ffff1100be17067
FS:  00007f0584d2a6c0(0000) GS:ffff8880b9100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ff7fe696000 CR3: 000000005abda000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 inode_unlock include/linux/fs.h:792 [inline]
 vfs_setxattr+0x176/0x2e0 fs/xattr.c:305
 do_setxattr fs/xattr.c:588 [inline]
 setxattr+0x36c/0x390 fs/xattr.c:611
 path_setxattr+0x147/0x290 fs/xattr.c:630
 __do_sys_setxattr fs/xattr.c:646 [inline]
 __se_sys_setxattr fs/xattr.c:642 [inline]
 __x64_sys_setxattr+0xb7/0xd0 fs/xattr.c:642
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f0586aefcb9
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f0584d2a028 EFLAGS: 00000246 ORIG_RAX: 00000000000000bc
RAX: ffffffffffffffda RBX: 00007f0586d6b090 RCX: 00007f0586aefcb9
RDX: 0000200000001040 RSI: 00002000000001c0 RDI: 0000200000000000
RBP: 00007f0586b5dbf7 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000841 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f0586d6b128 R14: 00007f0586d6b090 R15: 00007ffc787121c8
 </TASK>

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/01/21 19:21 linux-5.15.y 9eec9a14ee10 8fc37797 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in vfs_setxattr
2025/12/25 03:16 linux-5.15.y 68efe5a6c16a d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in vfs_setxattr
2025/12/03 21:43 linux-5.15.y cc5ec8769306 d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in vfs_setxattr
2025/10/20 19:53 linux-5.15.y ac56c046adf4 d422939c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in vfs_setxattr
* Struck through repros no longer work on HEAD.