syzbot


INFO: rcu detected stall in sock_close (2)

Status: upstream: reported on 2024/02/01 05:24
Reported-by: syzbot+cb82013d79330d8896b7@syzkaller.appspotmail.com
First crash: 87d, last: 87d
Similar bugs (10)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 INFO: rcu detected stall in sock_close (2) 1 95d 95d 0/3 upstream: reported on 2024/01/24 14:38
upstream INFO: rcu detected stall in sock_close (4) net 2 185d 222d 0/26 auto-obsoleted due to no activity on 2024/01/24 15:51
linux-6.1 INFO: rcu detected stall in sock_close origin:upstream C done 1 293d 293d 3/3 fixed on 2023/09/23 10:26
upstream INFO: rcu detected stall in sock_close cgroups mm 6 1607d 1608d 0/26 closed as invalid on 2019/12/04 14:04
upstream INFO: rcu detected stall in sock_close (3) tipc C done done 5 894d 1389d 0/26 closed as invalid on 2022/02/08 10:42
linux-5.15 INFO: rcu detected stall in sock_close C error 2 273d 327d 0/3 auto-obsoleted due to no activity on 2023/11/07 13:02
upstream INFO: rcu detected stall in sock_close (2) cgroups mm 1 1572d 1572d 0/26 closed as invalid on 2020/01/09 08:13
android-5-10 BUG: soft lockup in sock_close C 22 2d03h 34d 0/2 upstream: reported C repro on 2024/03/25 07:28
android-5-15 BUG: soft lockup in sock_close C 119 3h18m 32d 0/2 upstream: reported C repro on 2024/03/26 23:21
android-6-1 BUG: soft lockup in sock_close C error 2 32d 32d 0/2 upstream: reported C repro on 2024/03/27 04:09

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	Tasks blocked on level-0 rcu_node (CPUs 0-1): P3575/1:b..l
	(detected by 1, t=10502 jiffies, g=51925, q=68 ncpus=2)
task:syz-executor.4  state:R  running task     stack:20312 pid:3575  ppid:3568   flags:0x00004002
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5245 [inline]
 __schedule+0x142d/0x4550 kernel/sched/core.c:6558
 preempt_schedule_irq+0xf7/0x1c0 kernel/sched/core.c:6870
 irqentry_exit+0x53/0x80 kernel/entry/common.c:433
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:653
RIP: 0010:__ref_is_percpu include/linux/percpu-refcount.h:174 [inline]
RIP: 0010:percpu_ref_put_many include/linux/percpu-refcount.h:332 [inline]
RIP: 0010:percpu_ref_put+0xd0/0x250 include/linux/percpu-refcount.h:351
Code: 6a ee 8a be f9 02 00 00 48 c7 c2 c0 6a ee 8a e8 b6 43 e8 ff 49 bf 00 00 00 00 00 fc ff df 48 89 d8 48 c1 e8 03 42 80 3c 38 00 <74> 08 48 89 df e8 f6 7c 5f 00 48 8b 2b 48 89 ee 48 83 e6 03 31 ff
RSP: 0018:ffffc90003f2fc28 EFLAGS: 00000246
RAX: 1ffff1100e82512c RBX: ffff888074128960 RCX: ffff88807a689dc0
RDX: 0000000000000000 RSI: ffffffff8b3d0760 RDI: ffffffff8b3d0720
RBP: 0000000000000001 R08: ffffffff81825270 R09: fffffbfff2092045
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888021efa4c0
R13: ffff888021efa948 R14: ffffffff8182523f R15: dffffc0000000000
 cgroup_bpf_put include/linux/cgroup.h:922 [inline]
 cgroup_sk_free+0x3c/0xa0 kernel/cgroup/cgroup.c:6995
 sk_prot_free net/core/sock.c:2076 [inline]
 __sk_destruct+0x43f/0x5f0 net/core/sock.c:2168
 inet_release+0x174/0x1f0 net/ipv4/af_inet.c:432
 __sock_release net/socket.c:654 [inline]
 sock_close+0xcd/0x230 net/socket.c:1400
 __fput+0x3b7/0x890 fs/file_table.c:320
 task_work_run+0x246/0x300 kernel/task_work.c:179
 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
 exit_to_user_mode_loop+0xde/0x100 kernel/entry/common.c:171
 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:204
 __syscall_exit_to_user_mode_work kernel/entry/common.c:286 [inline]
 syscall_exit_to_user_mode+0x60/0x270 kernel/entry/common.c:297
 do_syscall_64+0x49/0xb0 arch/x86/entry/common.c:87
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f411da7cc9a
RSP: 002b:00007fff077ba9d0 EFLAGS: 00000293 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 00000000ffffffff RCX: 00007f411da7cc9a
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000003
RBP: 00007fff077baa4c R08: 00007fff077ba31c R09: 0079746972756365
R10: 00007fff077ba380 R11: 0000000000000293 R12: 0000000000000032
R13: 00000000000c6234 R14: 00000000000c6226 R15: 0000000000000006
 </TASK>
rcu: rcu_preempt kthread starved for 10527 jiffies! g51925 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:26680 pid:16    ppid:2      flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5245 [inline]
 __schedule+0x142d/0x4550 kernel/sched/core.c:6558
 schedule+0xbf/0x180 kernel/sched/core.c:6634
 schedule_timeout+0x1b9/0x300 kernel/time/timer.c:1935
 rcu_gp_fqs_loop+0x2d2/0x1120 kernel/rcu/tree.c:1706
 rcu_gp_kthread+0xa3/0x3a0 kernel/rcu/tree.c:1905
 kthread+0x28d/0x320 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306
 </TASK>
rcu: Stack dump where RCU GP kthread last ran:
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0 skipped: idling at native_safe_halt arch/x86/include/asm/irqflags.h:51 [inline]
NMI backtrace for cpu 0 skipped: idling at arch_safe_halt arch/x86/include/asm/irqflags.h:89 [inline]
NMI backtrace for cpu 0 skipped: idling at acpi_safe_halt drivers/acpi/processor_idle.c:112 [inline]
NMI backtrace for cpu 0 skipped: idling at acpi_idle_do_entry+0x10f/0x340 drivers/acpi/processor_idle.c:572

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/02/01 05:24 linux-6.1.y e5c3b988b827 373b66cd .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: rcu detected stall in sock_close
* Struck through repros no longer work on HEAD.