syzbot


INFO: rcu detected stall in sys_getsockopt (6)

Status: auto-closed as invalid on 2021/11/10 12:58
Subsystems: kvm
[Documentation on labels]
First crash: 1391d, last: 1323d
Similar bugs (17)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in sys_getsockopt (2) kernel 1 1906d 1906d 0/28 closed as invalid on 2020/01/08 05:23
linux-4.19 INFO: rcu detected stall in sys_getsockopt 1 919d 919d 0/1 auto-obsoleted due to no activity on 2023/01/19 05:52
upstream INFO: rcu detected stall in sys_getsockopt (11) netfilter 4 452d 465d 0/28 auto-obsoleted due to no activity on 2024/03/30 17:47
linux-5.15 INFO: rcu detected stall in sys_getsockopt 1 471d 471d 0/3 auto-obsoleted due to no activity on 2024/03/21 16:23
linux-5.15 INFO: rcu detected stall in sys_getsockopt (2) 2 123d 157d 0/3 auto-obsoleted due to no activity on 2025/03/05 03:25
upstream INFO: rcu detected stall in sys_getsockopt (3) kernel 1 1906d 1906d 0/28 closed as invalid on 2020/01/08 05:33
upstream INFO: rcu detected stall in sys_getsockopt (4) kernel 3 1905d 1905d 0/28 closed as invalid on 2020/01/09 08:13
upstream INFO: rcu detected stall in sys_getsockopt (7) netfilter 2 1181d 1230d 0/28 closed as invalid on 2022/02/08 10:10
upstream INFO: rcu detected stall in sys_getsockopt (5) sctp 2 1723d 1766d 0/28 auto-closed as invalid on 2020/10/06 19:28
linux-6.1 INFO: rcu detected stall in sys_getsockopt 4 388d 546d 0/3 auto-obsoleted due to no activity on 2024/06/12 17:46
upstream INFO: rcu detected stall in sys_getsockopt (10) mm 9 583d 665d 0/28 auto-obsoleted due to no activity on 2023/11/20 15:28
linux-6.1 INFO: rcu detected stall in sys_getsockopt (2) 1 7d03h 7d03h 0/3 upstream: reported on 2025/03/21 07:27
upstream INFO: rcu detected stall in sys_getsockopt (9) kernel 6 787d 942d 0/28 auto-obsoleted due to no activity on 2023/05/01 05:21
upstream INFO: rcu detected stall in sys_getsockopt (8) net 2 1071d 1087d 0/28 auto-closed as invalid on 2022/07/21 00:25
upstream INFO: rcu detected stall in sys_getsockopt kernel 2 1941d 1941d 0/28 closed as invalid on 2019/12/04 14:04
android-54 BUG: soft lockup in sys_getsockopt 1 345d 345d 0/2 auto-obsoleted due to no activity on 2024/07/15 21:19
android-5-15 BUG: soft lockup in sys_getsockopt 6 240d 339d 0/2 auto-obsoleted due to no activity on 2024/10/28 21:41

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
	(detected by 0, t=10502 jiffies, g=18221, q=245)
rcu: All QSes seen, last rcu_preempt kthread activity 10502 (4294967714-4294957212), jiffies_till_next_fqs=1, root ->qsmask 0x0
rcu: rcu_preempt kthread starved for 10502 jiffies! g18221 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:28864 pid:   14 ppid:     2 flags:0x00004000
Call Trace:
 context_switch kernel/sched/core.c:4681 [inline]
 __schedule+0x93a/0x26f0 kernel/sched/core.c:5938
 schedule+0xd3/0x270 kernel/sched/core.c:6017
 schedule_timeout+0x14a/0x2a0 kernel/time/timer.c:1881
 rcu_gp_fqs_loop kernel/rcu/tree.c:1996 [inline]
 rcu_gp_kthread+0xd34/0x1980 kernel/rcu/tree.c:2169
 kthread+0x3e5/0x4d0 kernel/kthread.c:319
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
rcu: Stack dump where RCU GP kthread last ran:
NMI backtrace for cpu 0
CPU: 0 PID: 8448 Comm: syz-executor.2 Not tainted 5.14.0-rc5-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 <IRQ>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:105
 nmi_cpu_backtrace.cold+0x44/0xd7 lib/nmi_backtrace.c:105
 nmi_trigger_cpumask_backtrace+0x1b3/0x230 lib/nmi_backtrace.c:62
 trigger_single_cpu_backtrace include/linux/nmi.h:164 [inline]
 rcu_check_gp_kthread_starvation.cold+0x1d1/0x1d6 kernel/rcu/tree_stall.h:479
 print_other_cpu_stall kernel/rcu/tree_stall.h:584 [inline]
 check_cpu_stall kernel/rcu/tree_stall.h:709 [inline]
 rcu_pending kernel/rcu/tree.c:3922 [inline]
 rcu_sched_clock_irq+0x2001/0x20c0 kernel/rcu/tree.c:2641
 update_process_times+0x16d/0x200 kernel/time/timer.c:1785
 tick_sched_handle+0x9b/0x180 kernel/time/tick-sched.c:226
 tick_sched_timer+0x1b0/0x2d0 kernel/time/tick-sched.c:1421
 __run_hrtimer kernel/time/hrtimer.c:1537 [inline]
 __hrtimer_run_queues+0x1c0/0xe50 kernel/time/hrtimer.c:1601
 hrtimer_interrupt+0x330/0xa00 kernel/time/hrtimer.c:1663
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1089 [inline]
 __sysvec_apic_timer_interrupt+0x146/0x530 arch/x86/kernel/apic/apic.c:1106
 sysvec_apic_timer_interrupt+0x8e/0xc0 arch/x86/kernel/apic/apic.c:1100
 </IRQ>
 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:638
