------------[ cut here ]------------ DEBUG_RWSEMS_WARN_ON((rwsem_owner(sem) != current) && !rwsem_test_oflags(sem, RWSEM_NONSPINNABLE)): count = 0x0, magic = 0xffff8880587791d8, owner = 0x0, curr 0xffff88801afe9e00, list empty WARNING: CPU: 0 PID: 9046 at kernel/locking/rwsem.c:1368 __up_write kernel/locking/rwsem.c:1367 [inline] WARNING: CPU: 0 PID: 9046 at kernel/locking/rwsem.c:1368 up_write+0x39a/0x420 kernel/locking/rwsem.c:1630 Modules linked in: CPU: 0 UID: 0 PID: 9046 Comm: syz.0.869 Not tainted 6.16.0-rc7-syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 RIP: 0010:__up_write kernel/locking/rwsem.c:1367 [inline] RIP: 0010:up_write+0x39a/0x420 kernel/locking/rwsem.c:1630 Code: 44 d0 48 c7 c7 a0 e3 0a 8b 48 c7 c6 c0 e5 0a 8b 48 8b 14 24 4c 89 f1 4d 89 e0 4c 8b 4c 24 08 41 52 e8 8a 87 e6 ff 48 83 c4 08 <0f> 0b e9 77 fd ff ff 48 c7 c1 b4 1d f1 8e 80 e1 07 80 c1 03 38 c1 RSP: 0018:ffffc9000c6c7db0 EFLAGS: 00010292 RAX: 4d7946aa856ab700 RBX: ffff8880587791d8 RCX: ffff88801afe9e00 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000002 RBP: dffffc0000000000 R08: ffffc9000c6c7ac7 R09: 1ffff920018d8f58 R10: dffffc0000000000 R11: fffff520018d8f59 R12: 0000000000000000 R13: ffff888058779230 R14: ffff8880587791d8 R15: 1ffff1100b0ef23c FS: 00007f16505f66c0(0000) GS:ffff888126b03000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f597b2ea001 CR3: 000000007777a000 CR4: 00000000003526f0 Call Trace: inode_unlock include/linux/fs.h:879 [inline] done_path_create fs/namei.c:4186 [inline] do_mknodat+0x428/0x4d0 fs/namei.c:4309 __do_sys_mknod fs/namei.c:4327 [inline] __se_sys_mknod fs/namei.c:4325 [inline] __x64_sys_mknod+0x8c/0xa0 fs/namei.c:4325 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x8a/0x300 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x76/0x7e RIP: 0033:0x7f164f78e9a9 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:00007f16505f6038 EFLAGS: 00000246 ORIG_RAX: 0000000000000085 RAX: ffffffffffffffda RBX: 00007f164f9b6080 RCX: 00007f164f78e9a9 RDX: 0000000000000700 RSI: 0000000000000000 RDI: 000020000009e000 RBP: 00007f164f810d69 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000001 R14: 00007f164f9b6080 R15: 00007fffb0d840b8