------------[ cut here ]------------ DEBUG_RWSEMS_WARN_ON((rwsem_owner(sem) != current) && !rwsem_test_oflags(sem, RWSEM_NONSPINNABLE)): count = 0x0, magic = 0xffff0000ca7363e0, owner = 0x0, curr 0xffff0000c68e1a40, list empty WARNING: CPU: 0 PID: 4950 at kernel/locking/rwsem.c:1361 __up_write+0x224/0x24c kernel/locking/rwsem.c:1360 Modules linked in: CPU: 0 PID: 4950 Comm: syz-executor181 Not tainted 6.1.0-rc8-syzkaller-33330-ga5541c0811a0 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/30/2022 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : __up_write+0x224/0x24c kernel/locking/rwsem.c:1360 lr : __up_write+0x224/0x24c kernel/locking/rwsem.c:1360 sp : ffff800013703d30 x29: ffff800013703d30 x28: ffff0000c68e1a40 x27: 0000000000000000 x26: 0000000000000000 x25: 0000000000000000 x24: ffff0000ca5b1618 x23: 0000000000000002 x22: 0000000000000000 x21: ffff80000d37c000 x20: ffff0000ca7363e0 x19: ffff0000ca7363e0 x18: 0000000000000303 x17: 0000000000000000 x16: ffff80000dbe6158 x15: ffff0000c68e1a40 x14: 0000000000000000 x13: 00000000ffffffff x12: ffff0000c68e1a40 x11: ff808000081c4d64 x10: 0000000000000000 x9 : 84be4f0e23c45000 x8 : 84be4f0e23c45000 x7 : ffff80000816678c x6 : 0000000000000000 x5 : 0000000000000080 x4 : 0000000000000001 x3 : 0000000000000000 x2 : 0000000000000007 x1 : 0000000100000000 x0 : 00000000000000bd Call trace: __up_write+0x224/0x24c kernel/locking/rwsem.c:1360 up_write+0x38/0x48 kernel/locking/rwsem.c:1615 inode_unlock include/linux/fs.h:761 [inline] done_path_create fs/namei.c:3857 [inline] do_mkdirat+0x100/0x22c fs/namei.c:4064 __do_sys_mkdirat fs/namei.c:4076 [inline] __se_sys_mkdirat fs/namei.c:4074 [inline] __arm64_sys_mkdirat+0x40/0x54 fs/namei.c:4074 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall arch/arm64/kernel/syscall.c:52 [inline] el0_svc_common+0x138/0x220 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x48/0x140 arch/arm64/kernel/syscall.c:197 el0_svc+0x58/0x150 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:584 irq event stamp: 132 hardirqs last enabled at (131): [] raw_spin_rq_unlock_irq kernel/sched/sched.h:1366 [inline] hardirqs last enabled at (131): [] finish_lock_switch+0x94/0xe8 kernel/sched/core.c:4968 hardirqs last disabled at (132): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405 softirqs last enabled at (8): [] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:32 softirqs last disabled at (6): [] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:19 ---[ end trace 0000000000000000 ]---