syzbot


INFO: rcu detected stall in sys_socket

Status: upstream: reported on 2025/07/12 12:18
Reported-by: syzbot+3a18ae63a3331d652199@syzkaller.appspotmail.com
First crash: 104d, last: 20d
Similar bugs (16)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in sys_socket (4) fs 1 1 1639d 1639d 0/29 auto-closed as invalid on 2021/07/27 17:27
linux-5.15 INFO: rcu detected stall in sys_socket 1 1 752d 752d 0/3 auto-obsoleted due to no activity on 2024/01/11 06:48
upstream INFO: rcu detected stall in sys_socket (5) net 1 2 1477d 1503d 0/29 auto-closed as invalid on 2022/01/06 01:08
upstream INFO: rcu detected stall in sys_socket mm 1 11 2151d 2152d 0/29 closed as invalid on 2019/12/04 14:04
linux-4.19 INFO: rcu detected stall in sys_socket 1 1 1281d 1281d 0/1 auto-closed as invalid on 2022/08/20 07:08
upstream INFO: rcu detected stall in sys_socket (10) mm 1 C done 162 1d04h 694d 0/29 upstream: reported C repro on 2023/11/30 15:24
linux-6.1 INFO: rcu detected stall in sys_socket 1 2 445d 445d 0/3 auto-obsoleted due to no activity on 2024/11/13 04:32
linux-6.1 INFO: rcu detected stall in sys_socket (3) origin:lts-only 1 C 7 4d04h 45d 0/3 upstream: reported C repro on 2025/09/09 01:58
upstream INFO: rcu detected stall in sys_socket (6) cgroups mm 1 2 1136d 1180d 0/29 auto-obsoleted due to no activity on 2022/12/12 22:48
upstream INFO: rcu detected stall in sys_socket (7) kernel 1 2 996d 1028d 0/29 auto-obsoleted due to no activity on 2023/05/02 14:50
linux-6.1 INFO: rcu detected stall in sys_socket (2) 1 3 235d 288d 0/3 auto-obsoleted due to no activity on 2025/06/11 16:02
upstream INFO: rcu detected stall in sys_socket (9) kasan mm 1 2 813d 823d 0/29 closed as invalid on 2023/09/07 14:25
upstream INFO: rcu detected stall in sys_socket (2) mm 1 3 2116d 2116d 0/29 closed as invalid on 2020/01/08 05:23
linux-5.15 INFO: rcu detected stall in sys_socket (2) origin:upstream 1 C error 15 4d22h 600d 0/3 upstream: reported C repro on 2024/03/02 17:55
upstream INFO: rcu detected stall in sys_socket (3) mm 1 4 2116d 2116d 0/29 closed as invalid on 2020/01/09 08:13
android-5-15 BUG: soft lockup in sys_socket 1 C error 26 412d 562d 0/2 auto-obsoleted due to no activity on 2024/11/29 22:24

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	Tasks blocked on level-0 rcu_node (CPUs 0-1): P5786/1:b..l P7119/1:b..l
rcu: 	(detected by 0, t=10502 jiffies, g=18553, q=435 ncpus=2)
task:syz.3.316       state:R  running task     stack:27144 pid:7119  ppid:5789   flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5380 [inline]
 __schedule+0x14d2/0x44d0 kernel/sched/core.c:6699
 preempt_schedule_common+0x82/0xc0 kernel/sched/core.c:6866
 preempt_schedule+0xab/0xc0 kernel/sched/core.c:6890
 preempt_schedule_thunk+0x1a/0x30 arch/x86/entry/thunk_64.S:45
 __raw_spin_unlock include/linux/spinlock_api_smp.h:143 [inline]
 _raw_spin_unlock+0x3a/0x40 kernel/locking/spinlock.c:186
 spin_unlock include/linux/spinlock.h:391 [inline]
 zap_pte_range mm/memory.c:1522 [inline]
 zap_pmd_range mm/memory.c:1570 [inline]
 zap_pud_range mm/memory.c:1599 [inline]
 zap_p4d_range mm/memory.c:1620 [inline]
 unmap_page_range+0x236f/0x2fe0 mm/memory.c:1641
 unmap_vmas+0x25e/0x3a0 mm/memory.c:1731
 exit_mmap+0x200/0xb50 mm/mmap.c:3302
 __mmput+0x118/0x3c0 kernel/fork.c:1355
 exit_mm+0x1da/0x2c0 kernel/exit.c:569
 do_exit+0x88e/0x23c0 kernel/exit.c:870
 do_group_exit+0x21b/0x2d0 kernel/exit.c:1024
 get_signal+0x12fc/0x1400 kernel/signal.c:2902
 arch_do_signal_or_restart+0x96/0x780 arch/x86/kernel/signal.c:310
 exit_to_user_mode_loop+0x70/0x110 kernel/entry/common.c:174
 exit_to_user_mode_prepare+0xf6/0x180 kernel/entry/common.c:210
 __syscall_exit_to_user_mode_work kernel/entry/common.c:291 [inline]
 syscall_exit_to_user_mode+0x1a/0x50 kernel/entry/common.c:302
 do_syscall_64+0x61/0xb0 arch/x86/entry/common.c:87
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7fdb9ef8eec9
RSP: 002b:00007fdb9ff0a0e8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
RAX: fffffffffffffe00 RBX: 00007fdb9f1e5fa8 RCX: 00007fdb9ef8eec9
RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007fdb9f1e5fa8
RBP: 00007fdb9f1e5fa0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fdb9f1e6038 R14: 00007ffd89265580 R15: 00007ffd89265668
 </TASK>
