------------[ cut here ]------------ DEBUG_RWSEMS_WARN_ON(!is_rwsem_reader_owned(sem)): count = 0x0, magic = 0xffff888042de5058, owner = 0x0, curr 0xffff888000bd8000, list empty WARNING: kernel/locking/rwsem.c:1354 at 0x0, CPU#0: syz.0.0/5343 Modules linked in: CPU: 0 UID: 0 PID: 5343 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 RIP: 0010:__up_read+0x5df/0x670 kernel/locking/rwsem.c:1354 Code: 23 6b 8b 49 c7 c2 00 24 6b 8b 4c 0f 44 d0 48 8b 7c 24 28 48 c7 c6 a0 23 6b 8b 4c 89 ea 48 8b 4c 24 20 4d 89 f0 4d 89 f9 41 52 <67> 48 0f b9 3a 48 83 c4 08 e8 c3 a4 eb 02 e9 6e fb ff ff 48 c7 c1 RSP: 0018:ffffc9000d52f8f8 EFLAGS: 00010246 RAX: ffffffff8b6b23e0 RBX: ffff888042de5058 RCX: ffff888042de5058 RDX: 0000000000000000 RSI: ffffffff8b6b23a0 RDI: ffffffff8f848b80 RBP: ffffc9000d52f9c8 R08: 0000000000000000 R09: ffff888000bd8000 R10: ffffffff8b6b23e0 R11: ffffed10085bca0d R12: ffff888042de50b0 R13: 0000000000000000 R14: 0000000000000000 R15: ffff888000bd8000 FS: 00007effee3536c0(0000) GS:ffff88808d683000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fff12195f80 CR3: 000000004293b000 CR4: 0000000000352ef0 Call Trace: inode_unlock_shared include/linux/fs.h:1052 [inline] lookup_slow+0x5e/0x70 fs/namei.c:1876 walk_component fs/namei.c:2221 [inline] link_path_walk+0xd1e/0x18d0 fs/namei.c:2589 path_parentat fs/namei.c:2793 [inline] __filename_parentat+0x246/0x670 fs/namei.c:2817 filename_parentat fs/namei.c:2835 [inline] filename_create+0xcf/0x360 fs/namei.c:4860 do_mkdirat+0xca/0x4b0 fs/namei.c:5156 __do_sys_mkdirat fs/namei.c:5186 [inline] __se_sys_mkdirat fs/namei.c:5184 [inline] __x64_sys_mkdirat+0x87/0xa0 fs/namei.c:5184 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7effed58f7c9 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:00007effee353038 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 00007effed7e6090 RCX: 00007effed58f7c9 RDX: 0000000000000000 RSI: 0000200000000240 RDI: ffffffffffffff9c RBP: 00007effed613f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007effed7e6128 R14: 00007effed7e6090 R15: 00007fff12196968 ---------------- Code disassembly (best guess): 0: 23 6b 8b and -0x75(%rbx),%ebp 3: 49 c7 c2 00 24 6b 8b mov $0xffffffff8b6b2400,%r10 a: 4c 0f 44 d0 cmove %rax,%r10 e: 48 8b 7c 24 28 mov 0x28(%rsp),%rdi 13: 48 c7 c6 a0 23 6b 8b mov $0xffffffff8b6b23a0,%rsi 1a: 4c 89 ea mov %r13,%rdx 1d: 48 8b 4c 24 20 mov 0x20(%rsp),%rcx 22: 4d 89 f0 mov %r14,%r8 25: 4d 89 f9 mov %r15,%r9 28: 41 52 push %r10 * 2a: 67 48 0f b9 3a ud1 (%edx),%rdi <-- trapping instruction 2f: 48 83 c4 08 add $0x8,%rsp 33: e8 c3 a4 eb 02 call 0x2eba4fb 38: e9 6e fb ff ff jmp 0xfffffbab 3d: 48 rex.W 3e: c7 .byte 0xc7 3f: c1 .byte 0xc1