------------[ cut here ]------------ DEBUG_RWSEMS_WARN_ON((rwsem_owner(sem) != current) && !rwsem_test_oflags(sem, RWSEM_NONSPINNABLE)): count = 0x0, magic = 0xffff88804737a248, owner = 0x0, curr 0xffff888040c28000, list empty WARNING: CPU: 0 PID: 19391 at kernel/locking/rwsem.c:1380 __up_write kernel/locking/rwsem.c:1380 [inline] WARNING: CPU: 0 PID: 19391 at kernel/locking/rwsem.c:1380 up_write+0x469/0x520 kernel/locking/rwsem.c:1643 Modules linked in: CPU: 0 UID: 0 PID: 19391 Comm: syz.3.4765 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 RIP: 0010:__up_write kernel/locking/rwsem.c:1380 [inline] RIP: 0010:up_write+0x469/0x520 kernel/locking/rwsem.c:1643 Code: ea 03 80 3c 02 00 75 53 48 8b 13 41 55 4d 89 f1 4d 89 f8 4c 89 e1 48 c7 c6 a0 64 ad 8b 48 c7 c7 c0 63 ad 8b e8 d8 27 e3 ff 90 <0f> 0b 90 90 5a e9 96 fc ff ff 48 89 ef e8 95 ed 89 00 e9 03 fd ff RSP: 0018:ffffc90013aefe00 EFLAGS: 00010282 RAX: 0000000000000000 RBX: ffff88804737a248 RCX: ffffc900172f5000 RDX: 0000000000080000 RSI: ffffffff817a3395 RDI: 0000000000000001 RBP: ffff88804737a250 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: ffff88804737a248 R13: ffffffff8bad6300 R14: ffff888040c28000 R15: 0000000000000000 FS: 00007f026c00e6c0(0000) GS:ffff8881246b9000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000002080 CR3: 000000004f9bb000 CR4: 0000000000350ef0 Call Trace: inode_unlock include/linux/fs.h:879 [inline] done_path_create fs/namei.c:4177 [inline] do_mkdirat+0x1ce/0x3e0 fs/namei.c:4404 __do_sys_mkdirat fs/namei.c:4416 [inline] __se_sys_mkdirat fs/namei.c:4414 [inline] __x64_sys_mkdirat+0x83/0xb0 fs/namei.c:4414 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f026b18ebe9 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:00007f026c00e038 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 00007f026b3c6090 RCX: 00007f026b18ebe9 RDX: 000000000000011e RSI: 0000200000000100 RDI: ffffffffffffff9c RBP: 00007f026b211e19 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f026b3c6128 R14: 00007f026b3c6090 R15: 00007ffca7b8a058