task:syz-executor    state:R  running task     stack:20880 pid:5786  ppid:5783   flags:0x00004002
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5380 [inline]
 __schedule+0x14d2/0x44d0 kernel/sched/core.c:6699
 preempt_schedule_irq+0xb5/0x140 kernel/sched/core.c:7009
 irqentry_exit+0x67/0x70 kernel/entry/common.c:438
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:687
RIP: 0010:lock_acquire+0x1f2/0x410 kernel/locking/lockdep.c:5758
Code: 00 9c 8f 84 24 80 00 00 00 f6 84 24 81 00 00 00 02 0f 85 f5 00 00 00 41 f7 c6 00 02 00 00 74 01 fb 48 c7 44 24 60 0e 36 e0 45 <4b> c7 04 3c 00 00 00 00 66 43 c7 44 3c 09 00 00 43 c6 44 3c 0b 00
RSP: 0018:ffffc90003cf7ca0 EFLAGS: 00000206
RAX: 0000000000000001 RBX: 0000000000000000 RCX: 391810c7539d3f00
RDX: 0000000000000000 RSI: ffffffff8aaace60 RDI: ffffffff8afc63c0
RBP: ffffc90003cf7db0 R08: dffffc0000000000 R09: 1ffffffff21b4ea0
R10: dffffc0000000000 R11: fffffbfff21b4ea1 R12: 1ffff9200079efa0
R13: ffffffff8cd2ff20 R14: 0000000000000246 R15: dffffc0000000000
 rcu_lock_acquire include/linux/rcupdate.h:334 [inline]
 rcu_read_lock include/linux/rcupdate.h:786 [inline]
 inet6_create+0xa4/0x11d0 net/ipv6/af_inet6.c:137
 __sock_create+0x4a6/0x940 net/socket.c:1571
 sock_create net/socket.c:1627 [inline]
 __sys_socket_create net/socket.c:1664 [inline]
 __sys_socket+0xd7/0x1a0 net/socket.c:1715
 __do_sys_socket net/socket.c:1729 [inline]
 __se_sys_socket net/socket.c:1727 [inline]
 __x64_sys_socket+0x7a/0x90 net/socket.c:1727
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7fd273190de7
RSP: 002b:00007fff9f7d0788 EFLAGS: 00000206 ORIG_RAX: 0000000000000029
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007fd273190de7
RDX: 0000000000000006 RSI: 0000000000000001 RDI: 000000000000000a
RBP: 00007fff9f7d0ebc R08: 00007fff9f7d07ac R09: 0079746972756365
R10: 00007fff9f7d0810 R11: 0000000000000206 R12: 00007fd2733b2ca0
R13: 00000000000927c0 R14: 0000000000025de8 R15: 00007fd2733b4e60
 </TASK>
