syzbot


WARNING in vfs_setxattr (2)

Status: upstream: reported on 2025/10/20 19:54
Reported-by: syzbot+631c0639dcfc415f4294@syzkaller.appspotmail.com
First crash: 9d07h, last: 9d07h
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 150d 429d 0/3 auto-obsoleted due to no activity on 2025/09/09 22:45
upstream WARNING in vfs_setxattr fs -1 1 1027d 1023d 0/29 auto-obsoleted due to no activity on 2023/04/06 11:38
linux-6.1 WARNING in vfs_setxattr -1 128 4d18h 565d 0/3 upstream: reported on 2024/04/12 18:51
upstream WARNING in vfs_setxattr (2) fs -1 1 867d 863d 0/29 auto-obsoleted due to no activity on 2023/09/13 15:16
upstream WARNING in vfs_setxattr (3) gfs2 -1 C 495 7h04m 75d 0/29 upstream: reported C repro on 2025/08/15 12:51
linux-6.6 WARNING in vfs_setxattr -1 6 20d 105d 0/2 upstream: reported on 2025/07/16 17:24

Sample crash report:
DEBUG_RWSEMS_WARN_ON((rwsem_owner(sem) != current) && !rwsem_test_oflags(sem, RWSEM_NONSPINNABLE)): count = 0x0, magic = 0xffff88805f42f930, owner = 0x0, curr 0xffff88807ceabb80, list empty
WARNING: CPU: 0 PID: 4987 at kernel/locking/rwsem.c:1350 __up_write kernel/locking/rwsem.c:1349 [inline]
WARNING: CPU: 0 PID: 4987 at kernel/locking/rwsem.c:1350 up_write+0x3a1/0x420 kernel/locking/rwsem.c:1604
Modules linked in:
CPU: 0 PID: 4987 Comm: syz.2.161 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/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 20 0c 0b 8a 48 c7 c6 e0 0e 0b 8a 48 8b 14 24 4c 89 f1 4d 89 e0 4c 8b 4c 24 08 41 52 e8 43 32 43 08 48 83 c4 08 <0f> 0b e9 6b fd ff ff 48 c7 c1 08 ce 69 8d 80 e1 07 80 c1 03 38 c1
RSP: 0018:ffffc9000345faf0 EFLAGS: 00010296
RAX: fbe8998739a28700 RBX: ffff88805f42f930 RCX: 0000000000080000
RDX: ffffc9000eb0c000 RSI: 00000000000090e8 RDI: 00000000000090e9
RBP: dffffc0000000000 R08: dffffc0000000000 R09: ffffed10172067b0
R10: ffffed10172067b0 R11: 1ffff110172067af R12: 0000000000000000
R13: ffff88805f42f988 R14: ffff88805f42f930 R15: 1ffff1100be85f27
FS:  00007fb39b4cc6c0(0000) GS:ffff8880b9100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b3250eff8 CR3: 00000000236dd000 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+0x177/0x2f0 fs/xattr.c:305
 do_setxattr fs/xattr.c:588 [inline]
 setxattr+0x2da/0x300 fs/xattr.c:611
 path_setxattr+0x142/0x280 fs/xattr.c:630
 __do_sys_lsetxattr fs/xattr.c:653 [inline]
 __se_sys_lsetxattr fs/xattr.c:649 [inline]
 __x64_sys_lsetxattr+0xb4/0xd0 fs/xattr.c:649
 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:0x7fb39d285fc9
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:00007fb39b4cc038 EFLAGS: 00000246 ORIG_RAX: 00000000000000bd
RAX: ffffffffffffffda RBX: 00007fb39d4dd090 RCX: 00007fb39d285fc9
RDX: 0000200000000100 RSI: 0000200000000040 RDI: 0000200000000000
RBP: 00007fb39d308f91 R08: 0000000000000002 R09: 0000000000000000
R10: 000000000000001c R11: 0000000000000246 R12: 0000000000000000
R13: 00007fb39d4dd128 R14: 00007fb39d4dd090 R15: 00007ffeba0d9718
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
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.