syzbot


INFO: rcu detected stall in sys_socket

Status: auto-obsoleted due to no activity on 2024/01/11 06:48
Reported-by: syzbot+59a0bdd4d4b64961e855@syzkaller.appspotmail.com
First crash: 200d, last: 200d
Similar bugs (12)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in sys_socket (4) fs 1 1088d 1088d 0/26 auto-closed as invalid on 2021/07/27 17:27
upstream INFO: rcu detected stall in sys_socket (5) net 2 925d 951d 0/26 auto-closed as invalid on 2022/01/06 01:08
upstream INFO: rcu detected stall in sys_socket kernel 11 1599d 1600d 0/26 closed as invalid on 2019/12/04 14:04
linux-4.19 INFO: rcu detected stall in sys_socket 1 729d 729d 0/1 auto-closed as invalid on 2022/08/20 07:08
upstream INFO: rcu detected stall in sys_socket (10) net apparmor C done 7 23h00m 142d 0/26 upstream: reported C repro on 2023/11/30 15:24
upstream INFO: rcu detected stall in sys_socket (6) cgroups mm 2 584d 628d 0/26 auto-obsoleted due to no activity on 2022/12/12 22:48
upstream INFO: rcu detected stall in sys_socket (7) kernel 2 444d 476d 0/26 auto-obsoleted due to no activity on 2023/05/02 14:50
upstream INFO: rcu detected stall in sys_socket (9) kasan mm 2 261d 271d 0/26 closed as invalid on 2023/09/07 14:25
upstream INFO: rcu detected stall in sys_socket (2) kernel 3 1564d 1564d 0/26 closed as invalid on 2020/01/08 05:23
linux-5.15 INFO: rcu detected stall in sys_socket (2) origin:upstream C 2 10d 49d 0/3 upstream: reported C repro on 2024/03/02 17:55
upstream INFO: rcu detected stall in sys_socket (3) kernel 4 1564d 1564d 0/26 closed as invalid on 2020/01/09 08:13
android-5-15 BUG: soft lockup in sys_socket origin:lts C 8 1d04h 10d 0/2 upstream: reported C repro on 2024/04/10 16:23

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	0-...!: (1 GPs behind) idle=769/1/0x4000000000000000 softirq=72683/72687 fqs=0 
rcu: 	Tasks blocked on level-0 rcu_node (CPUs 0-1): P21749/1:b..l
	(detected by 1, t=10505 jiffies, g=112665, q=79)
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 21418 Comm: syz-executor.2 Not tainted 5.15.133-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023
RIP: 0010:_raw_spin_unlock_irqrestore+0x1/0x130 kernel/locking/spinlock.c:193
Code: 6d 3e f7 bf 01 00 00 00 e8 5c aa 31 f7 65 8b 05 1d e7 dc 75 85 c0 74 02 5b c3 e8 aa fe da f6 5b c3 0f 1f 84 00 00 00 00 00 55 <48> 89 e5 41 57 41 56 41 55 41 54 53 48 83 e4 e0 48 83 ec 60 49 89
RSP: 0018:ffffc90000007d50 EFLAGS: 00000046
RAX: 1ffff1100e9df06d RBX: ffff888074ef8368 RCX: 0000000000000001
RDX: 0000000080010001 RSI: 0000000000000046 RDI: ffff8880b9a2a200
RBP: ffffc90000007eb0 R08: ffffffff816f33c0 R09: fffffbfff1bc818e
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff8880b9a2a200
R13: ffffffff886bb5e0 R14: ffff888074ef8340 R15: dffffc0000000000
FS:  00005555569ae480(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f26a747c400 CR3: 0000000091c53000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000005ce7 DR6: 00000000ffff0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 __run_hrtimer kernel/time/hrtimer.c:1681 [inline]
 __hrtimer_run_queues+0x48c/0xcf0 kernel/time/hrtimer.c:1749
 hrtimer_interrupt+0x392/0x980 kernel/time/hrtimer.c:1811
 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:lock_acquire+0x252/0x4f0 kernel/locking/lockdep.c:5626
Code: 2b 00 74 08 4c 89 f7 e8 2c 46 67 00 f6 44 24 61 02 0f 85 84 01 00 00 41 f7 c7 00 02 00 00 74 01 fb 48 c7 44 24 40 0e 36 e0 45 <4b> c7 44 25 00 00 00 00 00 43 c7 44 25 09 00 00 00 00 43 c7 44 25
RSP: 0018:ffffc90004e6fa60 EFLAGS: 00000206
RAX: 0000000000000001 RBX: 1ffff920009cdf58 RCX: ffffffff816335a2
RDX: dffffc0000000000 RSI: ffffffff8a8b1f00 RDI: ffffffff8ad87a00
RBP: ffffc90004e6fbb0 R08: dffffc0000000000 R09: fffffbfff1f7b023
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff920009cdf54
R13: dffffc0000000000 R14: ffffc90004e6fac0 R15: 0000000000000246
 fs_reclaim_acquire+0xa7/0x120 mm/page_alloc.c:4564
 might_alloc include/linux/sched/mm.h:206 [inline]
 slab_pre_alloc_hook+0x22/0xc0 mm/slab.h:492
 slab_alloc_node mm/slub.c:3134 [inline]
 slab_alloc mm/slub.c:3228 [inline]
 kmem_cache_alloc_trace+0x49/0x290 mm/slub.c:3245
 kmalloc include/linux/slab.h:591 [inline]
 kzalloc include/linux/slab.h:721 [inline]
 apparmor_sk_alloc_security+0x73/0x100 security/apparmor/lsm.c:785
 security_sk_alloc+0x6d/0xa0 security/security.c:2278
 sk_prot_alloc+0xfa/0x200 net/core/sock.c:1848
 sk_alloc+0x35/0x310 net/core/sock.c:1898
 inet6_create+0x617/0xed0 net/ipv6/af_inet6.c:191
 __sock_create+0x460/0x8d0 net/socket.c:1467
 sock_create net/socket.c:1518 [inline]
 __sys_socket+0x132/0x370 net/socket.c:1560
 __do_sys_socket net/socket.c:1569 [inline]
 __se_sys_socket net/socket.c:1567 [inline]
 __x64_sys_socket+0x76/0x80 net/socket.c:1567
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7f629b6c7867
Code: f0 ff ff 77 06 c3 0f 1f 44 00 00 48 c7 c2 b0 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff c3 66 0f 1f 44 00 00 b8 29 00 00 00 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:00007ffeb42b9268 EFLAGS: 00000202 ORIG_RAX: 0000000000000029
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007f629b6c7867
RDX: 0000000000000006 RSI: 0000000000000001 RDI: 000000000000000a
RBP: 00007ffeb42b99bc R08: 00007ffeb42b928c R09: 0079746972756365
R10: 00007ffeb42b92f0 R11: 0000000000000202 R12: 00007f629b7bfb40
R13: 00000000001e38dd R14: 00000000001e38bf R15: 00007f629b7c1d00
 </TASK>
task:kworker/u4:10   state:R  running task     stack:23456 pid:21749 ppid:     2 flags:0x00004000
Workqueue: bat_events batadv_iv_send_outstanding_bat_ogm_packet
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5026 [inline]
 __schedule+0x12c4/0x4590 kernel/sched/core.c:6372
 preempt_schedule_irq+0xf7/0x1c0 kernel/sched/core.c:6776
 irqentry_exit+0x53/0x80 kernel/entry/common.c:426
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:638
RIP: 0010:lock_acquire+0x252/0x4f0 kernel/locking/lockdep.c:5626
Code: 2b 00 74 08 4c 89 f7 e8 2c 46 67 00 f6 44 24 61 02 0f 85 84 01 00 00 41 f7 c7 00 02 00 00 74 01 fb 48 c7 44 24 40 0e 36 e0 45 <4b> c7 44 25 00 00 00 00 00 43 c7 44 25 09 00 00 00 00 43 c7 44 25
RSP: 0000:ffffc9000440f8e0 EFLAGS: 00000206
RAX: 0000000000000001 RBX: 1ffff92000881f28 RCX: 1ffff92000881ec8
RDX: dffffc0000000000 RSI: ffffffff8a8b1f00 RDI: ffffffff8ad87a00
RBP: ffffc9000440fa40 R08: dffffc0000000000 R09: fffffbfff1f7b021
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff92000881f24
R13: dffffc0000000000 R14: ffffc9000440f940 R15: 0000000000000246
 rcu_lock_acquire+0x2a/0x30 include/linux/rcupdate.h:269
 rcu_read_lock include/linux/rcupdate.h:696 [inline]
 batadv_iv_ogm_slide_own_bcast_window net/batman-adv/bat_iv_ogm.c:755 [inline]
 batadv_iv_ogm_schedule_buff net/batman-adv/bat_iv_ogm.c:826 [inline]
 batadv_iv_ogm_schedule+0x429/0x1000 net/batman-adv/bat_iv_ogm.c:869
 batadv_iv_send_outstanding_bat_ogm_packet+0x6fa/0x800 net/batman-adv/bat_iv_ogm.c:1713
 process_one_work+0x8a1/0x10c0 kernel/workqueue.c:2310
 worker_thread+0xaca/0x1280 kernel/workqueue.c:2457
 kthread+0x3f6/0x4f0 kernel/kthread.c:319
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298
 </TASK>
rcu: rcu_preempt kthread starved for 10505 jiffies! g112665 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:27000 pid:   15 ppid:     2 flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5026 [inline]
 __schedule+0x12c4/0x4590 kernel/sched/core.c:6372
 schedule+0x11b/0x1f0 kernel/sched/core.c:6455
 schedule_timeout+0x1b9/0x300 kernel/time/timer.c:1884
 rcu_gp_fqs_loop+0x2af/0xf70 kernel/rcu/tree.c:1959
 rcu_gp_kthread+0xa4/0x360 kernel/rcu/tree.c:2132
 kthread+0x3f6/0x4f0 kernel/kthread.c:319
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298
 </TASK>
rcu: Stack dump where RCU GP kthread last ran:
NMI backtrace for cpu 1
CPU: 1 PID: 12808 Comm: kworker/1:21 Not tainted 5.15.133-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023
Workqueue: events bpf_prog_free_deferred
Call Trace:
 <IRQ>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x1e3/0x2cb 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:481
 print_other_cpu_stall+0x137a/0x14d0 kernel/rcu/tree_stall.h:586
 check_cpu_stall kernel/rcu/tree_stall.h:729 [inline]
 rcu_pending kernel/rcu/tree.c:3911 [inline]
 rcu_sched_clock_irq+0x94f/0x1770 kernel/rcu/tree.c:2606
 update_process_times+0x196/0x200 kernel/time/timer.c:1788
 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:1685 [inline]
 __hrtimer_run_queues+0x55b/0xcf0 kernel/time/hrtimer.c:1749
 hrtimer_interrupt+0x392/0x980 kernel/time/hrtimer.c:1811
 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:csd_lock_wait kernel/smp.c:440 [inline]
RIP: 0010:smp_call_function_many_cond+0xa93/0xd90 kernel/smp.c:969
Code: 04 03 84 c0 0f 85 84 00 00 00 45 8b 7d 00 44 89 fe 83 e6 01 31 ff e8 7c c1 0b 00 41 83 e7 01 75 07 e8 11 be 0b 00 eb 41 f3 90 <48> b8 00 00 00 00 00 fc ff df 0f b6 04 03 84 c0 75 11 41 f7 45 00
RSP: 0018:ffffc90004e878a0 EFLAGS: 00000293
RAX: ffffffff81745f64 RBX: 1ffff110173483c1 RCX: ffff8880662fbb80
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffc90004e879e0 R08: ffffffff81745f34 R09: fffffbfff1f7b022
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000
R13: ffff8880b9a41e08 R14: ffff8880b9b3a780 R15: 0000000000000001
 on_each_cpu_cond_mask+0x3b/0x80 kernel/smp.c:1135
 __purge_vmap_area_lazy+0x294/0x1740 mm/vmalloc.c:1683
 _vm_unmap_aliases+0x453/0x4e0 mm/vmalloc.c:2107
 vm_remove_mappings mm/vmalloc.c:2584 [inline]
 __vunmap+0x72e/0xa20 mm/vmalloc.c:2611
 bpf_jit_binary_free kernel/bpf/core.c:910 [inline]
 bpf_jit_free+0x92/0x180 kernel/bpf/core.c:923
 process_one_work+0x8a1/0x10c0 kernel/workqueue.c:2310
 worker_thread+0xaca/0x1280 kernel/workqueue.c:2457
 kthread+0x3f6/0x4f0 kernel/kthread.c:319
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/10/03 06:47 linux-5.15.y b911329317b4 65faba36 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in sys_socket
* Struck through repros no longer work on HEAD.