------------[ cut here ]------------ DEBUG_RWSEMS_WARN_ON((rwsem_owner(sem) != current) && !rwsem_test_oflags(sem, RWSEM_NONSPINNABLE)): count = 0x1, magic = 0xffff888076c0cc98, owner = 0xffff888079b4da00, curr 0xffff888079ec1e00, list empty WARNING: CPU: 0 PID: 11485 at kernel/locking/rwsem.c:1367 __up_write kernel/locking/rwsem.c:1367 [inline] WARNING: CPU: 0 PID: 11485 at kernel/locking/rwsem.c:1367 up_write+0x469/0x520 kernel/locking/rwsem.c:1630 Modules linked in: CPU: 0 UID: 0 PID: 11485 Comm: syz.6.994 Not tainted 6.16.0-rc6-syzkaller-00002-g155a3c003e55 #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 RIP: 0010:__up_write kernel/locking/rwsem.c:1367 [inline] RIP: 0010:up_write+0x469/0x520 kernel/locking/rwsem.c:1630 Code: ea 03 80 3c 02 00 75 53 48 8b 13 41 55 4d 89 f1 4d 89 f8 4c 89 e1 48 c7 c6 c0 6d ad 8b 48 c7 c7 e0 6c ad 8b e8 98 22 e3 ff 90 <0f> 0b 90 90 5a e9 96 fc ff ff 48 89 ef e8 95 09 8a 00 e9 03 fd ff RSP: 0018:ffffc9000be8faa8 EFLAGS: 00010282 RAX: 0000000000000000 RBX: ffff888076c0cc98 RCX: ffffc9000dc95000 RDX: 0000000000080000 RSI: ffffffff817af1b5 RDI: 0000000000000001 RBP: ffff888076c0cca0 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000001 R12: ffff888076c0cc98 R13: ffffffff8bad6c20 R14: ffff888079ec1e00 R15: ffff888079b4da00 FS: 00007f91c0a136c0(0000) GS:ffff88812471a000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2dff8ff8 CR3: 0000000045d20000 CR4: 0000000000350ef0 Call Trace: inode_unlock include/linux/fs.h:879 [inline] vfs_setxattr+0x14f/0x360 fs/xattr.c:323 do_setxattr+0x145/0x180 fs/xattr.c:636 filename_setxattr+0x16b/0x1d0 fs/xattr.c:665 path_setxattrat+0x1de/0x2a0 fs/xattr.c:713 __do_sys_setxattr fs/xattr.c:747 [inline] __se_sys_setxattr fs/xattr.c:743 [inline] __x64_sys_setxattr+0xc6/0x140 fs/xattr.c:743 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f91bfb8e929 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:00007f91c0a13038 EFLAGS: 00000246 ORIG_RAX: 00000000000000bc RAX: ffffffffffffffda RBX: 00007f91bfdb6080 RCX: 00007f91bfb8e929 RDX: 00002000000003c0 RSI: 0000200000000380 RDI: 0000200000000040 RBP: 00007f91bfc10b39 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000f000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f91bfdb6080 R15: 00007ffe56ae0568