syzbot


WARNING in vfs_removexattr (2)

Status: upstream: reported on 2025/05/23 13:54
Reported-by: syzbot+c0c2c6f1dd865d654c31@syzkaller.appspotmail.com
First crash: 7d21h, last: 7d21h
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 WARNING in vfs_removexattr 1 380d 380d 0/3 auto-obsoleted due to no activity on 2024/08/24 01:07
linux-6.1 WARNING in vfs_removexattr 7 275d 301d 0/3 auto-obsoleted due to no activity on 2024/12/06 14:45
linux-6.1 WARNING in vfs_removexattr (2) 3 108d 137d 0/3 auto-obsoleted due to no activity on 2025/05/22 15:47
upstream WARNING in vfs_removexattr (2) fs 2 262d 284d 0/28 auto-obsoleted due to no activity on 2024/12/09 17:38
upstream WARNING in vfs_removexattr fs 2 402d 402d 0/28 auto-obsoleted due to no activity on 2024/07/22 12:52

Sample crash report:
DEBUG_RWSEMS_WARN_ON((rwsem_owner(sem) != current) && !rwsem_test_oflags(sem, RWSEM_NONSPINNABLE)): count = 0x0, magic = 0xffff0000e9310330, owner = 0x0, curr 0xffff0000c770b680, list empty
WARNING: CPU: 1 PID: 7304 at kernel/locking/rwsem.c:1350 __up_write kernel/locking/rwsem.c:1349 [inline]
WARNING: CPU: 1 PID: 7304 at kernel/locking/rwsem.c:1350 up_write+0x4e8/0x644 kernel/locking/rwsem.c:1604
Modules linked in:
CPU: 1 PID: 7304 Comm: syz.3.988 Not tainted 5.15.184-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : __up_write kernel/locking/rwsem.c:1349 [inline]
pc : up_write+0x4e8/0x644 kernel/locking/rwsem.c:1604
lr : __up_write kernel/locking/rwsem.c:1349 [inline]
lr : up_write+0x4e8/0x644 kernel/locking/rwsem.c:1604
sp : ffff80001fef7a80
x29: ffff80001fef7a90 x28: ffff0000c770b680 x27: ffff80001fef7b40
x26: dfff800000000000 x25: 1fffe0001d262073 x24: ffff0000e9310388
x23: 0000000000000000 x22: 0000000000000000 x21: ffff0000c770b680
x20: ffff0000e9310330 x19: ffff0000e9310330 x18: 0000000000000002
x17: 0000000040000000 x16: ffff8000111a5644 x15: 0000000000000002
x14: 0000000000ff0100 x13: 1ffff0000282a06b x12: 0000000000080000
x11: 000000000000a210 x10: ffff800025639000 x9 : 275a22bb65781a00
x8 : 275a22bb65781a00 x7 : 0000000000000000 x6 : 0000000000000000
x5 : 0000000000000080 x4 : 0000000000000000 x3 : ffff80000850383c
x2 : 0000000000000001 x1 : 0000000100000000 x0 : 00000000000000bd
Call trace:
 __up_write kernel/locking/rwsem.c:1349 [inline]
 up_write+0x4e8/0x644 kernel/locking/rwsem.c:1604
 inode_unlock include/linux/fs.h:792 [inline]
 vfs_removexattr+0x8c/0x190 fs/xattr.c:529
 removexattr fs/xattr.c:857 [inline]
 path_removexattr+0x188/0x31c fs/xattr.c:871
 __do_sys_removexattr fs/xattr.c:885 [inline]
 __se_sys_removexattr fs/xattr.c:882 [inline]
 __arm64_sys_removexattr+0x60/0x78 fs/xattr.c:882
 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
 invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52
 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181
 el0_svc+0x78/0x1e0 arch/arm64/kernel/entry-common.c:608
 el0t_64_sync_handler+0xcc/0xe4 arch/arm64/kernel/entry-common.c:626
 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
irq event stamp: 506
hardirqs last  enabled at (505): [<ffff800008244120>] raw_spin_rq_unlock_irq kernel/sched/sched.h:1338 [inline]
hardirqs last  enabled at (505): [<ffff800008244120>] finish_lock_switch+0xb0/0x1c4 kernel/sched/core.c:4784
hardirqs last disabled at (506): [<ffff8000111a0f18>] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:396
softirqs last  enabled at (500): [<ffff80000819d0d8>] softirq_handle_end kernel/softirq.c:401 [inline]
softirqs last  enabled at (500): [<ffff80000819d0d8>] handle_softirqs+0xa4c/0xbf0 kernel/softirq.c:586
softirqs last disabled at (185): [<ffff80000819d6dc>] __do_softirq kernel/softirq.c:592 [inline]
softirqs last disabled at (185): [<ffff80000819d6dc>] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline]
softirqs last disabled at (185): [<ffff80000819d6dc>] invoke_softirq kernel/softirq.c:439 [inline]
softirqs last disabled at (185): [<ffff80000819d6dc>] __irq_exit_rcu+0x240/0x440 kernel/softirq.c:641
---[ end trace 88f2b3d25f2b2956 ]---

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/05/23 13:53 linux-5.15.y 98f47d0e9b8c fa44301a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in vfs_removexattr
* Struck through repros no longer work on HEAD.