syzbot


INFO: rcu detected stall in syscall_enter_from_user_mode

Status: upstream: reported C repro on 2023/12/13 03:22
Bug presence: origin:upstream
[Documentation on labels]
Reported-by: syzbot+12eef28cd33986d05b97@syzkaller.appspotmail.com
First crash: 189d, last: 2d10h
Bug presence (1)
Date Name Commit Repro Result
2023/12/13 upstream (ToT) 88035e5694a8 C [report] INFO: rcu detected stall in sys_rename
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 INFO: rcu detected stall in syscall_enter_from_user_mode 1 350d 350d 0/3 auto-obsoleted due to no activity on 2023/10/13 06:46
upstream INFO: rcu detected stall in syscall_enter_from_user_mode (2) kernel 11 526d 815d 0/27 auto-obsoleted due to no activity on 2023/04/22 11:15
upstream INFO: rcu detected stall in syscall_enter_from_user_mode (3) kernel 5 190d 355d 0/27 auto-obsoleted due to no activity on 2024/03/11 14:48
upstream INFO: rcu detected stall in syscall_enter_from_user_mode kernel 2 872d 886d 0/27 closed as invalid on 2022/02/08 10:10
android-5-15 BUG: soft lockup in syscall_enter_from_user_mode 1 34d 34d 0/2 premoderation: reported on 2024/05/16 14:09
Fix bisection attempts (3)
Created Duration User Patch Repo Result
2024/04/19 06:07 1h20m bisect fix linux-5.15.y job log (0) log
2024/03/16 14:55 1h22m bisect fix linux-5.15.y job log (0) log
2024/02/13 18:43 2h11m 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=4593, q=22)
rcu: All QSes seen, last rcu_preempt kthread activity 10502 (4294966954-4294956452), jiffies_till_next_fqs=1, root ->qsmask 0x0
rcu: rcu_preempt kthread starved for 10502 jiffies! g4593 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:26584 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: 3542 Comm: syz-executor411 Not tainted 5.15.160-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/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:__syscall_enter_from_user_work kernel/entry/common.c:93 [inline]
RIP: 0010:syscall_enter_from_user_mode+0x37/0x240 kernel/entry/common.c:114
Code: 49 89 fe 48 8b 7c 24 30 e8 46 f6 ff ff e9 8d 01 00 00 e9 91 01 00 00 e8 07 e6 68 f7 e8 f2 e3 68 f7 fb 65 4c 8b 3d e9 76 e4 75 <49> 8b 5f 08 f6 c3 3f 0f 84 ce 00 00 00 f6 c3 20 74 17 4c 89 f7 e8
RSP: 0018:ffffc90002e67ef8 EFLAGS: 00000282
RAX: 53025bb45d8a4700 RBX: ffffc90002e67f30 RCX: ffffffff913eff03
RDX: dffffc0000000000 RSI: ffffffff8a8b2980 RDI: ffffffff8ad8f6c0
RBP: ffffc90002e67f48 R08: ffffffff8186dcf0 R09: fffffbfff1bc8cce
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000
R13: 0000000000000027 R14: ffffc90002e67f58 R15: ffff888079280000
 do_syscall_64+0x1e/0xb0 arch/x86/entry/common.c:76
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f4a0d76a387
Code: 0b e9 68 fe ff ff 48 83 c4 18 48 8d 3d 52 0f 09 00 5b 5d 41 5c 41 5d 41 5e 41 5f e9 53 d8 fd ff 0f 1f 00 b8 27 00 00 00 0f 05 <c3> 0f 1f 84 00 00 00 00 00 31 f6 31 ff e9 c7 e5 02 00 0f 1f 80 00
RSP: 002b:00007fff768a3908 EFLAGS: 00000202 ORIG_RAX: 0000000000000027
RAX: ffffffffffffffda RBX: 00007fff768a3a70 RCX: 00007f4a0d76a387
RDX: 00007fff768a3940 RSI: 00007fff768a3a70 RDI: 0000000000000021
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000202 R12: 0000555555e90370
R13: 0000000000000004 R14: 00007fff768a3f40 R15: 00007fff768a3f30
 </TASK>

Crashes (11):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/06/07 11:31 linux-5.15.y c61bd26ae81a 121701b6 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in syscall_enter_from_user_mode
2023/12/13 03:21 linux-5.15.y 8a1d809b0545 ebcad15c .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in syscall_enter_from_user_mode
2024/06/17 08:55 linux-5.15.y 4878aadf2d15 88722c0f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in syscall_enter_from_user_mode
2024/06/13 05:08 linux-5.15.y c61bd26ae81a 2aa5052f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in syscall_enter_from_user_mode
2024/05/31 15:11 linux-5.15.y c61bd26ae81a 0c378259 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in syscall_enter_from_user_mode
2024/05/19 08:37 linux-5.15.y 83655231580b c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in syscall_enter_from_user_mode
2024/05/12 21:40 linux-5.15.y 284087d4f7d5 9026e142 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in syscall_enter_from_user_mode
2024/05/12 00:03 linux-5.15.y 284087d4f7d5 9026e142 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in syscall_enter_from_user_mode
2024/05/06 20:47 linux-5.15.y 284087d4f7d5 d884b519 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in syscall_enter_from_user_mode
2024/04/21 19:17 linux-5.15.y c52b9710c83d af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in syscall_enter_from_user_mode
2024/01/06 00:44 linux-5.15.y 26c690eff0a5 d0304e9c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in syscall_enter_from_user_mode
* Struck through repros no longer work on HEAD.