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: 30d, last: 30d
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 1924d 1924d 0/28 closed as invalid on 2019/12/04 14:04
upstream INFO: rcu detected stall in __sock_create (2) kernel 2 1889d 1889d 0/28 closed as invalid on 2020/01/08 05:33
linux-5.15 INFO: rcu detected stall in __sock_create 1 293d 293d 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 161d 262d 0/3 auto-obsoleted due to no activity on 2025/01/09 18:19
android-5-15 BUG: soft lockup in __sock_create 18 191d 327d 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-.... } 2646 jiffies s: 14981 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: 8564 Comm: syz.7.1193 Not tainted 6.1.128-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024
RIP: 0010:__kasan_check_read+0x0/0x10 mm/kasan/shadow.c:31
Code: d8 5b 41 5c 41 5d 41 5e 41 5f 5d c3 48 c7 c7 74 66 b9 8c eb 0a 48 c7 c7 ac 66 b9 8c 4c 89 fe e8 b6 9b ce 08 31 db eb d7 cc cc <89> f6 48 8b 0c 24 31 d2 e9 d3 ec ff ff 0f 1f 00 89 f6 48 8b 0c 24
RSP: 0018:ffffc900000079c0 EFLAGS: 00000046
RAX: 0000000000000000 RBX: 0000000000000000 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff8e9b29a8
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
FS:  00007fe028ed16c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fe028eaff98 CR3: 000000005f87b000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 instrument_atomic_read include/linux/instrumented.h:72 [inline]
 _test_bit include/asm-generic/bitops/instrumented-non-atomic.h:141 [inline]
 cpumask_test_cpu include/linux/cpumask.h:444 [inline]
 cpu_online include/linux/cpumask.h:1030 [inline]
 trace_irq_disable include/trace/events/preemptirq.h:36 [inline]
 trace_hardirqs_off_finish+0x7b/0x1a0 kernel/trace/trace_preemptirq.c:67
 irqentry_enter+0x33/0x50 kernel/entry/common.c:382
 sysvec_irq_work+0xa/0xc0 arch/x86/kernel/irq_work.c:17
 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 ad 18 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: 4e67e6a4a868a400 RBX: 1ffff92000000f60 RCX: ffffffff816b127a
RDX: dffffc0000000000 RSI: ffffffff8b0c0340 RDI: ffffffff8b5e6980
RBP: ffffc90000007ba0 R08: dffffc0000000000 R09: fffffbfff224a04f
R10: 0000000000000000 R11: dffffc0000000001 R12: ffffffff8d32ff00
R13: ffff88802f700458 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_iterate_active_interfaces_atomic+0x153/0x170 net/mac80211/util.c:826
 mac80211_hwsim_beacon+0xd0/0x1e0 drivers/net/wireless/mac80211_hwsim.c:2142
 __run_hrtimer kernel/time/hrtimer.c:1689 [inline]
 __hrtimer_run_queues+0x5e5/0xe50 kernel/time/hrtimer.c:1753
 hrtimer_run_softirq+0x196/0x2c0 kernel/time/hrtimer.c:1770
 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:preempt_schedule_irq+0xf2/0x1c0 kernel/sched/core.c:6870
Code: 89 f5 49 c1 ed 03 eb 0d 48 f7 03 08 00 00 00 0f 84 97 00 00 00 bf 01 00 00 00 e8 19 0b a3 f6 e8 24 da d5 f6 fb bf 01 00 00 00 <e8> 79 b4 ff ff 43 80 7c 3d 00 00 74 08 4c 89 f7 e8 e9 ac 26 f7 48
RSP: 0018:ffffc9000d5ef800 EFLAGS: 00000286
RAX: 4e67e6a4a868a400 RBX: 1ffff92001abdf08 RCX: ffffffff816b127a
RDX: dffffc0000000000 RSI: ffffffff8b0c0340 RDI: 0000000000000001
RBP: ffffc9000d5ef8c0 R08: dffffc0000000000 R09: fffffbfff224a04f
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff92001abdf00
R13: 1ffff92001abdf04 R14: ffffc9000d5ef820 R15: dffffc0000000000
 irqentry_exit+0x53/0x80 kernel/entry/common.c:439
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:691
RIP: 0010:lock_acquire+0x26f/0x5a0 kernel/locking/lockdep.c:5666
Code: 2b 00 74 08 4c 89 f7 e8 ff 8b 77 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:ffffc9000d5ef980 EFLAGS: 00000206
RAX: 0000000000000001 RBX: 1ffff92001abdf3c RCX: ffffffff816b5eb2
RDX: dffffc0000000000 RSI: ffffffff8b0c14c0 RDI: ffffffff8b5e6980
RBP: ffffc9000d5efad8 R08: dffffc0000000000 R09: fffffbfff224a04f
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff92001abdf38
R13: dffffc0000000000 R14: ffffc9000d5ef9e0 R15: 0000000000000246
 fs_reclaim_acquire+0xaa/0x120 mm/page_alloc.c:4736
 might_alloc include/linux/sched/mm.h:271 [inline]
 slab_pre_alloc_hook+0x2a/0x300 mm/slab.h:710
 slab_alloc_node mm/slub.c:3318 [inline]
 __kmem_cache_alloc_node+0x47/0x260 mm/slub.c:3437
 kmalloc_trace+0x26/0xe0 mm/slab_common.c:1026
 kmalloc include/linux/slab.h:563 [inline]
 kzalloc include/linux/slab.h:699 [inline]
 apparmor_sk_alloc_security+0x73/0x100 security/apparmor/lsm.c:812
 security_sk_alloc+0x6d/0xa0 security/security.c:2331
 sk_prot_alloc+0xfa/0x200 net/core/sock.c:2053
 sk_alloc+0x36/0x350 net/core/sock.c:2103
 unix_create1+0xb4/0x7f0
 unix_create+0x146/0x1f0 net/unix/af_unix.c:1011
 __sock_create+0x488/0x930 net/socket.c:1550
 sock_create net/socket.c:1606 [inline]
 __sys_socketpair+0x2c1/0x700 net/socket.c:1733
 __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:0x7fe027f8cde9
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:00007fe028ed1038 EFLAGS: 00000246 ORIG_RAX: 0000000000000035
RAX: ffffffffffffffda RBX: 00007fe0281a5fa0 RCX: 00007fe027f8cde9
RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000001
RBP: 00007fe02800e2a0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000400000000900 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fe0281a5fa0 R15: 00007fffab9c04a8
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
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.