syzbot


INFO: rcu detected stall in syscall_exit_to_user_mode

Status: upstream: reported C repro on 2023/08/26 22:23
Bug presence: origin:upstream
[Documentation on labels]
Reported-by: syzbot+82e2b3f11a49481f3ea3@syzkaller.appspotmail.com
First crash: 105d, last: 1d03h
Bug presence (1)
Date Name Commit Repro Result
2023/09/08 upstream (ToT) 2ab35ce202f8 C [report] INFO: rcu detected stall in syscall_exit_to_user_mode
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in syscall_exit_to_user_mode cgroups mm 78 654d 834d 22/25 fixed on 2022/03/08 16:11
linux-6.1 INFO: rcu detected stall in syscall_exit_to_user_mode 9 11d 247d 0/3 upstream: reported on 2023/04/07 08:31
upstream INFO: rcu detected stall in syscall_exit_to_user_mode (2) usb C inconclusive 133 4h29m 369d 0/25 upstream: reported C repro on 2022/12/05 19:46

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
	(detected by 0, t=10502 jiffies, g=4705, q=30)
rcu: All QSes seen, last rcu_preempt kthread activity 10496 (4294966815-4294956319), jiffies_till_next_fqs=1, root ->qsmask 0x0
rcu: rcu_preempt kthread starved for 10496 jiffies! g4705 f0x2 RCU_GP_WAIT_FQS(5) ->state=0x0 ->cpu=0
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:27000 pid:   15 ppid:     2 flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5030 [inline]
 __schedule+0x12c4/0x45b0 kernel/sched/core.c:6376
 schedule+0x11b/0x1f0 kernel/sched/core.c:6459
 schedule_timeout+0x1b9/0x300 kernel/time/timer.c:1884
 rcu_gp_fqs_loop+0x2bf/0x1080 kernel/rcu/tree.c:1972
 rcu_gp_kthread+0xa4/0x360 kernel/rcu/tree.c:2145
 kthread+0x3f6/0x4f0 kernel/kthread.c:319
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298
 </TASK>
rcu: Stack dump where RCU GP kthread last ran:
NMI backtrace for cpu 0
CPU: 0 PID: 3549 Comm: syz-executor283 Not tainted 5.15.142-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023
Call Trace:
 <IRQ>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106
 nmi_cpu_backtrace+0x46a/0x4a0 lib/nmi_backtrace.c:111
 nmi_trigger_cpumask_backtrace+0x181/0x2a0 lib/nmi_backtrace.c:62
 trigger_single_cpu_backtrace include/linux/nmi.h:166 [inline]
 rcu_check_gp_kthread_starvation+0x1d2/0x240 kernel/rcu/tree_stall.h:487
 print_other_cpu_stall+0x137a/0x14d0 kernel/rcu/tree_stall.h:592
 check_cpu_stall kernel/rcu/tree_stall.h:745 [inline]
 rcu_pending kernel/rcu/tree.c:3932 [inline]
 rcu_sched_clock_irq+0xa38/0x1150 kernel/rcu/tree.c:2619
 update_process_times+0x196/0x200 kernel/time/timer.c:1788
 tick_sched_handle kernel/time/tick-sched.c:254 [inline]
 tick_sched_timer+0x386/0x550 kernel/time/tick-sched.c:1473
 __run_hrtimer kernel/time/hrtimer.c:1685 [inline]
 __hrtimer_run_queues+0x55b/0xcf0 kernel/time/hrtimer.c:1749
 hrtimer_interrupt+0x392/0x980 kernel/time/hrtimer.c:1811
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1085 [inline]
 __sysvec_apic_timer_interrupt+0x139/0x470 arch/x86/kernel/apic/apic.c:1102
 sysvec_apic_timer_interrupt+0x8c/0xb0 arch/x86/kernel/apic/apic.c:1096
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:638
RIP: 0010:lock_is_held_type+0x144/0x180 kernel/locking/lockdep.c:5671
Code: 24 f7 04 24 00 02 00 00 75 46 41 f7 c4 00 02 00 00 74 01 fb 65 48 8b 04 25 28 00 00 00 48 3b 44 24 08 75 3c 89 e8 48 83 c4 10 <5b> 41 5c 41 5d 41 5e 41 5f 5d c3 0f 0b 48 c7 c7 60 0d 8b 8a e8 33
RSP: 0018:ffffc90002db79c8 EFLAGS: 00000282
RAX: 0000000000000000 RBX: ffff8880789b1dc0 RCX: ffff8880789b1dc0
RDX: 0000000000000000 RSI: ffffffff8a8b2000 RDI: ffffffff8ad87dc0
RBP: 0000000000000000 R08: ffffffff81b96ecc R09: ffffc90002db7c00
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000246
R13: ffff8880789b1dc0 R14: 00000000ffffffff R15: ffffffff8c91f140
 lock_is_held include/linux/lockdep.h:287 [inline]
 ___might_sleep+0xa2/0x6a0 kernel/sched/core.c:9592
 __might_fault+0x6b/0x110 mm/memory.c:5321
 rseq_get_rseq_cs kernel/rseq.c:131 [inline]
 rseq_ip_fixup kernel/rseq.c:244 [inline]
 __rseq_handle_notify_resume+0x11b/0x1250 kernel/rseq.c:292
 rseq_handle_notify_resume include/linux/sched.h:2208 [inline]
 rseq_signal_deliver include/linux/sched.h:2217 [inline]
 setup_rt_frame arch/x86/kernel/signal.c:769 [inline]
 handle_signal arch/x86/kernel/signal.c:824 [inline]
 arch_do_signal_or_restart+0x27d/0x1890 arch/x86/kernel/signal.c:869
 handle_signal_work kernel/entry/common.c:148 [inline]
 exit_to_user_mode_loop+0x97/0x130 kernel/entry/common.c:172
 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:208
 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline]
 syscall_exit_to_user_mode+0x5d/0x250 kernel/entry/common.c:301
 do_syscall_64+0x49/0xb0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7f799b52fe79
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 18 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffcf1d00e58 EFLAGS: 00000246
RAX: 0000000000000000 RBX: 0000000000000003 RCX: 00007f799b52fe79
RDX: 000000002006b000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 00000000000f4240 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000555555cc3370
R13: 0000000000000001 R14: 00007ffcf1d00ed0 R15: 00007ffcf1d00ec0
 </TASK>

