syzbot


INFO: rcu detected stall in sys_socket (2)

Status: upstream: reported on 2025/01/09 01:02
Reported-by: syzbot+27bf9653be6f2294e156@syzkaller.appspotmail.com
First crash: 153d, last: 99d
Similar bugs (14)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in sys_socket (4) fs 1 1504d 1504d 0/28 auto-closed as invalid on 2021/07/27 17:27
linux-5.15 INFO: rcu detected stall in sys_socket 1 617d 617d 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 1342d 1367d 0/28 auto-closed as invalid on 2022/01/06 01:08
upstream INFO: rcu detected stall in sys_socket kernel 11 2015d 2017d 0/28 closed as invalid on 2019/12/04 14:04
linux-4.19 INFO: rcu detected stall in sys_socket 1 1146d 1146d 0/1 auto-closed as invalid on 2022/08/20 07:08
upstream INFO: rcu detected stall in sys_socket (10) mm C done 121 7d04h 558d 0/28 upstream: reported C repro on 2023/11/30 15:24
linux-6.1 INFO: rcu detected stall in sys_socket 2 310d 310d 0/3 auto-obsoleted due to no activity on 2024/11/13 04:32
upstream INFO: rcu detected stall in sys_socket (6) cgroups mm 2 1001d 1045d 0/28 auto-obsoleted due to no activity on 2022/12/12 22:48
upstream INFO: rcu detected stall in sys_socket (7) kernel 2 860d 893d 0/28 auto-obsoleted due to no activity on 2023/05/02 14:50
upstream INFO: rcu detected stall in sys_socket (9) kasan mm 2 678d 687d 0/28 closed as invalid on 2023/09/07 14:25
upstream INFO: rcu detected stall in sys_socket (2) kernel 3 1981d 1981d 0/28 closed as invalid on 2020/01/08 05:23
linux-5.15 INFO: rcu detected stall in sys_socket (2) origin:upstream C 6 26d 465d 0/3 upstream: reported C repro on 2024/03/02 17:55
upstream INFO: rcu detected stall in sys_socket (3) kernel 4 1980d 1981d 0/28 closed as invalid on 2020/01/09 08:13
android-5-15 BUG: soft lockup in sys_socket C error 26 277d 426d 0/2 auto-obsoleted due to no activity on 2024/11/29 22:24

Sample crash report:
rcu: INFO: rcu_preempt detected expedited stalls on CPUs/tasks: { 0-.... } 2682 jiffies s: 3713 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: 4903 Comm: syz.1.219 Not tainted 6.1.129-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
RIP: 0010:kasan_check_range+0x1ac/0x290 mm/kasan/generic.c:189
Code: 4c 89 d5 48 8d 5d 07 48 85 ed 48 0f 49 dd 48 83 e3 f8 48 29 dd 74 12 41 80 39 00 0f 85 a2 00 00 00 49 ff c1 48 ff cd 75 ee 5b <41> 5e 41 5f 5d c3 45 84 f6 75 61 41 f7 c6 00 ff 00 00 75 5d 41 f7
RSP: 0018:ffffc90000006ef8 EFLAGS: 00000056
RAX: ffffffff81976f01 RBX: ffff8880b8e3b8b8 RCX: ffffffff81976fe9
RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffff8880b8e3b8b8
RBP: 0000000000000001 R08: dffffc0000000000 R09: ffffed10171c7718
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000
R13: 0000000000000000 R14: ffffed10171c7718 R15: dffffc0000000000
FS:  00007fb8832966c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000110c322005 CR3: 0000000078bfc000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 instrument_atomic_read include/linux/instrumented.h:72 [inline]
 atomic_read include/linux/atomic/atomic-instrumented.h:27 [inline]
 __irq_work_queue_local+0x29/0x180 kernel/irq_work.c:85
 irq_work_queue_on+0x15c/0x290 kernel/irq_work.c:165
 rcu_read_unlock_special+0x3c6/0x540 kernel/rcu/tree_plugin.h:675
 __rcu_read_unlock+0x92/0x100 kernel/rcu/tree_plugin.h:426
 rcu_read_unlock include/linux/rcupdate.h:823 [inline]
 __perf_event_output kernel/events/core.c:7717 [inline]
 perf_event_output_forward+0x2af/0x330 kernel/events/core.c:7726
 __perf_event_overflow+0x45e/0x640 kernel/events/core.c:9472
 perf_swevent_overflow kernel/events/core.c:9548 [inline]
 perf_swevent_event+0x4c5/0x550 kernel/events/core.c:9586
 perf_tp_event+0x35a/0xc80 kernel/events/core.c:10005
 perf_trace_run_bpf_submit+0xf7/0x1d0 kernel/events/core.c:9978
 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 6d 1a 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:ffffc90000007780 EFLAGS: 00000206
