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
Based on kernel commit 9867c61abbd4:

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:

  1. 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.
  2. 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.
  3. 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).
  4. 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.
▶ ▼ ✨ AI Jobs (3)
ID Workflow Result Correct Bug Created Started Finished Revision
4f9c320a bisect-cause IsRelease: ❌ ❓ BUG: soft lockup in unwind_get_return_address 2026/11/23 00:02 2026/11/23 00:02 2026/11/23 01:12 b2c69459
391d6259 bisect-cause 💥 BUG: soft lockup in unwind_get_return_address 2026/11/21 15:37 2026/11/21 15:37 2026/11/21 16:38 b2c69459
9e90c6fe assessment-security DenialOfService: ❌ Exploitable: ❌ FilesystemTrigger: ❌ FuzzingArtifact: ❌ MemoryCorruption: ❌ NetworkNeedsSetup: ❌ NetworkTrigger: ❌ PeripheralTrigger: ❌ RemoteTrigger: ❌ Unprivileged: ❌ UserNamespace: ❌ VMGuestTrigger: ❌ VMHostTrigger: ❌ ❓ BUG: soft lockup in unwind_get_return_address 2026/11/21 15:32 2026/11/21 15:32 2026/11/21 16:44 b2c69459
▶ ▼ Similar bugs (7)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in unwind_get_return_address bpf 1 1 786d 786d 0/29 auto-obsoleted due to no activity on 2024/12/29 10:05
linux-6.1 INFO: rcu detected stall in unwind_get_return_address (2) 1 syz, C 2 40d 93d 0/3 upstream: reported C repro on 2026/08/24 17:54
linux-5.15 INFO: rcu detected stall in unwind_get_return_address 1 1 335d 335d 0/3 auto-obsoleted due to no activity on 2026/04/03 20:45
linux-6.1 INFO: rcu detected stall in unwind_get_return_address 1 1 278d 278d 0/3 auto-obsoleted due to no activity on 2026/05/31 04:58
linux-5.15 INFO: rcu detected stall in unwind_get_return_address (2) 1 1 114d 114d 0/3 auto-obsoleted due to no activity on 2026/11/11 06:35
upstream INFO: rcu detected stall in unwind_get_return_address (2) bpf 1 syz error error 1 348d 344d 0/29 auto-obsoleted due to no activity on 2026/03/22 18:27
upstream INFO: rcu detected stall in unwind_get_return_address (3) prio:low bpf 1 1 185d 185d 0/29 auto-obsoleted due to no activity on 2026/08/22 11:04

