[v5.15] WARNING in lookup_slow (3)

1 view
Skip to first unread message

syzbot

unread,
Mar 30, 2024, 3:27:30 PM3/30/24
Hello,

syzbot found the following issue on:

HEAD commit: 9465fef4ae35 Linux 5.15.153
git tree: linux-5.15.y
console output: https://syzkaller.appspot.com/x/log.txt?x=1196732d180000
kernel config: https://syzkaller.appspot.com/x/.config?x=74ff83133fa97f6c
dashboard link: https://syzkaller.appspot.com/bug?extid=9642e0afe11301360196
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
userspace arch: arm64

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/3c82fda40b43/disk-9465fef4.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/ec13893dc103/vmlinux-9465fef4.xz
kernel image: https://storage.googleapis.com/syzbot-assets/7b44910e5283/Image-9465fef4.gz.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: [email protected]

------------[ cut here ]------------
DEBUG_RWSEMS_WARN_ON(!is_rwsem_reader_owned(sem)): count = 0x0, magic = 0xffff0000e9634cf0, owner = 0x0, curr 0xffff0000c12b9b40, list empty
WARNING: CPU: 1 PID: 4512 at kernel/locking/rwsem.c:1315 __up_read+0x568/0x60c kernel/locking/rwsem.c:1315
Modules linked in:
CPU: 1 PID: 4512 Comm: syz-executor.4 Not tainted 5.15.153-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : __up_read+0x568/0x60c kernel/locking/rwsem.c:1315
lr : __up_read+0x568/0x60c kernel/locking/rwsem.c:1315
sp : ffff8000203377c0
x29: ffff800020337840 x28: 1ffff0000292206a x27: ffff800014910000
x26: dfff800000000000 x25: 0000000000000000 x24: ffff0000e9634d48
x23: ffff0000c12b9b40 x22: ffff8000203377e0 x21: 0000000000000000
x20: ffff0000e9634cf0 x19: ffff0000e9634cf0 x18: 1fffe0003690298e
x17: 1fffe0003690298e x16: ffff80001197d2b4 x15: ffff8000149aec00
x14: 1ffff0000292206a x13: dfff800000000000 x12: 0000000000040000
x11: 0000000000005be4 x10: ffff80001e992000 x9 : d189e2d7aa0bc900
x8 : d189e2d7aa0bc900 x7 : 0000000000000000 x6 : 0000000000000000
x5 : 0000000000000080 x4 : 0000000000000000 x3 : ffff80000a960a80
x2 : ffff0001b4814d10 x1 : 0000000100000000 x0 : 000000000000008c
Call trace:
__up_read+0x568/0x60c kernel/locking/rwsem.c:1315
up_read+0x94/0xe8 kernel/locking/rwsem.c:1584
inode_unlock_shared include/linux/fs.h:804 [inline]
lookup_slow+0x6c/0x84 fs/namei.c:1681
walk_component+0x394/0x4cc fs/namei.c:1976
lookup_last fs/namei.c:2431 [inline]
path_lookupat+0x13c/0x3d0 fs/namei.c:2455
filename_lookup+0x1c4/0x4c8 fs/namei.c:2484
user_path_at_empty+0x5c/0x1a4 fs/namei.c:2883
user_path_at include/linux/namei.h:57 [inline]
__do_sys_chdir fs/open.c:490 [inline]
__se_sys_chdir fs/open.c:484 [inline]
__arm64_sys_chdir+0xc0/0x2d0 fs/open.c:484
__invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52
el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181
el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:608
el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626
el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
irq event stamp: 314
hardirqs last enabled at (313): [<ffff800008269abc>] raw_spin_rq_unlock_irq kernel/sched/sched.h:1338 [inline]
hardirqs last enabled at (313): [<ffff800008269abc>] finish_lock_switch+0xbc/0x1e8 kernel/sched/core.c:4784
hardirqs last disabled at (314): [<ffff800011978940>] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:396
softirqs last enabled at (308): [<ffff800008021c64>] softirq_handle_end kernel/softirq.c:401 [inline]
softirqs last enabled at (308): [<ffff800008021c64>] __do_softirq+0xb5c/0xdb0 kernel/softirq.c:587
softirqs last disabled at (193): [<ffff8000081b6568>] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline]
softirqs last disabled at (193): [<ffff8000081b6568>] invoke_softirq kernel/softirq.c:439 [inline]
softirqs last disabled at (193): [<ffff8000081b6568>] __irq_exit_rcu+0x264/0x4d4 kernel/softirq.c:637
---[ end trace b83c8cee2df45197 ]---
------------[ cut here ]------------
DEBUG_RWSEMS_WARN_ON(tmp < 0): count = 0xffffffffffffff00, magic = 0xffff0000e9634cf0, owner = 0x0, curr 0xffff0000c12b9b40, list empty
WARNING: CPU: 0 PID: 4512 at kernel/locking/rwsem.c:1320 __up_read+0x3d0/0x60c kernel/locking/rwsem.c:1320
Modules linked in:
CPU: 0 PID: 4512 Comm: syz-executor.4 Tainted: G W 5.15.153-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : __up_read+0x3d0/0x60c kernel/locking/rwsem.c:1320
lr : __up_read+0x3d0/0x60c kernel/locking/rwsem.c:1320
sp : ffff8000203377c0
x29: ffff800020337840 x28: 1ffff0000292206a x27: ffff800014910000
x26: dfff800000000000 x25: ffffffffffffff00 x24: ffff0000e9634d48
x23: ffff0000e9634cf0 x22: ffffffffffffff00 x21: 0000000000000000
x20: ffff0000c12b9b40 x19: ffff0000e9634cf0 x18: 0000000000000002
x17: 0000000000000002 x16: ffff800008334f5c x15: 00000000ffffffff
x14: ffff0000c12b9b40 x13: 0000000000000001 x12: 0000000000040000
x11: 000000000001766d x10: ffff80001e992000 x9 : d189e2d7aa0bc900
x8 : d189e2d7aa0bc900 x7 : 0000000000000001 x6 : 0000000000000001
x5 : ffff800020336f38 x4 : ffff8000149ef7a0 x3 : ffff8000083350a8
x2 : 0000000000000001 x1 : 0000000000000001 x0 : 0000000000000087
Call trace:
__up_read+0x3d0/0x60c kernel/locking/rwsem.c:1320
up_read+0x94/0xe8 kernel/locking/rwsem.c:1584
inode_unlock_shared include/linux/fs.h:804 [inline]
lookup_slow+0x6c/0x84 fs/namei.c:1681
walk_component+0x394/0x4cc fs/namei.c:1976
lookup_last fs/namei.c:2431 [inline]
path_lookupat+0x13c/0x3d0 fs/namei.c:2455
filename_lookup+0x1c4/0x4c8 fs/namei.c:2484
user_path_at_empty+0x5c/0x1a4 fs/namei.c:2883
user_path_at include/linux/namei.h:57 [inline]
__do_sys_chdir fs/open.c:490 [inline]
__se_sys_chdir fs/open.c:484 [inline]
__arm64_sys_chdir+0xc0/0x2d0 fs/open.c:484
__invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52
el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181
el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:608
el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626
el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
irq event stamp: 481
hardirqs last enabled at (481): [<ffff80001197b748>] __exit_to_kernel_mode arch/arm64/kernel/entry-common.c:81 [inline]
hardirqs last enabled at (481): [<ffff80001197b748>] exit_to_kernel_mode+0x100/0x178 arch/arm64/kernel/entry-common.c:91
hardirqs last disabled at (480): [<ffff800011a402b4>] preempt_schedule_irq+0xac/0x274 kernel/sched/core.c:6781
softirqs last enabled at (476): [<ffff800008021c64>] softirq_handle_end kernel/softirq.c:401 [inline]
softirqs last enabled at (476): [<ffff800008021c64>] __do_softirq+0xb5c/0xdb0 kernel/softirq.c:587
softirqs last disabled at (317): [<ffff8000081b6568>] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline]
softirqs last disabled at (317): [<ffff8000081b6568>] invoke_softirq kernel/softirq.c:439 [inline]
softirqs last disabled at (317): [<ffff8000081b6568>] __irq_exit_rcu+0x264/0x4d4 kernel/softirq.c:637
---[ end trace b83c8cee2df45198 ]---


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at [email protected].

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title

