syzbot


INFO: rcu detected stall in sys_socket (7)

Status: auto-obsoleted due to no activity on 2023/05/02 14:50
Subsystems: kernel
[Documentation on labels]
First crash: 487d, last: 455d
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 1099d 1099d 0/26 auto-closed as invalid on 2021/07/27 17:27
linux-5.15 INFO: rcu detected stall in sys_socket 1 211d 211d 0/3 auto-obsoleted due to no activity on 2024/01/11 06:48
upstream INFO: rcu detected stall in sys_socket (5) net 2 937d 962d 0/26 auto-closed as invalid on 2022/01/06 01:08
upstream INFO: rcu detected stall in sys_socket kernel 11 1610d 1611d 0/26 closed as invalid on 2019/12/04 14:04
linux-4.19 INFO: rcu detected stall in sys_socket 1 740d 740d 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 10 2d20h 153d 0/26 upstream: reported C repro on 2023/11/30 15:24
upstream INFO: rcu detected stall in sys_socket (6) cgroups mm 2 596d 640d 0/26 auto-obsoleted due to no activity on 2022/12/12 22:48
upstream INFO: rcu detected stall in sys_socket (9) kasan mm 2 273d 282d 0/26 closed as invalid on 2023/09/07 14:25
upstream INFO: rcu detected stall in sys_socket (2) kernel 3 1576d 1576d 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 21d 60d 0/3 upstream: reported C repro on 2024/03/02 17:55
upstream INFO: rcu detected stall in sys_socket (3) kernel 4 1575d 1575d 0/26 closed as invalid on 2020/01/09 08:13
android-5-15 BUG: soft lockup in sys_socket origin:lts C 11 7d18h 21d 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: 	1-...!: (1 GPs behind) idle=59dc/1/0x4000000000000000 softirq=116891/116892 fqs=0
	(detected by 0, t=10502 jiffies, g=172941, q=73 ncpus=2)
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 5088 Comm: syz-executor.0 Not tainted 6.2.0-rc6-syzkaller-00011-gc0b67534c95c #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023
RIP: 0010:rcu_dynticks_curr_cpu_in_eqs include/linux/context_tracking.h:121 [inline]
RIP: 0010:rcu_is_watching+0xc/0xb0 kernel/rcu/tree.c:713
Code: 00 a2 52 8d 4c 89 e6 e8 32 98 0f 03 e9 2a ff ff ff e8 a8 0d 50 09 0f 1f 84 00 00 00 00 00 41 57 41 56 53 65 ff 05 0c 4f 8d 7e <e8> 6f 24 50 09 89 c3 83 f8 08 73 75 49 bf 00 00 00 00 00 fc ff df
RSP: 0018:ffffc900001e09c0 EFLAGS: 00000082
RAX: 0000000000000001 RBX: 1ffff9200003c13c RCX: ffff88802a36d7c0
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff8eb04828
RBP: ffffc900001e0a68 R08: dffffc0000000000 R09: fffffbfff1d60906
R10: fffffbfff1d60906 R11: 1ffffffff1d60905 R12: dffffc0000000000
R13: 1ffff9200003c160 R14: dffffc0000000000 R15: 0000000000000000
FS:  0000555556393400(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007efe9f5a8000 CR3: 0000000048938000 CR4: 00000000003506e0
Call Trace:
 <IRQ>
 rcu_read_lock_held_common kernel/rcu/update.c:108 [inline]
 rcu_read_lock_sched_held+0x6b/0x130 kernel/rcu/update.c:123
 trace_lock_acquire+0x98/0x260 include/trace/events/lock.h:24
 lock_acquire+0xa5/0x400 kernel/locking/lockdep.c:5639
 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]
 _raw_spin_lock_irqsave+0xd1/0x120 kernel/locking/spinlock.c:162
 debug_object_deactivate+0x61/0x420 lib/debugobjects.c:739
 debug_hrtimer_deactivate kernel/time/hrtimer.c:425 [inline]
 debug_deactivate kernel/time/hrtimer.c:481 [inline]
 __run_hrtimer kernel/time/hrtimer.c:1653 [inline]
 __hrtimer_run_queues+0x2f9/0xa60 kernel/time/hrtimer.c:1749
 hrtimer_interrupt+0x3a6/0xfd0 kernel/time/hrtimer.c:1811
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1096 [inline]
 __sysvec_apic_timer_interrupt+0xf9/0x280 arch/x86/kernel/apic/apic.c:1113
 sysvec_apic_timer_interrupt+0x8c/0xb0 arch/x86/kernel/apic/apic.c:1107
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:649
RIP: 0010:bpf_lsm_d_instantiate+0x0/0x10 include/linux/lsm_hook_defs.h:262
Code: c0 c3 0f 1f 84 00 00 00 00 00 e8 cb 8f db ff 31 c0 c3 0f 1f 84 00 00 00 00 00 e8 bb 8f db ff 31 c0 c3 0f 1f 84 00 00 00 00 00 <e8> ab 8f db ff c3 66 2e 0f 1f 84 00 00 00 00 00 e8 9b 8f db ff b8
RSP: 0018:ffffc90003d5fcc8 EFLAGS: 00000246
RAX: 1ffffffff19f79ed RBX: ffffffff8cfbcf50 RCX: ffff88802a36d7c0
RDX: 0000000000000000 RSI: ffff8880839136c0 RDI: ffff8880731e31a0
RBP: 0000000000000000 R08: 0000000000000007 R09: ffffffff8400500d
R10: 0000000000000005 R11: ffff88802a36d7c0 R12: dffffc0000000000
R13: ffff8880731e31a0 R14: ffff8880731e31a0 R15: ffff8880839136c0
 security_d_instantiate+0xa5/0x100 security/security.c:2138
 d_instantiate+0x51/0x90 fs/dcache.c:2034
 alloc_file_pseudo+0x24f/0x300 fs/file_table.c:271
 sock_alloc_file+0xb4/0x240 net/socket.c:463
 sock_map_fd net/socket.c:487 [inline]
 __sys_socket+0x1cb/0x3a0 net/socket.c:1644
 __do_sys_socket net/socket.c:1649 [inline]
 __se_sys_socket net/socket.c:1647 [inline]
 __x64_sys_socket+0x76/0x80 net/socket.c:1647
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fd0ab68d747
Code: f0 ff ff 73 01 c3 48 c7 c1 b8 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 b8 29 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffe9540a608 EFLAGS: 00000202 ORIG_RAX: 0000000000000029
RAX: ffffffffffffffda RBX: 00007ffe9540ad70 RCX: 00007fd0ab68d747
RDX: 0000000000000006 RSI: 0000000000000001 RDI: 0000000000000002
RBP: 00000000ffffffff R08: 0000000000000000 R09: 00007ffe9540ab80
R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000032
R13: 00000000002aea21 R14: 0000000000000004 R15: 00007ffe9540adb0
 </TASK>