Sample crash report:
watchdog: BUG: soft lockup - CPU#1 stuck for 138s! [modprobe:5975]
Modules linked in:
irq event stamp: 7989
hardirqs last  enabled at (7988): [<ffffffff8c155260>] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:210 [inline]
hardirqs last  enabled at (7988): [<ffffffff8c155260>] _raw_spin_unlock_irqrestore+0x30/0x80 kernel/locking/spinlock.c:221
hardirqs last disabled at (7989): [<ffffffff8c127cae>] sysvec_apic_timer_interrupt+0xe/0xc0 arch/x86/kernel/apic/apic.c:1062
softirqs last  enabled at (1118): [<ffffffff81897407>] do_softirq+0x77/0xd0 kernel/softirq.c:569
softirqs last disabled at (2367): [<ffffffff81898026>] __do_softirq kernel/softirq.c:703 [inline]
softirqs last disabled at (2367): [<ffffffff81898026>] invoke_softirq kernel/softirq.c:542 [inline]
softirqs last disabled at (2367): [<ffffffff81898026>] __irq_exit_rcu+0xc6/0x220 kernel/softirq.c:786
CPU: 1 UID: 0 PID: 5975 Comm: modprobe Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
RIP: 0010:__srcu_read_unlock_fast include/linux/srcutree.h:332 [inline]
RIP: 0010:srcu_read_unlock_fast_notrace include/linux/srcu.h:649 [inline]
RIP: 0010:class_srcu_fast_notrace_destructor include/linux/srcu.h:754 [inline]
RIP: 0010:__do_trace_lock_acquire include/trace/events/lock.h:23 [inline]
RIP: 0010:trace_lock_acquire include/trace/events/lock.h:23 [inline]
RIP: 0010:lock_acquire+0x318/0x350 kernel/locking/lockdep.c:5905
Code: 44 24 20 4c 8b 4c 24 08 ff b4 24 90 00 00 00 55 e8 5d 36 ff ff 48 83 c4 10 48 c7 c7 80 bf 1b 90 be 04 00 00 00 e8 98 ac 08 00 <65> 48 ff 43 08 48 89 eb 44 8b 74 24 10 4c 8b 7c 24 08 4c 8b 6c 24
RSP: 0018:ffffc90000a18188 EFLAGS: 00000286
RAX: 0000000000000004 RBX: ffffffff94e48500 RCX: 0000000000000001
RDX: 0000000000000000 RSI: ffffffff94e48500 RDI: ffffffff901bbf80
RBP: 0000000000000000 R08: 0000000000000100 R09: 0000000000000000
R10: dffffc0000000000 R11: fffff91ffffb5005 R12: ffffffff9015a2a0
R13: 0000000000000002 R14: 0000000000000000 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8881234e1000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f6d182a8eb8 CR3: 000000005748c000 CR4: 00000000003526f0
Call Trace:
 <IRQ>
 rcu_lock_acquire include/linux/rcupdate.h:309 [inline]
 rcu_read_lock include/linux/rcupdate.h:849 [inline]
 trace_call_bpf+0xd5/0xb80 kernel/trace/bpf_trace.c:-1
 perf_trace_run_bpf_submit+0x78/0x170 kernel/events/core.c:11549
 do_perf_trace_lock_acquire include/trace/events/lock.h:23 [inline]
 perf_trace_lock_acquire+0x346/0x440 include/trace/events/lock.h:23
 __do_trace_lock_acquire include/trace/events/lock.h:23 [inline]
 trace_lock_acquire include/trace/events/lock.h:23 [inline]
 lock_acquire+0x303/0x350 kernel/locking/lockdep.c:5905
 rcu_lock_acquire include/linux/rcupdate.h:309 [inline]
 rcu_read_lock include/linux/rcupdate.h:849 [inline]
 is_bpf_text_address+0x47/0x2b0 kernel/bpf/core.c:1034
 kernel_text_address+0xa5/0xe0 kernel/extable.c:125
 __kernel_text_address+0xd/0x30 kernel/extable.c:79
 unwind_get_return_address+0x4d/0x90 arch/x86/kernel/unwind_orc.c:385
 arch_stack_walk+0xfb/0x150 arch/x86/kernel/stacktrace.c:26
 stack_trace_save+0xa9/0x100 kernel/stacktrace.c:122
 kasan_save_stack mm/kasan/common.c:57 [inline]
 kasan_save_track+0x3f/0x90 mm/kasan/common.c:79
 kasan_save_free_info+0x40/0x50 mm/kasan/generic.c:599
 poison_slab_object mm/kasan/common.c:267 [inline]
 __kasan_slab_free+0x70/0x90 mm/kasan/common.c:299
 kasan_slab_free include/linux/kasan.h:239 [inline]
 slab_free_hook mm/slub.c:2780 [inline]
 slab_free mm/slub.c:6637 [inline]
 kmem_cache_free+0x184/0x660 mm/slub.c:6764
 kfree_skb_reason include/linux/skbuff.h:1330 [inline]
 __netif_receive_skb_core+0x2bc2/0x3120 net/core/dev.c:6425
 __netif_receive_skb_one_core net/core/dev.c:6449 [inline]
 __netif_receive_skb net/core/dev.c:6564 [inline]
 process_backlog+0x727/0x18b0 net/core/dev.c:6915
 __napi_poll+0xaa/0x330 net/core/dev.c:8001
 napi_poll net/core/dev.c:8064 [inline]
 net_rx_action+0x61d/0xf50 net/core/dev.c:8221
 handle_softirqs+0x265/0x8d0 kernel/softirq.c:669
 __do_softirq kernel/softirq.c:703 [inline]
 invoke_softirq kernel/softirq.c:542 [inline]
 __irq_exit_rcu+0xc6/0x220 kernel/softirq.c:786
 irq_exit_rcu+0x9/0x30 kernel/softirq.c:809
 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1062 [inline]
 sysvec_apic_timer_interrupt+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1062
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:674
RIP: 0010:lock_is_held_type+0x106/0x150 kernel/locking/lockdep.c:6021
Code: 1c 00 00 b8 ff ff ff ff 65 0f c1 05 4c ae d1 08 83 f8 01 75 25 9c 58 a9 00 02 00 00 75 39 41 f7 c4 00 02 00 00 74 01 fb 89 d8 <5b> 41 5c 41 5d 41 5e 41 5f 5d e9 0b 14 03 00 cc 90 0f 0b 90 48 c7
RSP: 0018:ffffc90004a26f68 EFLAGS: 00000206
RAX: 0000000000000001 RBX: 0000000000000001 RCX: 0000000000000046
RDX: 0000000000000000 RSI: ffffffff8e93905e RDI: ffffffff8c8e8a80
RBP: 00000000ffffffff R08: ffff888028e45dc0 R09: 0000000000000005
R10: 0000000000000004 R11: 0000000000000000 R12: 0000000000000246
R13: ffff888028e45dc0 R14: ffff88803743d900 R15: 0000000000000000
 lock_is_held include/linux/lockdep.h:249 [inline]
 mt_locked lib/maple_tree.c:-1 [inline]
 mt_slot lib/maple_tree.c:676 [inline]
 mas_slot lib/maple_tree.c:709 [inline]
 mas_get_slot lib/maple_tree.c:6593 [inline]
 mas_validate_gaps lib/maple_tree.c:-1 [inline]
 mt_validate+0x2551/0x4230 lib/maple_tree.c:7137
 validate_mm+0xd9/0x690 mm/vma.c:706
 vms_complete_munmap_vmas+0x93b/0xc10 mm/vma.c:1471
 __mmap_complete mm/vma.c:2833 [inline]
 __mmap_region mm/vma.c:3128 [inline]
 mmap_region+0x16b3/0x2820 mm/vma.c:3201
 do_mmap+0xe0a/0x1300 mm/mmap.c:573
 vm_mmap_pgoff+0x27a/0x520 mm/util.c:581
 ksys_mmap_pgoff+0x4dc/0x760 mm/mmap.c:619
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x171/0x540 arch/x86/entry/syscall_64.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f6d18593242
Code: 08 00 04 00 00 eb e2 90 41 f7 c1 ff 0f 00 00 75 27 55 89 cd 53 48 89 fb 48 85 ff 74 33 41 89 ea 48 89 df b8 09 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 5e 5b 5d c3 0f 1f 00 c7 05 46 40 01 00 16 00
RSP: 002b:00007ffed03c6068 EFLAGS: 00000206 ORIG_RAX: 0000000000000009
RAX: ffffffffffffffda RBX: 00007f6d18274000 RCX: 00007f6d18593242
RDX: 0000000000000005 RSI: 000000000001c000 RDI: 00007f6d18274000
RBP: 0000000000000812 R08: 0000000000000000 R09: 0000000000008000
R10: 0000000000000812 R11: 0000000000000206 R12: 00007ffed03c60b8
R13: 00007f6d18568ab0 R14: 00007ffed03c64e0 R15: 00000fffda078c10
 </TASK>
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 UID: 0 PID: 5299 Comm: dhcpcd Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
RIP: 0010:csd_lock_wait kernel/smp.c:389 [inline]
RIP: 0010:csd_lock kernel/smp.c:422 [inline]
RIP: 0010:smp_call_function_many_cond+0x61e/0x1500 kernel/smp.c:970
Code: b6 04 04 84 c0 0f 85 d5 03 00 00 44 8b 3b 44 89 fe 83 e6 01 31 ff e8 01 7c 0c 00 41 83 e7 01 75 07 e8 e6 76 0c 00 eb 3f f3 90 <48> b8 00 00 00 00 00 fc ff df 41 0f b6 04 04 84 c0 75 0f f7 03 01
RSP: 0018:ffffc9000355f420 EFLAGS: 00000293
RAX: ffffffff81bcbd8e RBX: ffff8880b8342008 RCX: ffff888023ad0000
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffc9000355f570 R08: ffff888023ad159f R09: 1ffff1100475a2b3
R10: dffffc0000000000 R11: 0000000000000000 R12: 1ffff11017068401
R13: 0000000000000001 R14: ffff8880b8342000 R15: 0000000000000001
FS:  00007f4a0ae0e780(0000) GS:ffff8881233e1000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000557873407168 CR3: 000000007b99c000 CR4: 00000000003526f0
Call Trace:
 <TASK>
 __flush_tlb_multi arch/x86/include/asm/paravirt.h:46 [inline]
 flush_tlb_multi arch/x86/mm/tlb.c:1367 [inline]
 flush_tlb_mm_range+0x910/0x10b0 arch/x86/mm/tlb.c:1441
 dup_mmap+0x1617/0x1c80 mm/mmap.c:1878
 dup_mm kernel/fork.c:1549 [inline]
 copy_mm+0x2ae/0x640 kernel/fork.c:1602
 copy_process+0x1ecc/0x4510 kernel/fork.c:2328
 kernel_clone+0x2d7/0x940 kernel/fork.c:2798
 __do_sys_clone kernel/fork.c:2940 [inline]
 __se_sys_clone kernel/fork.c:2924 [inline]
 __x64_sys_clone+0x1b6/0x230 kernel/fork.c:2924
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x171/0x540 arch/x86/entry/syscall_64.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f4a0aee2636
Code: 89 df e8 6d e8 f6 ff 45 31 c0 31 d2 31 f6 64 48 8b 04 25 10 00 00 00 bf 11 00 20 01 4c 8d 90 d0 02 00 00 b8 38 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 52 89 c5 85 c0 75 31 64 48 8b 04 25 10 00 00
RSP: 002b:00007ffc55b09e20 EFLAGS: 00000246 ORIG_RAX: 0000000000000038
RAX: ffffffffffffffda RBX: 00007ffc55b09e28 RCX: 00007f4a0aee2636
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000001200011
RBP: 00007ffc55b2a370 R08: 0000000000000000 R09: 0000000000000001
R10: 00007f4a0ae0ea50 R11: 0000000000000246 R12: 00007ffc55b09f60
R13: 0000000000000000 R14: 0000000000000000 R15: 000055786f77cac0
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/11/21 15:32 bpf-next 9867c61abbd4 b2c69459 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce BUG: soft lockup in unwind_get_return_address
* Struck through repros no longer work on HEAD.