------------[ cut here ]------------ DEBUG_RWSEMS_WARN_ON((rwsem_owner(sem) != current) && !rwsem_test_oflags(sem, RWSEM_NONSPINNABLE)): count = 0x0, magic = 0xffff0000e7fa3e30, owner = 0x0, curr 0xffff0000c25db680, list empty WARNING: CPU: 1 PID: 4622 at kernel/locking/rwsem.c:1350 __up_write kernel/locking/rwsem.c:1349 [inline] WARNING: CPU: 1 PID: 4622 at kernel/locking/rwsem.c:1350 up_write+0x524/0x6f0 kernel/locking/rwsem.c:1604 Modules linked in: CPU: 1 PID: 4622 Comm: syz.0.166 Not tainted 5.15.173-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/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 : ffff80001fec78c0 x29: ffff80001fec78d0 x28: 0000000000000000 x27: ffff0000e7fa3e30 x26: dfff800000000000 x25: 1fffe0001cff47d3 x24: ffff0000e7fa3e88 x23: 0000000000000000 x22: 0000000000000000 x21: ffff0000c25db680 x20: ffff0000e7fa3e30 x19: ffff0000e7fa3e30 x18: ffff80001fec6f00 x17: 1fffe0003683318e x16: ffff800011b4c108 x15: 0000000000000002 x14: 1ffff0000296c06c x13: dfff800000000000 x12: 0000000000080000 x11: 0000000000006cc3 x10: ffff800024cfb000 x9 : 435bad96816b3100 x8 : 435bad96816b3100 x7 : 0000000000000000 x6 : 0000000000000000 x5 : 0000000000000080 x4 : 0000000000000000 x3 : ffff80000aa0ed5c x2 : ffff0001b4198d10 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_setxattr fs/xattr.c:646 [inline] __se_sys_setxattr fs/xattr.c:642 [inline] __arm64_sys_setxattr+0xbc/0xd8 fs/xattr.c:642 __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: 98 hardirqs last enabled at (97): [] raw_spin_rq_unlock_irq kernel/sched/sched.h:1338 [inline] hardirqs last enabled at (97): [] finish_lock_switch+0xbc/0x1e8 kernel/sched/core.c:4781 hardirqs last disabled at (98): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:396 softirqs last enabled at (8): [] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:31 softirqs last disabled at (6): [] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:18 ---[ end trace 57565ea77f15126e ]---