rcu: rcu_preempt kthread starved for 10408 jiffies! g18553 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:27752 pid:17    ppid:2      flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5380 [inline]
 __schedule+0x14d2/0x44d0 kernel/sched/core.c:6699
 schedule+0xbd/0x170 kernel/sched/core.c:6773
 schedule_timeout+0x160/0x280 kernel/time/timer.c:2167
 rcu_gp_fqs_loop+0x302/0x1560 kernel/rcu/tree.c:1667
 rcu_gp_kthread+0x99/0x380 kernel/rcu/tree.c:1866
 kthread+0x2fa/0x390 kernel/kthread.c:388
 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:152
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:293
 </TASK>
rcu: Stack dump where RCU GP kthread last ran:
CPU: 0 PID: 0 Comm: swapper/0 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/18/2025
RIP: 0010:pv_native_safe_halt+0x13/0x20 arch/x86/kernel/paravirt.c:148
Code: cc cc cc cc cc cc cc f3 0f 1e fa 0f 0b 66 2e 0f 1f 84 00 00 00 00 00 f3 0f 1e fa 66 90 0f 00 2d 93 c8 39 00 f3 0f 1e fa fb f4 <c3> cc cc cc cc cc cc cc cc cc cc cc cc 66 0f 1f 00 55 41 57 41 56
RSP: 0018:ffffffff8ca07d80 EFLAGS: 000002c6
RAX: 400cac1d2fa8cd00 RBX: ffffffff816185ab RCX: 400cac1d2fa8cd00
RDX: 0000000000000001 RSI: ffffffff8aaabce0 RDI: ffffffff8afc63c0
RBP: ffffffff8ca07eb8 R08: ffff8880b8e36b2b R09: 1ffff110171c6d65
R10: dffffc0000000000 R11: ffffed10171c6d66 R12: ffffffff8e4a82e8
R13: 0000000000000000 R14: 0000000000000000 R15: 1ffffffff1952670
FS:  0000000000000000(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fd2733b12f8 CR3: 000000000cb30000 CR4: 00000000003506f0
Call Trace:
 <TASK>
 arch_safe_halt arch/x86/include/asm/paravirt.h:108 [inline]
 default_idle+0x13/0x20 arch/x86/kernel/process.c:753
 default_idle_call+0x6c/0xa0 kernel/sched/idle.c:97
 cpuidle_idle_call kernel/sched/idle.c:170 [inline]
 do_idle+0x1eb/0x510 kernel/sched/idle.c:282
 cpu_startup_entry+0x43/0x60 kernel/sched/idle.c:380
 rest_init+0x2e2/0x300 init/main.c:732
 arch_call_rest_init+0xe/0x10 init/main.c:829
 start_kernel+0x459/0x4e0 init/main.c:1074
 x86_64_start_reservations+0x2a/0x30 arch/x86/kernel/head64.c:555
 x86_64_start_kernel+0x60/0x60 arch/x86/kernel/head64.c:536
 secondary_startup_64_no_verify+0x179/0x17b
 </TASK>

Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/10/03 21:37 linux-6.6.y f34f16e5c632 49379ee0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan INFO: rcu detected stall in sys_socket
2025/08/28 14:20 linux-6.6.y bb9c90ab9c5a e12e5ba4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan-perf INFO: rcu detected stall in sys_socket
2025/08/28 11:58 linux-6.6.y bb9c90ab9c5a e12e5ba4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan-perf INFO: rcu detected stall in sys_socket
2025/08/25 14:44 linux-6.6.y bb9c90ab9c5a bf27483f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan-perf INFO: rcu detected stall in sys_socket
2025/08/06 11:41 linux-6.6.y 3a8ababb8b6a ffe1dd46 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan-perf INFO: rcu detected stall in sys_socket
2025/07/12 12:18 linux-6.6.y 59a2de10b81a 3cda49cf .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan INFO: rcu detected stall in sys_socket
* Struck through repros no longer work on HEAD.