------------[ cut here ]------------ DEBUG_RWSEMS_WARN_ON(!is_rwsem_reader_owned(sem)): count = 0x0, magic = 0xffff0000f53d0330, owner = 0x0, curr 0xffff0000dabe1bc0, list empty WARNING: CPU: 0 PID: 4704 at kernel/locking/rwsem.c:1345 __up_read+0x560/0x604 kernel/locking/rwsem.c:1345 Modules linked in: CPU: 0 PID: 4704 Comm: syz.4.54 Not tainted 6.1.129-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/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 : ffff800021de7880 x29: ffff800021de7910 x28: 1ffff00002b5e0b2 x27: ffff800015af0000 x26: dfff800000000000 x25: 0000000000000000 x24: ffff0000f53d0388 x23: ffff0000dabe1bc0 x22: ffff800021de78a0 x21: 0000000000000000 x20: ffff0000f53d0330 x19: ffff0000f53d0330 x18: 1fffe00036798976 x17: ffff800015aed000 x16: ffff80000830270c x15: ffff0001b3cc4bbc x14: 1ffff00002b5e0b2 x13: dfff800000000000 x12: 0000000000000003 x11: 0000000000ff0100 x10: 0000000000000003 x9 : ef5f6f53538ba200 x8 : ef5f6f53538ba200 x7 : ffff800008279314 x6 : 0000000000000000 x5 : 0000000000000080 x4 : 0000000000000001 x3 : 0000000000000000 x2 : ffff800021de73e0 x1 : ffff80001247d5c0 x0 : ffff80019e280000 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:2905 user_path_at include/linux/namei.h:57 [inline] path_listxattr fs/xattr.c:825 [inline] __do_sys_listxattr fs/xattr.c:840 [inline] __se_sys_listxattr fs/xattr.c:837 [inline] __arm64_sys_listxattr+0xf4/0x21c fs/xattr.c:837 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2bc arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x58/0x13c 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: 118 hardirqs last enabled at (117): [] raw_spin_rq_unlock_irq kernel/sched/sched.h:1367 [inline] hardirqs last enabled at (117): [] finish_lock_switch+0xbc/0x1e8 kernel/sched/core.c:5002 hardirqs last disabled at (118): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405 softirqs last enabled at (98): [] softirq_handle_end kernel/softirq.c:421 [inline] softirqs last enabled at (98): [] handle_softirqs+0xb84/0xd58 kernel/softirq.c:606 softirqs last disabled at (89): [] __do_softirq+0x14/0x20 kernel/softirq.c:612 ---[ end trace 0000000000000000 ]--- ------------[ cut here ]------------ DEBUG_RWSEMS_WARN_ON(tmp < 0): count = 0xffffffffffffff00, magic = 0xffff0000f53d0330, owner = 0x0, curr 0xffff0000dabe1bc0, list empty WARNING: CPU: 1 PID: 4704 at kernel/locking/rwsem.c:1350 __up_read+0x3c8/0x604 kernel/locking/rwsem.c:1350 Modules linked in: CPU: 1 PID: 4704 Comm: syz.4.54 Tainted: G W 6.1.129-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/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 : ffff800021de7880 x29: ffff800021de7910 x28: 1ffff00002b5e0b2 x27: ffff800015af0000 x26: dfff800000000000 x25: ffffffffffffff00 x24: ffff0000f53d0388 x23: ffff0000f53d0330 x22: ffffffffffffff00 x21: 0000000000000000 x20: ffff0000dabe1bc0 x19: ffff0000f53d0330 x18: 1fffe00036798976 x17: 0000000000000000 x16: ffff80001232163c x15: 0000000000000000 x14: 00000000ffffffff x13: 0000000000000001 x12: 0000000000000001 x11: 0000000000ff0100 x10: 0000000000000000 x9 : ef5f6f53538ba200 x8 : ef5f6f53538ba200 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff800021de7178 x4 : ffff800015bd5320 x3 : ffff800008587574 x2 : 0000000000000001 x1 : 0000000100000001 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:2905 user_path_at include/linux/namei.h:57 [inline] path_listxattr fs/xattr.c:825 [inline] __do_sys_listxattr fs/xattr.c:840 [inline] __se_sys_listxattr fs/xattr.c:837 [inline] __arm64_sys_listxattr+0xf4/0x21c fs/xattr.c:837 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2bc arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x58/0x13c 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: 217 hardirqs last enabled at (217): [] __exit_to_kernel_mode arch/arm64/kernel/entry-common.c:84 [inline] hardirqs last enabled at (217): [] exit_to_kernel_mode+0xe8/0x118 arch/arm64/kernel/entry-common.c:94 hardirqs last disabled at (216): [] preempt_schedule_irq+0xa8/0x1b8 kernel/sched/core.c:6873 softirqs last enabled at (210): [] softirq_handle_end kernel/softirq.c:421 [inline] softirqs last enabled at (210): [] handle_softirqs+0xb84/0xd58 kernel/softirq.c:606 softirqs last disabled at (121): [] __do_softirq+0x14/0x20 kernel/softirq.c:612 ---[ end trace 0000000000000000 ]---