syzbot
BUG: soft lockup in inet_recvmsg
Status:
moderation: reported on 2026/12/02 18:11
Subsystems:
kvm
arch
Labels:
prio:low
[Documentation on labels]
Reported-by: syzbot+73834fe9db64b3f2843c@syzkaller.appspotmail.com
First crash: 1h03m, last: 1h03m
β¨ AI cause bisection: inconclusive
(AI job)
β¨ AI-generated root cause summary:
CPU#1 triggered a 107s soft lockup warning inside sshd-session during tcp_recvmsg_locked() -> tcp_cleanup_rbuf() -> __tcp_send_ack() -> tcp_acceptable_seq() -> tcp_wnd_end(), while CPU#0 was in nsim_dev_trap_report_work() allocating an skb. Inspection of both call stacks shows preemption and interrupts were enabled (CONFIG_PREEMPT=y, irq event stamp shows local_bh_enable() completed right before el1_interrupt) with no infinite loops or cross-CPU deadlocks in the TCP or netdevsim paths. Because arm64 guests use a stub kvm_check_and_clear_guest_paused() returning false and the weak running_clock() returning local_clock() without stolen-time adjustment, a host hypervisor pause or vCPU starvation (combined with a lowered watchdog_thresh < 53s) causes watchdog_timer_fn() to report a false-positive soft lockup at whatever code the vCPU happens to resume in, though an unobserved prior kernel stall cannot be completely ruled out.
▶
▼
β¨ Full AI root cause analysis
Technical Analysis of the Soft Lockup Report
Verified Observations from the Crash State
-
CPU#1 (sshd-session:3393) Call Trace & Preemption/IRQ State
-
CPU#0 (kworker/u8:22) NMI Backtrace
- CPU#0 was executing
nsim_dev_trap_report_work() -> nsim_dev_trap_report() -> nsim_dev_trap_skb_build() (drivers/net/netdevsim/dev.c:744, 801, 847), performing a GFP_ATOMIC alloc_skb() through SLUB sheaves (__pcs_replace_empty_main() -> refill_sheaf() -> refill_objects() in mm/slub.c) and get_page_from_freelist() -> prep_new_page() (mm/page_alloc.c).
pstate: 20000005 shows interrupts enabled, and this path shares no locks with CPU#1's tcp_acceptable_seq().
-
Watchdog Mechanism and Arm64 Guest Timing
- In
kernel/watchdog.c:
get_timestamp() (kernel/watchdog.c:665-668) computes running_clock() >> 30LL.
is_softlockup() (kernel/watchdog.c:744-774) triggers when time_after(now, period_ts + get_softlockup_thresh()), returning now - touch_ts (here 107s).
- Since
period_ts >= touch_ts (both are updated together by update_touch_ts(), while touch_softlockup_watchdog*() only sets watchdog_report_ts = SOFTLOCKUP_DELAY_REPORT), now - period_ts <= 107s. Although CONFIG_CMDLINE specifies watchdog_thresh=165 (get_softlockup_thresh() = 330s), triggering at 107s indicates watchdog_thresh was lowered (e.g., via /proc/sys/kernel/watchdog_thresh or bootloader cmdline override) to < 53s.
- On
arm64 (Hardware name: linux,dummy-virt (DT)):
running_clock() (kernel/sched/clock.c:508-511) uses the weak implementation returning local_clock(), which is backed by the architectural timer and continues advancing even when the vCPU is stopped/descheduled by the host hypervisor (CONFIG_PARAVIRT_TIME_ACCOUNTING is also not set).
kvm_check_and_clear_guest_paused() (kernel/watchdog.c:841) resolves to the generic stub in include/asm-generic/kvm_para.h:12, which unconditionally returns false on arm64 (unlike x86).
Root Cause Assessment & What Remains Inconclusive
- Ruled out: An infinite loop, spinlock deadlock, or IRQ/preemption-disabled hang in the observed
tcp_recvmsg_locked() -> tcp_cleanup_rbuf() -> __tcp_send_ack() -> tcp_acceptable_seq() path on CPU#1, or cross-CPU contention from nsim_dev_trap_report_work() on CPU#0.
- Most likely root cause: A hypervisor-induced stall (host pausing or heavily starving the arm64 VM vCPU for >107s). When the vCPU resumed inside
sshd-session (tcp_acceptable_seq), local_clock() jumped by 107s, kvm_check_and_clear_guest_paused() failed to suppress the false positive (being a stub on arm64), and the pending hrtimer fired watchdog_timer_fn(), reporting a soft lockup at the arbitrary instruction where execution resumed.
- Inconclusive aspect: Because post-mortem watchdog output does not record historical timestamps of prior tasks or
cpu_stopper wakeups on CPU#1, an unobserved transient stall prior to sshd-session's tcp_recvmsg() (or a scheduler/cpu_stopper delay preventing migration/1 from executing softlockup_fn() for 107s) cannot be strictly ruled out from this trace alone.
Sample crash report:
* Struck through repros no longer work on HEAD.