------------[ cut here ]------------ DEBUG_RWSEMS_WARN_ON((rwsem_owner(sem) != current) && !rwsem_test_oflags(sem, RWSEM_NONSPINNABLE)): count = 0x0, magic = 0xffff000130b56a70, owner = 0x0, curr 0xffff000136620000, list empty WARNING: CPU: 0 PID: 10763 at kernel/locking/rwsem.c:1370 __up_write kernel/locking/rwsem.c:1369 [inline] WARNING: CPU: 0 PID: 10763 at kernel/locking/rwsem.c:1370 up_write+0x524/0x760 kernel/locking/rwsem.c:1626 Modules linked in: CPU: 0 PID: 10763 Comm: syz-executor.1 Not tainted 6.4.0-rc3-syzkaller-geb0f1697d729 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/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 : ffff800021567660 x29: ffff8000215676e0 x28: ffff800021567a34 x27: 1fffe0002616ad5b x26: dfff800000000000 x25: 1fffe0002616ad4f x24: ffff000130b56ac8 x23: 0000000000000000 x22: 0000000000000000 x21: ffff000136620000 x20: ffff000130b56a70 x19: ffff000130b56a70 x18: 1fffe000368447be x17: ffff800015ebd000 x16: ffff8000083120d4 x15: 0000000000000002 x14: ffff800015ec0570 x13: dfff800000000000 x12: 0000000000000003 x11: 0000000000000001 x10: 0000000000000003 x9 : 516685926a7fa200 x8 : 516685926a7fa200 x7 : ffff80000828b8f8 x6 : 0000000000000000 x5 : 0000000000000001 x4 : 0000000000000001 x3 : 0000000000000000 x2 : 0000000000000007 x1 : ffff80001259c940 x0 : ffff80019e418000 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] open_last_lookups fs/namei.c:3564 [inline] path_openat+0x1298/0x27f8 fs/namei.c:3788 do_filp_open+0x1bc/0x3cc fs/namei.c:3818 do_sys_openat2+0x128/0x3d8 fs/open.c:1356 do_sys_open fs/open.c:1372 [inline] __do_sys_openat fs/open.c:1388 [inline] __se_sys_openat fs/open.c:1383 [inline] __arm64_sys_openat+0x1f0/0x240 fs/open.c:1383 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x64/0x198 arch/arm64/kernel/syscall.c:193 el0_svc+0x4c/0x15c 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:591 irq event stamp: 1264 hardirqs last enabled at (1263): [] raw_spin_rq_unlock_irq kernel/sched/sched.h:1378 [inline] hardirqs last enabled at (1263): [] finish_lock_switch+0xbc/0x1e4 kernel/sched/core.c:5095 hardirqs last disabled at (1264): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405 softirqs last enabled at (986): [] softirq_handle_end kernel/softirq.c:414 [inline] softirqs last enabled at (986): [] __do_softirq+0xac0/0xd54 kernel/softirq.c:600 softirqs last disabled at (953): [] ____do_softirq+0x14/0x20 arch/arm64/kernel/irq.c:80 ---[ end trace 0000000000000000 ]---