------------[ cut here ]------------ DEBUG_RWSEMS_WARN_ON(!is_rwsem_reader_owned(sem)): count = 0x1, magic = 0xffff0000e40871d0, owner = 0xffff0000cd143c00, curr 0xffff0000cebf5a00, list empty WARNING: CPU: 1 PID: 8960 at kernel/locking/rwsem.c:1343 __up_read+0x554/0x5f8 kernel/locking/rwsem.c:1343 Modules linked in: CPU: 1 PID: 8960 Comm: syz-executor.0 Not tainted 6.7.0-rc8-syzkaller-00101-g0802e17d9aca #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : __up_read+0x554/0x5f8 kernel/locking/rwsem.c:1343 lr : __up_read+0x554/0x5f8 kernel/locking/rwsem.c:1343 sp : ffff8000979a7880 x29: ffff8000979a7910 x28: 1ffff00011c9e089 x27: ffff80008e4f0000 x26: dfff800000000000 x25: 0000000000000001 x24: ffff0000e4087228 x23: ffff0000cebf5a00 x22: ffff8000979a78a0 x21: ffff0000cd143c00 x20: ffff0000e40871d0 x19: ffff0000e40871d0 x18: ffff8000979a7340 x17: 0000000000000000 x16: ffff80008a830eb8 x15: 0000000000000001 x14: 1fffe0003682a63a x13: 0000000000000000 x12: 0000000000000000 x11: 0000000000000002 x10: 0000000000ff0100 x9 : 9255c0fd1eb71c00 x8 : 9255c0fd1eb71c00 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff8000979a7178 x4 : ffff80008e5d20c0 x3 : ffff8000805ab6bc x2 : 0000000000000001 x1 : 0000000100000000 x0 : 0000000000000000 Call trace: __up_read+0x554/0x5f8 kernel/locking/rwsem.c:1343 up_read+0x2c/0x3c kernel/locking/rwsem.c:1622 inode_unlock_shared include/linux/fs.h:817 [inline] lookup_slow+0x6c/0x84 fs/namei.c:1712 walk_component+0x280/0x36c fs/namei.c:2002 lookup_last fs/namei.c:2459 [inline] path_lookupat+0x13c/0x3d0 fs/namei.c:2483 filename_lookup+0x1d4/0x4e0 fs/namei.c:2512 user_path_at_empty+0x5c/0x84 fs/namei.c:2911 user_path_at include/linux/namei.h:57 [inline] __do_sys_chdir fs/open.c:551 [inline] __se_sys_chdir fs/open.c:545 [inline] __arm64_sys_chdir+0xc0/0x2d0 fs/open.c:545 __invoke_syscall arch/arm64/kernel/syscall.c:37 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:51 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:136 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:155 el0_svc+0x54/0x158 arch/arm64/kernel/entry-common.c:678 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:696 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:595 irq event stamp: 996 hardirqs last enabled at (995): [] __up_console_sem kernel/printk/printk.c:341 [inline] hardirqs last enabled at (995): [] __console_unlock kernel/printk/printk.c:2706 [inline] hardirqs last enabled at (995): [] console_unlock+0x17c/0x3d4 kernel/printk/printk.c:3038 hardirqs last disabled at (996): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:436 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 = 0xffff0000e40871d0, owner = 0x0, curr 0xffff0000cebf5a00, list empty WARNING: CPU: 1 PID: 8960 at kernel/locking/rwsem.c:1348 __up_read+0x3bc/0x5f8 kernel/locking/rwsem.c:1348 Modules linked in: CPU: 1 PID: 8960 Comm: syz-executor.0 Tainted: G W 6.7.0-rc8-syzkaller-00101-g0802e17d9aca #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : __up_read+0x3bc/0x5f8 kernel/locking/rwsem.c:1348 lr : __up_read+0x3bc/0x5f8 kernel/locking/rwsem.c:1348 sp : ffff8000979a7880 x29: ffff8000979a7910 x28: 1ffff00011c9e089 x27: ffff80008e4f0000 x26: dfff800000000000 x25: ffffffffffffff00 x24: ffff0000e4087228 x23: ffff0000e40871d0 x22: ffffffffffffff00 x21: 0000000000000000 x20: ffff0000cebf5a00 x19: ffff0000e40871d0 x18: ffff8000979a7340 x17: 0000000000000000 x16: ffff80008a77cbc0 x15: 0000000000000001 x14: 1ffff00012f34e2c x13: 0000000000000000 x12: 0000000000000000 x11: 0000000000000003 x10: 0000000000ff0100 x9 : 9255c0fd1eb71c00 x8 : 9255c0fd1eb71c00 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff8000979a7178 x4 : ffff80008e5d20c0 x3 : ffff800080366dc4 x2 : 0000000000000001 x1 : 0000000000000001 x0 : 0000000000000000 Call trace: __up_read+0x3bc/0x5f8 kernel/locking/rwsem.c:1348 up_read+0x2c/0x3c kernel/locking/rwsem.c:1622 inode_unlock_shared include/linux/fs.h:817 [inline] lookup_slow+0x6c/0x84 fs/namei.c:1712 walk_component+0x280/0x36c fs/namei.c:2002 lookup_last fs/namei.c:2459 [inline] path_lookupat+0x13c/0x3d0 fs/namei.c:2483 filename_lookup+0x1d4/0x4e0 fs/namei.c:2512 user_path_at_empty+0x5c/0x84 fs/namei.c:2911 user_path_at include/linux/namei.h:57 [inline] __do_sys_chdir fs/open.c:551 [inline] __se_sys_chdir fs/open.c:545 [inline] __arm64_sys_chdir+0xc0/0x2d0 fs/open.c:545 __invoke_syscall arch/arm64/kernel/syscall.c:37 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:51 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:136 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:155 el0_svc+0x54/0x158 arch/arm64/kernel/entry-common.c:678 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:696 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:595 irq event stamp: 1037 hardirqs last enabled at (1037): [] __exit_to_kernel_mode arch/arm64/kernel/entry-common.c:84 [inline] hardirqs last enabled at (1037): [] exit_to_kernel_mode+0xdc/0x10c arch/arm64/kernel/entry-common.c:94 hardirqs last disabled at (1036): [] preempt_schedule_irq+0x90/0x188 kernel/sched/core.c:7009 softirqs last enabled at (1032): [] softirq_handle_end kernel/softirq.c:399 [inline] softirqs last enabled at (1032): [] __do_softirq+0xac8/0xce4 kernel/softirq.c:582 softirqs last disabled at (1001): [] ____do_softirq+0x14/0x20 arch/arm64/kernel/irq.c:81 ---[ end trace 0000000000000000 ]---