INFO: rcu detected stall in __se_sys_mount

15 views
Skip to first unread message

syzbot

unread,
Jul 6, 2020, 11:42:25 AM7/6/20
to fwei...@gmail.com, linux-...@vger.kernel.org, mi...@kernel.org, syzkall...@googlegroups.com, tg...@linutronix.de
Hello,

syzbot found the following crash on:

HEAD commit: 7cc2a8ea Merge tag 'block-5.8-2020-07-01' of git://git.ker..
git tree: upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=15ea5e6b100000
kernel config: https://syzkaller.appspot.com/x/.config?x=183dd243398ba7ec
dashboard link: https://syzkaller.appspot.com/bug?extid=3f2db34df769d77edf8c
compiler: clang version 10.0.0 (https://github.com/llvm/llvm-project/ c2443155a0fb245c8f17f2c1c72b6ea391e86e81)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=13901c1f100000

IMPORTANT: if you fix the bug, please add the following tag to the commit:
Reported-by: syzbot+3f2db3...@syzkaller.appspotmail.com

rcu: INFO: rcu_preempt self-detected stall on CPU
rcu: 0-....: (1 GPs behind) idle=53a/1/0x4000000000000000 softirq=11025/11028 fqs=5230
(t=10500 jiffies g=9573 q=1291)
NMI backtrace for cpu 0
CPU: 0 PID: 8924 Comm: syz-executor.3 Not tainted 5.8.0-rc3-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
<IRQ>
__dump_stack lib/dump_stack.c:77 [inline]
dump_stack+0x1f0/0x31e lib/dump_stack.c:118
nmi_cpu_backtrace+0x9f/0x180 lib/nmi_backtrace.c:101
nmi_trigger_cpumask_backtrace+0x16a/0x280 lib/nmi_backtrace.c:62
trigger_single_cpu_backtrace include/linux/nmi.h:164 [inline]
rcu_dump_cpu_stacks+0x199/0x2a0 kernel/rcu/tree_stall.h:320
print_cpu_stall kernel/rcu/tree_stall.h:553 [inline]
check_cpu_stall kernel/rcu/tree_stall.h:627 [inline]
rcu_pending kernel/rcu/tree.c:3489 [inline]
rcu_sched_clock_irq+0x1928/0x1eb0 kernel/rcu/tree.c:2504
update_process_times+0x12c/0x180 kernel/time/timer.c:1726
tick_sched_handle kernel/time/tick-sched.c:176 [inline]
tick_sched_timer+0x254/0x410 kernel/time/tick-sched.c:1320
__run_hrtimer kernel/time/hrtimer.c:1520 [inline]
__hrtimer_run_queues+0x42d/0x930 kernel/time/hrtimer.c:1584
hrtimer_interrupt+0x373/0xd60 kernel/time/hrtimer.c:1646
local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1080 [inline]
__sysvec_apic_timer_interrupt+0xf0/0x260 arch/x86/kernel/apic/apic.c:1097
asm_call_on_stack+0xf/0x20 arch/x86/entry/entry_64.S:711
</IRQ>
__run_on_irqstack arch/x86/include/asm/irq_stack.h:22 [inline]
run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:48 [inline]
sysvec_apic_timer_interrupt+0xb9/0x130 arch/x86/kernel/apic/apic.c:1091
asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:596
RIP: 0010:arch_local_irq_restore arch/x86/include/asm/paravirt.h:765 [inline]
RIP: 0010:slab_alloc mm/slab.c:3313 [inline]
RIP: 0010:kmem_cache_alloc+0x1a8/0x2d0 mm/slab.c:3484
Code: 8b 3c 24 57 9d 0f 1f 44 00 00 e8 c3 30 c7 ff eb 1e e8 ac 2b c7 ff 48 83 3d a4 d6 78 07 00 0f 84 26 01 00 00 48 8b 3c 24 57 9d <0f> 1f 44 00 00 41 0f 18 0e e9 21 00 00 00 89 e8 c1 e8 08 83 e0 01
RSP: 0018:ffffc90001587d88 EFLAGS: 00000282
RAX: 0000000007e4a93f RBX: 0000000000000cc0 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000282
RBP: 0000000000000cc0 R08: ffffffff817a1d20 R09: ffffed10154bbe01
R10: ffffed10154bbe01 R11: 0000000000000000 R12: ffff88821bc4e700
R13: ffff88821bc4e700 R14: ffff888079f3a840 R15: ffffffff81bf92c8
getname_flags+0xb8/0x610 fs/namei.c:138
user_path_at_empty+0x28/0x50 fs/namei.c:2646
user_path_at include/linux/namei.h:59 [inline]
do_mount+0xd1/0x2900 fs/namespace.c:3137
__do_sys_mount fs/namespace.c:3409 [inline]
__se_sys_mount+0xd3/0x100 fs/namespace.c:3386
do_syscall_64+0x73/0xe0 arch/x86/entry/common.c:359
entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x45f57a
Code: Bad RIP value.
RSP: 002b:00007ffe24a11b48 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 000000000050a560 RCX: 000000000045f57a
RDX: 00007ffe24a11bc0 RSI: 0000000000000000 RDI: 00007ffe24a11be0
RBP: 000000000078bf00 R08: 00007ffe24a11c20 R09: 00007ffe24a11bc0
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 0000000000000c3b R14: 00000000004ce8d8 R15: 0000000001b1c914


---
This bug 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 syzk...@googlegroups.com.

syzbot will keep track of this bug report. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.
syzbot can test patches for this bug, for details see:
https://goo.gl/tpsmEJ#testing-patches

syzbot

unread,
Oct 8, 2020, 8:15:21 AM10/8/20
to fwei...@gmail.com, linux-...@vger.kernel.org, mi...@kernel.org, syzkall...@googlegroups.com, tg...@linutronix.de
syzbot has found a reproducer for the following issue on:

HEAD commit: c85fb28b Merge tag 'arm64-fixes' of git://git.kernel.org/p..
git tree: upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=16b1804f900000
kernel config: https://syzkaller.appspot.com/x/.config?x=de7f697da23057c7
dashboard link: https://syzkaller.appspot.com/bug?extid=3f2db34df769d77edf8c
compiler: clang version 10.0.0 (https://github.com/llvm/llvm-project/ c2443155a0fb245c8f17f2c1c72b6ea391e86e81)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=11df5d4f900000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=157851e0500000

Bisection is inconclusive: the issue happens on the oldest tested release.

bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=12cedc5c900000
final oops: https://syzkaller.appspot.com/x/report.txt?x=11cedc5c900000
console output: https://syzkaller.appspot.com/x/log.txt?x=16cedc5c900000

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+3f2db3...@syzkaller.appspotmail.com

rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: Tasks blocked on level-0 rcu_node (CPUs 0-1):
------------[ cut here ]------------
WARNING: CPU: 1 PID: 7452 at kernel/sched/core.c:3013 rq_unlock kernel/sched/sched.h:1325 [inline]
WARNING: CPU: 1 PID: 7452 at kernel/sched/core.c:3013 try_invoke_on_locked_down_task+0x12d/0x270 kernel/sched/core.c:3019
Kernel panic - not syncing: panic_on_warn set ...
CPU: 1 PID: 7452 Comm: syz-executor259 Not tainted 5.9.0-rc8-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
<IRQ>
__dump_stack lib/dump_stack.c:77 [inline]
dump_stack+0x1d6/0x29e lib/dump_stack.c:118
panic+0x2c0/0x800 kernel/panic.c:231
__warn+0x227/0x250 kernel/panic.c:600
report_bug+0x1b1/0x2e0 lib/bug.c:198
handle_bug+0x42/0x80 arch/x86/kernel/traps.c:234
exc_invalid_op+0x16/0x40 arch/x86/kernel/traps.c:254
asm_exc_invalid_op+0x12/0x20 arch/x86/include/asm/idtentry.h:536
RIP: 0010:try_invoke_on_locked_down_task+0x12d/0x270 kernel/sched/sched.h:1325
Code: f8 48 c1 e8 03 42 8a 04 38 84 c0 0f 85 10 01 00 00 8b 74 24 18 48 89 ef e8 90 47 09 00 4c 89 ef e8 88 9b fd 06 e9 a4 00 00 00 <0f> 0b e9 2b ff ff ff 48 c7 c1 74 fb af 89 80 e1 07 80 c1 03 38 c1
RSP: 0018:ffffc90000da8c50 EFLAGS: 00010046
RAX: 0000000000000000 RBX: ffffffff896ff600 RCX: 0013916f856b3a00
RDX: ffffc90000da8d00 RSI: ffffffff8162d990 RDI: ffff88809027e480
RBP: ffffffff8162d990 R08: dffffc0000000000 R09: fffffbfff12df8f9
R10: fffffbfff12df8f9 R11: 0000000000000000 R12: 0000000000000000
R13: ffffffff896ff600 R14: ffff88809027e480 R15: dffffc0000000000
rcu_print_task_stall kernel/rcu/tree_stall.h:267 [inline]
print_other_cpu_stall kernel/rcu/tree_stall.h:475 [inline]
check_cpu_stall kernel/rcu/tree_stall.h:634 [inline]
rcu_pending kernel/rcu/tree.c:3639 [inline]
rcu_sched_clock_irq+0x12bc/0x1eb0 kernel/rcu/tree.c:2521
update_process_times+0x130/0x1b0 kernel/time/timer.c:1710
tick_sched_handle kernel/time/tick-sched.c:176 [inline]
tick_sched_timer+0x25e/0x410 kernel/time/tick-sched.c:1328
__run_hrtimer kernel/time/hrtimer.c:1524 [inline]
__hrtimer_run_queues+0x42d/0x930 kernel/time/hrtimer.c:1588
hrtimer_interrupt+0x373/0xd60 kernel/time/hrtimer.c:1650
local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1080 [inline]
__sysvec_apic_timer_interrupt+0xf0/0x260 arch/x86/kernel/apic/apic.c:1097
asm_call_irq_on_stack+0xf/0x20
</IRQ>
__run_sysvec_on_irqstack arch/x86/include/asm/irq_stack.h:37 [inline]
run_sysvec_on_irqstack_cond arch/x86/include/asm/irq_stack.h:89 [inline]
sysvec_apic_timer_interrupt+0x94/0xf0 arch/x86/kernel/apic/apic.c:1091
asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:581
RIP: 0010:strncasecmp+0x0/0x1c0 lib/string.c:44
Code: 2b 09 f2 48 01 c8 89 ce c1 e6 11 48 c1 e9 2f 09 f1 89 c6 31 ce 48 c1 e8 20 31 f0 31 d0 5b 41 5c 41 5d 41 5e 41 5f 5d c3 cc cc <55> 41 57 41 56 41 55 41 54 53 48 83 ec 10 48 85 d2 0f 84 80 01 00
RSP: 0018:ffffc90006357b98 EFLAGS: 00000246
RAX: 0000000000000000 RBX: 0000000000000007 RCX: dffffc0000000000
RDX: 0000000000000007 RSI: ffff88809752ce81 RDI: ffff88809eedc100
RBP: 0000000000000007 R08: ffffffff82dd8855 R09: ffffed1014220716
R10: ffffed1014220716 R11: 0000000000000000 R12: 00000000000009a0
R13: ffff88809eedc100 R14: 0000000000000007 R15: ffff8880a1103800
afs_lookup_cell_rcu+0x2bc/0x6f0 fs/afs/cell.c:88
afs_lookup_cell+0x246/0x14d0 fs/afs/cell.c:249
afs_parse_source fs/afs/super.c:290 [inline]
afs_parse_param+0x526/0x790 fs/afs/super.c:326
vfs_parse_fs_param+0x1e5/0x460 fs/fs_context.c:117
vfs_parse_fs_string fs/fs_context.c:161 [inline]
generic_parse_monolithic+0x230/0x350 fs/fs_context.c:201
do_new_mount fs/namespace.c:2871 [inline]
path_mount+0x176c/0x29e0 fs/namespace.c:3192
do_mount fs/namespace.c:3205 [inline]
__do_sys_mount fs/namespace.c:3413 [inline]
__se_sys_mount+0x126/0x180 fs/namespace.c:3390
do_syscall_64+0x31/0x70 arch/x86/entry/common.c:46
entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x447a3a
Code: b8 08 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 9d a3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 7a a3 fb ff c3 66 0f 1f 84 00 00 00 00 00
RSP: 002b:00007ffc915e4f78 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007ffc915e4fc0 RCX: 0000000000447a3a
RDX: 0000000020000000 RSI: 0000000020000040 RDI: 0000000000000000
RBP: 0000000000000000 R08: 00007ffc915e4fc0 R09: 0000000000000004
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000402240
R13: 00000000004022d0 R14: 0000000000000000 R15: 0000000000000000
Kernel Offset: disabled
Rebooting in 86400 seconds..

syzbot

unread,
Dec 7, 2020, 3:06:04 PM12/7/20
to dhow...@redhat.com, fwei...@gmail.com, linu...@lists.infradead.org, linux-...@vger.kernel.org, mi...@kernel.org, syzkall...@googlegroups.com, tg...@linutronix.de
syzbot suspects this issue was fixed by commit:

commit 1d0e850a49a5b56f8f3cb51e74a11e2fedb96be6
Author: David Howells <dhow...@redhat.com>
Date: Fri Oct 16 12:21:14 2020 +0000

afs: Fix cell removal

bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=162cebcf500000
start commit: c85fb28b Merge tag 'arm64-fixes' of git://git.kernel.org/p..
git tree: upstream
If the result looks correct, please mark the issue as fixed by replying with:

#syz fix: afs: Fix cell removal

For information about bisection process see: https://goo.gl/tpsmEJ#bisection

Dmitry Vyukov

unread,
Dec 8, 2020, 1:33:13 AM12/8/20
to syzbot, David Howells, Frédéric Weisbecker, linu...@lists.infradead.org, LKML, Ingo Molnar, syzkaller-bugs, Thomas Gleixner
Reply all
Reply to author
Forward
0 new messages