------------[ cut here ]------------ DEBUG_RWSEMS_WARN_ON(!is_rwsem_reader_owned(sem)): count = 0x1, magic = 0xffff8880315b9e50, owner = 0xffff88801afd3880, curr 0xffff888021513880, list empty WARNING: CPU: 0 PID: 6262 at kernel/locking/rwsem.c:1292 __up_read+0x475/0x7b0 kernel/locking/rwsem.c:1292 Modules linked in: CPU: 0 PID: 6262 Comm: syz-executor.0 Not tainted 5.14.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 RIP: 0010:__up_read+0x475/0x7b0 kernel/locking/rwsem.c:1292 Code: 85 f7 02 00 00 ff 34 24 4d 89 f9 4c 89 f1 48 c7 c6 80 1c eb 88 48 8b 55 00 48 c7 c7 60 1a eb 88 4c 8b 44 24 10 e8 b2 89 07 07 <0f> 0b 5e e9 92 fc ff ff 48 8d 5d 58 c6 05 a1 8e 3f 0b 01 48 b8 00 RSP: 0018:ffffc900017cfb00 EFLAGS: 00010282 RAX: 0000000000000000 RBX: ffffffff8ca6c0a8 RCX: 0000000000000000 RDX: 0000000000000001 RSI: ffffffff893e8aa0 RDI: fffff520002f9f52 RBP: ffff8880315b9e50 R08: 0000000000000001 R09: ffff8880b9c4bf87 R10: ffffed10173897f0 R11: 57525f4755424544 R12: ffff8880315b9e58 R13: 1ffff920002f9f64 R14: ffff8880315b9e50 R15: ffff888021513880 FS: 00007fe94e164700(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 0000000032ceb000 CR4: 0000000000350ef0 Call Trace: inode_unlock_shared include/linux/fs.h:789 [inline] lookup_slow fs/namei.c:1664 [inline] walk_component+0x368/0x5f0 fs/namei.c:1959 lookup_last fs/namei.c:2414 [inline] path_lookupat+0x144/0x790 fs/namei.c:2438 filename_lookup+0x192/0x530 fs/namei.c:2467 user_path_at include/linux/namei.h:57 [inline] __do_sys_chdir fs/open.c:493 [inline] __se_sys_chdir fs/open.c:487 [inline] __x64_sys_chdir+0xa6/0x1f0 fs/open.c:487 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0x80 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7fe9570130c9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fe94e164168 EFLAGS: 00000246 ORIG_RAX: 0000000000000050 RAX: ffffffffffffffda RBX: 00007fe957133050 RCX: 00007fe9570130c9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000380 RBP: 00007fe95706eae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffdc01e0c0f R14: 00007fe94e164300 R15: 0000000000022000