DEBUG_RWSEMS_WARN_ON((rwsem_owner(sem) != current) && !rwsem_test_oflags(sem, RWSEM_NONSPINNABLE)): count = 0x0, magic = 0xffff0000de3bf1d0, owner = 0x0, curr 0xffff0000ce5151c0, list empty WARNING: CPU: 0 PID: 4110 at kernel/locking/rwsem.c:1350 __up_write kernel/locking/rwsem.c:1349 [inline] WARNING: CPU: 0 PID: 4110 at kernel/locking/rwsem.c:1350 up_write+0x524/0x6f0 kernel/locking/rwsem.c:1604 Modules linked in: CPU: 0 PID: 4110 Comm: syz.3.6 Not tainted 5.15.166-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : __up_write kernel/locking/rwsem.c:1349 [inline] pc : up_write+0x524/0x6f0 kernel/locking/rwsem.c:1604 lr : __up_write kernel/locking/rwsem.c:1349 [inline] lr : up_write+0x524/0x6f0 kernel/locking/rwsem.c:1604 sp : ffff80001fe178c0 x29: ffff80001fe178d0 x28: 0000000000000000 x27: ffff0000de3bf1d0 x26: dfff800000000000 x25: 1fffe0001bc77e47 x24: ffff0000de3bf228 x23: 0000000000000000 x22: 0000000000000000 x21: ffff0000ce5151c0 x20: ffff0000de3bf1d0 x19: ffff0000de3bf1d0 x18: 0000000000000001 x17: 0000000000000002 x16: ffff800011ab846c x15: 00000000ffffffff x14: ffff0000ce5151c0 x13: 0000000000000001 x12: 0000000000040000 x11: 00000000000072f6 x10: ffff80002303a000 x9 : 74424ee2e93b3900 x8 : 74424ee2e93b3900 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff80001fe17038 x4 : ffff800014b8faa0 x3 : ffff800008556ba4 x2 : 0000000000000001 x1 : 0000000100000000 x0 : 00000000000000bd Call trace: __up_write kernel/locking/rwsem.c:1349 [inline] up_write+0x524/0x6f0 kernel/locking/rwsem.c:1604 inode_unlock include/linux/fs.h:794 [inline] vfs_setxattr+0x1b4/0x344 fs/xattr.c:305 do_setxattr fs/xattr.c:588 [inline] setxattr+0x250/0x2b4 fs/xattr.c:611 path_setxattr+0x17c/0x258 fs/xattr.c:630 __do_sys_lsetxattr fs/xattr.c:653 [inline] __se_sys_lsetxattr fs/xattr.c:649 [inline] __arm64_sys_lsetxattr+0xbc/0xd8 fs/xattr.c:649 __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+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:608 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 irq event stamp: 226 hardirqs last enabled at (225): [] __up_console_sem+0xb4/0x100 kernel/printk/printk.c:257 hardirqs last disabled at (226): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:396 softirqs last enabled at (212): [] softirq_handle_end kernel/softirq.c:401 [inline] softirqs last enabled at (212): [] handle_softirqs+0xb88/0xdbc kernel/softirq.c:586 softirqs last disabled at (195): [] __do_softirq kernel/softirq.c:592 [inline] softirqs last disabled at (195): [] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline] softirqs last disabled at (195): [] invoke_softirq kernel/softirq.c:439 [inline] softirqs last disabled at (195): [] __irq_exit_rcu+0x268/0x4d8 kernel/softirq.c:641 ---[ end trace c017df8bd741d7c7 ]---