DEBUG_RWSEMS_WARN_ON((rwsem_owner(sem) != current) && !rwsem_test_oflags(sem, RWSEM_NONSPINNABLE)): count = 0x0, magic = 0xffff0000e7b9dbb0, owner = 0x0, curr 0xffff0000da5c8000, list empty WARNING: CPU: 1 PID: 6642 at kernel/locking/rwsem.c:1350 __up_write kernel/locking/rwsem.c:1349 [inline] WARNING: CPU: 1 PID: 6642 at kernel/locking/rwsem.c:1350 up_write+0x524/0x6f0 kernel/locking/rwsem.c:1604 Modules linked in: CPU: 1 PID: 6642 Comm: syz-executor.2 Not tainted 5.15.160-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : __up_write kernel/locking/rwsem.c:1349 [inline] pc : up_write+0x524/0x6f0 kernel/locking/rwsem.c:1604 lr : __up_write kernel/locking/rwsem.c:1349 [inline] lr : up_write+0x524/0x6f0 kernel/locking/rwsem.c:1604 sp : ffff800022f57be0 x29: ffff800022f57bf0 x28: 1ffff000045eaf91 x27: dfff800000000000 x26: dfff800000000000 x25: 1fffe0001cf73b83 x24: ffff0000e7b9dc08 x23: 0000000000000000 x22: 0000000000000000 x21: ffff0000da5c8000 x20: ffff0000e7b9dbb0 x19: ffff0000e7b9dbb0 x18: 1fffe0003690158e x17: 1fffe0003690158e x16: ffff80001199c494 x15: ffff8000149eec00 x14: 1ffff0000292a06a x13: dfff800000000000 x12: 0000000000040000 x11: 0000000000022bc0 x10: ffff800024603000 x9 : 4d040a9867a6e900 x8 : 4d040a9867a6e900 x7 : 0000000000000000 x6 : 0000000000000000 x5 : 0000000000000080 x4 : 0000000000000000 x3 : ffff80000a9795c0 x2 : ffff0001b480ad10 x1 : 0000000100000000 x0 : 00000000000000bd Call trace: __up_write kernel/locking/rwsem.c:1349 [inline] up_write+0x524/0x6f0 kernel/locking/rwsem.c:1604 inode_unlock include/linux/fs.h:794 [inline] done_path_create fs/namei.c:3886 [inline] do_mkdirat+0x258/0x610 fs/namei.c:4093 __do_sys_mkdirat fs/namei.c:4105 [inline] __se_sys_mkdirat fs/namei.c:4103 [inline] __arm64_sys_mkdirat+0x90/0xa8 fs/namei.c:4103 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:608 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 irq event stamp: 320 hardirqs last enabled at (319): [] raw_spin_rq_unlock_irq kernel/sched/sched.h:1338 [inline] hardirqs last enabled at (319): [] finish_lock_switch+0xbc/0x1e8 kernel/sched/core.c:4784 hardirqs last disabled at (320): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:396 softirqs last enabled at (314): [] softirq_handle_end kernel/softirq.c:401 [inline] softirqs last enabled at (314): [] __do_softirq+0xb5c/0xdb0 kernel/softirq.c:587 softirqs last disabled at (293): [] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline] softirqs last disabled at (293): [] invoke_softirq kernel/softirq.c:439 [inline] softirqs last disabled at (293): [] __irq_exit_rcu+0x264/0x4d4 kernel/softirq.c:637 ---[ end trace adc7cb080612325a ]---