------------[ cut here ]------------ DEBUG_RWSEMS_WARN_ON((rwsem_owner(sem) != current) && !rwsem_test_oflags(sem, RWSEM_NONSPINNABLE)): count = 0x0, magic = 0xffff00011890a0b0, owner = 0x0, curr 0xffff000119651bc0, list empty WARNING: CPU: 1 PID: 11370 at kernel/locking/rwsem.c:1370 __up_write kernel/locking/rwsem.c:1369 [inline] WARNING: CPU: 1 PID: 11370 at kernel/locking/rwsem.c:1370 up_write+0x524/0x760 kernel/locking/rwsem.c:1626 Modules linked in: CPU: 1 PID: 11370 Comm: syz-executor.4 Not tainted 6.4.0-rc5-syzkaller-gf86b85033b8c #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/2023 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : __up_write kernel/locking/rwsem.c:1369 [inline] pc : up_write+0x524/0x760 kernel/locking/rwsem.c:1626 lr : __up_write kernel/locking/rwsem.c:1369 [inline] lr : up_write+0x524/0x760 kernel/locking/rwsem.c:1626 sp : ffff8000a47d7880 x29: ffff8000a47d7900 x28: 0000000000000000 x27: 1fffe00023121423 x26: dfff800000000000 x25: 1fffe00023121417 x24: ffff00011890a108 x23: 0000000000000000 x22: 0000000000000000 x21: ffff000119651bc0 x20: ffff00011890a0b0 x19: ffff00011890a0b0 x18: 1fffe00036848bc6 x17: ffff80008debd000 x16: ffff8000803122b8 x15: 0000000000000002 x14: 1ffff00011bd80ac x13: dfff800000000000 x12: 0000000000000003 x11: 0000000000000001 x10: 0000000000000003 x9 : 7f9f5785af123f00 x8 : 7f9f5785af123f00 x7 : ffff80008028cadc x6 : 0000000000000000 x5 : 0000000000000001 x4 : 0000000000000001 x3 : 0000000000000000 x2 : 0000000000000007 x1 : ffff80008a59de40 x0 : ffff80012643a000 Call trace: __up_write kernel/locking/rwsem.c:1369 [inline] up_write+0x524/0x760 kernel/locking/rwsem.c:1626 inode_unlock include/linux/fs.h:780 [inline] vfs_setxattr+0x1b4/0x344 fs/xattr.c:324 do_setxattr fs/xattr.c:630 [inline] setxattr+0x208/0x29c fs/xattr.c:653 path_setxattr+0x17c/0x258 fs/xattr.c:672 __do_sys_setxattr fs/xattr.c:688 [inline] __se_sys_setxattr fs/xattr.c:684 [inline] __arm64_sys_setxattr+0xbc/0xd8 fs/xattr.c:684 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x244 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x64/0x198 arch/arm64/kernel/syscall.c:191 el0_svc+0x4c/0x160 arch/arm64/kernel/entry-common.c:647 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:665 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:591 irq event stamp: 280 hardirqs last enabled at (279): [] raw_spin_rq_unlock_irq kernel/sched/sched.h:1378 [inline] hardirqs last enabled at (279): [] finish_lock_switch+0xbc/0x1e4 kernel/sched/core.c:5095 hardirqs last disabled at (280): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:407 softirqs last enabled at (170): [] softirq_handle_end kernel/softirq.c:414 [inline] softirqs last enabled at (170): [] __do_softirq+0xac0/0xd54 kernel/softirq.c:600 softirqs last disabled at (143): [] ____do_softirq+0x14/0x20 arch/arm64/kernel/irq.c:80 ---[ end trace 0000000000000000 ]---