RIP: 0010:arch_safe_halt arch/x86/include/asm/irqflags.h:90 [inline]
RIP: 0010:kvm_wait arch/x86/kernel/kvm.c:888 [inline]
RIP: 0010:kvm_wait+0xaf/0xf0 arch/x86/kernel/kvm.c:871
Code: 10 c3 c3 89 74 24 0c 48 89 3c 24 e8 3b a5 48 00 8b 74 24 0c 48 8b 3c 24 eb 82 e8 4c aa 48 00 eb 07 0f 00 2d d3 c5 55 08 fb f4 <eb> 9b eb 07 0f 00 2d c6 c5 55 08 f4 eb c5 89 74 24 0c 48 89 3c 24
RSP: 0018:ffffc9000171f7a0 EFLAGS: 00000202
RAX: 00000000000da08f RBX: 0000000000000000 RCX: 1ffffffff1f9b12a
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffffff8ba98440 R08: 0000000000000001 R09: ffffffff8fcd58a7
R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000000
R13: fffffbfff1753088 R14: 0000000000000001 R15: ffff8880b9c52880
 pv_wait arch/x86/include/asm/paravirt.h:597 [inline]
 pv_wait_head_or_lock kernel/locking/qspinlock_paravirt.h:470 [inline]
 __pv_queued_spin_lock_slowpath+0x8b8/0xb40 kernel/locking/qspinlock.c:508
 pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:585 [inline]
 queued_spin_lock_slowpath arch/x86/include/asm/qspinlock.h:51 [inline]
 queued_spin_lock include/asm-generic/qspinlock.h:85 [inline]
 do_raw_spin_lock+0x200/0x2b0 kernel/locking/spinlock_debug.c:113
 spin_lock include/linux/spinlock.h:354 [inline]
 preload_this_cpu_lock mm/vmalloc.c:1466 [inline]
 alloc_vmap_area+0x1dd/0x1e30 mm/vmalloc.c:1507
 __get_vm_area_node.constprop.0+0x128/0x380 mm/vmalloc.c:2389
 __vmalloc_node_range+0x12e/0x960 mm/vmalloc.c:2956
 __vmalloc_node mm/vmalloc.c:3015 [inline]
 vzalloc+0x67/0x80 mm/vmalloc.c:3085
 do_ipt_get_ctl+0x613/0x9d0 net/ipv4/netfilter/ip_tables.c:800
 nf_getsockopt+0x72/0xd0 net/netfilter/nf_sockopt.c:116
 ip_getsockopt net/ipv4/ip_sockglue.c:1777 [inline]
 ip_getsockopt+0x164/0x1c0 net/ipv4/ip_sockglue.c:1756
 tcp_getsockopt+0x86/0xd0 net/ipv4/tcp.c:4253
 __sys_getsockopt+0x21f/0x5f0 net/socket.c:2203
 __do_sys_getsockopt net/socket.c:2218 [inline]
 __se_sys_getsockopt net/socket.c:2215 [inline]
 __x64_sys_getsockopt+0xba/0x150 net/socket.c:2215
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x467bfa
Code: 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 49 89 ca b8 37 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffd286f49a8 EFLAGS: 00000216 ORIG_RAX: 0000000000000037
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000467bfa
RDX: 0000000000000041 RSI: 0000000000000000 RDI: 0000000000000003
RBP: 00007ffd286f49d0 R08: 00007ffd286f49cc R09: 00007ffd286f4a60
R10: 00007ffd286f4a30 R11: 0000000000000216 R12: 00007ffd286f4a30
R13: 0000000000000003 R14: 00007ffd286f49cc R15: 0000000000543d00

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/08/12 12:50 upstream 1746f4db5135 6972b106 .config console log report info ci-upstream-kasan-gce-root INFO: rcu detected stall in sys_getsockopt
2021/07/30 16:33 upstream 764a5bc89b12 c585c7b0 .config console log report info ci-upstream-kasan-gce-root INFO: rcu detected stall in sys_getsockopt
2021/06/05 16:24 bpf-next cf68fa431d5d 500c2339 .config console log report info ci-upstream-bpf-next-kasan-gce INFO: rcu detected stall in sys_getsockopt
* Struck through repros no longer work on HEAD.