syzbot


INFO: rcu detected stall in schedule_tail (6)

Status: upstream: reported C repro on 2024/10/03 16:14
Subsystems: net virt
[Documentation on labels]
Reported-by: syzbot+4d2bdddae2e3866013ef@syzkaller.appspotmail.com
First crash: 138d, last: 36d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [net?] [virt?] INFO: rcu detected stall in schedule_tail (6) 0 (1) 2024/10/03 16:14
Similar bugs (6)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in schedule_tail (4) arm 2 533d 610d 0/28 auto-obsoleted due to no activity on 2023/09/05 02:08
linux-6.1 INFO: rcu detected stall in schedule_tail 1 131d 131d 0/3 auto-obsoleted due to no activity on 2024/10/21 04:18
upstream INFO: rcu detected stall in schedule_tail kernel 145 1813d 1815d 0/28 closed as invalid on 2019/12/04 14:14
upstream INFO: rcu detected stall in schedule_tail (3) cgroups mm 40 1778d 1779d 0/28 closed as invalid on 2020/01/09 08:13
upstream INFO: rcu detected stall in schedule_tail (5) mm 2 405d 406d 0/28 auto-obsoleted due to no activity on 2024/01/11 06:31
upstream INFO: rcu detected stall in schedule_tail (2) kernel 26 1779d 1779d 0/28 closed as invalid on 2020/01/08 05:23
Last patch testing requests (1)
Created Duration User Patch Repo Result
2024/11/01 22:26 16m retest repro https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing OK log

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	Tasks blocked on level-0 rcu_node (CPUs 0-1): P22742/1:b..l
rcu: 	(detected by 1, t=10503 jiffies, g=151969, q=636 ncpus=2)
task:syz-executor    state:R  running task     stack:28816 pid:22742 tgid:22742 ppid:21968  flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5408 [inline]
 __schedule+0x17e8/0x4a20 kernel/sched/core.c:6745
 preempt_schedule_irq+0xfb/0x1c0 kernel/sched/core.c:7067
 irqentry_exit+0x5e/0x90 kernel/entry/common.c:354
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702
RIP: 0010:ma_meta_end lib/maple_tree.c:927 [inline]
RIP: 0010:ma_data_end lib/maple_tree.c:1420 [inline]
RIP: 0010:mtree_range_walk+0x1e6/0x8e0 lib/maple_tree.c:2771
Code: 00 00 e8 9d 89 1b f6 49 8d 9d f8 00 00 00 48 89 d8 48 c1 e8 03 42 0f b6 04 20 84 c0 48 8b 6c 24 30 0f 85 d6 04 00 00 0f b6 03 <89> 44 24 04 4c 89 f7 48 89 f8 48 c1 e8 03 42 80 3c 20 00 49 89 fe
RSP: 0018:ffffc90009587b18 EFLAGS: 00000246
RAX: 0000000000000009 RBX: ffff88802d691af8 RCX: ffff88807a139e00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000001 R08: ffffffff8b7a9e05 R09: ffffffff8b7a9d42
R10: 0000000000000003 R11: ffff88807a139e00 R12: dffffc0000000000
R13: ffff88802d691a00 R14: ffff88802d691a08 R15: ffffc90009587c68
 mas_state_walk lib/maple_tree.c:3678 [inline]
 mt_find+0x311/0x850 lib/maple_tree.c:6935
 find_vma+0xf9/0x170 mm/mmap.c:1948
 lock_mm_and_find_vma+0x5f/0x2f0 mm/memory.c:5779
 do_user_addr_fault arch/x86/mm/fault.c:1361 [inline]
 handle_page_fault arch/x86/mm/fault.c:1481 [inline]
 exc_page_fault+0x1bf/0x8c0 arch/x86/mm/fault.c:1539
 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623
RIP: 0010:__put_user_4+0x11/0x20 arch/x86/lib/putuser.S:88
Code: 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 48 89 cb 48 c1 fb 3f 48 09 d9 0f 01 cb <89> 01 31 c9 0f 01 ca e9 5e 68 2d 00 0f 1f 00 90 90 90 90 90 90 90
RSP: 0018:ffffc90009587f00 EFLAGS: 00050202
RAX: 000000000000006b RBX: 0000000000000000 RCX: 00005555703c67d0
RDX: 0000000000000000 RSI: ffffffff8bcaccc0 RDI: ffffffff8c1fe9c0
RBP: ffff88807a13a490 R08: ffffffff8fad4a2f R09: 1ffffffff1f5a945
R10: dffffc0000000000 R11: fffffbfff1f5a946 R12: 0000000000000000
R13: 0000000000000000 R14: 000000000000006b R15: dffffc0000000000
 schedule_tail+0x96/0xb0 kernel/sched/core.c:5343
 ret_from_fork+0x24/0x80 arch/x86/kernel/process.c:143
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
 </TASK>