RAX: bc7edcda906a0c00 RBX: 1ffff92000000ef8 RCX: ffffffff816b145a
RDX: dffffc0000000000 RSI: ffffffff8b0c1d40 RDI: ffffffff8b5f6d80
RBP: ffffc90000007858 R08: dffffc0000000000 R09: fffffbfff2256c6a
R10: 0000000000000000 R11: dffffc0000000001 R12: ffffffff8d333500
R13: ffff88802ed38458 R14: ffffc900000077c0 R15: 1ffff92000000ef4
 __rcu_read_unlock+0x92/0x100 kernel/rcu/tree_plugin.h:426
 rcu_read_unlock include/linux/rcupdate.h:823 [inline]
 ndisc_send_skb+0xdb6/0x15f0 net/ipv6/ndisc.c:521
 addrconf_rs_timer+0x357/0x610 net/ipv6/addrconf.c:3982
 call_timer_fn+0x1ad/0x6b0 kernel/time/timer.c:1504
 expire_timers kernel/time/timer.c:1549 [inline]
 __run_timers+0x67c/0x890 kernel/time/timer.c:1820
 run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1833
 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:_compound_head include/linux/page-flags.h:255 [inline]
RIP: 0010:virt_to_folio include/linux/mm.h:904 [inline]
RIP: 0010:virt_to_slab mm/slab.h:175 [inline]
RIP: 0010:qlink_to_cache+0x1c/0xa0 mm/kasan/quarantine.c:131
Code: 20 5b 41 5c 41 5d 41 5e 41 5f 5d c3 66 90 e8 8b dc 5b ff 48 c1 e8 06 48 83 e0 c0 48 ba 00 00 00 00 00 ea ff ff 48 8b 4c 10 08 <f6> c1 01 75 3c 48 01 d0 66 90 48 8b 48 08 f6 c1 01 75 59 66 90 48
RSP: 0018:ffffc900049e7c20 EFLAGS: 00000202
RAX: 00000000014e2a80 RBX: ffff8880538aa200 RCX: ffffea00014e2a01
RDX: ffffea0000000000 RSI: 0000000000006a0b RDI: 0000000000006a0c
RBP: dffffc0000000000 R08: ffffffff813ddb98 R09: 0000000080240022
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000
R13: 0000000000000cc0 R14: ffff8880538aa200 R15: 0000000000000000
 qlist_free_all+0x3b/0xe0 mm/kasan/quarantine.c:184
 kasan_quarantine_reduce+0x156/0x170 mm/kasan/quarantine.c:294
 __kasan_slab_alloc+0x1f/0x70 mm/kasan/common.c:305
 kasan_slab_alloc include/linux/kasan.h:201 [inline]
 slab_post_alloc_hook+0x52/0x3a0 mm/slab.h:737
 slab_alloc_node mm/slub.c:3398 [inline]
 slab_alloc mm/slub.c:3406 [inline]
 __kmem_cache_alloc_lru mm/slub.c:3413 [inline]
 kmem_cache_alloc_lru+0x10c/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_socket_create net/socket.c:1643 [inline]
 __sys_socket+0x136/0x3a0 net/socket.c:1671
 __do_sys_socket net/socket.c:1684 [inline]
 __se_sys_socket net/socket.c:1682 [inline]
 __x64_sys_socket+0x76/0x80 net/socket.c:1682
 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:0x7fb88238d169
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:00007fb883296038 EFLAGS: 00000246 ORIG_RAX: 0000000000000029
RAX: ffffffffffffffda RBX: 00007fb8825a5fa0 RCX: 00007fb88238d169
RDX: 0000000000000000 RSI: 0000000000000002 RDI: 0000000000000010
RBP: 00007fb88240e2a0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fb8825a5fa0 R15: 00007ffd63a7e058
 </TASK>

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/03/03 16:01 linux-6.1.y 3a8358583626 c3901742 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf INFO: rcu detected stall in sys_socket
2025/02/09 12:41 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 sys_socket
2025/01/09 01:01 linux-6.1.y 7dc732d24ff7 f3558dbf .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf INFO: rcu detected stall in sys_socket
* Struck through repros no longer work on HEAD.