syzbot


INFO: rcu detected stall in security_socket_connect (2)

Status: auto-obsoleted due to no activity on 2025/02/22 04:19
Subsystems: selinux
[Documentation on labels]
First crash: 221d, last: 221d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in security_socket_connect tomoyo 1 1285d 1285d 0/29 closed as invalid on 2022/02/08 10:10

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	0-...!: (1 GPs behind) idle=ebe4/1/0x4000000000000000 softirq=21108/21111 fqs=2
rcu: 	(detected by 1, t=10505 jiffies, g=14113, q=554 ncpus=2)
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 UID: 0 PID: 7797 Comm: syz.1.528 Not tainted 6.12.0-syzkaller-08446-g228a1157fb9f #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:kasan_check_range+0x158/0x1a0 mm/kasan/generic.c:190
Code: 74 11 80 38 00 74 ef 4d 8d 1c 2c 48 85 c0 48 89 c2 75 93 48 89 da 4c 89 d8 4c 29 da e9 2c ff ff ff 5b b8 01 00 00 00 5d 41 5c <c3> cc cc cc cc b8 01 00 00 00 c3 cc cc cc cc 48 29 c3 48 89 da 49
RSP: 0018:ffffc90000007d08 EFLAGS: 00000046
RAX: 0000000000000001 RBX: ffff88807c2cb484 RCX: ffffffff8930a300
RDX: ffffed100f859691 RSI: 0000000000000004 RDI: ffff88807c2cb484
RBP: 0000000000000001 R08: 0000000000000001 R09: ffffed100f859690
R10: ffff88807c2cb487 R11: 0000000000000001 R12: 0000000000000001
R13: ffff88807c2cb408 R14: 000000007fffffff R15: dffffc0000000000
FS:  00007f24e0bf66c0(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000110c32ee80 CR3: 000000007e55c000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 instrument_atomic_write include/linux/instrumented.h:82 [inline]
 atomic_set include/linux/atomic/atomic-instrumented.h:67 [inline]
 taprio_set_budgets+0x1a0/0x310 net/sched/sch_taprio.c:672
 advance_sched+0x5e1/0xc60 net/sched/sch_taprio.c:977
 __run_hrtimer kernel/time/hrtimer.c:1739 [inline]
 __hrtimer_run_queues+0x20a/0xae0 kernel/time/hrtimer.c:1803
 hrtimer_interrupt+0x392/0x8e0 kernel/time/hrtimer.c:1865
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1038 [inline]
 __sysvec_apic_timer_interrupt+0x10f/0x400 arch/x86/kernel/apic/apic.c:1055
 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1049 [inline]
 sysvec_apic_timer_interrupt+0x9f/0xc0 arch/x86/kernel/apic/apic.c:1049
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702
RIP: 0010:lock_acquire.part.0+0x155/0x380 kernel/locking/lockdep.c:5814
Code: b8 ff ff ff ff 65 0f c1 05 c0 8d 97 7e 83 f8 01 0f 85 d0 01 00 00 9c 58 f6 c4 02 0f 85 e5 01 00 00 48 85 ed 0f 85 b6 01 00 00 <48> b8 00 00 00 00 00 fc ff df 48 01 c3 48 c7 03 00 00 00 00 48 c7
RSP: 0018:ffffc90004127c48 EFLAGS: 00000206
RAX: 0000000000000046 RBX: 1ffff92000824f8a RCX: ffffffff816a07ae
RDX: 0000000000000001 RSI: ffffffff8b6ce060 RDI: ffffffff8bd0e340
RBP: 0000000000000200 R08: 0000000000000000 R09: fffffbfff2dc83ae
R10: ffffffff96e41d77 R11: 0000000000000000 R12: 0000000000000000
R13: ffff888058ff4c98 R14: 0000000000000000 R15: 0000000000000000
 lock_sock_nested+0x3a/0xf0 net/core/sock.c:3622
 lock_sock include/net/sock.h:1617 [inline]
 selinux_netlbl_socket_connect+0x1b/0x40 security/selinux/netlabel.c:614
 selinux_socket_connect+0x64/0x80 security/selinux/hooks.c:4946
 security_socket_connect+0xc6/0x240 security/security.c:4626
 __sys_connect_file+0x8f/0x1a0 net/socket.c:2051
 __sys_connect+0x14f/0x170 net/socket.c:2074
 __do_sys_connect net/socket.c:2080 [inline]
 __se_sys_connect net/socket.c:2077 [inline]
 __x64_sys_connect+0x72/0xb0 net/socket.c:2077
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f24dfd7e819
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f24e0bf6038 EFLAGS: 00000246 ORIG_RAX: 000000000000002a
RAX: ffffffffffffffda RBX: 00007f24dff35fa0 RCX: 00007f24dfd7e819
RDX: 000000000000006e RSI: 0000000020000180 RDI: 0000000000000005
RBP: 00007f24dfdf175e R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f24dff35fa0 R15: 00007ffdbeb8f368
 </TASK>
rcu: rcu_preempt kthread starved for 10495 jiffies! g14113 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:28424 pid:17    tgid:17    ppid:2      flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5369 [inline]
 __schedule+0xe58/0x5ad0 kernel/sched/core.c:6756
 __schedule_loop kernel/sched/core.c:6833 [inline]
 schedule+0xe7/0x350 kernel/sched/core.c:6848
 schedule_timeout+0x124/0x280 kernel/time/sleep_timeout.c:99
 rcu_gp_fqs_loop+0x1eb/0xb00 kernel/rcu/tree.c:2045
 rcu_gp_kthread+0x271/0x380 kernel/rcu/tree.c:2247
 kthread+0x2c1/0x3a0 kernel/kthread.c:389
 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
 </TASK>
rcu: Stack dump where RCU GP kthread last ran:
CPU: 1 UID: 0 PID: 7800 Comm: syz.2.529 Not tainted 6.12.0-syzkaller-08446-g228a1157fb9f #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:csd_lock_wait kernel/smp.c:340 [inline]
RIP: 0010:smp_call_function_many_cond+0x458/0x1300 kernel/smp.c:884
Code: 0c 00 85 ed 74 4d 48 b8 00 00 00 00 00 fc ff df 4d 89 f4 4c 89 f5 49 c1 ec 03 83 e5 07 49 01 c4 83 c5 03 e8 ba 11 0c 00 f3 90 <41> 0f b6 04 24 40 38 c5 7c 08 84 c0 0f 85 a7 0c 00 00 8b 43 08 31
RSP: 0018:ffffc90003bd75a8 EFLAGS: 00000293
RAX: 0000000000000000 RBX: ffff8880b86468a0 RCX: ffffffff8182280c
RDX: ffff88802f4c2440 RSI: ffffffff818227e6 RDI: 0000000000000005
RBP: 0000000000000003 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000005 R12: ffffed10170c8d15
R13: 0000000000000001 R14: ffff8880b86468a8 R15: ffff8880b873fd80
FS:  00007f056996a6c0(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f0569948f98 CR3: 0000000021712000 CR4: 00000000003526f0
DR0: 0000000000000008 DR1: 000000000000c24a DR2: 0000000000200002
DR3: 0000000000000008 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 </IRQ>
 <TASK>
 on_each_cpu_cond_mask+0x40/0x90 kernel/smp.c:1051
 on_each_cpu include/linux/smp.h:71 [inline]
 text_poke_sync arch/x86/kernel/alternative.c:2085 [inline]
 text_poke_bp_batch+0x22b/0x760 arch/x86/kernel/alternative.c:2295
 text_poke_bp+0xa3/0xd0 arch/x86/kernel/alternative.c:2522
 __static_call_transform+0x34d/0x770 arch/x86/kernel/static_call.c:111
 arch_static_call_transform+0x5d/0xb0 arch/x86/kernel/static_call.c:163
 __static_call_update+0xee/0x660 kernel/static_call_inline.c:147
 tracepoint_update_call kernel/tracepoint.c:271 [inline]
 tracepoint_add_func+0xbcb/0xeb0 kernel/tracepoint.c:319
 tracepoint_probe_register_prio_may_exist+0xbd/0x110 kernel/tracepoint.c:435
 tracepoint_probe_register_may_exist include/linux/tracepoint.h:50 [inline]
 bpf_probe_register+0x189/0x200 kernel/trace/bpf_trace.c:2419
 bpf_raw_tp_link_attach+0x2cd/0x5f0 kernel/bpf/syscall.c:3981
 bpf_raw_tracepoint_open kernel/bpf/syscall.c:4012 [inline]
 __sys_bpf+0x3a4/0x49c0 kernel/bpf/syscall.c:5832
 __do_sys_bpf kernel/bpf/syscall.c:5897 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:5895 [inline]
 __x64_sys_bpf+0x78/0xc0 kernel/bpf/syscall.c:5895
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f0568b7e819
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f056996a038 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 00007f0568d35fa0 RCX: 00007f0568b7e819
RDX: 0000000000000010 RSI: 0000000020000080 RDI: 0000000000000011
RBP: 00007f0568bf175e R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f0568d35fa0 R15: 00007ffda538fee8
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/11/24 04:08 upstream 228a1157fb9f 68da6d95 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root INFO: rcu detected stall in security_socket_connect
* Struck through repros no longer work on HEAD.