Crashes (17):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/12/09 15:04 linux-5.15.y 8a1d809b0545 28b24332 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in syscall_exit_to_user_mode
2023/12/09 09:53 linux-5.15.y 8a1d809b0545 28b24332 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in syscall_exit_to_user_mode
2023/12/04 13:13 linux-5.15.y 9b91d36ba301 f819d6f7 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in syscall_exit_to_user_mode
2023/11/24 13:47 linux-5.15.y 2a910f4af54d 5b429f39 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in syscall_exit_to_user_mode
2023/09/08 01:31 linux-5.15.y aff03380bda4 72324844 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in syscall_exit_to_user_mode
2023/12/03 15:55 linux-5.15.y 9b91d36ba301 f819d6f7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in syscall_exit_to_user_mode
2023/11/11 12:16 linux-5.15.y 80529b4968a8 6d6dbf8a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in syscall_exit_to_user_mode
2023/11/08 18:33 linux-5.15.y 80529b4968a8 b93f63e8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in syscall_exit_to_user_mode
2023/11/08 15:31 linux-5.15.y 12952a23a5da b93f63e8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in syscall_exit_to_user_mode
2023/10/10 23:24 linux-5.15.y 02e21884dcf2 83165b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in syscall_exit_to_user_mode
2023/10/09 20:24 linux-5.15.y 1edcec18cfb7 3c53c7d9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in syscall_exit_to_user_mode
2023/10/06 02:24 linux-5.15.y b911329317b4 db17ad9f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in syscall_exit_to_user_mode
2023/10/03 06:11 linux-5.15.y b911329317b4 65faba36 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in syscall_exit_to_user_mode
2023/10/03 01:09 linux-5.15.y b911329317b4 65faba36 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in syscall_exit_to_user_mode
2023/09/28 19:50 linux-5.15.y b911329317b4 d265efd8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in syscall_exit_to_user_mode
2023/09/13 09:40 linux-5.15.y aff03380bda4 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in syscall_exit_to_user_mode
2023/08/26 22:22 linux-5.15.y 5ddfe5cc8716 7ba13a15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in syscall_exit_to_user_mode
* Struck through repros no longer work on HEAD.