rcu: rcu_preempt kthread starved for 10533 jiffies! g151969 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x0 ->cpu=1
rcu: 	Unless rcu_preempt kthread gets sufficient CPU time, OOM is now expected behavior.
rcu: RCU grace-period kthread stack dump:
task:rcu_preempt     state:R  running task     stack:26448 pid:17    tgid:17    ppid:2      flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5408 [inline]
 __schedule+0x17e8/0x4a20 kernel/sched/core.c:6745
 __schedule_loop kernel/sched/core.c:6822 [inline]
 schedule+0x14b/0x320 kernel/sched/core.c:6837
 schedule_timeout+0x1be/0x310 kernel/time/timer.c:2581
 rcu_gp_fqs_loop+0x2df/0x1330 kernel/rcu/tree.c:2000
 rcu_gp_kthread+0xa7/0x3b0 kernel/rcu/tree.c:2202
 kthread+0x2f2/0x390 kernel/kthread.c:389
 ret_from_fork+0x4d/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
 </TASK>
rcu: Stack dump where RCU GP kthread last ran:
CPU: 1 PID: 0 Comm: swapper/1 Not tainted 6.10.0-rc6-syzkaller-00163-g661e504db04c #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
RIP: 0010:native_irq_disable arch/x86/include/asm/irqflags.h:37 [inline]
RIP: 0010:arch_local_irq_disable arch/x86/include/asm/irqflags.h:72 [inline]
RIP: 0010:acpi_safe_halt+0x21/0x30 drivers/acpi/processor_idle.c:113
Code: 90 90 90 90 90 90 90 90 90 65 48 8b 04 25 c0 d4 03 00 48 f7 00 08 00 00 00 75 10 eb 07 0f 00 2d b5 5a a3 00 f3 0f 1e fa fb f4 <fa> e9 f4 23 2a 00 66 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90
RSP: 0018:ffffc900001a7d08 EFLAGS: 00000246
RAX: ffff888017ae0000 RBX: ffff88801b294064 RCX: 0000000000992999
RDX: 0000000000000001 RSI: ffff88801b294000 RDI: ffff88801b294064
RBP: 000000000003a578 R08: ffff8880b9537ccb R09: 1ffff110172a6f99
R10: dffffc0000000000 R11: ffffffff8b8618c0 R12: ffff88801cf70000
R13: 0000000000000000 R14: 0000000000000001 R15: ffffffff8eacdce0
FS:  0000000000000000(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 0000000071b76000 CR4: 0000000000350ef0
Call Trace:
 <IRQ>
 </IRQ>
 <TASK>
 acpi_idle_enter+0xe4/0x140 drivers/acpi/processor_idle.c:707
 cpuidle_enter_state+0x114/0x480 drivers/cpuidle/cpuidle.c:267
 cpuidle_enter+0x5d/0xa0 drivers/cpuidle/cpuidle.c:388
 call_cpuidle kernel/sched/idle.c:155 [inline]
 cpuidle_idle_call kernel/sched/idle.c:236 [inline]
 do_idle+0x375/0x5d0 kernel/sched/idle.c:332
 cpu_startup_entry+0x42/0x60 kernel/sched/idle.c:430
 start_secondary+0x100/0x100 arch/x86/kernel/smpboot.c:313
 common_startup_64+0x13e/0x147
 </TASK>

Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/07/05 07:53 upstream 661e504db04c dc6bbff0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: rcu detected stall in schedule_tail
2024/10/15 22:02 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 64f3b5a6bc49 bde2d81c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb INFO: rcu detected stall in schedule_tail
2024/10/15 11:03 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 64f3b5a6bc49 7eb57b4a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb INFO: rcu detected stall in schedule_tail
2024/10/02 20:40 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 9852d85ec9d4 02f9582a .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-upstream-usb INFO: rcu detected stall in schedule_tail
2024/07/22 00:04 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 3c3ff7be9729 b88348e9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb INFO: rcu detected stall in schedule_tail
2024/07/20 11:03 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 3c3ff7be9729 b88348e9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb INFO: rcu detected stall in schedule_tail
* Struck through repros no longer work on HEAD.