syzbot


INFO: rcu detected stall in __sock_create (2)

Status: upstream: reported on 2025/02/09 06:51
Reported-by: syzbot+befa41a0aede75dcb75e@syzkaller.appspotmail.com
First crash: 35d, last: 2d07h
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in __sock_create kernel 1 1929d 1929d 0/28 closed as invalid on 2019/12/04 14:04
upstream INFO: rcu detected stall in __sock_create (2) kernel 2 1894d 1894d 0/28 closed as invalid on 2020/01/08 05:33
linux-5.15 INFO: rcu detected stall in __sock_create 1 297d 297d 0/3 auto-obsoleted due to no activity on 2024/08/30 14:48
linux-6.1 INFO: rcu detected stall in __sock_create 3 165d 267d 0/3 auto-obsoleted due to no activity on 2025/01/09 18:19
android-5-15 BUG: soft lockup in __sock_create 18 196d 331d 0/2 auto-obsoleted due to no activity on 2024/11/30 09:28

Sample crash report:
rcu: INFO: rcu_preempt detected expedited stalls on CPUs/tasks: { 0-.... } 2673 jiffies s: 6377 root: 0x1/.
rcu: blocking rcu_node structures (internal RCU debug):
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 6177 Comm: syz.2.568 Not tainted 6.1.131-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
RIP: 0010:__preempt_count_add kernel/rcu/tree.c:717 [inline]
RIP: 0010:rcu_is_watching+0x2/0xb0 kernel/rcu/tree.c:720
Code: 44 24 21 02 0f 84 02 ff ff ff e9 6c ff ff ff 48 c7 c7 60 50 33 8d 4c 89 f6 e8 1a 62 fb 02 e9 2b ff ff ff e8 d0 eb 3d 09 41 57 <41> 56 53 65 ff 05 4c d9 8e 7e e8 0f 04 3e 09 89 c3 83 f8 08 73 76
RSP: 0018:ffffc900000072e0 EFLAGS: 00000002
RAX: 0000000000000100 RBX: 0000000000000001 RCX: ffff88802ce19dc0
RDX: ffff88802ce19dc0 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffc90000007430 R08: ffffffff81b43e06 R09: fffffbfff225724d
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: 1ffff92000000e70 R14: 0000000000000010 R15: ffffc90000007480
FS:  00007fa7bdfff6c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000400000001040 CR3: 0000000018c82000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 rcu_read_unlock+0x1f/0xa0 include/linux/rcupdate.h:820
 __perf_output_begin kernel/events/ring_buffer.c:262 [inline]
 perf_output_begin_forward+0x77e/0xaf0 kernel/events/ring_buffer.c:271
 __perf_event_output kernel/events/core.c:7709 [inline]
 perf_event_output_forward+0x1e5/0x330 kernel/events/core.c:7727
 __perf_event_overflow+0x45e/0x640 kernel/events/core.c:9473
 perf_tp_event+0x35a/0xc80 kernel/events/core.c:10006
 perf_trace_run_bpf_submit+0xf7/0x1d0 kernel/events/core.c:9979
 perf_trace_preemptirq_template+0x2d1/0x3d0 include/trace/events/preemptirq.h:14
 trace_irq_enable_rcuidle+0xd5/0x140 include/trace/events/preemptirq.h:40
 trace_hardirqs_on+0x24/0x40 kernel/trace/trace_preemptirq.c:44
 asm_sysvec_irq_work+0x16/0x20 arch/x86/include/asm/idtentry.h:728
