------------[ cut here ]------------ DEBUG_RWSEMS_WARN_ON(!is_rwsem_reader_owned(sem)): count = 0x0, magic = 0xffff0000f12e6a70, owner = 0x0, curr 0xffff0000d8f71bc0, list empty WARNING: CPU: 0 PID: 5127 at kernel/locking/rwsem.c:1345 __up_read+0x560/0x604 kernel/locking/rwsem.c:1345 Modules linked in: CPU: 0 PID: 5127 Comm: syz.0.188 Not tainted 6.1.106-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : __up_read+0x560/0x604 kernel/locking/rwsem.c:1345 lr : __up_read+0x560/0x604 kernel/locking/rwsem.c:1345 sp : ffff80001e737860 x29: ffff80001e7378f0 x28: 1ffff00002b380b0 x27: ffff8000159c0000 x26: dfff800000000000 x25: 0000000000000000 x24: ffff0000f12e6ac8 x23: ffff0000d8f71bc0 x22: ffff80001e737880 x21: 0000000000000000 x20: ffff0000f12e6a70 x19: ffff0000f12e6a70 x18: 1fffe00036864576 x17: ffff8000159bd000 x16: ffff800008305944 x15: ffff0001b4322bbc x14: 1ffff00002b380b0 x13: dfff800000000000 x12: 0000000000000003 x11: 0000000000ff0100 x10: 0000000000000003 x9 : 8c291f26439ab300 x8 : 8c291f26439ab300 x7 : ffff80000827d430 x6 : 0000000000000000 x5 : 0000000000000080 x4 : 0000000000000001 x3 : 0000000000000000 x2 : ffff80001e7373c0 x1 : ffff8000123dc680 x0 : ffff80019ea0f000 Call trace: __up_read+0x560/0x604 kernel/locking/rwsem.c:1345 up_read+0x38/0x48 kernel/locking/rwsem.c:1616 inode_unlock_shared include/linux/fs.h:773 [inline] lookup_slow+0x6c/0x84 fs/namei.c:1708 walk_component+0x280/0x36c fs/namei.c:1998 lookup_last fs/namei.c:2455 [inline] path_lookupat+0x13c/0x3d0 fs/namei.c:2479 filename_lookup+0x1d4/0x4e0 fs/namei.c:2508 user_path_at_empty+0x5c/0x84 fs/namei.c:2907 user_path_at include/linux/namei.h:57 [inline] do_mount fs/namespace.c:3391 [inline] __do_sys_mount fs/namespace.c:3602 [inline] __se_sys_mount fs/namespace.c:3579 [inline] __arm64_sys_mount+0x428/0x594 fs/namespace.c:3579 __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:140 do_el0_svc+0x64/0x218 arch/arm64/kernel/syscall.c:204 el0_svc+0x58/0x168 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 irq event stamp: 534 hardirqs last enabled at (533): [] raw_spin_rq_unlock_irq kernel/sched/sched.h:1367 [inline] hardirqs last enabled at (533): [] finish_lock_switch+0xbc/0x1e8 kernel/sched/core.c:5000 hardirqs last disabled at (534): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405 softirqs last enabled at (526): [] softirq_handle_end kernel/softirq.c:414 [inline] softirqs last enabled at (526): [] handle_softirqs+0xb84/0xd58 kernel/softirq.c:599 softirqs last disabled at (383): [] __do_softirq+0x14/0x20 kernel/softirq.c:605 ---[ end trace 0000000000000000 ]--- ------------[ cut here ]------------ DEBUG_RWSEMS_WARN_ON(tmp < 0): count = 0xffffffffffffff00, magic = 0xffff0000f12e6a70, owner = 0x0, curr 0xffff0000d8f71bc0, list empty WARNING: CPU: 0 PID: 5127 at kernel/locking/rwsem.c:1350 __up_read+0x3c8/0x604 kernel/locking/rwsem.c:1350 Modules linked in: CPU: 0 PID: 5127 Comm: syz.0.188 Tainted: G W 6.1.106-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : __up_read+0x3c8/0x604 kernel/locking/rwsem.c:1350 lr : __up_read+0x3c8/0x604 kernel/locking/rwsem.c:1350 sp : ffff80001e737860 x29: ffff80001e7378f0 x28: 1ffff00002b380b0 x27: ffff8000159c0000 x26: dfff800000000000 x25: ffffffffffffff00 x24: ffff0000f12e6ac8 x23: ffff0000f12e6a70 x22: ffffffffffffff00 x21: 0000000000000000 x20: ffff0000d8f71bc0 x19: ffff0000f12e6a70 x18: 1fffe00036864576 x17: 0000000000000000 x16: ffff80001228a15c x15: 0000000000000002 x14: 00000000ffffffff x13: 0000000000000001 x12: 0000000000040000 x11: 000000000001d2bc x10: ffff80001ec7b000 x9 : 8c291f26439ab300 x8 : 8c291f26439ab300 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff80001e737158 x4 : ffff800015aa2d40 x3 : ffff80000858d428 x2 : 0000000000000001 x1 : 0000000000000001 x0 : 0000000000000000 Call trace: __up_read+0x3c8/0x604 kernel/locking/rwsem.c:1350 up_read+0x38/0x48 kernel/locking/rwsem.c:1616 inode_unlock_shared include/linux/fs.h:773 [inline] lookup_slow+0x6c/0x84 fs/namei.c:1708 walk_component+0x280/0x36c fs/namei.c:1998 lookup_last fs/namei.c:2455 [inline] path_lookupat+0x13c/0x3d0 fs/namei.c:2479 filename_lookup+0x1d4/0x4e0 fs/namei.c:2508 user_path_at_empty+0x5c/0x84 fs/namei.c:2907 user_path_at include/linux/namei.h:57 [inline] do_mount fs/namespace.c:3391 [inline] __do_sys_mount fs/namespace.c:3602 [inline] __se_sys_mount fs/namespace.c:3579 [inline] __arm64_sys_mount+0x428/0x594 fs/namespace.c:3579 __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:140 do_el0_svc+0x64/0x218 arch/arm64/kernel/syscall.c:204 el0_svc+0x58/0x168 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 irq event stamp: 569 hardirqs last enabled at (569): [] __exit_to_kernel_mode arch/arm64/kernel/entry-common.c:84 [inline] hardirqs last enabled at (569): [] exit_to_kernel_mode+0xe8/0x118 arch/arm64/kernel/entry-common.c:94 hardirqs last disabled at (568): [] preempt_schedule_irq+0xa8/0x1b8 kernel/sched/core.c:6871 softirqs last enabled at (564): [] softirq_handle_end kernel/softirq.c:414 [inline] softirqs last enabled at (564): [] handle_softirqs+0xb84/0xd58 kernel/softirq.c:599 softirqs last disabled at (537): [] __do_softirq+0x14/0x20 kernel/softirq.c:605 ---[ end trace 0000000000000000 ]---