syzbot


INFO: rcu detected stall in sys_futex (2)

Status: upstream: reported on 2024/06/05 16:49
Reported-by: syzbot+6ceb9abf06f08ceec1d2@syzkaller.appspotmail.com
First crash: 14d, last: 7d05h
Similar bugs (8)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in sys_futex (3) kernel 959 1624d 1673d 0/27 auto-closed as invalid on 2020/03/08 12:44
upstream INFO: rcu detected stall in sys_futex (2) kernel 6 1792d 1936d 0/27 auto-closed as invalid on 2019/10/25 14:11
upstream INFO: rcu detected stall in sys_futex (4) kernel 1 873d 873d 0/27 closed as invalid on 2022/02/08 10:00
upstream INFO: rcu detected stall in sys_futex kernel 1 1997d 1997d 0/27 closed as invalid on 2018/12/31 04:10
linux-5.15 INFO: rcu detected stall in sys_futex 4 170d 344d 0/3 auto-obsoleted due to no activity on 2024/04/10 17:08
linux-6.1 INFO: rcu detected stall in sys_futex 12 23m 350d 0/3 upstream: reported on 2023/07/05 11:35
upstream INFO: rcu detected stall in sys_futex (5) kernel 12 604d 849d 0/27 auto-obsoleted due to no activity on 2023/02/12 18:33
upstream INFO: rcu detected stall in sys_futex (6) kernel 10 172d 408d 0/27 auto-obsoleted due to no activity on 2024/03/29 00:57

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
	(detected by 0, t=10502 jiffies, g=32425, q=16)
rcu: All QSes seen, last rcu_preempt kthread activity 10500 (4294971560-4294961060), jiffies_till_next_fqs=1, root ->qsmask 0x0
rcu: rcu_preempt kthread starved for 10501 jiffies! g32425 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:26168 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: 7428 Comm: syz-executor.2 Not tainted 5.15.160-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_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:finish_lock_switch+0x91/0x100 kernel/sched/core.c:4785
Code: 45 31 c9 68 b7 90 59 81 e8 cc 1a 09 00 48 83 c4 08 4c 89 ff e8 60 da fe ff 66 90 4c 89 ff e8 f6 da cd 08 e8 d1 4b 2d 00 fb 5b <41> 5c 41 5d 41 5e 41 5f c3 44 89 f1 80 e1 07 80 c1 03 38 c1 7c 87
RSP: 0018:ffffc90002fb7698 EFLAGS: 00000286
RAX: d6eabdc1596f8b00 RBX: ffff888021ecd974 RCX: ffffffff913eff03
RDX: dffffc0000000000 RSI: ffffffff8a8b2980 RDI: ffffffff8ad8f6c0
RBP: ffffc90002fb7710 R08: ffffffff8186dcf0 R09: ffffed1017347469
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: 1ffff11017347613 R14: ffff8880b9a3b098 R15: ffff8880b9a3a340
 finish_task_switch+0x134/0x630 kernel/sched/core.c:4902
 context_switch kernel/sched/core.c:5033 [inline]
 __schedule+0x12cc/0x45b0 kernel/sched/core.c:6376
 schedule+0x11b/0x1f0 kernel/sched/core.c:6459
 freezable_schedule include/linux/freezer.h:172 [inline]
 futex_wait_queue_me+0x25b/0x480 kernel/futex/core.c:2863
 futex_wait+0x2f8/0x740 kernel/futex/core.c:2964
 do_futex+0x1414/0x1810 kernel/futex/core.c:3982
 __do_sys_futex kernel/futex/core.c:4059 [inline]
 __se_sys_futex+0x407/0x490 kernel/futex/core.c:4040
 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:0x7f49b9020ea9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 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:00007f49b7b79178 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
RAX: ffffffffffffffda RBX: 00007f49b9158058 RCX: 00007f49b9020ea9
RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007f49b9158058
RBP: 00007f49b9158050 R08: 00007f49b7b796c0 R09: 00007f49b7b796c0
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f49b915805c
R13: 000000000000006e R14: 00007ffe614c84d0 R15: 00007ffe614c85b8
 </TASK>

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/06/12 14:06 linux-5.15.y c61bd26ae81a f815599d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in sys_futex
2024/06/05 16:49 linux-5.15.y c61bd26ae81a 5aa1a7c9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in sys_futex
* Struck through repros no longer work on HEAD.