------------[ cut here ]------------ DEBUG_RWSEMS_WARN_ON((rwsem_owner(sem) != current) && !rwsem_test_oflags(sem, RWSEM_NONSPINNABLE)): count = 0x0, magic = 0xffff00012950c590, owner = 0x0, curr 0xffff0000d6373780, list empty WARNING: CPU: 1 PID: 18606 at kernel/locking/rwsem.c:1370 __up_write kernel/locking/rwsem.c:1369 [inline] WARNING: CPU: 1 PID: 18606 at kernel/locking/rwsem.c:1370 up_write+0x524/0x760 kernel/locking/rwsem.c:1626 Modules linked in: CPU: 1 PID: 18606 Comm: syz-executor.2 Not tainted 6.4.0-rc7-syzkaller-ge40939bbfc68 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/03/2023 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : __up_write kernel/locking/rwsem.c:1369 [inline] pc : up_write+0x524/0x760 kernel/locking/rwsem.c:1626 lr : __up_write kernel/locking/rwsem.c:1369 [inline] lr : up_write+0x524/0x760 kernel/locking/rwsem.c:1626 sp : ffff800097fa7b80 x29: ffff800097fa7c00 x28: 1ffff00012ff4f90 x27: 1fffe000252a18bf x26: dfff800000000000 x25: 1fffe000252a18b3 x24: ffff00012950c5e8 x23: 0000000000000000 x22: 0000000000000000 x21: ffff0000d6373780 x20: ffff00012950c590 x19: ffff00012950c590 x18: 1fffe00036846fc6 x17: ffff80008deed000 x16: ffff8000803123e0 x15: 0000000000000002 x14: 1ffff00011bde0ac x13: dfff800000000000 x12: 0000000000000003 x11: 0000000000000001 x10: 0000000000000003 x9 : 1c89ef21db162800 x8 : 1c89ef21db162800 x7 : ffff80008028cc04 x6 : 0000000000000000 x5 : 0000000000000001 x4 : 0000000000000001 x3 : 0000000000000000 x2 : 0000000000000007 x1 : ffff80008a5ade40 x0 : ffff8001263fc000 Call trace: __up_write kernel/locking/rwsem.c:1369 [inline] up_write+0x524/0x760 kernel/locking/rwsem.c:1626 inode_unlock include/linux/fs.h:780 [inline] done_path_create fs/namei.c:3935 [inline] do_symlinkat+0x3b4/0x6b0 fs/namei.c:4503 __do_sys_symlinkat fs/namei.c:4517 [inline] __se_sys_symlinkat fs/namei.c:4514 [inline] __arm64_sys_symlinkat+0xa4/0xbc fs/namei.c:4514 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x244 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x64/0x198 arch/arm64/kernel/syscall.c:191 el0_svc+0x4c/0x160 arch/arm64/kernel/entry-common.c:647 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:665 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:591 irq event stamp: 1332 hardirqs last enabled at (1331): [] raw_spin_rq_unlock_irq kernel/sched/sched.h:1378 [inline] hardirqs last enabled at (1331): [] finish_lock_switch+0xbc/0x1e4 kernel/sched/core.c:5095 hardirqs last disabled at (1332): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:407 softirqs last enabled at (1132): [] softirq_handle_end kernel/softirq.c:414 [inline] softirqs last enabled at (1132): [] __do_softirq+0xac0/0xd54 kernel/softirq.c:600 softirqs last disabled at (869): [] ____do_softirq+0x14/0x20 arch/arm64/kernel/irq.c:80 ---[ end trace 0000000000000000 ]---