syzbot


INFO: rcu detected stall in sys_setsockopt

Status: auto-closed as invalid on 2021/05/17 17:51
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 719d, last: 719d
similar bugs (3):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in sys_setsockopt (2) 2 556d 598d 0/24 auto-closed as invalid on 2021/10/27 00:02
upstream INFO: rcu detected stall in sys_setsockopt (3) 4 429d 456d 0/24 closed as invalid on 2022/02/08 10:00
linux-4.19 BUG: soft lockup in sys_setsockopt 3 651d 679d 0/1 auto-closed as invalid on 2021/08/23 07:10

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	Tasks blocked on level-0 rcu_node (CPUs 0-1):
------------[ cut here ]------------
WARNING: CPU: 1 PID: 8427 at kernel/sched/core.c:3503 try_invoke_on_locked_down_task+0x18c/0x300 kernel/sched/core.c:3503
Modules linked in:
CPU: 1 PID: 8427 Comm: syz-executor.1 Not tainted 5.11.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:try_invoke_on_locked_down_task+0x18c/0x300 kernel/sched/core.c:3503
Code: 00 00 00 0f 85 34 01 00 00 48 83 c4 70 44 89 f0 5b 5d 41 5c 41 5d 41 5e 41 5f c3 65 8b 05 18 f1 b2 7e 85 c0 0f 85 15 ff ff ff <0f> 0b e9 0e ff ff ff 48 8d 74 24 30 48 89 ef 49 c7 c6 40 4c 03 00
RSP: 0018:ffffc90000db0bb0 EFLAGS: 00010046
RAX: 0000000000000000 RBX: 1ffff920001b6178 RCX: 0000000000000001
RDX: 0000000000000000 RSI: ffffffff815f6be0 RDI: ffff88801b5a1bc0
RBP: ffff88801b5a1bc0 R08: 0000000000000000 R09: ffffffff8bd7c043
R10: fffffbfff17af808 R11: 0000000000000000 R12: ffffffff815f6be0
R13: ffffc90000db0cd0 R14: ffffffff8bd7c108 R15: ffffffff8bd7c040
FS:  000000000289d400(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000000053cbf8 CR3: 0000000062e6f000 CR4: 0000000000350ee0
Call Trace:
 <IRQ>
 rcu_print_task_stall kernel/rcu/tree_stall.h:284 [inline]
 print_other_cpu_stall kernel/rcu/tree_stall.h:501 [inline]
 check_cpu_stall kernel/rcu/tree_stall.h:652 [inline]
 rcu_pending kernel/rcu/tree.c:3751 [inline]
 rcu_sched_clock_irq.cold+0xa73/0xedf kernel/rcu/tree.c:2580
 update_process_times+0x16d/0x200 kernel/time/timer.c:1782
 tick_sched_handle+0x9b/0x180 kernel/time/tick-sched.c:226
 tick_sched_timer+0x1b0/0x2d0 kernel/time/tick-sched.c:1369
 __run_hrtimer kernel/time/hrtimer.c:1519 [inline]
 __hrtimer_run_queues+0x1c0/0xe40 kernel/time/hrtimer.c:1583
 hrtimer_interrupt+0x334/0x940 kernel/time/hrtimer.c:1645
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1089 [inline]
 __sysvec_apic_timer_interrupt+0x146/0x540 arch/x86/kernel/apic/apic.c:1106
 asm_call_irq_on_stack+0xf/0x20
 </IRQ>
 __run_sysvec_on_irqstack arch/x86/include/asm/irq_stack.h:37 [inline]
 run_sysvec_on_irqstack_cond arch/x86/include/asm/irq_stack.h:89 [inline]
 sysvec_apic_timer_interrupt+0xbd/0x100 arch/x86/kernel/apic/apic.c:1100
 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:629
RIP: 0010:kvm_wait arch/x86/kernel/kvm.c:860 [inline]
RIP: 0010:kvm_wait+0x9c/0xd0 arch/x86/kernel/kvm.c:837
Code: 02 48 89 da 83 e2 07 38 d0 7f 04 84 c0 75 32 0f b6 03 41 38 c4 75 13 e8 02 14 47 00 e9 07 00 00 00 0f 00 2d f6 20 17 08 fb f4 <e8> ef 13 47 00 eb af c3 e9 07 00 00 00 0f 00 2d e0 20 17 08 f4 eb
RSP: 0018:ffffc900016af598 EFLAGS: 00000202
RAX: 00000000001044d3 RBX: ffffffff8be849a0 RCX: ffffffff81585217
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: 0000000000000246 R08: 0000000000000001 R09: ffffffff8f8667a7
R10: fffffbfff1f0ccf4 R11: 0000000000000001 R12: 0000000000000003
R13: fffffbfff17d0934 R14: 0000000000000001 R15: ffff8880b9d35a00
 pv_wait arch/x86/include/asm/paravirt.h:564 [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:554 [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]
 alloc_vmap_area+0x1b5/0x1e00 mm/vmalloc.c:1215
 __get_vm_area_node+0x128/0x380 mm/vmalloc.c:2096
 __vmalloc_node_range mm/vmalloc.c:2571 [inline]
 __vmalloc_node mm/vmalloc.c:2619 [inline]
 vzalloc+0xf2/0x1a0 mm/vmalloc.c:2672
 xt_counters_alloc+0x4c/0x70 net/netfilter/x_tables.c:1348
 __do_replace+0x9a/0x8c0 net/ipv6/netfilter/ip6_tables.c:1065
 do_replace net/ipv6/netfilter/ip6_tables.c:1156 [inline]
 do_ip6t_set_ctl+0x8ec/0xb70 net/ipv6/netfilter/ip6_tables.c:1636
 nf_setsockopt+0x83/0xe0 net/netfilter/nf_sockopt.c:101
 ipv6_setsockopt+0x122/0x180 net/ipv6/ipv6_sockglue.c:1008
 tcp_setsockopt+0x136/0x2440 net/ipv4/tcp.c:3598
 __sys_setsockopt+0x2db/0x610 net/socket.c:2115
 __do_sys_setsockopt net/socket.c:2126 [inline]
 __se_sys_setsockopt net/socket.c:2123 [inline]
 __x64_sys_setsockopt+0xba/0x150 net/socket.c:2123
 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x4673da
Code: 73 01 c3 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 66 90 49 89 ca b8 36 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:00007fffc6ca3048 EFLAGS: 00000206 ORIG_RAX: 0000000000000036
RAX: ffffffffffffffda RBX: 0000000000000029 RCX: 00000000004673da
RDX: 0000000000000040 RSI: 0000000000000029 RDI: 0000000000000003
RBP: 00007fffc6ca3070 R08: 00000000000003b8 R09: 0079746972756365
R10: 000000000053cba0 R11: 0000000000000206 R12: 00007fffc6ca30d0
R13: 0000000000000003 R14: 00007fffc6ca306c R15: 000000000053cb40

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci-upstream-kasan-gce-root 2021/02/16 17:45 upstream f40ddce88593 98682e5e .config console log report info INFO: rcu detected stall in sys_setsockopt
* Struck through repros no longer work on HEAD.