If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report

If you want to undo deduplication, reply with:
#syz undup

syzbot

unread,
Jun 6, 2024, 4:23:29 AM6/6/24
syzbot has found a reproducer for the following issue on:

HEAD commit: c61bd26ae81a Linux 5.15.160
git tree: linux-5.15.y
console output: https://syzkaller.appspot.com/x/log.txt?x=1568240a980000
kernel config: https://syzkaller.appspot.com/x/.config?x=6a313cb27403a960
dashboard link: https://syzkaller.appspot.com/bug?extid=9642e0afe11301360196
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
userspace arch: arm64
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=174e1226980000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=13052f16980000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/c5c43c69147f/disk-c61bd26a.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/3e9c98d00e66/vmlinux-c61bd26a.xz
kernel image: https://storage.googleapis.com/syzbot-assets/e9da759b078f/Image-c61bd26a.gz.xz
mounted in repro: https://storage.googleapis.com/syzbot-assets/023c5ecaa473/mount_0.gz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: [email protected]

------------[ cut here ]------------
DEBUG_RWSEMS_WARN_ON(!is_rwsem_reader_owned(sem)): count = 0x0, magic = 0xffff0000dc13a810, owner = 0x0, curr 0xffff0000cc66d1c0, list empty
WARNING: CPU: 1 PID: 6800 at kernel/locking/rwsem.c:1323 __up_read+0x568/0x60c kernel/locking/rwsem.c:1323
Modules linked in:
CPU: 1 PID: 6800 Comm: syz-executor763 Not tainted 5.15.160-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024
pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : __up_read+0x568/0x60c kernel/locking/rwsem.c:1323
lr : __up_read+0x568/0x60c kernel/locking/rwsem.c:1323
sp : ffff8000213e77a0
x29: ffff8000213e7820 x28: 1ffff0000292a06a x27: ffff800014950000
x26: dfff800000000000 x25: 0000000000000000 x24: ffff0000dc13a868
x23: ffff0000cc66d1c0 x22: ffff8000213e77c0 x21: 0000000000000000
x20: ffff0000dc13a810 x19: ffff0000dc13a810 x18: 0000000000000001
x17: 0000000000000000 x16: ffff80001199c494 x15: 00000000ffffffff
x14: ffff0000cc66d1c0 x13: 0000000000000001 x12: 0000000000000001
x11: 0000000000000000 x10: 0000000000000000 x9 : 754b04e49f92a400
x8 : 754b04e49f92a400 x7 : 0000000000000001 x6 : 0000000000000001
x5 : ffff8000213e6f18 x4 : ffff800014a2f7a0 x3 : ffff8000085501f8
x2 : 0000000000000001 x1 : 0000000100000000 x0 : 000000000000008c
Call trace:
__up_read+0x568/0x60c kernel/locking/rwsem.c:1323
up_read+0x94/0xe8 kernel/locking/rwsem.c:1594
inode_unlock_shared include/linux/fs.h:804 [inline]
lookup_slow+0x6c/0x84 fs/namei.c:1681
walk_component+0x394/0x4cc fs/namei.c:1976
lookup_last fs/namei.c:2431 [inline]
path_lookupat+0x13c/0x3d0 fs/namei.c:2455
filename_lookup+0x1c4/0x4c8 fs/namei.c:2484
user_path_at_empty+0x5c/0x1a4 fs/namei.c:2883
user_path_at include/linux/namei.h:57 [inline]
do_mount fs/namespace.c:3345 [inline]
__do_sys_mount fs/namespace.c:3556 [inline]
__se_sys_mount fs/namespace.c:3533 [inline]
__arm64_sys_mount+0x4dc/0x5e0 fs/namespace.c:3533
__invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52
el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181
el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:608
el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626
el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
irq event stamp: 98
hardirqs last enabled at (97): [<ffff80000832b458>] __up_console_sem+0xb4/0x100 kernel/printk/printk.c:257
hardirqs last disabled at (98): [<ffff800011997b20>] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:396
softirqs last enabled at (8): [<ffff8000080310b0>] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:31
softirqs last disabled at (6): [<ffff80000803107c>] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:18
---[ end trace 1edc1a2e1c82ea4d ]---
------------[ cut here ]------------
DEBUG_RWSEMS_WARN_ON(tmp < 0): count = 0xffffffffffffff00, magic = 0xffff0000dc13a810, owner = 0x0, curr 0xffff0000cc66d1c0, list empty
WARNING: CPU: 1 PID: 6800 at kernel/locking/rwsem.c:1328 __up_read+0x3d0/0x60c kernel/locking/rwsem.c:1328
Modules linked in:
CPU: 1 PID: 6800 Comm: syz-executor763 Tainted: G W 5.15.160-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024
pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : __up_read+0x3d0/0x60c kernel/locking/rwsem.c:1328
lr : __up_read+0x3d0/0x60c kernel/locking/rwsem.c:1328
sp : ffff8000213e77a0
x29: ffff8000213e7820 x28: 1ffff0000292a06a x27: ffff800014950000
x26: dfff800000000000 x25: ffffffffffffff00 x24: ffff0000dc13a868
x23: ffff0000dc13a810 x22: ffffffffffffff00 x21: 0000000000000000
x20: ffff0000cc66d1c0 x19: ffff0000dc13a810 x18: 0000000000000002
x17: 0000000000000000 x16: ffff80001199c494 x15: 00000000ffffffff
x14: ffff0000cc66d1c0 x13: 0000000000000001 x12: 0000000000000001
x11: 0000000000000001 x10: 0000000000000000 x9 : 754b04e49f92a400
x8 : 754b04e49f92a400 x7 : 0000000000000001 x6 : 0000000000000001
x5 : ffff8000213e6f18 x4 : ffff800014a2f7a0 x3 : ffff80000a9795c0
x2 : ffff0001b480ad10 x1 : 0000000000000001 x0 : 0000000000000087
Call trace:
__up_read+0x3d0/0x60c kernel/locking/rwsem.c:1328
up_read+0x94/0xe8 kernel/locking/rwsem.c:1594
inode_unlock_shared include/linux/fs.h:804 [inline]
lookup_slow+0x6c/0x84 fs/namei.c:1681
walk_component+0x394/0x4cc fs/namei.c:1976
lookup_last fs/namei.c:2431 [inline]
path_lookupat+0x13c/0x3d0 fs/namei.c:2455
filename_lookup+0x1c4/0x4c8 fs/namei.c:2484
user_path_at_empty+0x5c/0x1a4 fs/namei.c:2883
user_path_at include/linux/namei.h:57 [inline]
do_mount fs/namespace.c:3345 [inline]
__do_sys_mount fs/namespace.c:3556 [inline]
__se_sys_mount fs/namespace.c:3533 [inline]
__arm64_sys_mount+0x4dc/0x5e0 fs/namespace.c:3533
__invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52
el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181
el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:608
el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626
el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
irq event stamp: 143
hardirqs last enabled at (143): [<ffff80001199a928>] __exit_to_kernel_mode arch/arm64/kernel/entry-common.c:81 [inline]
hardirqs last enabled at (143): [<ffff80001199a928>] exit_to_kernel_mode+0x100/0x178 arch/arm64/kernel/entry-common.c:91
hardirqs last disabled at (142): [<ffff800011a5f488>] preempt_schedule_irq+0xac/0x274 kernel/sched/core.c:6781
softirqs last enabled at (138): [<ffff800008021c64>] softirq_handle_end kernel/softirq.c:401 [inline]
softirqs last enabled at (138): [<ffff800008021c64>] __do_softirq+0xb5c/0xdb0 kernel/softirq.c:587
softirqs last disabled at (101): [<ffff8000081b6568>] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline]
softirqs last disabled at (101): [<ffff8000081b6568>] invoke_softirq kernel/softirq.c:439 [inline]
softirqs last disabled at (101): [<ffff8000081b6568>] __irq_exit_rcu+0x264/0x4d4 kernel/softirq.c:637
---[ end trace 1edc1a2e1c82ea4e ]---


---
If you want syzbot to run the reproducer, reply with:
#syz test: git://repo/address.git branch-or-commit-hash
If you attach or paste a git patch, syzbot will apply it before testing.
Reply all
Reply to author
Forward
0 new messages