syzbot


INFO: rcu detected stall in sock_close

Status: upstream: reported syz repro on 2025/08/25 14:21
Reported-by: syzbot+630dcac9e6546749697b@syzkaller.appspotmail.com
First crash: 3d06h, last: 3d06h
Similar bugs (15)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 INFO: rcu detected stall in sock_close (2) 1 1 582d 582d 0/3 auto-obsoleted due to no activity on 2024/05/03 14:38
upstream INFO: rcu detected stall in sock_close (4) net 1 2 672d 709d 0/29 auto-obsoleted due to no activity on 2024/01/24 15:51
linux-6.1 INFO: rcu detected stall in sock_close (3) 1 1 472d 472d 0/3 auto-obsoleted due to no activity on 2024/08/21 03:02
linux-6.1 INFO: rcu detected stall in sock_close origin:upstream 1 C done 1 780d 780d 3/3 fixed on 2023/09/23 10:26
upstream INFO: rcu detected stall in sock_close mm cgroups 1 6 2094d 2095d 0/29 closed as invalid on 2019/12/04 14:04
linux-6.1 INFO: rcu detected stall in sock_close (2) 1 1 574d 574d 0/3 auto-obsoleted due to no activity on 2024/05/11 05:25
upstream INFO: rcu detected stall in sock_close (3) tipc 1 C done done 5 1382d 1876d 0/29 closed as invalid on 2022/02/08 10:42
linux-5.15 INFO: rcu detected stall in sock_close 1 C error 2 760d 814d 0/3 auto-obsoleted due to no activity on 2023/11/07 13:02
linux-5.15 INFO: rcu detected stall in sock_close (3) origin:upstream 1 C 9 32d 465d 0/3 upstream: reported C repro on 2024/05/20 00:06
upstream INFO: rcu detected stall in sock_close (2) mm cgroups 1 1 2059d 2059d 0/29 closed as invalid on 2020/01/09 08:13
upstream INFO: rcu detected stall in sock_close (5) wireless 1 syz 33 1d13h 43d 0/29 upstream: reported syz repro on 2025/07/16 17:01
android-5-10 BUG: soft lockup in sock_close 1 C 156 1d04h 521d 0/2 upstream: reported C repro on 2024/03/25 07:28
android-5-15 BUG: soft lockup in sock_close origin:downstream 1 C done 356 10d 519d 0/2 upstream: reported C repro on 2024/03/26 23:21
android-6-1 BUG: soft lockup in sock_close origin:downstream 1 C error 7 6d23h 519d 0/2 upstream: reported C repro on 2024/03/27 04:09
linux-6.1 BUG: soft lockup in sock_close origin:upstream 1 syz error 1 248d 248d 0/3 upstream: reported syz repro on 2024/12/23 18:51

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	1-....: (1 GPs behind) idle=0bb4/1/0x4000000000000000 softirq=27808/27810 fqs=5249
rcu: 	         hardirqs   softirqs   csw/system
rcu: 	 number: 16555247          0            0
rcu: 	cputime:     6336      46191            0   ==> 52510(ms)
rcu: 	(detected by 0, t=10502 jiffies, g=26825, q=8758 ncpus=2)
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 8622 Comm: syz.3.2565 Not tainted 6.6.102-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025
RIP: 0010:bytes_is_nonzero mm/kasan/generic.c:85 [inline]
RIP: 0010:memory_is_nonzero mm/kasan/generic.c:102 [inline]
RIP: 0010:memory_is_poisoned_n mm/kasan/generic.c:127 [inline]
RIP: 0010:memory_is_poisoned mm/kasan/generic.c:159 [inline]
RIP: 0010:check_region_inline mm/kasan/generic.c:178 [inline]
RIP: 0010:kasan_check_range+0x89/0x290 mm/kasan/generic.c:187
Code: 00 fc ff df 4d 8d 34 19 4d 89 f4 4d 29 dc 49 83 fc 10 7f 29 4d 85 e4 0f 84 41 01 00 00 4c 89 cb 48 f7 d3 4c 01 fb 41 80 3b 00 <0f> 85 cc 01 00 00 49 ff c3 48 ff c3 75 ee e9 21 01 00 00 44 89 dd
RSP: 0018:ffffc900001efda8 EFLAGS: 00000046
RAX: 0000000000000001 RBX: ffffffffffffffff RCX: ffffffff8167bb34
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff90da3500
RBP: 0000000000000009 R08: ffffffff90da3507 R09: 1ffffffff21b46a0
R10: dffffc0000000000 R11: fffffbfff21b46a0 R12: 0000000000000001
R13: dffffc0000000000 R14: fffffbfff21b46a1 R15: 1ffffffff21b46a0
FS:  000055558b1fc500(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2ed63fff CR3: 0000000030618000 CR4: 00000000003506e0
Call Trace:
 <IRQ>
 instrument_atomic_read include/linux/instrumented.h:68 [inline]
 _test_bit include/asm-generic/bitops/instrumented-non-atomic.h:141 [inline]
 hlock_class kernel/locking/lockdep.c:228 [inline]
 mark_lock+0x94/0x320 kernel/locking/lockdep.c:4656
 mark_usage kernel/locking/lockdep.c:4599 [inline]
 __lock_acquire+0xd49/0x7c80 kernel/locking/lockdep.c:5091
 lock_acquire+0x197/0x410 kernel/locking/lockdep.c:5754
 rcu_lock_acquire include/linux/rcupdate.h:334 [inline]
 rcu_read_lock include/linux/rcupdate.h:786 [inline]
 __perf_output_begin kernel/events/ring_buffer.c:163 [inline]
 perf_output_begin_forward+0xc0/0xa20 kernel/events/ring_buffer.c:273
 __perf_event_output kernel/events/core.c:7974 [inline]
 perf_event_output_forward+0x22b/0x3a0 kernel/events/core.c:7992
 __perf_event_overflow+0x447/0x630 kernel/events/core.c:9717
 perf_swevent_overflow kernel/events/core.c:9793 [inline]
 perf_swevent_event+0x2f5/0x5c0 kernel/events/core.c:-1
 perf_tp_event+0x4f9/0x13a0 kernel/events/core.c:10343
 perf_trace_run_bpf_submit+0xf4/0x1c0 kernel/events/core.c:10267
 perf_trace_preemptirq_template+0x281/0x340 include/trace/events/preemptirq.h:14
 trace_irq_enable+0xbf/0xe0 include/trace/events/preemptirq.h:40
 trace_hardirqs_on+0x18/0x40 kernel/trace/trace_preemptirq.c:56
 asm_sysvec_irq_work+0x1a/0x20 arch/x86/include/asm/idtentry.h:723
RIP: 0010:rcu_read_unlock_special+0x88/0x4c0 kernel/rcu/tree_plugin.h:682
Code: f1 f1 f1 00 f2 f2 f2 4a 89 04 2b 66 42 c7 44 2b 09 f3 f3 42 c6 44 2b 0b f3 65 44 8b 35 39 58 93 7e 41 f7 c6 00 00 f0 00 74 45 <48> c7 44 24 40 0e 36 e0 45 4a c7 04 2b 00 00 00 00 66 42 c7 44 2b
RSP: 0018:ffffc900001f0a00 EFLAGS: 00000206
RAX: c90b435010fc6200 RBX: 1ffff9200003e148 RCX: c90b435010fc6200
RDX: dffffc0000000000 RSI: ffffffff8aaab9c0 RDI: ffffffff8afc66c0
RBP: ffffc900001f0b00 R08: ffffffff90da3617 R09: 1ffffffff21b46c2
R10: dffffc0000000000 R11: fffffbfff21b46c3 R12: ffffffff8cd35400
R13: dffffc0000000000 R14: 0000000000000246 R15: 0000000000000002
 __rcu_read_unlock+0x7c/0xd0 kernel/rcu/tree_plugin.h:426
 rcu_read_unlock include/linux/rcupdate.h:818 [inline]
 process_backlog+0x403/0x6e0 net/core/dev.c:6039
 __napi_poll+0xc0/0x460 net/core/dev.c:6600
 napi_poll net/core/dev.c:6667 [inline]
 net_rx_action+0x5ea/0xbf0 net/core/dev.c:6803
 handle_softirqs+0x280/0x820 kernel/softirq.c:578
 __do_softirq kernel/softirq.c:612 [inline]
 invoke_softirq kernel/softirq.c:452 [inline]
 __irq_exit_rcu+0xc7/0x190 kernel/softirq.c:661
 irq_exit_rcu+0x9/0x20 kernel/softirq.c:673
 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1088 [inline]
 sysvec_apic_timer_interrupt+0xa4/0xc0 arch/x86/kernel/apic/apic.c:1088
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:687
RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline]
RIP: 0010:_raw_spin_unlock_irqrestore+0xa9/0x110 kernel/locking/spinlock.c:194
Code: 74 05 e8 2a fe 14 f7 48 c7 44 24 20 00 00 00 00 9c 8f 44 24 20 f6 44 24 21 02 75 4b f7 c3 00 02 00 00 74 01 fb bf 01 00 00 00 <e8> a2 7a e4 f6 65 8b 05 c3 c9 8c 75 85 c0 74 3c 48 c7 04 24 0e 36
RSP: 0018:ffffc90004d274a0 EFLAGS: 00000206
RAX: c90b435010fc6200 RBX: 0000000000000a02 RCX: c90b435010fc6200
RDX: dffffc0000000000 RSI: ffffffff8aaab9c0 RDI: 0000000000000001
RBP: ffffc90004d27530 R08: ffffffff90da3617 R09: 1ffffffff21b46c2
R10: dffffc0000000000 R11: fffffbfff21b46c3 R12: dffffc0000000000
R13: dffffc0000000000 R14: ffffffff8cdf7ee0 R15: 1ffff920009a4e94
 spin_unlock_irqrestore include/linux/spinlock.h:406 [inline]
 free_percpu+0x90b/0xdf0 mm/percpu.c:2300
 mm_destroy_cid include/linux/mm_types.h:1154 [inline]
 __mmdrop+0x28e/0x3d0 kernel/fork.c:931
 mmdrop include/linux/sched/mm.h:54 [inline]
 mmdrop_sched include/linux/sched/mm.h:82 [inline]
 mmdrop_lazy_tlb_sched include/linux/sched/mm.h:109 [inline]
 finish_task_switch+0x3e0/0x920 kernel/sched/core.c:5279
 context_switch kernel/sched/core.c:5383 [inline]
 __schedule+0x14da/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
 __local_bh_enable_ip+0x13f/0x1c0 kernel/softirq.c:413
 spin_unlock_bh include/linux/spinlock.h:396 [inline]
 tipc_nametbl_withdraw+0x1fc/0x280 net/tipc/name_table.c:817
 tipc_sk_withdraw net/tipc/socket.c:2954 [inline]
 tipc_sk_leave+0x463/0x4e0 net/tipc/socket.c:3126
 tipc_release+0x32a/0x2140 net/tipc/socket.c:645
 __sock_release net/socket.c:659 [inline]
 sock_close+0xbd/0x230 net/socket.c:1421
 __fput+0x234/0x970 fs/file_table.c:384
 task_work_run+0x1ce/0x250 kernel/task_work.c:239
 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
 exit_to_user_mode_loop+0xe6/0x110 kernel/entry/common.c:177
 exit_to_user_mode_prepare+0xb1/0x140 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:0x7fd2cb38ebe9
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:00007ffd51cb8e18 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4
RAX: 0000000000000000 RBX: 000000000003af26 RCX: 00007fd2cb38ebe9
RDX: 0000000000000000 RSI: 000000000000001e RDI: 0000000000000003
RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000551cb910f
R10: 0000001b2e120000 R11: 0000000000000246 R12: 00007fd2cb5b5fac
R13: 00007fd2cb5b5fa0 R14: ffffffffffffffff R15: 0000000000000003
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/08/25 14:21 linux-6.6.y bb9c90ab9c5a bf27483f .config console log report syz / log [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan-perf INFO: rcu detected stall in sock_close
* Struck through repros no longer work on HEAD.