syzbot
BUG: soft lockup in unwind_get_return_address
Status:
moderation: reported on 2026/11/25 16:54
Subsystems:
perf
Labels:
prio:low
[Documentation on labels]
Reported-by: syzbot+9e136180340d8fa88e57@syzkaller.appspotmail.com
First crash: 4d03h, last: 4d03h
✨ AI cause bisection: inconclusive
(AI job)
✨ AI-generated root cause summary:
CPU#1 triggered a 138-second soft lockup watchdog warning (threshold 110s with watchdog_thresh=55) while executing in softirq context inside net_rx_action -> process_backlog -> __netif_receive_skb_core -> kfree_skb_reason, which invoked KASAN stack collection (kasan_save_stack -> is_bpf_text_address) and triggered a perf/BPF tracepoint attached to lock:lock_acquire (perf_trace_lock_acquire -> trace_call_bpf). Inspection of every function along both the <IRQ> and <TASK> (mt_validate) stacks shows no unbounded loop or recursion bug, as process_backlog, net_rx_action, handle_softirqs, arch_stack_walk, and perf_swevent_get_recursion_context() are all strictly bounded and modprobe in mt_validate is preemptible under PREEMPT(full). Only 5,622 lockdep irq_events occurred between entering __do_softirq (2367) and the watchdog firing (7989) despite CONFIG_HZ_100=y, indicating that the elapsed 138s wall-clock duration without updating watchdog_touch_ts stems from heavy KASAN/Lockdep/BPF tracing overhead combined with hypervisor/vCPU scheduling stalls or extended IRQ-disabled intervals rather than a specific kernel infinite loop.
▶
▼
✨ Full AI root cause analysis
Technical Analysis
1. Context at the Time of the Soft Lockup
The watchdog (watchdog_timer_fn in kernel/watchdog.c) fired on CPU#1 after 138s exceeded get_softlockup_thresh() (2 * watchdog_thresh = 110s with watchdog_thresh=55 in CONFIG_CMDLINE).
- Interrupted
<TASK> context (modprobe:5975):
ksys_mmap_pgoff() -> vm_mmap_pgoff() -> do_mmap() -> mmap_region() -> __mmap_region() -> __mmap_complete() -> vms_complete_munmap_vmas() -> validate_mm() (mm/vma.c) -> mt_validate() -> mas_validate_gaps() -> mt_locked() -> lock_is_held_type() (kernel/locking/lockdep.c).
- Active
<IRQ> (softirq) context:
sysvec_apic_timer_interrupt() -> irq_exit_rcu() -> __irq_exit_rcu() -> invoke_softirq() -> __do_softirq() -> handle_softirqs() (kernel/softirq.c) -> net_rx_action() -> napi_poll() -> __napi_poll() -> process_backlog() -> __netif_receive_skb() -> __netif_receive_skb_core() (net/core/dev.c) -> kfree_skb_reason() -> kmem_cache_free() -> slab_free_hook() (mm/slub.c) -> kasan_slab_free() -> __kasan_slab_free() -> poison_slab_object() -> kasan_save_free_info() -> kasan_save_track() -> kasan_save_stack() (mm/kasan/common.c) -> stack_trace_save() -> arch_stack_walk() -> unwind_get_return_address() -> kernel_text_address() -> is_bpf_text_address() (kernel/bpf/core.c) -> rcu_read_lock() -> lock_acquire() (kernel/locking/lockdep.c) -> trace_lock_acquire() (include/trace/events/lock.h) -> perf_trace_lock_acquire() -> perf_trace_run_bpf_submit() (kernel/events/core.c) -> trace_call_bpf() (kernel/trace/bpf_trace.c) -> rcu_read_lock() -> lock_acquire() -> trace_lock_acquire() (__srcu_read_unlock_fast() in include/linux/srcutree.h).
- CPU#0 (
dhcpcd:5299):
Waiting in dup_mmap() -> flush_tlb_mm_range() -> flush_tlb_multi() -> smp_call_function_many_cond() -> csd_lock_wait() (kernel/smp.c).
2. Verified Invariants and Ruled-Out Hypotheses
Inspection of the functions along both call stacks rules out an infinite loop or unbounded recursion in any of the active kernel subsystems:
- Task context (
mt_validate) cannot hold off preemption:
The kernel is running with PREEMPT(full) (CONFIG_PREEMPT=y, CONFIG_PREEMPT_DYNAMIC=y). Neither vms_complete_munmap_vmas(), validate_mm(), nor mt_validate()/mas_validate_gaps() disables preemption or acquires spinlocks (mmap_lock is an rw_semaphore, and lock_is_held_type() restores EFLAGS.IF via raw_local_irq_restore()). Thus modprobe would be preempted by migration/1 (softlockup_fn) if CPU#1 returned to task context.
- Softirq packet processing (
handle_softirqs / net_rx_action / process_backlog) is bounded:
process_backlog() (net/core/dev.c:6893) dequeues and processes at most quota (64) skbs per poll before returning work.
net_rx_action() (net/core/dev.c:8182) terminates when budget <= 0 (300 packets) or time_after_eq(jiffies, time_limit) (2 jiffies).
handle_softirqs() (kernel/softirq.c:625) breaks out to wakeup_softirqd() after MAX_SOFTIRQ_RESTART (10) restarts, MAX_SOFTIRQ_TIME (2ms), or when need_resched() is set.
- KASAN stack unwinding (
kasan_save_stack / arch_stack_walk) is bounded:
kasan_save_stack() (mm/kasan/common.c:52) caps stack depth at KASAN_STACK_DEPTH, and unwind_next_frame() (arch/x86/kernel/unwind_orc.c:693) enforces monotonic stack progression (state->sp <= prev_sp).
- Lockdep tracepoint / BPF recursion (
perf_trace_lock_acquire / trace_call_bpf) is bounded:
When is_bpf_text_address() calls rcu_read_lock() -> lock_acquire(), trace_lock_acquire() invokes perf_trace_lock_acquire() because a BPF program / perf event is attached to lock:lock_acquire. Inside do_perf_trace_lock_acquire(), perf_trace_buf_alloc() calls perf_swevent_get_recursion_context() (kernel/events/core.c:11233, using per-interrupt-level current->perf_recursion[rctx]), which prevents re-entry when trace_call_bpf() subsequently calls rcu_read_lock() -> lock_acquire() -> perf_trace_lock_acquire(). The interrupted RIP (lock_acquire+0x318, __srcu_read_unlock_fast) is at the exit of this inner trace_lock_acquire() returning cleanly.
3. Root Cause / Inconclusive Aspects
- Lockdep
irq_events discrepancy: print_irqtrace_events() reports softirqs last disabled at (2367) (__do_softirq) and irq event stamp: 7989, meaning only 5,622 irq-trace events occurred between entering __do_softirq and the softlockup watchdog firing at 138s (hardirqs last enabled at (7988): _raw_spin_unlock_irqrestore, hardirqs last disabled at (7989): sysvec_apic_timer_interrupt). On a CONFIG_HZ_100=y (CONFIG_NO_HZ_IDLE=y) kernel running a non-idle task, active execution with hardirqs enabled for 138s would generate at least ~27,600 irq_events from timer ticks alone (irqentry_enter_from_kernel_mode() unconditionally calls lockdep_hardirqs_off()).
- Mechanism: While CPU#1 was inside softirq packet freeing (
net_rx_action -> process_backlog -> kfree_skb_reason), the combination of heavy debug instrumentation (KASAN stack saving per freed sk_buff calling is_bpf_text_address() -> lock_acquire() for non-core-text frames, LOCKDEP, and a BPF program attached to the hot lock:lock_acquire tracepoint via perf_trace_lock_acquire -> trace_call_bpf) and/or hypervisor/vCPU scheduling stalls on GCE (which advance sched_clock()/now without setting PVCLOCK_GUEST_STOPPED) or extended IRQ-disabled execution prevented watchdog_touch_ts from being refreshed within the 110s threshold. Because no infinite loop, deadlock, or memory corruption exists in the inspected functions and the exact external BPF program / host stall timing is not recorded in the report, the precise trigger for the 138s delay remains partially inconclusive.
Sample crash report:
* Struck through repros no longer work on HEAD.