rcu: rcu_preempt kthread starved for 10502 jiffies! g172941 f0x0 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:26488 pid:16    ppid:2      flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5293 [inline]
 __schedule+0x9d1/0xe40 kernel/sched/core.c:6606
 schedule+0xcb/0x190 kernel/sched/core.c:6682
 schedule_timeout+0x1b9/0x300 kernel/time/timer.c:2167
 rcu_gp_fqs_loop+0x309/0x1070 kernel/rcu/tree.c:1656
 rcu_gp_kthread+0xa5/0x390 kernel/rcu/tree.c:1855
 kthread+0x266/0x300 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308
 </TASK>
rcu: Stack dump where RCU GP kthread last ran:
CPU: 0 PID: 23027 Comm: kworker/u4:14 Not tainted 6.2.0-rc6-syzkaller-00011-gc0b67534c95c #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023
Workqueue: events_unbound toggle_allocation_gate
RIP: 0010:check_kcov_mode kernel/kcov.c:184 [inline]
RIP: 0010:__sanitizer_cov_trace_pc+0x33/0x60 kernel/kcov.c:207
Code: 40 98 03 00 65 8b 15 84 ae 75 7e f7 c2 00 01 ff 00 74 11 f7 c2 00 01 00 00 74 35 83 b9 6c 15 00 00 00 74 2c 8b 91 48 15 00 00 <83> fa 02 75 21 48 8b 91 50 15 00 00 48 8b 32 48 8d 7e 01 8b 89 4c
RSP: 0018:ffffc90015887818 EFLAGS: 00000246
RAX: ffffffff81829922 RBX: 1ffff11017328139 RCX: ffff888078500000
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffc900158879c0 R08: ffffffff818298ec R09: fffffbfff212e631
R10: fffffbfff212e631 R11: 1ffffffff212e630 R12: 0000000000000001
R13: 0000000000000001 R14: ffff8880b99409c8 R15: ffff8880b983b280
FS:  0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b31922000 CR3: 000000000d28e000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 csd_lock_wait kernel/smp.c:413 [inline]
 smp_call_function_many_cond+0xeb2/0x1420 kernel/smp.c:987
 on_each_cpu_cond_mask+0x3b/0x80 kernel/smp.c:1155
 on_each_cpu include/linux/smp.h:71 [inline]
 text_poke_sync arch/x86/kernel/alternative.c:1772 [inline]
 text_poke_bp_batch+0x2b4/0x850 arch/x86/kernel/alternative.c:1963
 text_poke_flush arch/x86/kernel/alternative.c:2131 [inline]
 text_poke_finish+0x16/0x30 arch/x86/kernel/alternative.c:2138
 arch_jump_label_transform_apply+0x13/0x20 arch/x86/kernel/jump_label.c:146
 static_key_enable_cpuslocked+0x129/0x250 kernel/jump_label.c:205
 static_key_enable+0x16/0x20 kernel/jump_label.c:218
 toggle_allocation_gate+0xb1/0x250 mm/kfence/core.c:799
 process_one_work+0x81c/0xd10 kernel/workqueue.c:2289
 worker_thread+0xb14/0x1330 kernel/workqueue.c:2436
 kthread+0x266/0x300 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308
 </TASK>

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/02/01 14:48 upstream c0b67534c95c 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: rcu detected stall in sys_socket
2022/12/31 06:21 upstream c8451c141e07 ab32d508 .config console log report info ci-upstream-kasan-gce-selinux-root INFO: rcu detected stall in sys_socket
* Struck through repros no longer work on HEAD.