------------[ cut here ]------------ DEBUG_RWSEMS_WARN_ON(!is_rwsem_reader_owned(sem)): count = 0x1, magic = 0xffff88804c864500, owner = 0xffff88802b8fa4c0, curr 0xffff88802d688000, list empty WARNING: kernel/locking/rwsem.c:1354 at __up_read+0x1b5/0x700 kernel/locking/rwsem.c:1354, CPU#1: syz-executor.3/7022 Modules linked in: CPU: 1 UID: 0 PID: 7022 Comm: syz-executor.3 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 RIP: 0010:__up_read+0x1c9/0x700 kernel/locking/rwsem.c:1354 Code: ea 03 80 3c 02 00 0f 85 e3 04 00 00 49 8b 17 48 8d 3d 9b c8 f8 0e 41 56 65 4c 8b 0d 79 12 2a 12 4c 89 e9 48 c7 c6 40 c0 af 8b <67> 48 0f b9 3a e8 dd 66 0f 03 5e bf 01 00 00 00 e8 32 84 f1 ff be RSP: 0018:ffffc90007727b48 EFLAGS: 00010246 RAX: dffffc0000000000 RBX: ffffffff90da0600 RCX: ffff88804c864500 RDX: 0000000000000001 RSI: ffffffff8bafc040 RDI: ffffffff90dd2630 RBP: ffff88804c864508 R08: ffff88802b8fa4c0 R09: ffff88802d688000 R10: ffff88804c864507 R11: 0000000000000000 R12: 1ffff92000ee4f6c R13: ffff88804c864500 R14: ffffffff8bafbda0 R15: ffff88804c864500 FS: 00007fd0b19d66c0(0000) GS:ffff8880d6439000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fd0b19d5f90 CR3: 000000004c38c000 CR4: 0000000000352ef0 Call Trace: inode_unlock_shared include/linux/fs.h:1053 [inline] lookup_slow+0x5b/0x70 fs/namei.c:1934 walk_component fs/namei.c:2279 [inline] lookup_last fs/namei.c:2786 [inline] path_lookupat+0x5e8/0xc40 fs/namei.c:2810 filename_lookup+0x202/0x590 fs/namei.c:2839 __do_sys_chdir fs/open.c:559 [inline] __se_sys_chdir fs/open.c:552 [inline] __x64_sys_chdir+0xc8/0x280 fs/open.c:552 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x106/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fd0b1a6e3f9 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 d0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fd0b19d6078 EFLAGS: 00000246 ORIG_RAX: 0000000000000050 RAX: ffffffffffffffda RBX: 00007fd0b1bac050 RCX: 00007fd0b1a6e3f9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000380 RBP: 00007fd0b1acf498 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007fd0b1bac050 R15: 00007ffc0d3f4358 ---------------- Code disassembly (best guess), 2 bytes skipped: 0: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) 4: 0f 85 e3 04 00 00 jne 0x4ed a: 49 8b 17 mov (%r15),%rdx d: 48 8d 3d 9b c8 f8 0e lea 0xef8c89b(%rip),%rdi # 0xef8c8af 14: 41 56 push %r14 16: 65 4c 8b 0d 79 12 2a mov %gs:0x122a1279(%rip),%r9 # 0x122a1297 1d: 12 1e: 4c 89 e9 mov %r13,%rcx 21: 48 c7 c6 40 c0 af 8b mov $0xffffffff8bafc040,%rsi * 28: 67 48 0f b9 3a ud1 (%edx),%rdi <-- trapping instruction 2d: e8 dd 66 0f 03 call 0x30f670f 32: 5e pop %rsi 33: bf 01 00 00 00 mov $0x1,%edi 38: e8 32 84 f1 ff call 0xfff1846f 3d: be .byte 0xbe