RIP: 0010:rcu_read_unlock_special+0x84/0x540 kernel/rcu/tree_plugin.h:682
Code: f1 f1 f1 00 f2 f2 f2 49 89 04 17 66 41 c7 44 17 09 f3 f3 41 c6 44 17 0b f3 65 44 8b 25 2d 0a 8e 7e 41 f7 c4 00 00 f0 00 74 45 <48> c7 44 24 20 0e 36 e0 45 4a c7 04 3a 00 00 00 00 66 42 c7 44 3a
RSP: 0018:ffffc90000007ac0 EFLAGS: 00000206
RAX: 4bdbe39e26980800 RBX: 1ffff92000000f60 RCX: ffffffff973c0103
RDX: dffffc0000000000 RSI: ffffffff8b0c1d40 RDI: ffffffff8b5f6f80
RBP: ffffc90000007b98 R08: ffffffff81b61aec R09: ffffed10171c6ad6
R10: 0000000000000000 R11: dffffc0000000001 R12: ffffffff8d333500
R13: ffff88802ce1a218 R14: ffffc90000007b00 R15: 1ffff92000000f5c
 __rcu_read_unlock+0x92/0x100 kernel/rcu/tree_plugin.h:426
 rcu_read_unlock include/linux/rcupdate.h:823 [inline]
 ieee80211_rx_napi+0x205/0x3b0 net/mac80211/rx.c:5310
 ieee80211_rx include/net/mac80211.h:4831 [inline]
 ieee80211_handle_queued_frames+0x103/0x1b0 net/mac80211/main.c:317
 tasklet_action_common+0x3cb/0x4a0
 handle_softirqs+0x2ee/0xa40 kernel/softirq.c:578
 __do_softirq kernel/softirq.c:612 [inline]
 invoke_softirq kernel/softirq.c:452 [inline]
 __irq_exit_rcu+0x157/0x240 kernel/softirq.c:661
 irq_exit_rcu+0x5/0x20 kernel/softirq.c:673
 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1118 [inline]
 sysvec_apic_timer_interrupt+0xa0/0xc0 arch/x86/kernel/apic/apic.c:1118
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:691
RIP: 0010:perf_tp_event+0x348/0xc80 kernel/events/core.c:10006
Code: 00 74 08 48 89 df e8 67 5a 31 00 4c 8b 3b 4d 85 ff 75 6b e8 1a f9 d9 ff 49 bf 00 00 00 00 00 fc ff df 4c 89 e7 48 8b 74 24 70 <48> 8d 94 24 c0 00 00 00 48 8b 4c 24 48 e8 26 09 00 00 49 83 c4 60
RSP: 0018:ffffc9000640f700 EFLAGS: 00000283
RAX: ffffffff81b0b0a6 RBX: ffff888017fcc158 RCX: 0000000000080000
RDX: ffffc90005ed9000 RSI: 0000000000000001 RDI: ffff888017fcbc00
RBP: ffffc9000640f9a8 R08: ffffffff81b0affa R09: ffffed10059c33b9
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888017fcbc00
R13: ffff8880b8e353d8 R14: 0000000000000000 R15: dffffc0000000000
 perf_trace_run_bpf_submit+0xf7/0x1d0 kernel/events/core.c:9979
 perf_trace_lock+0x37f/0x440 include/trace/events/lock.h:50
 trace_lock_release include/trace/events/lock.h:69 [inline]
 lock_release+0x995/0xa20 kernel/locking/lockdep.c:5673
 rcu_lock_release include/linux/rcupdate.h:355 [inline]
 rcu_read_unlock include/linux/rcupdate.h:824 [inline]
 get_obj_cgroup_from_current+0x1ca/0x280 mm/memcontrol.c:3027
 memcg_slab_pre_alloc_hook mm/slab.h:485 [inline]
 slab_pre_alloc_hook+0x90/0x300 mm/slab.h:715
 slab_alloc_node mm/slub.c:3318 [inline]
 slab_alloc mm/slub.c:3406 [inline]
 __kmem_cache_alloc_lru mm/slub.c:3413 [inline]
 kmem_cache_alloc_lru+0x4a/0x2d0 mm/slub.c:3429
 alloc_inode_sb include/linux/fs.h:3245 [inline]
 sock_alloc_inode+0x24/0xc0 net/socket.c:306
 alloc_inode fs/inode.c:261 [inline]
 new_inode_pseudo+0x61/0x1d0 fs/inode.c:1063
 sock_alloc net/socket.c:631 [inline]
 __sock_create+0x11f/0x930 net/socket.c:1514
 sock_create net/socket.c:1606 [inline]
 __sys_socketpair+0x335/0x700 net/socket.c:1737
 __do_sys_socketpair net/socket.c:1786 [inline]
 __se_sys_socketpair net/socket.c:1783 [inline]
 __x64_sys_socketpair+0x97/0xb0 net/socket.c:1783
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7fa7be18d169
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:00007fa7bdfff038 EFLAGS: 00000246 ORIG_RAX: 0000000000000035
RAX: ffffffffffffffda RBX: 00007fa7be3a5fa0 RCX: 00007fa7be18d169
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 000000000000001e
RBP: 00007fa7be20e2a0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000400000000040 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fa7be3a5fa0 R15: 00007ffe6b39a118
 </TASK>

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/03/14 07:20 linux-6.1.y 344a09659766 e2826670 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf INFO: rcu detected stall in __sock_create
2025/02/09 06:50 linux-6.1.y 0cbb5f65e52f ef44b750 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf INFO: rcu detected stall in __sock_create
* Struck through repros no longer work on HEAD.