syzbot


INFO: rcu detected stall in x64_sys_call

Status: upstream: reported on 2024/06/28 02:18
Reported-by: syzbot+be21860d989c20abb226@syzkaller.appspotmail.com
First crash: 71d, last: 71d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-5-15 BUG: soft lockup in x64_sys_call origin:lts C 11 14h11m 13d 0/2 upstream: reported C repro on 2024/08/25 04:51

Sample crash report:
rcu: INFO: rcu_preempt self-detected stall on CPU
rcu: 	0-...!: (10498 ticks this GP) idle=089/1/0x4000000000000000 softirq=5656/5656 fqs=5 
	(t=10502 jiffies g=5729 q=265)
rcu: rcu_preempt kthread starved for 10493 jiffies! g5729 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:26488 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:
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 3635 Comm: syz.2.16 Not tainted 5.15.161-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
RIP: 0010:handle_signal arch/x86/kernel/signal.c:794 [inline]
RIP: 0010:arch_do_signal_or_restart+0xf5/0x1890 arch/x86/kernel/signal.c:869
Code: 65 48 8b 05 9d 1b d6 7e 48 89 44 24 08 48 83 c3 78 48 89 d8 48 c1 e8 03 42 80 3c 28 00 74 08 48 89 df e8 ee d4 9d 00 4c 8b 33 <41> 83 fe ff 74 71 48 8b 04 24 4c 8d 60 50 4d 89 e5 49 c1 ed 03 48
RSP: 0018:ffffc90002fafca0 EFLAGS: 00000246
RAX: 1ffff920005f5ffa RBX: ffffc90002faffd0 RCX: 0000000000000001
RDX: ffff88807cc95940 RSI: 0000000000000021 RDI: 0000000000000000
RBP: ffffc90002fafeb8 R08: ffffffff81502898 R09: ffffed100ea28b91
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000
R13: dffffc0000000000 R14: ffffffffffffffff R15: ffffc90002fafde0
FS:  00007fe2d9d6f6c0(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f6204718000 CR3: 0000000061391000 CR4: 00000000003526e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <TASK>
 handle_signal_work kernel/entry/common.c:154 [inline]
 exit_to_user_mode_loop+0x97/0x130 kernel/entry/common.c:178
 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:214
 __syscall_exit_to_user_mode_work kernel/entry/common.c:296 [inline]
 syscall_exit_to_user_mode+0x5d/0x240 kernel/entry/common.c:307
 do_syscall_64+0x47/0xb0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7fe2db2eeb27
Code: ff ff ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 a8 ff ff ff f7 d8 64 89
RSP: 002b:00007fe2d9d6f0f8 EFLAGS: 00000246
RAX: 00000000000000ca RBX: 00007fe2db47cfa8 RCX: 00007fe2db2eeb29
RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007fe2db47cfa8
RBP: 00007fe2db47cfa0 R08: 00007fe2d9d6f6c0 R09: 00007fe2d9d6f6c0
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fe2db47cfac
R13: 000000000000000b R14: 00007ffc8a8bfc80 R15: 00007ffc8a8bfd68
 </TASK>
NMI backtrace for cpu 0
CPU: 0 PID: 3629 Comm: syz.4.15 Not tainted 5.15.161-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/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_dump_cpu_stacks+0x223/0x390 kernel/rcu/tree_stall.h:349
 print_cpu_stall+0x320/0x600 kernel/rcu/tree_stall.h:633
 check_cpu_stall kernel/rcu/tree_stall.h:727 [inline]
 rcu_pending kernel/rcu/tree.c:3932 [inline]
 rcu_sched_clock_irq+0x8d9/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:x64_sys_call+0x6b/0x6e0 arch/x86/include/generated/asm/syscalls_64.h:16
Code: d6 00 e9 28 ce da 00 e9 73 83 d4 00 e9 1e 58 2d 00 e9 f9 b3 bb 00 e9 94 2b bb 00 e9 df 50 ba 00 e9 0a c1 50 00 e9 f5 15 50 00 <e9> a0 fb 2b 00 e9 2b 17 da 00 e9 a6 d4 d4 00 e9 c1 da d4 00 e9 5c
RSP: 0018:ffffc90002f7ff28 EFLAGS: 00000283
RAX: 000000000000000f RBX: ffffc90002f7ff30 RCX: 000000000000000f
RDX: dffffc0000000000 RSI: 000000000000000f RDI: ffffc90002f7ff58
RBP: ffffc90002f7ff48 R08: ffffffff8186db40 R09: fffffbfff1bc8d86
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000
R13: 0000000000000000 R14: ffffc90002f7ff58 R15: 0000000000000000
 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:0x7fd17e3a1559
Code: 64 c7 00 16 00 00 00 b8 ff ff ff ff c3 0f 1f 40 00 90 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 c7 c0 0f 00 00 00 0f 05 <0f> 1f 80 00 00 00 00 48 81 ec 48 01 00 00 49 89 d0 64 48 8b 04 25
RSP: 002b:00007fd17ce85b40 EFLAGS: 00000206 ORIG_RAX: 000000000000000f
RAX: ffffffffffffffda RBX: 00007fd17e593fa8 RCX: 00007fd17e3a1559
RDX: 00007fd17ce85b40 RSI: 00007fd17ce85c70 RDI: 0000000000000021
RBP: 00007fd17e593fa0 R08: 00007fd17ce866c0 R09: 00007fd17ce866c0
R10: 0000000000000000 R11: 0000000000000206 R12: 00007fd17e593fac
R13: 000000000000000b R14: 00007ffc20fe57d0 R15: 00007ffc20fe58b8
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/06/28 02:17 linux-5.15.y 4878aadf2d15 6ef39602 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in x64_sys_call
* Struck through repros no longer work on HEAD.