DEBUG_RWSEMS_WARN_ON((rwsem_owner(sem) != current) && !rwsem_test_oflags(sem, RWSEM_NONSPINNABLE)): count = 0x0, magic = 0xffff888060ba6310, owner = 0x0, curr 0xffff888019e30000, list empty
WARNING: CPU: 1 PID: 3769 at kernel/locking/rwsem.c:1350 __up_write kernel/locking/rwsem.c:1349 [inline]
WARNING: CPU: 1 PID: 3769 at kernel/locking/rwsem.c:1350 up_write+0x4f5/0x580 kernel/locking/rwsem.c:1604
Modules linked in:
CPU: 1 PID: 3769 Comm: syz-executor.4 Not tainted 5.15.160-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024
RIP: 0010:__up_write kernel/locking/rwsem.c:1349 [inline]
RIP: 0010:up_write+0x4f5/0x580 kernel/locking/rwsem.c:1604
Code: 48 c7 c7 00 1d 8b 8a 48 c7 c6 c0 1f 8b 8a 48 8b 54 24 28 48 8b 4c 24 18 4d 89 e0 4c 8b 4c 24 30 53 e8 ff 0d ea ff 48 83 c4 08 <0f> 0b e9 71 fd ff ff 48 c7 c1 08 9a e4 8d 80 e1 07 80 c1 03 38 c1
RSP: 0018:ffffc90003017840 EFLAGS: 00010292
RAX: 84e21f86505f3000 RBX: ffffffff8a8b1de0 RCX: 0000000000040000
RDX: ffffc90005721000 RSI: 00000000000261e9 RDI: 00000000000261ea
RBP: ffffc90003017910 R08: ffffffff8166860c R09: ffffed10173667a8
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000
R13: ffff888060ba6310 R14: 1ffff92000602f10 R15: dffffc0000000000
FS: 00007fbb283416c0(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fce66ac6290 CR3: 000000005d37a000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
inode_unlock include/linux/fs.h:794 [inline]
open_last_lookups fs/namei.c:3536 [inline]
path_openat+0x154f/0x2f20 fs/namei.c:3739