------------[ cut here ]------------ DEBUG_RWSEMS_WARN_ON(!is_rwsem_reader_owned(sem)): count = 0x0, magic = 0xffff0000e3070a90, owner = 0x0, curr 0xffff0000d0c9b780, list empty WARNING: CPU: 0 PID: 5354 at kernel/locking/rwsem.c:1345 __up_read+0x560/0x604 kernel/locking/rwsem.c:1345 Modules linked in: CPU: 0 PID: 5354 Comm: syz-executor537 Not tainted 6.1.64-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023 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 : ffff80001e847860 x29: ffff80001e8478f0 x28: 1ffff00002b020b0 x27: ffff800015810000 x26: dfff800000000000 x25: 0000000000000000 x24: ffff0000e3070ae8 x23: ffff0000d0c9b780 x22: ffff80001e847880 x21: 0000000000000000 x20: ffff0000e3070a90 x19: ffff0000e3070a90 x18: 0000000000000000 x17: 0000000000000000 x16: ffff8000121392fc x15: 0000000000000000 x14: 00000000ffffffff x13: 0000000000000001 x12: 0000000000000001 x11: 0000000000ff0100 x10: 0000000000000000 x9 : 1d7099f060649d00 x8 : 1d7099f060649d00 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff80001e847158 x4 : ffff8000158f2a20 x3 : ffff8000085890a0 x2 : 0000000000000001 x1 : 0000000100000000 x0 : 0000000000000000 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:771 [inline] lookup_slow+0x6c/0x84 fs/namei.c:1704 walk_component+0x280/0x36c fs/namei.c:1994 lookup_last fs/namei.c:2451 [inline] path_lookupat+0x13c/0x3d0 fs/namei.c:2475 filename_lookup+0x1d4/0x4e0 fs/namei.c:2504 user_path_at_empty+0x5c/0x84 fs/namei.c:2877 user_path_at include/linux/namei.h:57 [inline] do_mount fs/namespace.c:3380 [inline] __do_sys_mount fs/namespace.c:3591 [inline] __se_sys_mount fs/namespace.c:3568 [inline] __arm64_sys_mount+0x428/0x594 fs/namespace.c:3568 __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/0x218 arch/arm64/kernel/syscall.c:206 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: 74 hardirqs last enabled at (73): [] __up_console_sem+0xb4/0x100 kernel/printk/printk.c:261 hardirqs last disabled at (74): [] 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 ]--- ------------[ cut here ]------------ DEBUG_RWSEMS_WARN_ON(tmp < 0): count = 0xffffffffffffff00, magic = 0xffff0000e3070a90, owner = 0x0, curr 0xffff0000d0c9b780, list empty WARNING: CPU: 1 PID: 5354 at kernel/locking/rwsem.c:1350 __up_read+0x3c8/0x604 kernel/locking/rwsem.c:1350 Modules linked in: CPU: 1 PID: 5354 Comm: syz-executor537 Tainted: G W 6.1.64-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023 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 : ffff80001e847860 x29: ffff80001e8478f0 x28: 1ffff00002b020b0 x27: ffff800015810000 x26: dfff800000000000 x25: ffffffffffffff00 x24: ffff0000e3070ae8 x23: ffff0000e3070a90 x22: ffffffffffffff00 x21: 0000000000000000 x20: ffff0000d0c9b780 x19: ffff0000e3070a90 x18: 0000000000000000 x17: 0000000000000000 x16: ffff8000121392fc x15: 0000000000000000 x14: 00000000ffffffff x13: 0000000000000001 x12: 0000000000000001 x11: 0000000000ff0100 x10: 0000000000000000 x9 : 1d7099f060649d00 x8 : 1d7099f060649d00 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff80001e847158 x4 : ffff8000158f2a20 x3 : ffff8000085890a0 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:771 [inline] lookup_slow+0x6c/0x84 fs/namei.c:1704 walk_component+0x280/0x36c fs/namei.c:1994 lookup_last fs/namei.c:2451 [inline] path_lookupat+0x13c/0x3d0 fs/namei.c:2475 filename_lookup+0x1d4/0x4e0 fs/namei.c:2504 user_path_at_empty+0x5c/0x84 fs/namei.c:2877 user_path_at include/linux/namei.h:57 [inline] do_mount fs/namespace.c:3380 [inline] __do_sys_mount fs/namespace.c:3591 [inline] __se_sys_mount fs/namespace.c:3568 [inline] __arm64_sys_mount+0x428/0x594 fs/namespace.c:3568 __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/0x218 arch/arm64/kernel/syscall.c:206 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: 83 hardirqs last enabled at (83): [] __exit_to_kernel_mode arch/arm64/kernel/entry-common.c:84 [inline] hardirqs last enabled at (83): [] exit_to_kernel_mode+0xe8/0x118 arch/arm64/kernel/entry-common.c:94 hardirqs last disabled at (82): [] preempt_schedule_irq+0xa8/0x1b8 kernel/sched/core.c:6871 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 ]---