syzbot


INFO: rcu detected stall in rt_sigreturn

Status: upstream: reported C repro on 2023/09/10 03:48
Bug presence: origin:upstream
[Documentation on labels]
Reported-by: syzbot+0ca35102d68b60f5d4a0@syzkaller.appspotmail.com
First crash: 239d, last: 22d
Bug presence (1)
Date Name Commit Repro Result
2023/09/10 upstream (ToT) 535a265d7f0d C [report] INFO: rcu detected stall in corrupted
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in rt_sigreturn kernel C error 1 14d 10d 0/26 upstream: reported C repro on 2024/04/26 07:05
Fix bisection attempts (5)
Created Duration User Patch Repo Result
2024/03/23 13:16 1h30m bisect fix linux-5.15.y job log (0) log
2024/02/22 06:25 1h43m bisect fix linux-5.15.y job log (0) log
2024/01/12 16:11 2h00m bisect fix linux-5.15.y job log (0) log
2023/12/12 10:43 1h13m bisect fix linux-5.15.y job log (0) log
2023/10/15 12:37 1h05m bisect fix linux-5.15.y job log (0) log

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
	(detected by 0, t=10502 jiffies, g=3453, q=16)
rcu: All QSes seen, last rcu_preempt kthread activity 10500 (4294966621-4294956121), jiffies_till_next_fqs=1, root ->qsmask 0x0
rcu: rcu_preempt kthread starved for 10500 jiffies! g3453 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:1914
 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:334
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:300
 </TASK>
rcu: Stack dump where RCU GP kthread last ran:
NMI backtrace for cpu 0
CPU: 0 PID: 3544 Comm: syz-executor202 Not tainted 5.15.155-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
Call Trace:
 <IRQ>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x1e3/0x2d0 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:1818
 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:1686 [inline]
 __hrtimer_run_queues+0x55b/0xcf0 kernel/time/hrtimer.c:1750
 hrtimer_interrupt+0x392/0x980 kernel/time/hrtimer.c:1812
 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_acquire+0x252/0x4f0 kernel/locking/lockdep.c:5627
Code: 2b 00 74 08 4c 89 f7 e8 ec 71 67 00 f6 44 24 61 02 0f 85 84 01 00 00 41 f7 c7 00 02 00 00 74 01 fb 48 c7 44 24 40 0e 36 e0 45 <4b> c7 44 25 00 00 00 00 00 43 c7 44 25 09 00 00 00 00 43 c7 44 25
RSP: 0018:ffffc90002e37900 EFLAGS: 00000206
RAX: 0000000000000001 RBX: 1ffff920005c6f2c RCX: ffffffff81636522
RDX: dffffc0000000000 RSI: ffffffff8a8b3ca0 RDI: ffffffff8ad8f400
RBP: ffffc90002e37a58 R08: dffffc0000000000 R09: fffffbfff1f7ec1f
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff920005c6f28
R13: dffffc0000000000 R14: ffffc90002e37960 R15: 0000000000000246
 __might_fault+0xb4/0x110 mm/memory.c:5328
 __copy_from_user include/linux/uaccess.h:109 [inline]
 check_xstate_in_sigframe arch/x86/kernel/fpu/signal.c:33 [inline]
 __fpu_restore_sig arch/x86/kernel/fpu/signal.c:317 [inline]
 fpu__restore_sig+0x1db/0x1100 arch/x86/kernel/fpu/signal.c:466
 restore_sigcontext+0x638/0x710 arch/x86/kernel/signal.c:139
 __do_sys_rt_sigreturn+0x190/0x250 arch/x86/kernel/signal.c:674
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7ffae3706e79
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:00007ffc919e8658 EFLAGS: 00000246
RAX: 0000000000000000 RBX: 0000000000000003 RCX: 00007ffae3706e79
RDX: 000000002006b000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 00000000000f4240 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000555557355370
R13: 0000000000000001 R14: 00007ffc919e86d0 R15: 00007ffc919e86c0
 </TASK>

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/04/14 17:32 linux-5.15.y fa3df276cd36 c8349e48 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in rt_sigreturn
2023/09/10 03:48 linux-5.15.y aff03380bda4 6654cf89 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in rt_sigreturn
2023/11/11 12:48 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 rt_sigreturn
* Struck through repros no longer work on HEAD.