------------[ cut here ]------------ DEBUG_RWSEMS_WARN_ON((rwsem_owner(sem) != current) && !rwsem_test_oflags(sem, RWSEM_NONSPINNABLE)): count = 0x0, magic = 0xffff8880785fbd58, owner = 0x0, curr 0xffff88807dc60000, list empty WARNING: CPU: 1 PID: 5328 at kernel/locking/rwsem.c:1370 __up_write kernel/locking/rwsem.c:1369 [inline] WARNING: CPU: 1 PID: 5328 at kernel/locking/rwsem.c:1370 up_write+0x4f4/0x580 kernel/locking/rwsem.c:1626 Modules linked in: CPU: 1 PID: 5328 Comm: syz-executor110 Not tainted 6.5.0-syzkaller-11938-g65d6e954e378 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023 RIP: 0010:__up_write kernel/locking/rwsem.c:1369 [inline] RIP: 0010:up_write+0x4f4/0x580 kernel/locking/rwsem.c:1626 Code: 48 c7 c7 a0 9a 0a 8b 48 c7 c6 e0 9c 0a 8b 48 8b 54 24 28 48 8b 4c 24 18 4d 89 e0 4c 8b 4c 24 30 53 e8 b0 12 e8 ff 48 83 c4 08 <0f> 0b e9 75 fd ff ff 48 c7 c1 08 65 9a 8e 80 e1 07 80 c1 03 38 c1 RSP: 0018:ffffc90004baf880 EFLAGS: 00010292 RAX: 7c0ffd1807d4b400 RBX: ffffffff8b0a9b80 RCX: ffff88807dc60000 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: ffffc90004baf950 R08: ffffffff81541672 R09: 1ffff92000975e7c R10: dffffc0000000000 R11: fffff52000975e7d R12: 0000000000000000 R13: ffff8880785fbd58 R14: 1ffff92000975f18 R15: dffffc0000000000 FS: 00007f9c99c4c6c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f9ca106e000 CR3: 0000000020f30000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: inode_unlock include/linux/fs.h:807 [inline] open_last_lookups fs/namei.c:3567 [inline] path_openat+0x163a/0x3180 fs/namei.c:3793 do_filp_open+0x234/0x490 fs/namei.c:3823