| 0/0 |
2026/09/13 00:01 |
flow |
assessment-security |
5m
Results: map[DenialOfService:true Explanation:Based on the provided bug report and source code analysis, here is the
assessment of the security impact:
**Analysis:**
The bug is a `workqueue lockup`, specifically indicating that worker pool 2
(bound to CPU 0) has been stuck for 48 seconds. The watchdog printed the
backtraces of three busy workers in this pool: `reg_todo`,
`wg_packet_decrypt_worker`, and `wg_packet_tx_worker`.
Looking at their backtraces, all three workers are in the `R` (Runnable) state
and were preempted inside `__local_bh_enable_ip` -> `preempt_schedule`. This
means these worker threads are not the ones hogging the CPU; rather, they were
running, got preempted by the scheduler, and were never scheduled back. This
implies that CPU 0 is completely hogged by another task that is either stuck in
an infinite loop with preemption disabled, spinning infinitely on a spinlock
(spinlock deadlock), or the CPU is suffering from an interrupt/softirq storm.
Looking at the other in-flight works, we see multiple `cfg80211_wiphy_work`
items stuck for up to 89 seconds, as well as wireguard workers stuck for up to
91 seconds. This strongly points to a logical bug, routing loop, or spinlock
deadlock within the `mac80211`/`cfg80211` or `wireguard` subsystems. For
instance, if a task on another CPU holds a spinlock and gets stuck, and a task
on CPU 0 tries to acquire the same spinlock, CPU 0 will spin indefinitely with
preemption disabled, starving all CFS tasks (like the preempted worker threads).
**Exploitability:**
A CPU hog, infinite loop, or spinlock deadlock leads to a system hang but does
not involve memory corruption (like use-after-free or out-of-bounds access) or
wild pointer dereferences. Therefore, it is not exploitable for privilege
escalation or arbitrary code execution.
**Denial of Service:**
Yes. The bug causes a CPU to lock up, eventually leading to a system-wide hang
or panic (via the workqueue watchdog or RCU stall detector), which is a clear
Denial of Service.
**Trigger Context:**
- **Unprivileged / User Namespace:** Configuring virtual network devices like
`mac80211_hwsim`, `wireguard`, and `batman-adv` requires `CAP_NET_ADMIN`. While
an unprivileged user cannot do this in the initial namespace, they can easily
create a new user namespace, gain `CAP_NET_ADMIN` within it, and trigger the
bug.
- **Network Trigger:** Yes. Wireguard and batman-adv are network protocols. The
lockup could be triggered by processing specific ingress network packets (e.g.,
a packet flood causing a softirq storm, or a crafted setup causing an infinite
routing loop between virtual interfaces).
- **VM Guest:** Yes, the bug is in the guest kernel's network stack and can be
triggered from within a standard VM guest.
- **Filesystem / Peripheral:** No. The presence of `ext4_end_io_rsv_work` is
likely collateral damage (it just happened to be queued when the workqueues
locked up). The root cause is firmly in the networking subsystems. Exploitable:false FilesystemTrigger:false NetworkTrigger:true PeripheralTrigger:false RemoteTrigger:false Unprivileged:false UserNamespace:true VMGuestTrigger:true VMHostTrigger:false]
|
| 1/1 |
2026/09/13 00:01 |
action |
syz-repro-to-c-repro |
0m
Results:
|
| 2/1 |
2026/09/13 00:01 |
action |
kernel-checkouter |
0m
Results: map[KernelSrc:/app/workdir/cache/src/e4df1e35f73e8871a0bb5986e0a3f7f88903d380]
|
| 3/1 |
2026/09/13 00:01 |
action |
kernel-builder |
0m
Results: map[KernelObj:/app/workdir/cache/build/4052259e3ac679a0ea4a40bb36f332ce6ba3596e]
|
| 4/1 |
2026/09/13 00:01 |
action |
codesearch-prepare |
0m
Results: map[Index:codesearch-index]
|
| 5/1 |
2026/09/13 00:01 |
agent |
expert |
5m
Model:
Results: map[DenialOfService:true Exploitable:false FilesystemTrigger:false NetworkTrigger:true PeripheralTrigger:false RemoteTrigger:false Unprivileged:false UserNamespace:true VMGuestTrigger:true VMHostTrigger:false]
Instruction: You are an experienced Linux kernel security engineer. Your task is to analyze given kernel bug report
and determine its security impact based on the following dimensions.
Use the provided tools to examine the source code, check for capability checks (e.g., capable(), ns_capable()),
and understand the nature of the bug. Analyze the given kernel build and configuration.
You can check the kernel config by grepping ".config" file; you can check kernel cmdline by grepping
".config" file for "CONFIG_CMDLINE=". Assume sysctl parameters have default values.
But analyze for the corresponding production build w/o debugging tools enabled (like KASAN, KMSAN, UBSAN).
Try different strategies when analyzing the bug:
- think of ways in which the vulnerable code is unreachable
- or the other way around: try to come up with different ideas of how an unprivileged user can reach the bug
If still unsure err on the side of the bug being non-exploitable/not-accessible.
In the final reply, provide a reasoning for your assessment.
Analysis dimensions:
* Exploitable:
Determine if the bug can result in memory corruption, elevated privileges, or an information leak.
Memory safety issues are almost always exploitable (KASAN or UBSAN reports for use-after-free, out-of-bounds;
refcounting issues, corrupted lists, etc). When kernel is crashing on a completely wild pointer access
(e.g. user-space address, or non-canonical address, but not on NULL or address corresponding to KASAN shadow
for NULL address), including both data accesses and control transfers, that also usually implies possibility
of exploitation. Such reports usually say "unable to handle kernel paging request".
Uses of uninitialized values detected by KMSAN may be exploitable b/c attacker frequently can affect uninit
values with spraying techniques. However, for these exploitability depends on how exactly the uninit value
is used in the code, and what it affects.
Information leaks are exploitable on their own and should be classified as such. A bug that copies kernel
memory contents to userspace (e.g. an out-of-bounds read whose result is returned to the caller, or
uninitialized stack/heap bytes written to a user buffer) is exploitable: it can reveal kernel pointer
values and defeat KASLR, expose sensitive data such as cryptographic keys or other processes' memory, and
serves as a necessary building block in most modern kernel privilege-escalation exploit chains. Do not classify
an information leak as non-exploitable solely because it does not directly cause a memory write or control-flow
hijack; the leak itself is the exploit primitive.
Think of what happens after the bug is triggered. Some bugs cause kernel panic and halt execution,
they are harder to exploit. For example, BUG reports halts the kernel. However, WARNING reports don't halt
execution in production builds. Debug bug detection tools (like KASAN, KMSAN, KCSAN, UBSAN) are also not enabled
in production builds, so attacker can freely exploit these bugs w/o being detected by these tools.
If you see an integer overflow, think how the overflowed value used later (if it's used as allocation size,
or an array index). If you see an out-of-bounds read, think if it's followed by an out-of-bounds write as well.
Some KCSAN data-races may be exploitable by skilled attackers as well. Think what data structures got corrupted
as the result of data races and how. However, note that kernel has lots of "benign" data races that don't lead
to any runtime misbehavior at all.
* Denial Of Service:
Determine if the bug can result in denial-of-service. Most bugs can, since they cause system crash,
hangs, deadlocks, or resource leaks. This is mostly applicable to WARNING bugs that won't cause system crash
in production. For these think what will be consequences of the violation of the kernel assumptions flagged
by the WARNING. In some cases the unexpected condition is also properly handled by the normal control flow
(e.g. with "if (WARN_ON(...))"), these won't cause denial-of-service. If the condition is not handled,
then it may or may not cause denial-of-service.
* Accessible From Unprivileged Processes:
Determine if the bug can be reached from a typical (non-root) user process that does NOT have any special capabilities
(like CAP_SYS_ADMIN, CAP_NET_ADMIN, CAP_NET_RAW, CAP_PERFMON) or access to device nodes restricted to root.
Assume that unprivileged_bpf_disabled=1, that is eBPF loading is not accessible. However, cBPF (classical BPF)
is still accessible to non-root processes.
Assume that user namespaces are not accessible, that is, the process cannot get the mentioned capabilities even
within a new user namespace (checked by ns_capable() function in the kernel sources).
* Accessible From User Namespaces:
Determine if the bug can be reached within a user-namespace where the process has all capabilities
(including CAP_SYS_ADMIN, CAP_NET_ADMIN, CAP_NET_RAW, CAP_PERFMON). Such capabilities are checked with ns_capable()
function in the kernel sources.
* VM Guest Trigger:
Determine if the bug can be triggered from the context of a typical KVM guest (e.g., set up by a QEMU VMM).
Consider accesses to standard Linux host paravirtualized features (virtio-blk, virtio-net, etc.),
and handling of VM exits in the KVM code.
* VM Host Trigger in The Confidential Computing Context:
Determine if the bug can be triggered in a confidential computing guest kernel from the context of a KVM host.
Consider access to standard Linux guest paravirtualized features (virtio-blk, virtio-net, etc.).
* Ethernet Network Trigger:
Determine if the bug can be triggered by processing ingress network Ethernet traffic, either directly (network stack)
or via drivers exposed to network data.
* Other Remote Trigger:
Determine if the bug can be triggered by processing remote traffic other than Ethernet (Wifi, Bluetooth, NFC, etc).
* Peripheral Trigger:
Determine if the bug can be triggered via an untrusted peripheral device that can be physically plugged
into a system, such as a USB device or a niche hardware driver handling external hardware inputs.
This is particularly important for mobile and desktop environments where users can plug in unknown devices.
* Malicious Filesystem Trigger:
Determine if the bug can be triggered by the kernel mounting and parsing a malicious filesystem image.
This is highly critical for Desktop and Mobile environments where external media or downloaded images
might be auto-mounted.
Don't make assumptions about the kernel source code (it may be different from what you assume it is).
Extensively use the provided code access tools (codesearch-*, git-*, grepper, etc)
to examine the actual source code, and confirm any assumptions.
Prefer calling several tools at the same time to save round-trips.
Use set-results tool to provide results of the analysis.
It must be called exactly once before the final reply.
Ignore results of this tool.
Prompt:
The kernel bug report is:
BUG: workqueue lockup - pool cpus=0 node=0 flags=0x0 nice=0 stuck for 48s!
Showing busy workqueues and worker pools:
workqueue events: flags=0x100
pwq 2: cpus=0 node=0 flags=0x0 nice=0 active=14 refcnt=15
in-flight: 4378:reg_todo for 48s
pending: psi_avgs_work, vmstat_shepherd, 2*psi_avgs_work, 4*ovs_dp_masks_rebalance, 2*nsim_dev_hwstats_traffic_work, free_obj_work, psi_avgs_work, delayed_vfree_work
pwq 6: cpus=1 node=0 flags=0x0 nice=0 active=5 refcnt=6
pending: 4*nsim_dev_hwstats_traffic_work, psi_avgs_work
workqueue events_unbound: flags=0x2
pwq 8: cpus=0-1 flags=0x6 nice=0 active=9 refcnt=10
in-flight: 42:cfg80211_wiphy_work for 80s cfg80211_wiphy_work ,4962:cfg80211_wiphy_work for 82s cfg80211_wiphy_work ,40:cfg80211_wiphy_work for 67s cfg80211_wiphy_work ,63:cfg80211_wiphy_work for 89s cfg80211_wiphy_work
pending: macvlan_process_broadcast
pwq 8: cpus=0-1 flags=0x6 nice=0 active=15 refcnt=16
in-flight: 12:cfg80211_wiphy_work for 49s cfg80211_wiphy_work ,61:cfg80211_wiphy_work for 85s cfg80211_wiphy_work ,1106:cfg80211_wiphy_work for 37s
pending: nsim_dev_trap_report_work, toggle_allocation_gate, 2*nsim_dev_trap_report_work, flush_memcg_stats_dwork, 2*nsim_dev_trap_report_work, cfg80211_wiphy_work, nsim_dev_trap_report_work, cfg80211_wiphy_work
workqueue events_power_efficient: flags=0x82
pwq 8: cpus=0-1 flags=0x6 nice=0 active=1 refcnt=2
pending: crda_timeout_work
pwq 8: cpus=0-1 flags=0x6 nice=0 active=8 refcnt=9
in-flight: 13:neigh_periodic_work for 24s ,5993:reg_check_chans_work for 15s
pending: wg_ratelimiter_gc_entries, 2*neigh_managed_work, neigh_periodic_work, gc_worker, do_cache_clean
workqueue events_dfl_long: flags=0x2
pwq 8: cpus=0-1 flags=0x6 nice=0 active=6 refcnt=7
pending: 6*defense_work_handler
workqueue mm_percpu_wq: flags=0x108
pwq 2: cpus=0 node=0 flags=0x0 nice=0 active=1 refcnt=2
pending: vmstat_update
pwq 6: cpus=1 node=0 flags=0x0 nice=0 active=1 refcnt=2
pending: vmstat_update
workqueue writeback: flags=0x4a
pwq 8: cpus=0-1 flags=0x6 nice=0 active=1 refcnt=2
in-flight: 1183:wb_workfn for 87s
workqueue bat_events: flags=0x6000a
pwq 8: cpus=0-1 flags=0x6 nice=0 active=1 refcnt=43 MAYDAY
in-flight: 2852(RESCUER):batadv_tt_purge for 9s
pending: mayday_cursor_func
inactive: batadv_tt_purge, 2*batadv_dat_purge, 2*batadv_bla_periodic_work, batadv_dat_purge, batadv_bla_periodic_work, batadv_dat_purge, batadv_bla_periodic_work, batadv_iv_send_outstanding_bat_ogm_packet, 5*batadv_mcast_mla_update, 5*batadv_iv_send_outstanding_bat_ogm_packet, 5*batadv_purge_orig, 7*batadv_iv_send_outstanding_bat_ogm_packet, batadv_tt_purge, batadv_bla_periodic_work, batadv_dat_purge, 2*batadv_tt_purge
workqueue ext4-rsv-conversion: flags=0xa
pwq 8: cpus=0-1 flags=0x6 nice=0 active=1 refcnt=4 MAYDAY
in-flight: 4303(RESCUER):ext4_end_io_rsv_work for 8s
pending: mayday_cursor_func
workqueue wg-crypt-wg0: flags=0x128
pwq 2: cpus=0 node=0 flags=0x0 nice=0 active=4 refcnt=5
in-flight: 4801:wg_packet_tx_worker for 91s wg_packet_tx_worker
pending: wg_packet_encrypt_worker, wg_packet_decrypt_worker
workqueue wg-kex-wg1: flags=0x6
pwq 8: cpus=0-1 flags=0x6 nice=0 active=1 refcnt=2
pending: wg_packet_handshake_send_worker
workqueue wg-crypt-wg1: flags=0x128
pwq 2: cpus=0 node=0 flags=0x0 nice=0 active=3 refcnt=4
pending: wg_packet_encrypt_worker, wg_packet_tx_worker, wg_packet_decrypt_worker
workqueue wg-kex-wg0: flags=0x124
pwq 2: cpus=0 node=0 flags=0x0 nice=0 active=1 refcnt=2
pending: wg_packet_handshake_receive_worker
workqueue wg-kex-wg0: flags=0x6
pwq 8: cpus=0-1 flags=0x6 nice=0 active=1 refcnt=2
pending: wg_packet_handshake_send_worker
workqueue wg-crypt-wg0: flags=0x128
pwq 2: cpus=0 node=0 flags=0x0 nice=0 active=3 refcnt=4
pending: wg_packet_encrypt_worker, wg_packet_tx_worker, wg_packet_decrypt_worker
workqueue wg-kex-wg2: flags=0x124
pwq 2: cpus=0 node=0 flags=0x0 nice=0 active=1 refcnt=2
pending: wg_packet_handshake_receive_worker
workqueue wg-crypt-wg2: flags=0x128
pwq 2: cpus=0 node=0 flags=0x0 nice=0 active=3 refcnt=4
in-flight: 9:wg_packet_decrypt_worker for 83s
pending: wg_packet_encrypt_worker, wg_packet_tx_worker
workqueue wg-kex-wg1: flags=0x124
pwq 2: cpus=0 node=0 flags=0x0 nice=0 active=1 refcnt=2
pending: wg_packet_handshake_receive_worker
workqueue wg-kex-wg1: flags=0x6
pwq 8: cpus=0-1 flags=0x6 nice=0 active=1 refcnt=2
pending: wg_packet_handshake_send_worker
workqueue wg-crypt-wg1: flags=0x128
pwq 2: cpus=0 node=0 flags=0x0 nice=0 active=3 refcnt=4
pending: wg_packet_tx_worker, wg_packet_encrypt_worker, wg_packet_decrypt_worker
workqueue wg-kex-wg2: flags=0x124
pwq 2: cpus=0 node=0 flags=0x0 nice=0 active=1 refcnt=2
pending: wg_packet_handshake_receive_worker
workqueue wg-crypt-wg2: flags=0x128
pwq 2: cpus=0 node=0 flags=0x0 nice=0 active=2 refcnt=3
pending: wg_packet_encrypt_worker, wg_packet_tx_worker
workqueue wg-kex-wg0: flags=0x6
pwq 8: cpus=0-1 flags=0x6 nice=0 active=1 refcnt=2
pending: wg_packet_handshake_send_worker
workqueue wg-crypt-wg0: flags=0x128
pwq 2: cpus=0 node=0 flags=0x0 nice=0 active=2 refcnt=3
pending: wg_packet_encrypt_worker, wg_packet_tx_worker
workqueue wg-kex-wg1: flags=0x6
pwq 8: cpus=0-1 flags=0x6 nice=0 active=1 refcnt=2
pending: wg_packet_handshake_send_worker
workqueue wg-crypt-wg1: flags=0x128
pwq 2: cpus=0 node=0 flags=0x0 nice=0 active=2 refcnt=3
pending: wg_packet_encrypt_worker, wg_packet_tx_worker
workqueue wg-crypt-wg2: flags=0x128
pwq 2: cpus=0 node=0 flags=0x0 nice=0 active=2 refcnt=3
pending: wg_packet_encrypt_worker, wg_packet_tx_worker
workqueue wg-kex-wg0: flags=0x6
pwq 8: cpus=0-1 flags=0x6 nice=0 active=1 refcnt=2
pending: wg_packet_handshake_send_worker
workqueue wg-crypt-wg0: flags=0x128
pwq 2: cpus=0 node=0 flags=0x0 nice=0 active=3 refcnt=4
pending: wg_packet_encrypt_worker, wg_packet_tx_worker, wg_packet_decrypt_worker
workqueue wg-kex-wg1: flags=0x124
pwq 2: cpus=0 node=0 flags=0x0 nice=0 active=1 refcnt=2
pending: wg_packet_handshake_receive_worker
workqueue wg-crypt-wg1: flags=0x128
pwq 2: cpus=0 node=0 flags=0x0 nice=0 active=3 refcnt=4
pending: wg_packet_decrypt_worker, wg_packet_encrypt_worker, wg_packet_tx_worker
workqueue wg-kex-wg2: flags=0x124
pwq 2: cpus=0 node=0 flags=0x0 nice=0 active=1 refcnt=2
pending: wg_packet_handshake_receive_worker
workqueue wg-kex-wg2: flags=0x6
pwq 8: cpus=0-1 flags=0x6 nice=0 active=1 refcnt=2
pending: wg_packet_handshake_send_worker
workqueue wg-crypt-wg2: flags=0x128
pwq 2: cpus=0 node=0 flags=0x0 nice=0 active=2 refcnt=3
pending: wg_packet_encrypt_worker, wg_packet_tx_worker
workqueue wg-kex-wg0: flags=0x6
pwq 8: cpus=0-1 flags=0x6 nice=0 active=1 refcnt=2
pending: wg_packet_handshake_send_worker
workqueue wg-crypt-wg0: flags=0x128
pwq 2: cpus=0 node=0 flags=0x0 nice=0 active=3 refcnt=4
pending: wg_packet_tx_worker, wg_packet_decrypt_worker, wg_packet_encrypt_worker
workqueue wg-crypt-wg1: flags=0x128
pwq 2: cpus=0 node=0 flags=0x0 nice=0 active=3 refcnt=4
pending: wg_packet_tx_worker, wg_packet_decrypt_worker, wg_packet_encrypt_worker
workqueue wg-crypt-wg2: flags=0x128
pwq 2: cpus=0 node=0 flags=0x0 nice=0 active=2 refcnt=3
pending: wg_packet_tx_worker, wg_packet_encrypt_worker
pool 2: cpus=0 node=0 flags=0x0 nice=0 hung=48s workers=8 idle: 866 4818 4794 10 4793
pool 8: cpus=0-1 flags=0x6 nice=0 hung=8s workers=11 manager: 5994
Showing backtraces of busy workers in stalled worker pools:
pool 2:
task:kworker/0:3 state:R running task stack:0 pid:4378 tgid:4378 ppid:2 task_flags:0x4208060 flags:0x00000010
Workqueue: events reg_todo
Call trace:
__switch_to+0x2b4/0x6e4 arch/arm64/kernel/process.c:775 (T)
context_switch kernel/sched/core.c:5520 [inline]
__schedule+0x1370/0x2d80 kernel/sched/core.c:7270
preempt_schedule_common+0xd4/0x190 kernel/sched/core.c:7449
preempt_schedule+0x60/0x78 kernel/sched/core.c:7473
__local_bh_enable_ip+0x20c/0x35c kernel/softirq.c:480
__raw_spin_unlock_bh include/linux/spinlock_api_smp.h:237 [inline]
_raw_spin_unlock_bh+0x3c/0x4c kernel/locking/spinlock.c:245
spin_unlock_bh include/linux/spinlock.h:407 [inline]
reg_process_pending_beacon_hints net/wireless/reg.c:3146 [inline]
reg_todo+0x608/0x6a4 net/wireless/reg.c:3207
process_one_work kernel/workqueue.c:3387 [inline]
process_scheduled_works+0x91c/0x1250 kernel/workqueue.c:3470
worker_thread+0x798/0xbd0 kernel/workqueue.c:3551
kthread+0x304/0x3d4 kernel/kthread.c:436
ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:838
pool 2:
task:kworker/0:0 state:R running task stack:0 pid:9 tgid:9 ppid:2 task_flags:0x4208060 flags:0x00000010
Workqueue: wg-crypt-wg2 wg_packet_decrypt_worker
Call trace:
__switch_to+0x2b4/0x6e4 arch/arm64/kernel/process.c:775 (T)
context_switch kernel/sched/core.c:5520 [inline]
__schedule+0x1370/0x2d80 kernel/sched/core.c:7270
preempt_schedule_common+0xd4/0x190 kernel/sched/core.c:7449
preempt_schedule+0x60/0x78 kernel/sched/core.c:7473
__local_bh_enable_ip+0x20c/0x35c kernel/softirq.c:480
__raw_spin_unlock_bh include/linux/spinlock_api_smp.h:237 [inline]
_raw_spin_unlock_bh+0x3c/0x4c kernel/locking/spinlock.c:245
spin_unlock_bh include/linux/spinlock.h:407 [inline]
ptr_ring_consume_bh include/linux/ptr_ring.h:399 [inline]
wg_packet_decrypt_worker+0x254/0xa00 drivers/net/wireguard/receive.c:499
process_one_work kernel/workqueue.c:3387 [inline]
process_scheduled_works+0x91c/0x1250 kernel/workqueue.c:3470
worker_thread+0x798/0xbd0 kernel/workqueue.c:3551
kthread+0x304/0x3d4 kernel/kthread.c:436
ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:838
pool 2:
task:kworker/0:6 state:R running task stack:0 pid:4801 tgid:4801 ppid:2 task_flags:0x4208060 flags:0x00000010
Workqueue: wg-crypt-wg0 wg_packet_tx_worker
Call trace:
__switch_to+0x2b4/0x6e4 arch/arm64/kernel/process.c:775 (T)
context_switch kernel/sched/core.c:5520 [inline]
__schedule+0x1370/0x2d80 kernel/sched/core.c:7270
preempt_schedule_common+0xd4/0x190 kernel/sched/core.c:7449
preempt_schedule+0x60/0x78 kernel/sched/core.c:7473
__local_bh_enable_ip+0x20c/0x35c kernel/softirq.c:480
local_bh_enable include/linux/bottom_half.h:33 [inline]
rcu_read_unlock_bh include/linux/rcupdate.h:923 [inline]
mod_peer_timer+0x21c/0x25c drivers/net/wireguard/timers.c:38
wg_timers_any_authenticated_packet_traversal+0x98/0xc0 drivers/net/wireguard/timers.c:218
wg_packet_create_data_done drivers/net/wireguard/send.c:247 [inline]
wg_packet_tx_worker+0x130/0x75c drivers/net/wireguard/send.c:276
process_one_work kernel/workqueue.c:3387 [inline]
process_scheduled_works+0x91c/0x1250 kernel/workqueue.c:3470
worker_thread+0x798/0xbd0 kernel/workqueue.c:3551
kthread+0x304/0x3d4 kernel/kthread.c:436
ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:838
Reply: Based on the provided bug report and source code analysis, here is the assessment of the security impact:
**Analysis:**
The bug is a `workqueue lockup`, specifically indicating that worker pool 2 (bound to CPU 0) has been stuck for 48 seconds. The watchdog printed the backtraces of three busy workers in this pool: `reg_todo`, `wg_packet_decrypt_worker`, and `wg_packet_tx_worker`.
Looking at their backtraces, all three workers are in the `R` (Runnable) state and were preempted inside `__local_bh_enable_ip` -> `preempt_schedule`. This means these worker threads are not the ones hogging the CPU; rather, they were running, got preempted by the scheduler, and were never scheduled back. This implies that CPU 0 is completely hogged by another task that is either stuck in an infinite loop with preemption disabled, spinning infinitely on a spinlock (spinlock deadlock), or the CPU is suffering from an interrupt/softirq storm.
Looking at the other in-flight works, we see multiple `cfg80211_wiphy_work` items stuck for up to 89 seconds, as well as wireguard workers stuck for up to 91 seconds. This strongly points to a logical bug, routing loop, or spinlock deadlock within the `mac80211`/`cfg80211` or `wireguard` subsystems. For instance, if a task on another CPU holds a spinlock and gets stuck, and a task on CPU 0 tries to acquire the same spinlock, CPU 0 will spin indefinitely with preemption disabled, starving all CFS tasks (like the preempted worker threads).
**Exploitability:**
A CPU hog, infinite loop, or spinlock deadlock leads to a system hang but does not involve memory corruption (like use-after-free or out-of-bounds access) or wild pointer dereferences. Therefore, it is not exploitable for privilege escalation or arbitrary code execution.
**Denial of Service:**
Yes. The bug causes a CPU to lock up, eventually leading to a system-wide hang or panic (via the workqueue watchdog or RCU stall detector), which is a clear Denial of Service.
**Trigger Context:**
- **Unprivileged / User Namespace:** Configuring virtual network devices like `mac80211_hwsim`, `wireguard`, and `batman-adv` requires `CAP_NET_ADMIN`. While an unprivileged user cannot do this in the initial namespace, they can easily create a new user namespace, gain `CAP_NET_ADMIN` within it, and trigger the bug.
- **Network Trigger:** Yes. Wireguard and batman-adv are network protocols. The lockup could be triggered by processing specific ingress network packets (e.g., a packet flood causing a softirq storm, or a crafted setup causing an infinite routing loop between virtual interfaces).
- **VM Guest:** Yes, the bug is in the guest kernel's network stack and can be triggered from within a standard VM guest.
- **Filesystem / Peripheral:** No. The presence of `ext4_end_io_rsv_work` is likely collateral damage (it just happened to be queued when the workqueues locked up). The root cause is firmly in the networking subsystems.
|
| 6/2 |
2026/09/13 00:01 |
llm |
expert |
0m
Model:
Tokens:
input: 10919
output: 34
thoughts: 206
Thoughts: **Analyzing a Workqueue Lockup Bug**
Okay, here's what I'm seeing: A bug report popped up, and it's a nasty one - a workqueue lockup. The report specifically mentions several workers being stuck, and the details pinpoint the issue: "BUG: workqueue lockup - pool cpus=0 node=0 flags=0x0 nice=0 stuck for 48s!". I can see from the report that a few workers are the problem.
From the looks of it, a worker called `reg_todo` in `net/wireless/reg.c` is the first key suspect. Then, I see `wg_packet_decrypt_worker` in `drivers/net/wireguard/receive.c` and `wg_packet_tx_worker` in `drivers/net/wireguard/send.c` are also stuck.
So, let's start with `reg_todo` in `net/wireless/reg.c`. The stack trace shows `reg_todo` at line 3207, which seems to call `reg_process_pending_beacon_hints` from line 3146 (inline) in the same file. I think I'll dive into `net/wireless/reg.c` and see what's going on there.
|
| 7/2 |
2026/09/13 00:01 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:net/wireless/reg.c Name:reg_todo]
Results: map[SourceCode:3203: static void reg_todo(struct work_struct *work)
3204: {
3205: rtnl_lock();
3206: reg_process_pending_hints();
3207: reg_process_pending_beacon_hints();
3208: reg_process_self_managed_hints();
3209: rtnl_unlock();
3210: }
SourceFile:net/wireless/reg.c]
|
| 8/2 |
2026/09/13 00:01 |
llm |
expert |
0m
Model:
Tokens:
input: 11580
output: 40
thoughts: 15
Thoughts: Okay, here's my attempt at summarizing the thought process, as if I were considering the provided text, and assuming a high level of expertise:
**Checking `reg_process_pending_beacon_hints`**
Alright, time to dive into `reg_process_pending_beacon_hints`. My gut feeling is that this function handles some critical aspect of beacon processing, potentially related to the reconciliation or application of beacon hints within the registry. Given the name, "pending" hints likely means these are deferred actions. I need to understand what events trigger this function, what data structures it operates on, and what the overall impact of its execution is on the system. Is this part of the initial beacon processing pipeline, or something that runs on a timer? Is it responsible for resolving conflicts? Is it vulnerable to any race conditions or denial-of-service vectors? I need to look closely at its dependencies β what other functions or modules does it call, and what data does it read and write? The security implications are paramount here - any weakness could be exploited. Ultimately, I need to verify its correctness and reliability. Let's see how it's implemented and go from there.
|
| 9/2 |
2026/09/13 00:01 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:net/wireless/reg.c Name:reg_process_pending_beacon_hints]
Results: map[SourceCode:3125: /* Processes beacon hints -- this has nothing to do with country IEs */
3126: static void reg_process_pending_beacon_hints(void)
3127: {
3128: struct cfg80211_registered_device *rdev;
3129: struct reg_beacon *pending_beacon, *tmp;
3130:
3131: /* This goes through the _pending_ beacon list */
3132: spin_lock_bh(®_pending_beacons_lock);
3133:
3134: list_for_each_entry_safe(pending_beacon, tmp,
3135: ®_pending_beacons, list) {
3136: list_del_init(&pending_beacon->list);
3137:
3138: /* Applies the beacon hint to current wiphys */
3139: for_each_rdev(rdev)
3140: wiphy_update_new_beacon(&rdev->wiphy, pending_beacon);
3141:
3142: /* Remembers the beacon hint for new wiphys or reg changes */
3143: list_add_tail(&pending_beacon->list, ®_beacon_list);
3144: }
3145:
3146: spin_unlock_bh(®_pending_beacons_lock);
3147: }
SourceFile:net/wireless/reg.c]
|
| 10/2 |
2026/09/13 00:01 |
llm |
expert |
0m
Model:
Tokens:
input: 12282
output: 18
thoughts: 555
Thoughts: **Analyzing the Workqueue Lockup**
Okay, first things first, this "workqueue lockup" is likely a *symptom*, not the root cause. It's screaming that the CPU is either swamped or deadlocked. Now, I see that `reg_todo` *isn't* actually waiting for a lock, it's actively running. Good. Hang on, I see the `reg_process_pending_beacon_hints` function is at `spin_unlock_bh(®_pending_beacons_lock);`, so it's releasing the spinlock.
And I see `__local_bh_enable_ip` is called. Interesting. Then I check, and other workers are also active... `wg_packet_decrypt_worker` is at `ptr_ring_consume_bh`, and `wg_packet_tx_worker` is at `rcu_read_unlock_bh`.
Alright, a pattern is emerging. These workers, specifically `spin_unlock_bh` or `rcu_read_unlock_bh` or `ptr_ring_consume_bh`, all *ultimately* call `spin_unlock_bh`. And, hang on, that `spin_unlock_bh` leads to `__local_bh_enable_ip`, and that leads to `preempt_schedule`, and *that* leads to `__schedule`. So... it's just preemption? Are these workers being blocked by preemption?
But wait. 48 seconds? Why so long? Is there a softirq storm taking everything over? Or are they simply preempted and *not* scheduled back? Let's check the state. They're in state `R` - running task. That sounds like they *should* be running, right?
Looking at the pool data, `pool 2: cpus=0 node=0 flags=0x0 nice=0 hung=48s workers=8 idle: 866 4818 4794 10 4793`. Ah, the key is `cpus=0`. They're *bound* to CPU 0. If CPU 0 is busy, they won't get to run. So, what *is* CPU 0 doing? The report doesn't give me that information, it only shows the workqueue workers.
I see now, `wg_packet_tx_worker` is also on pool 2, (CPU 0), along with `wg_packet_decrypt_worker`. And, aha, `reg_todo` is also on pool 2, CPU 0!
Okay, so the reported bug is a "workqueue lockup". It looks like the issue is related to CPU 0 being overwhelmed, leading to the workqueue not getting CPU time. I need more information to be sure. Let's see if there is any existing information on this problem, perhaps, there is a known bug related to workqueue lockup with wireguard or cfg80211. Let me start searching for, "workqueue lockup - pool cpus=0 node=0 flags=0x0 nice=0 stuck for 48s!" in syzbot.
|
| 11/2 |
2026/09/13 00:01 |
tool |
grepper |
0m
Args: map[Expression:workqueue lockup]
Results: map[Output:kernel/workqueue.c=7927=static void wq_watchdog_timer_fn(struct timer_list *unused)
--
kernel/workqueue.c-7995- }
kernel/workqueue.c:7996: pr_emerg("BUG: workqueue lockup - pool");
kernel/workqueue.c-7997- pr_cont_pool_info(pool);
--
samples/workqueue/stall_detector/wq_stall.c-15- * After ~30s the workqueue watchdog fires:
samples/workqueue/stall_detector/wq_stall.c:16: * BUG: workqueue lockup - pool cpus=N ...
samples/workqueue/stall_detector/wq_stall.c-17- *
--
samples/workqueue/stall_detector/wq_stall.c=41=static void stall_work1_fn(struct work_struct *work)
--
samples/workqueue/stall_detector/wq_stall.c-63- pr_info("wq_stall: entering wait_event_idle (PF_WQ_WORKER cleared)\n");
samples/workqueue/stall_detector/wq_stall.c:64: pr_info("wq_stall: expect 'BUG: workqueue lockup' in ~30-60s\n");
samples/workqueue/stall_detector/wq_stall.c-65- wait_event_idle(stall_wq_head, atomic_read(&wake_condition) != 0);
]
|
| 12/2 |
2026/09/13 00:02 |
llm |
expert |
0m
Model:
Tokens:
input: 13920
output: 42
thoughts: 392
Thoughts: **Analyzing the Workqueue Watchdog Trigger**
Okay, so the workqueue watchdog has triggered β nothing unusual there. But *why*? Let's dive in. First, I need to see what's pending.
Alright, the output shows two workqueues (pwq 8). The first one has several in-flight `cfg80211_wiphy_work` tasks, running for quite a while. We're talking 80 seconds, 82 seconds, 67 seconds, 89 seconds. The second workqueue is also showing `cfg80211_wiphy_work` tasks, again with runtimes between 37 and 85 seconds. That's a strong indication that this is the culprit. Looks like these `cfg80211_wiphy_work` instances are stuck, or at least taking far too long.
|
| 13/2 |
2026/09/13 00:02 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:net/wireless/core.c Name:cfg80211_wiphy_work]
Results: map[SourceCode: 518: static void cfg80211_wiphy_work(struct work_struct *work)
519: {
520: struct cfg80211_registered_device *rdev;
521: struct wiphy_work *wk;
522:
523: rdev = container_of(work, struct cfg80211_registered_device, wiphy_work);
524:
525: trace_wiphy_work_worker_start(&rdev->wiphy);
526:
527: guard(wiphy)(&rdev->wiphy);
528: if (rdev->suspended)
529: return;
530:
531: spin_lock_irq(&rdev->wiphy_work_lock);
532: wk = list_first_entry_or_null(&rdev->wiphy_work_list,
533: struct wiphy_work, entry);
534: if (wk) {
535: list_del_init(&wk->entry);
536: if (!list_empty(&rdev->wiphy_work_list))
537: queue_work(system_dfl_wq, work);
538: spin_unlock_irq(&rdev->wiphy_work_lock);
539:
540: trace_wiphy_work_run(&rdev->wiphy, wk);
541: wk->func(&rdev->wiphy, wk);
542: } else {
543: spin_unlock_irq(&rdev->wiphy_work_lock);
544: }
545: }
SourceFile:net/wireless/core.c]
|
| 14/2 |
2026/09/13 00:02 |
llm |
expert |
0m
Model:
Tokens:
input: 15040
output: 39
thoughts: 779
Thoughts: **Analyzing a Potentially Deadlocked Worker Pool**
Okay, let me break this down. First, I see `cfg80211_wiphy_work` is guarded by the `wiphy` lock. If someone holds that lock for a prolonged period, `cfg80211_wiphy_work` is going to get blocked, potentially indefinitely. I note that this worker process is in flight for nearly 90 seconds.
However, the backtraces I'm seeing don't actually show `cfg80211_wiphy_work` directly. Instead, I see things like `reg_todo`, `wg_packet_decrypt_worker`, and `wg_packet_tx_worker`. Hmm, curious. Then I see that `cfg80211_wiphy_work` is in pool 8, which is apparently hung, and pool 2 is also hung. The watchdog should have already triggered based on the 30s threshold, but that's not what I'm seeing.
Okay, pool 2 is hung for 48 seconds, and it contains those workers I mentioned. They're all in the 'R' state β running tasks β and their stack traces show they're preempted inside `__local_bh_enable_ip`. `__local_bh_enable_ip` calls `preempt_schedule_common`, which in turn calls `__schedule`. So, they *should* be runnable, but they aren't getting scheduled.
This suggests that CPU 0 might be stuck in an infinite loop, or perhaps in an interrupt handler, with preemption disabled. If it's an interrupt handler, then the watchdog timer, which runs in a timer interrupt, might not be able to run on CPU 0. But if it's running on CPU 1, it *could* detect that pool 2 (which is bound to CPU 0) is stalled. If it's preemption disabled but interrupts enabled, the timer should be able to fire on CPU 0.
The key is that the backtraces I'm seeing are for the *busy workers in stalled pools* β they don't show me what is currently running on CPU 0, which is what's really important.
The fact that `wg_packet_tx_worker` is *preempted* is telling. That means it was running and then *something else* interrupted it. What could be running on CPU 0 for almost a minute? Could it be a softirq storm? If there *were* a storm, I'd expect to see `ksoftirqd/0` running, or softirqs being processed on interrupt returns.
Wait a second, `wg_packet_tx_worker` is a kworker! That runs in process context. If there was a softirq storm, `ksoftirqd` would be the one processing them, as a thread. Also, `wg_packet_tx_worker` is getting preempted in `__local_bh_enable_ip`. When that function enables bottom halves, and if there are *pending* softirqs, it's going to process them! It's likely that `__local_bh_enable_ip` is actually calling `do_softirq`! I need to double-check `__local_bh_enable_ip`. That's where the bottleneck may lie.
|
| 15/2 |
2026/09/13 00:02 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:kernel/softirq.c Name:__local_bh_enable_ip]
Results: map[SourceCode: 450: void __local_bh_enable_ip(unsigned long ip, unsigned int cnt)
451: {
452: WARN_ON_ONCE(in_hardirq());
453: lockdep_assert_irqs_enabled();
454: #ifdef CONFIG_TRACE_IRQFLAGS
455: local_irq_disable();
456: #endif
457: /*
458: * Are softirqs going to be turned on now:
459: */
460: if (softirq_count() == SOFTIRQ_DISABLE_OFFSET)
461: lockdep_softirqs_on(ip);
462: /*
463: * Keep preemption disabled until we are done with
464: * softirq processing:
465: */
466: __preempt_count_sub(cnt - 1);
467:
468: if (unlikely(!in_interrupt() && local_softirq_pending())) {
469: /*
470: * Run softirq if any pending. And do it in its own stack
471: * as we may be calling this deep in a task call stack already.
472: */
473: do_softirq();
474: }
475:
476: preempt_count_dec();
477: #ifdef CONFIG_TRACE_IRQFLAGS
478: local_irq_enable();
479: #endif
480: preempt_check_resched();
481: }
SourceFile:kernel/softirq.c]
|
| 16/2 |
2026/09/13 00:02 |
llm |
expert |
0m
Model:
Tokens:
input: 17062
output: 42
thoughts: 1214
Thoughts: **Analyzing a Workqueue Lockup**
Okay, let's break this down. `preempt_check_resched()` is being called, which means we've just finished softirq processing (if any) and are about to check if we need to reschedule. And we *are* rescheduling, right into `preempt_schedule()`, and ultimately `context_switch()`. That means a worker thread is being switched out, likely because something higher priority wants the CPU, or its timeslice is up. But it isn't getting rescheduled back for a whopping 48 seconds! Why? CPU 0 is pinned at 100%.
The workqueue watchdog tells the story: Pool 2 has 8 workers; 5 idle, and 3 busy. The busy ones are `reg_todo`, `wg_packet_decrypt_worker`, and `wg_packet_tx_worker`. Crucially, *all three* are in the 'R' state, preempted in `__local_bh_enable_ip`. This is the crux. How can they all be preempted at the *same* point? It has to be after they do some work, call `spin_unlock_bh`, and *then* get yanked.
A softirq storm can't be the culprit. `do_softirq()` runs *before* `preempt_check_resched()`. They are in `preempt_schedule()` which means *another task* is preempting them. Is it a real-time task? Maybe a hogging normal task? If it was a normal task, the scheduler would eventually switch back to the worker threads. A task in an infinite loop *with preemption disabled* wouldn't preempt them. With preemption *enabled* the timer would interrupt it.
So, the likely scenario is a task that runs *before* the work threads get locked out. Imagine this: Task A preempts the worker thread. Task A then enters an infinite loop with preemption disabled (or interrupts disabled). The worker thread is never scheduled back.
The workqueue watchdog *doesn't* print the stuck task unless it's a worker thread. But if another worker was running, it *would* be printed if it was stalled. No other work threads from Pool 2 are running. So it's something else. Could it be a worker thread from a *different* pool? Let's check pool 8.
Pool 8 is hung for 8 seconds. This looks truncated. I don't have the full report, only the provided snippet. The stack ends at `ret_from_fork`.
Since CPU 0 is stuck, this is likely a known workqueue issue. The next step is to search for a similar occurrence. Something along the lines of "workqueue lockup - pool cpus=0 node=0 flags=0x0 nice=0 stuck for 48s!"
|
| 17/2 |
2026/09/13 00:02 |
tool |
grepper |
0m
Error:
Args: map[Expression:workqueue lockup - pool cpus=0 node=0 flags=0x0 nice=0 stuck for 48s!]
Results:
|
| 18/2 |
2026/09/13 00:02 |
llm |
expert |
0m
Model:
Tokens:
input: 18950
output: 42
thoughts: 523
Thoughts: **Initial Investigation into Potential Workqueue Bottleneck**
Okay, let's start by looking for "wg_packet_tx_worker", "wg_packet_decrypt_worker", and "reg_todo". Just trying to get a lay of the land here. Hmm, looks like these are just random workqueue items that happened to be running on CPU 0. Wireguard and cfg80211 seem to be involved, so let's keep those in mind. I need to figure out if there's an infinite loop happening somewhere within Wireguard, cfg80211, or even mac80211, considering the interplay.
Now, let's dive deeper and examine the pending workqueues. *I* see:
```
workqueue events: flags=0x100
pwq 2: cpus=0 node=0 flags=0x0 nice=0 active=14 refcnt=15
in-flight: 4378:reg_todo for 48s
pending: psi_avgs_work, vmstat_shepherd, 2*psi_avgs_work, 4*ovs_dp_masks_rebalance, 2*nsim_dev_hwstats_traffic_work, free_obj_work, psi_avgs_work, delayed_vfree_work
```
```
workqueue events_unbound: flags=0x2
pwq 8: cpus=0-1 flags=0x6 nice=0 active=9 refcnt=10
in-flight: 42:cfg80211_wiphy_work for 80s cfg80211_wiphy_work ,4962:cfg80211_wiphy_work for 82s cfg80211_wiphy_work ,40:cfg80211_wiphy_work for 67s cfg80211_wiphy_work ,63:cfg80211_wiphy_work for 89s cfg80211_wiphy_work
pending: macvlan_process_broadcast
```
Hang on a second⦠`cfg80211_wiphy_work` has been in-flight for *89 seconds*! That's a significant amount of time. Clearly, `cfg80211_wiphy_work` started nearly a minute and a half ago and hasn't finished, which is a major red flag. This demands immediate attention. Why in the world would `cfg80211_wiphy_work` be blocked for such an extended period? I need to go back and take a closer look at `cfg80211_wiphy_work` and see what's happening.
|
| 19/2 |
2026/09/13 00:02 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:net/wireless/core.c Name:cfg80211_wiphy_work]
Results: map[SourceCode: 518: static void cfg80211_wiphy_work(struct work_struct *work)
519: {
520: struct cfg80211_registered_device *rdev;
521: struct wiphy_work *wk;
522:
523: rdev = container_of(work, struct cfg80211_registered_device, wiphy_work);
524:
525: trace_wiphy_work_worker_start(&rdev->wiphy);
526:
527: guard(wiphy)(&rdev->wiphy);
528: if (rdev->suspended)
529: return;
530:
531: spin_lock_irq(&rdev->wiphy_work_lock);
532: wk = list_first_entry_or_null(&rdev->wiphy_work_list,
533: struct wiphy_work, entry);
534: if (wk) {
535: list_del_init(&wk->entry);
536: if (!list_empty(&rdev->wiphy_work_list))
537: queue_work(system_dfl_wq, work);
538: spin_unlock_irq(&rdev->wiphy_work_lock);
539:
540: trace_wiphy_work_run(&rdev->wiphy, wk);
541: wk->func(&rdev->wiphy, wk);
542: } else {
543: spin_unlock_irq(&rdev->wiphy_work_lock);
544: }
545: }
SourceFile:net/wireless/core.c]
|
| 20/2 |
2026/09/13 00:02 |
llm |
expert |
0m
Model:
Tokens:
input: 20633
output: 22
thoughts: 114
Thoughts: **Investigating a Potential Deadlock in cfg80211_wiphy_work**
Okay, so `cfg80211_wiphy_work` is locked up, and it's been running for a suspiciously long 89 seconds. The first thing that jumps out at me is that this function takes the `wiphy` lock. The code explicitly calls `guard(wiphy)(&rdev->wiphy)`. If it's *stuck* for this long, a deadlock on that `wiphy` lock is a very real possibility. We're talking about a significant wait time, and that's not normal.
But, a deadlock isn't the only possible explanation. The `wk->func` could be the culprit β a function within `cfg80211_wiphy_work` itself. Perhaps it's stuck in an infinite loop? That would also explain the prolonged execution time.
To get to the bottom of this, I need to understand what `wk->func` can *be*. What functions are actually being scheduled and run by this worker? My next step is to track down all references to either `wiphy_work_list` or `wiphy_work` itself. I need to see exactly which functions are getting queued onto this worker queue to determine the root cause of the hang. This information should illuminate whether there's a problem within one of those functions or if the lock is indeed the source of contention.
|
| 21/2 |
2026/09/13 00:02 |
tool |
codesearch-find-references |
0m
Args:
Results: map[References:[map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__cfg80211_scan_done SourceFile:net/wireless/scan.c SourceLine:1188] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__do_trace_wiphy_delayed_work_queue SourceFile:net/wireless/trace.h SourceLine:296] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__do_trace_wiphy_hrtimer_work_queue SourceFile:net/wireless/trace.h SourceLine:317] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__do_trace_wiphy_work_cancel SourceFile:net/wireless/trace.h SourceLine:286] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__do_trace_wiphy_work_flush SourceFile:net/wireless/trace.h SourceLine:291] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__do_trace_wiphy_work_queue SourceFile:net/wireless/trace.h SourceLine:276] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__do_trace_wiphy_work_run SourceFile:net/wireless/trace.h SourceLine:281] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__probestub_wiphy_delayed_work_queue SourceFile:net/wireless/trace.h SourceLine:296] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__probestub_wiphy_hrtimer_work_queue SourceFile:net/wireless/trace.h SourceLine:317] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__probestub_wiphy_work_cancel SourceFile:net/wireless/trace.h SourceLine:286] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__probestub_wiphy_work_flush SourceFile:net/wireless/trace.h SourceLine:291] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__probestub_wiphy_work_queue SourceFile:net/wireless/trace.h SourceLine:276] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__probestub_wiphy_work_run SourceFile:net/wireless/trace.h SourceLine:281] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__traceiter_wiphy_delayed_work_queue SourceFile:net/wireless/trace.h SourceLine:296] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__traceiter_wiphy_delayed_work_queue SourceFile:net/wireless/trace.h SourceLine:296] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__traceiter_wiphy_hrtimer_work_queue SourceFile:net/wireless/trace.h SourceLine:317] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__traceiter_wiphy_hrtimer_work_queue SourceFile:net/wireless/trace.h SourceLine:317] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__traceiter_wiphy_work_cancel SourceFile:net/wireless/trace.h SourceLine:286] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__traceiter_wiphy_work_cancel SourceFile:net/wireless/trace.h SourceLine:286] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__traceiter_wiphy_work_flush SourceFile:net/wireless/trace.h SourceLine:291] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__traceiter_wiphy_work_flush SourceFile:net/wireless/trace.h SourceLine:291] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__traceiter_wiphy_work_queue SourceFile:net/wireless/trace.h SourceLine:276] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__traceiter_wiphy_work_queue SourceFile:net/wireless/trace.h SourceLine:276] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__traceiter_wiphy_work_run SourceFile:net/wireless/trace.h SourceLine:281] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__traceiter_wiphy_work_run SourceFile:net/wireless/trace.h SourceLine:281] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:cfg80211_autodisconnect_wk SourceFile:net/wireless/sme.c SourceLine:1581] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:cfg80211_cqm_rssi_notify_work SourceFile:net/wireless/nl80211.c SourceLine:22265] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:cfg80211_pmsr_free_wk SourceFile:net/wireless/pmsr.c SourceLine:847] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:cfg80211_process_wiphy_works SourceFile:net/wireless/core.c SourceLine:1260] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:cfg80211_process_wiphy_works SourceFile:net/wireless/core.c SourceLine:1269] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:cfg80211_process_wiphy_works SourceFile:net/wireless/core.c SourceLine:1271] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:cfg80211_process_wiphy_works SourceFile:net/wireless/core.c SourceLine:1271] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:cfg80211_process_wiphy_works SourceFile:net/wireless/core.c SourceLine:1271] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:cfg80211_sched_scan_stop_wk SourceFile:net/wireless/core.c SourceLine:472] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:cfg80211_wiphy_work SourceFile:net/wireless/core.c SourceLine:521] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:cfg80211_wiphy_work SourceFile:net/wireless/core.c SourceLine:532] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:cfg80211_wiphy_work SourceFile:net/wireless/core.c SourceLine:532] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:cfg80211_wiphy_work SourceFile:net/wireless/core.c SourceLine:532] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:check_trace_callback_type_wiphy_delayed_work_queue SourceFile:net/wireless/trace.h SourceLine:296] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:check_trace_callback_type_wiphy_hrtimer_work_queue SourceFile:net/wireless/trace.h SourceLine:317] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:check_trace_callback_type_wiphy_work_cancel SourceFile:net/wireless/trace.h SourceLine:286] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:check_trace_callback_type_wiphy_work_flush SourceFile:net/wireless/trace.h SourceLine:291] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:check_trace_callback_type_wiphy_work_queue SourceFile:net/wireless/trace.h SourceLine:276] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:check_trace_callback_type_wiphy_work_run SourceFile:net/wireless/trace.h SourceLine:281] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:do_perf_trace_wiphy_delayed_work_queue SourceFile:net/wireless/trace.h SourceLine:296] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:do_perf_trace_wiphy_hrtimer_work_queue SourceFile:net/wireless/trace.h SourceLine:317] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:do_perf_trace_wiphy_work_event SourceFile:net/wireless/trace.h SourceLine:259] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:do_trace_event_raw_event_wiphy_delayed_work_queue SourceFile:net/wireless/trace.h SourceLine:296] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:do_trace_event_raw_event_wiphy_hrtimer_work_queue SourceFile:net/wireless/trace.h SourceLine:317] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:do_trace_event_raw_event_wiphy_work_event SourceFile:net/wireless/trace.h SourceLine:259] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:ieee80211_activate_links_work SourceFile:net/mac80211/iface.c SourceLine:1861] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:ieee80211_ba_session_work SourceFile:net/mac80211/ht.c SourceLine:323] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:ieee80211_beacon_connection_loss_work SourceFile:net/mac80211/mlme.c SourceLine:5179] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:ieee80211_color_change_finalize_work SourceFile:net/mac80211/cfg.c SourceLine:5621] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:ieee80211_color_collision_detection_work SourceFile:net/mac80211/cfg.c SourceLine:5643] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:ieee80211_csa_connection_drop_work SourceFile:net/mac80211/ibss.c SourceLine:706] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:ieee80211_csa_connection_drop_work SourceFile:net/mac80211/mlme.c SourceLine:5205] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:ieee80211_csa_finalize_work SourceFile:net/mac80211/cfg.c SourceLine:4544] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:ieee80211_csa_switch_work SourceFile:net/mac80211/mlme.c SourceLine:2875] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:ieee80211_delayed_tailroom_dec SourceFile:net/mac80211/key.c SourceLine:1218] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:ieee80211_dfs_cac_timer_work SourceFile:net/mac80211/mlme.c SourceLine:3978] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:ieee80211_dfs_radar_detected_work SourceFile:net/mac80211/util.c SourceLine:3721] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:ieee80211_dynamic_ps_disable_work SourceFile:net/mac80211/mlme.c SourceLine:3883] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:ieee80211_dynamic_ps_enable_work SourceFile:net/mac80211/mlme.c SourceLine:3901] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:ieee80211_hw_roc_done SourceFile:net/mac80211/offchannel.c SourceLine:496] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:ieee80211_hw_roc_start SourceFile:net/mac80211/offchannel.c SourceLine:261] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:ieee80211_iface_work SourceFile:net/mac80211/iface.c SourceLine:1800] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:ieee80211_ml_reconf_work SourceFile:net/mac80211/mlme.c SourceLine:7626] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:ieee80211_ml_sta_reconf_timeout SourceFile:net/mac80211/mlme.c SourceLine:9479] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:ieee80211_neg_ttlm_timeout_work SourceFile:net/mac80211/mlme.c SourceLine:8506] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:ieee80211_recalc_smps_work SourceFile:net/mac80211/mlme.c SourceLine:9539] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:ieee80211_reconfig_filter SourceFile:net/mac80211/main.c SourceLine:88] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:ieee80211_request_smps_mgd_work SourceFile:net/mac80211/mlme.c SourceLine:9468] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:ieee80211_roc_work SourceFile:net/mac80211/offchannel.c SourceLine:486] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:ieee80211_scan_work SourceFile:net/mac80211/scan.c SourceLine:1095] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:ieee80211_sched_scan_stopped_work SourceFile:net/mac80211/scan.c SourceLine:1457] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:ieee80211_sta_handle_tspec_ac_params_wk SourceFile:net/mac80211/mlme.c SourceLine:4085] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:ieee80211_sta_monitor_work SourceFile:net/mac80211/mlme.c SourceLine:9356] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:ieee80211_tdls_peer_del_work SourceFile:net/mac80211/tdls.c SourceLine:24] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:ieee80211_teardown_ttlm_work SourceFile:net/mac80211/mlme.c SourceLine:8868] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:ieee80211_tid_to_link_map_work SourceFile:net/mac80211/mlme.c SourceLine:7834] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:ieee80211_uhr_omp_req_status_wk SourceFile:net/mac80211/mlme.c SourceLine:5145] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:perf_trace_wiphy_delayed_work_queue SourceFile:net/wireless/trace.h SourceLine:296] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:perf_trace_wiphy_hrtimer_work_queue SourceFile:net/wireless/trace.h SourceLine:317] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:perf_trace_wiphy_work_event SourceFile:net/wireless/trace.h SourceLine:259] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:register_trace_prio_wiphy_delayed_work_queue SourceFile:net/wireless/trace.h SourceLine:296] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:register_trace_prio_wiphy_hrtimer_work_queue SourceFile:net/wireless/trace.h SourceLine:317] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:register_trace_prio_wiphy_work_cancel SourceFile:net/wireless/trace.h SourceLine:286] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:register_trace_prio_wiphy_work_flush SourceFile:net/wireless/trace.h SourceLine:291] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:register_trace_prio_wiphy_work_queue SourceFile:net/wireless/trace.h SourceLine:276] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:register_trace_prio_wiphy_work_run SourceFile:net/wireless/trace.h SourceLine:281] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:register_trace_wiphy_delayed_work_queue SourceFile:net/wireless/trace.h SourceLine:296] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:register_trace_wiphy_hrtimer_work_queue SourceFile:net/wireless/trace.h SourceLine:317] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:register_trace_wiphy_work_cancel SourceFile:net/wireless/trace.h SourceLine:286] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:register_trace_wiphy_work_flush SourceFile:net/wireless/trace.h SourceLine:291] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:register_trace_wiphy_work_queue SourceFile:net/wireless/trace.h SourceLine:276] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:register_trace_wiphy_work_run SourceFile:net/wireless/trace.h SourceLine:281] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:trace_call__wiphy_delayed_work_queue SourceFile:net/wireless/trace.h SourceLine:296] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:trace_call__wiphy_hrtimer_work_queue SourceFile:net/wireless/trace.h SourceLine:317] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:trace_call__wiphy_work_cancel SourceFile:net/wireless/trace.h SourceLine:286] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:trace_call__wiphy_work_flush SourceFile:net/wireless/trace.h SourceLine:291] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:trace_call__wiphy_work_queue SourceFile:net/wireless/trace.h SourceLine:276] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:trace_call__wiphy_work_run SourceFile:net/wireless/trace.h SourceLine:281] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:trace_event_get_offsets_wiphy_delayed_work_queue SourceFile:net/wireless/trace.h SourceLine:296] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:trace_event_get_offsets_wiphy_hrtimer_work_queue SourceFile:net/wireless/trace.h SourceLine:317] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:trace_event_get_offsets_wiphy_work_event SourceFile:net/wireless/trace.h SourceLine:259] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:trace_event_raw_event_wiphy_delayed_work_queue SourceFile:net/wireless/trace.h SourceLine:296] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:trace_event_raw_event_wiphy_hrtimer_work_queue SourceFile:net/wireless/trace.h SourceLine:317] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:trace_event_raw_event_wiphy_work_event SourceFile:net/wireless/trace.h SourceLine:259] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:trace_wiphy_delayed_work_queue SourceFile:net/wireless/trace.h SourceLine:296] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:trace_wiphy_hrtimer_work_queue SourceFile:net/wireless/trace.h SourceLine:317] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:trace_wiphy_work_cancel SourceFile:net/wireless/trace.h SourceLine:286] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:trace_wiphy_work_flush SourceFile:net/wireless/trace.h SourceLine:291] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:trace_wiphy_work_queue SourceFile:net/wireless/trace.h SourceLine:276] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:trace_wiphy_work_run SourceFile:net/wireless/trace.h SourceLine:281] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:unregister_trace_wiphy_delayed_work_queue SourceFile:net/wireless/trace.h SourceLine:296] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:unregister_trace_wiphy_hrtimer_work_queue SourceFile:net/wireless/trace.h SourceLine:317] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:unregister_trace_wiphy_work_cancel SourceFile:net/wireless/trace.h SourceLine:286] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:unregister_trace_wiphy_work_flush SourceFile:net/wireless/trace.h SourceLine:291] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:unregister_trace_wiphy_work_queue SourceFile:net/wireless/trace.h SourceLine:276] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:unregister_trace_wiphy_work_run SourceFile:net/wireless/trace.h SourceLine:281] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:wiphy_locked_debugfs_read_work SourceFile:net/wireless/debugfs.c SourceLine:164] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:wiphy_locked_debugfs_write_work SourceFile:net/wireless/debugfs.c SourceLine:244] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:wiphy_work_cancel SourceFile:net/wireless/core.c SourceLine:1896] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:wiphy_work_flush SourceFile:net/wireless/core.c SourceLine:1912] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:wiphy_work_init SourceFile:include/net/cfg80211.h SourceLine:6917] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:wiphy_work_queue SourceFile:net/wireless/core.c SourceLine:1880] map[ReferenceKind:uses ReferencingEntityKind:typedef ReferencingEntityName:wiphy_work_func_t SourceFile:include/net/cfg80211.h SourceLine:6910]] TruncatedOutput:false]
|
| 22/2 |
2026/09/13 00:02 |
llm |
expert |
0m
Model:
Tokens:
input: 28587
output: 41
thoughts: 2587
Thoughts: **Unraveling the CPU Hog**
Okay, let's break this down. We have a situation where `cfg80211_wiphy_work` is showing long in-flight times, and a watchdog is flagging pool 8 as potentially hung, albeit with a short "hung" time of 8 seconds while another pool, pool 2, has a much longer stall time. The key seems to be a discrepancy in how the watchdog reports the "hung" state when multiple workers are involved, especially when different CPUs are involved. I'm seeing that CPU 0 has apparently been stuck for much longer, 48s, yet the watchdog doesn't show backtraces for it because its corresponding pool, pool 8, is not hung for a sufficient duration.
My initial thought was that a worker thread could be deadlocked on the `wiphy` lock, but the watchdog information suggests that might not be the whole story. I've got multiple `cfg80211_wiphy_work` instances in flight, so those tasks are running concurrently for various `wiphy` instances, or the same instance but are blocked. The problem is that, if there are multiple workers in the same pool, then one worker could be keeping a CPU busy and another worker could be blocked by the `wiphy` lock. If the worker is sleeping, the CPU would be idle and it wouldn't be the cause of the problem, so something else must be running.
The fact that the workers in pool 2, those that are preempted, haven't been running for 48 seconds implies that CPU 0 is occupied with something else that isn't sleeping, that is higher priority, or a task that is looping with preemption disabled. That's the real conundrum.
I'm thinking, could it be a softirq storm? No, the system limits that. So that leaves either a high-priority task with preemption disabled, or a task in a kernel-space infinite loop, also with preemption disabled. A good candidate for a kernel-space loop is the `wb_workfn` for 87s, as well as several `cfg80211_wiphy_work` functions, which are in flight for upwards of 89s, a few different times.
I considered a few other contenders like `batadv_tt_purge`, or `ext4_end_io_rsv_work`, but the watchdog only shows in-flight workers. The code reveals a task that seems a possibility, `wg_packet_tx_worker`, but that backtrace shows that the task is preempted.
So, it's very likely one of the workers is spinning. I'm focusing on the `cfg80211_wiphy_work` instances, because I see multiple instances and the stack traces I'm getting should hopefully guide my next steps to confirm what's blocking everything else and prevent the system from getting stuck. It could be due to a bug in a known function call when dealing with the workqueue.
|
| 23/2 |
2026/09/13 00:03 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:drivers/net/wireguard/send.c Name:wg_packet_tx_worker]
Results: map[SourceCode: 262: void wg_packet_tx_worker(struct work_struct *work)
263: {
264: struct wg_peer *peer = container_of(work, struct wg_peer, transmit_packet_work);
265: struct noise_keypair *keypair;
266: enum packet_state state;
267: struct sk_buff *first;
268:
269: while ((first = wg_prev_queue_peek(&peer->tx_queue)) != NULL &&
270: (state = atomic_read_acquire(&PACKET_CB(first)->state)) !=
271: PACKET_STATE_UNCRYPTED) {
272: wg_prev_queue_drop_peeked(&peer->tx_queue);
273: keypair = PACKET_CB(first)->keypair;
274:
275: if (likely(state == PACKET_STATE_CRYPTED))
276: wg_packet_create_data_done(peer, first);
277: else
278: kfree_skb_list(first);
279:
280: wg_noise_keypair_put(keypair, false);
281: wg_peer_put(peer);
282: if (need_resched())
283: cond_resched();
284: }
285: }
SourceFile:drivers/net/wireguard/send.c]
|
| 24/2 |
2026/09/13 00:03 |
llm |
expert |
0m
Model:
Tokens:
input: 32284
output: 41
thoughts: 1119
Thoughts: **Analyzing a WireGuard Preemption Issue**
Okay, so I'm looking at this `wg_packet_tx_worker` function and it's got this `while` loop, which makes sense for processing the transmit queue. The interesting part is the `need_resched()` check and the subsequent `cond_resched()` call. I immediately recognize this as a potential point of preemption. My initial thought is that `cond_resched()` will call `__schedule()` which can preempt the task, putting the task's state to 'R' (running), and it is inside `__schedule()`. But the backtrace I have indicates something odd. It appears to be preempted *inside* `wg_packet_create_data_done`, specifically in `rcu_read_unlock_bh` -> `local_bh_enable` -> `__local_bh_enable_ip` -> `preempt_schedule`. This is unusual.
This tells me the preemption occurred because `need_resched()` was true *at the moment* `local_bh_enable` was called within `wg_packet_create_data_done`. And the real kicker is that it *hasn't* been scheduled back in ages, like, 91 seconds! That's a huge problem.
My expert instincts scream "CPU Hog!" There's got to be another task on CPU 0 that's completely monopolizing the resource, preventing `wg_packet_tx_worker` from getting back in. What task is it? My immediate suspect is `wg_packet_decrypt_worker`. It's a key function in WireGuard and handles receive operations, so it could easily be the culprit. Let me examine its backtrace.
Okay, let's see. This backtrace shows a familiar pattern, `preempt_schedule` being called, likely because it is doing a lot of work. The specific line in `drivers/net/wireguard/receive.c:499` should give me some insight and help me work out if the unlock is the issue.
|
| 25/2 |
2026/09/13 00:03 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:drivers/net/wireguard/receive.c Name:wg_packet_decrypt_worker]
Results: map[SourceCode: 493: void wg_packet_decrypt_worker(struct work_struct *work)
494: {
495: struct crypt_queue *queue = container_of(work, struct multicore_worker,
496: work)->ptr;
497: struct sk_buff *skb;
498:
499: while ((skb = ptr_ring_consume_bh(&queue->ring)) != NULL) {
500: enum packet_state state =
501: likely(decrypt_packet(skb, PACKET_CB(skb)->keypair)) ?
502: PACKET_STATE_CRYPTED : PACKET_STATE_DEAD;
503: wg_queue_enqueue_per_peer_rx(skb, state);
504: if (need_resched())
505: cond_resched();
506: }
507: }
SourceFile:drivers/net/wireguard/receive.c]
|
| 26/2 |
2026/09/13 00:03 |
llm |
expert |
0m
Model:
Tokens:
input: 34170
output: 42
thoughts: 2378
Thoughts: **Analyzing a Workqueue Lockup: A Deep Dive**
Okay, so I'm looking at this issue. It seems like we have a workqueue lockup, specifically a "BUG: workqueue lockup" involving pool 8, and the CPU is clearly busy with *something*. The first thing that jumps out is that several workers were preempted, specifically related to `reg_todo` and the `cfg80211_wiphy_work`. This means *they* aren't the CPU hogs, but something else is blocking them and keeping the CPU busy. They were getting preempted by a scheduler because `need_resched()` was true.
I see several `cfg80211_wiphy_work` entries for *significant* durations, some for nearly 90 seconds. The recurring theme is the `cfg80211_wiphy_work` function, pointing toward a possible contention on the `wiphy` lock. Seven of them stuck at the same time is extremely suspicious. These work items seem to be waiting on a lock held by someone else.
Then there's the `reg_todo` worker, which is particularly interesting. It was preempted, meaning it *was* running. And this matters because it's a critical section. It holds the `rtnl_lock()`. Anything needing that lock will be blocked. So, if something else *was* trying to grab `rtnl_lock()`, it *would* be blocked. But it's *not* the CPU hog, because it's preempted. So the CPU hog is something not waiting on the RTNL lock.
The initial thought was the softirq storm. But this is where it gets interesting, with these wireguard workers. I am seeing two wireguard workers, in flight for 91s and 83s, plus some long `cfg80211_wiphy_work` also in flight.
This also seems like something other than an interrupt storm. Those generally result in hard lockups.
It is something keeping the CPU busy that doesn't need `rtnl_lock()`, and is allowing these things to get preempted, but not run.
At this point, I think this issue is known, so I will perform a syzbot search for the exact "BUG: workqueue lockup" message to see if anyone else has run into this!
|
| 27/2 |
2026/09/13 00:03 |
tool |
grepper |
0m
Error:
Args: map[Expression:workqueue lockup - pool cpus=0 node=0 flags=0x0 nice=0 stuck for 48s!]
Results:
|
| 28/2 |
2026/09/13 00:03 |
llm |
expert |
0m
Model:
Tokens:
input: 37119
output: 30
thoughts: 25
Thoughts: Okay, here's my interpretation of those thoughts, summarized from a first-person expert perspective:
**Investigating a System Hang**
Alright, I need to get to the bottom of this potential system hang. My initial thought is to zero in on a problem related to workqueues, specifically a lockup. The phrase "workqueue lockup" is a good starting point, as it suggests a situation where a thread is blocked indefinitely, likely waiting for a resource held by another thread. I'm also going to incorporate "cfg80211_wiphy_work" into the search. This is a crucial kernel function related to wireless networking configuration. Combining these terms will hopefully help me filter and focus on a specific problem relating to workqueue issues, and configuration of the wireless network interface.
|
| 29/2 |
2026/09/13 00:03 |
tool |
grepper |
0m
Error:
Args: map[Expression:workqueue lockup.*cfg80211_wiphy_work]
Results:
|
| 30/2 |
2026/09/13 00:03 |
llm |
expert |
0m
Model:
Tokens:
input: 37354
output: 22
thoughts: 17
Thoughts: Okay, here's my attempt at summarizing those thoughts from a first-person, expert perspective, aiming for a fulsome rendering:
**Investigating a Potential Workqueue Stalling Issue**
Alright, time to dive in. My initial thought process is pretty straightforward. I'm dealing with a system that's likely exhibiting some sort of hang or performance degradation related to the workqueue, and I need to pinpoint the cause. The symptoms are pointing towards a "lockup," meaning something is preventing the workqueue from processing tasks efficiently, or perhaps even at all.
So, I'm immediately thinking, "Let's start with targeted keywords to narrow down the search." "workqueue lockup" is the obvious starting point. That gives me a broad view of the problem, allowing me to start collecting information. Then I'm thinking, "Is this a known problem, is it something that's been reported before?"
However, I'm also thinking this isn't likely going to reveal a wealth of information in the context of my experience. So, I will now add a second keyword "reg_todo". This term is very specific to *this* system, so I'm already building in the context. This is something I know, or suspect, that this system uses. Perhaps "reg_todo" has some sort of relation to the workqueue. With that term, I will be expecting to reveal relevant implementation details about my system in relation to the workqueue problem. These details will be crucial in developing an accurate diagnosis.
I'm essentially trying to leverage a combination of generic troubleshooting terms ("workqueue lockup") with specific domain-relevant terms ("reg_todo") to maximize the chances of finding relevant log entries, bug reports, kernel patches, or existing discussions that shed light on this particular issue within this specific system's architecture. I'm not just looking for *any* workqueue problems; I'm looking for *this* workqueue problem. The specific addition of the keyword "reg_todo" helps me think of where to start looking.
|
| 31/2 |
2026/09/13 00:04 |
tool |
grepper |
0m
Error:
Args: map[Expression:workqueue lockup.*reg_todo]
Results:
|
| 32/2 |
2026/09/13 00:04 |
llm |
expert |
0m
Model:
Tokens:
input: 37837
output: 26
thoughts: 21
Thoughts: Okay, here's my attempt at summarizing those thoughts from a first-person, expert perspective:
**Investigating a Potential Workqueue Lockup**
Alright, time to get to the heart of the matter. My initial hunch is pointing towards a potential issue related to workqueues. The symptoms, or perhaps just a gut feeling based on prior experience, suggest a lockup could be occurring, and a good starting point is to dive into the workqueue itself, specifically around how it interacts with packet transmission. So, I need to start my search with terms like "workqueue lockup" to see if there's any existing documentation or reported issues that align with what I suspect. My mind is already running through common pitfalls of locking in a workqueue context. Deadlocks, livelocks, or even simple long-running work items could all be culprits. Then, I need to pinpoint the specific component that's involved; "wg_packet_tx_worker" sounds very relevant, given this is likely a networking issue. The "wg" prefix likely indicates that this is likely related to Wireguard or something similar, and the "packet\_tx\_worker" part strongly implies the context of packet transmission, which could be the source of my problem. Now, let's see what the search engine yields.
|
| 33/2 |
2026/09/13 00:04 |
tool |
grepper |
0m
Error:
Args: map[Expression:workqueue lockup.*wg_packet_tx_worker]
Results:
|
| 34/2 |
2026/09/13 00:04 |
llm |
expert |
0m
Model:
Tokens:
input: 38168
output: 26
thoughts: 3594
Thoughts: **Analyzing a Workqueue Lockup in the Kernel**
Okay, so I'm presented with a workqueue lockup scenario, and the core of my investigation needs to center on *why* these worker threads are getting hung. The key clues point to a hang within workqueue pool 2 on CPU 0, with several threads blocked within `__local_bh_enable_ip`. My initial instinct is that a real-time task might be the culprit, but Syzbot usually doesn't involve those unless it's testing `sched_setscheduler`, but it's a possibility if there's an infinite loop. It could be a denial of service. The deeper I go, the more I'm thinking it's more complicated.
The code path `__local_bh_enable_ip` is relevant because it calls `do_softirq()`, which could lead to `ksoftirqd` waking up. If `ksoftirqd` then hogs the CPU due to an infinite loop within a softirq handler, that explains the blockage. However, `ksoftirqd` calls `cond_resched()`, so this seems unlikely, unless it's stuck inside a *single* softirq handler. What if the lockup isn't *ksoftirqd*, but something that doesn't yield? The interrupt storm theory starts to surface. If an interrupt fires constantly, the CPU could be trapped in an interrupt -> softirq -> interrupt loop, never returning to task context. The worker threads would never get a chance to run.
But then there's the stack trace. The worker threads are *in* `preempt_schedule()`, meaning that, at some point, they *did* run, then were preempted and switched out. So, it's not a complete interrupt starvation. The time slice timer could have fired, and set `TIF_NEED_RESCHED` which then allowed the worker threads to call `preempt_schedule()`. After `preempt_schedule()`, `__schedule()` can pick the next task to run. It could have been the other worker threads getting scheduled out, one by one.
Now I have to think about which task is *actually* hogging the CPU. The watchdog output reveals that of the 8 workers in pool 2, only 3 are *busy*, meaning 5 are idle. It shows that there are 3 blocked threads: `reg_todo`, `wg_packet_decrypt_worker`, `wg_packet_tx_worker`. Thus, it's not another worker thread, within pool 2, that's causing the problem. However, there are workers in other pools! Pool 8 is also running on CPU 0. It is a possible point of contention.
I have to consider the tasks within pool 8 which could be the source of the hang: `cfg80211_wiphy_work`, `neigh_periodic_work`, `reg_check_chans_work`, `wb_workfn`, `batadv_tt_purge`, `ext4_end_io_rsv_work`. If one of those tasks is in an infinite loop, it would hog the CPU. It is especially true if a task is holding a lock, such as the `wiphy` lock in `cfg80211_wiphy_work`, as other tasks will be blocked waiting for the lock.
Given that there are 7 `cfg80211_wiphy_work` tasks in flight, and the watchdog indicates that CPU 0 is hung, I think it's very likely that one of the `cfg80211_wiphy_work` tasks is running on CPU 0 and has entered an infinite loop. The other tasks are waiting on the `wiphy` lock which it now holds, and thus those tasks aren't hogging the CPU, and it's most likely not an interrupt storm. The infinite loop must be in `wk->func` within a `cfg80211_wiphy_work` call.
|
| 35/2 |
2026/09/13 00:04 |
tool |
codesearch-find-references |
0m
Args: map[Name:wiphy_work_func_t]
Results: map[References:[map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:wiphy_delayed_work_init SourceFile:include/net/cfg80211.h SourceLine:6967] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:wiphy_hrtimer_work_init SourceFile:include/net/cfg80211.h SourceLine:7070] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:wiphy_work_init SourceFile:include/net/cfg80211.h SourceLine:6918]] TruncatedOutput:false]
|
| 36/2 |
2026/09/13 00:04 |
llm |
expert |
0m
Model:
Tokens:
input: 42846
output: 20
thoughts: 44
Thoughts: **Deconstructing the `wiphy_work_func_t` Enigma**
Okay, so hold on a second. `wiphy_work_func_t`... that's just the *type*, isn't it? It's not the actual functions themselves. Right, right. Need to shift gears. Instead of focusing on the type definition, I need to figure out *where* that type is actually *used*. My goal is to map out the call graph here. The real key lies in identifying all the functions that get *assigned* to `wk->func` directly, or, even better, those that are *passed* as arguments to `wiphy_work_init`. That will give me the concrete implementations, the actual work being done. That's the core of understanding how this whole mechanism functions. Let's dig in and track down those assignments and calls. Time to get my hands dirty.
|
| 37/2 |
2026/09/13 00:04 |
tool |
grepper |
0m
Args: map[Expression:wiphy_work_init]
Results: map[Output:drivers/net/wireless/ath/ath12k/mac.c=4195=static void ath12k_mac_init_arvif(struct ath12k_vif *ahvif,
--
drivers/net/wireless/ath/ath12k/mac.c-4223- ath12k_mac_vif_sta_connection_loss_work);
drivers/net/wireless/ath/ath12k/mac.c:4224: wiphy_work_init(&arvif->bcn_tx_work, ath12k_mac_bcn_tx_work);
drivers/net/wireless/ath/ath12k/mac.c-4225-
--
drivers/net/wireless/ath/ath12k/mac.c=7238=static int ath12k_mac_assign_link_sta(struct ath12k_hw *ah,
--
drivers/net/wireless/ath/ath12k/mac.c-7282-
drivers/net/wireless/ath/ath12k/mac.c:7283: wiphy_work_init(&arsta->update_wk, ath12k_sta_rc_update_wk);
drivers/net/wireless/ath/ath12k/mac.c-7284-
--
drivers/net/wireless/ath/ath12k/mac.c=15097=static void ath12k_mac_setup(struct ath12k *ar)
--
drivers/net/wireless/ath/ath12k/mac.c-15141- INIT_DELAYED_WORK(&ar->scan.timeout, ath12k_scan_timeout_work);
drivers/net/wireless/ath/ath12k/mac.c:15142: wiphy_work_init(&ar->scan.vdev_clean_wk, ath12k_scan_vdev_clean_work);
drivers/net/wireless/ath/ath12k/mac.c-15143- INIT_WORK(&ar->regd_channel_update_work, ath12k_regd_update_chan_list_work);
--
drivers/net/wireless/ath/ath12k/mac.c-15146-
drivers/net/wireless/ath/ath12k/mac.c:15147: wiphy_work_init(&ar->wmi_mgmt_tx_work, ath12k_mgmt_over_wmi_tx_work);
drivers/net/wireless/ath/ath12k/mac.c-15148- skb_queue_head_init(&ar->wmi_mgmt_tx_queue);
--
drivers/net/wireless/intel/iwlwifi/mld/iface.c=512=iwl_mld_init_vif(struct iwl_mld *mld, struct ieee80211_vif *vif)
--
drivers/net/wireless/intel/iwlwifi/mld/iface.c-522- if (!mld->fw_status.in_hw_restart) {
drivers/net/wireless/intel/iwlwifi/mld/iface.c:523: wiphy_work_init(&mld_vif->emlsr.unblock_tpt_wk,
drivers/net/wireless/intel/iwlwifi/mld/iface.c-524- iwl_mld_emlsr_unblock_tpt_wk);
--
drivers/net/wireless/intel/iwlwifi/mld/mld.c=64=void iwl_construct_mld(struct iwl_mld *mld, struct iwl_trans *trans,
--
drivers/net/wireless/intel/iwlwifi/mld/mld.c-80- INIT_LIST_HEAD(&mld->async_handlers_list);
drivers/net/wireless/intel/iwlwifi/mld/mld.c:81: wiphy_work_init(&mld->async_handlers_wk,
drivers/net/wireless/intel/iwlwifi/mld/mld.c-82- iwl_mld_async_handlers_wk);
--
drivers/net/wireless/intel/iwlwifi/mld/mld.c-86- INIT_LIST_HEAD(&mld->txqs_to_add);
drivers/net/wireless/intel/iwlwifi/mld/mld.c:87: wiphy_work_init(&mld->add_txqs_wk, iwl_mld_add_txqs_wk);
drivers/net/wireless/intel/iwlwifi/mld/mld.c-88-
--
drivers/net/wireless/intel/iwlwifi/mvm/ops.c=1198=iwl_op_mode_mvm_start(struct iwl_trans *trans, const struct iwl_rf_cfg *cfg,
--
drivers/net/wireless/intel/iwlwifi/mvm/ops.c-1361-
drivers/net/wireless/intel/iwlwifi/mvm/ops.c:1362: wiphy_work_init(&mvm->async_handlers_wiphy_wk,
drivers/net/wireless/intel/iwlwifi/mvm/ops.c-1363- iwl_mvm_async_handlers_wiphy_wk);
--
drivers/net/wireless/nxp/nxpwifi/cfg80211.c=2354=struct wireless_dev *nxpwifi_add_virtual_intf(struct wiphy *wiphy,
--
drivers/net/wireless/nxp/nxpwifi/cfg80211.c-2498-
drivers/net/wireless/nxp/nxpwifi/cfg80211.c:2499: wiphy_work_init(&priv->reset_conn_state_work, nxpwifi_reset_conn_state_work);
drivers/net/wireless/nxp/nxpwifi/cfg80211.c-2500-
--
drivers/net/wireless/nxp/nxpwifi/main.c=1415=nxpwifi_reinit_sw(struct nxpwifi_adapter *adapter)
--
drivers/net/wireless/nxp/nxpwifi/main.c-1457-
drivers/net/wireless/nxp/nxpwifi/main.c:1458: wiphy_work_init(&adapter->host_mlme_work, nxpwifi_host_mlme_work);
drivers/net/wireless/nxp/nxpwifi/main.c-1459-
--
drivers/net/wireless/nxp/nxpwifi/main.c=1508=nxpwifi_add_card(void *card, struct completion *fw_done,
--
drivers/net/wireless/nxp/nxpwifi/main.c-1559-
drivers/net/wireless/nxp/nxpwifi/main.c:1560: wiphy_work_init(&adapter->host_mlme_work, nxpwifi_host_mlme_work);
drivers/net/wireless/nxp/nxpwifi/main.c-1561-
--
drivers/net/wireless/realtek/rtw89/core.c=6961=int rtw89_core_init(struct rtw89_dev *rtwdev)
--
drivers/net/wireless/realtek/rtw89/core.c-7009-
drivers/net/wireless/realtek/rtw89/core.c:7010: wiphy_work_init(&rtwdev->c2h_work, rtw89_fw_c2h_work);
drivers/net/wireless/realtek/rtw89/core.c:7011: wiphy_work_init(&rtwdev->ips_work, rtw89_ips_work);
drivers/net/wireless/realtek/rtw89/core.c:7012: wiphy_work_init(&rtwdev->cancel_6ghz_probe_work, rtw89_cancel_6ghz_probe_work);
drivers/net/wireless/realtek/rtw89/core.c-7013- INIT_WORK(&rtwdev->load_firmware_work, rtw89_load_firmware_work);
--
drivers/net/wireless/realtek/rtw89/core.c-7033-
drivers/net/wireless/realtek/rtw89/core.c:7034: wiphy_work_init(&btc->eapol_notify_work, rtw89_btc_ntfy_eapol_packet_work);
drivers/net/wireless/realtek/rtw89/core.c:7035: wiphy_work_init(&btc->arp_notify_work, rtw89_btc_ntfy_arp_packet_work);
drivers/net/wireless/realtek/rtw89/core.c:7036: wiphy_work_init(&btc->dhcp_notify_work, rtw89_btc_ntfy_dhcp_packet_work);
drivers/net/wireless/realtek/rtw89/core.c:7037: wiphy_work_init(&btc->icmp_notify_work, rtw89_btc_ntfy_icmp_packet_work);
drivers/net/wireless/realtek/rtw89/core.c-7038-
--
drivers/net/wireless/realtek/rtw89/mac80211.c=107=static int __rtw89_ops_add_iface_link(struct rtw89_dev *rtwdev,
--
drivers/net/wireless/realtek/rtw89/mac80211.c-116-
drivers/net/wireless/realtek/rtw89/mac80211.c:117: wiphy_work_init(&rtwvif_link->update_beacon_work, rtw89_core_update_beacon_work);
drivers/net/wireless/realtek/rtw89/mac80211.c-118- wiphy_delayed_work_init(&rtwvif_link->csa_beacon_work, rtw89_core_csa_beacon_work);
--
include/net/cfg80211.h=6912=struct wiphy_work {
--
include/net/cfg80211.h-6916-
include/net/cfg80211.h:6917:static inline void wiphy_work_init(struct wiphy_work *work,
include/net/cfg80211.h-6918- wiphy_work_func_t func)
--
include/net/cfg80211.h=6966=static inline void wiphy_delayed_work_init(struct wiphy_delayed_work *dwork,
--
include/net/cfg80211.h-6969- timer_setup(&dwork->timer, wiphy_delayed_work_timer, 0);
include/net/cfg80211.h:6970: wiphy_work_init(&dwork->work, func);
include/net/cfg80211.h-6971-}
--
include/net/cfg80211.h=7069=static inline void wiphy_hrtimer_work_init(struct wiphy_hrtimer_work *hrwork,
--
include/net/cfg80211.h-7073- CLOCK_BOOTTIME, HRTIMER_MODE_REL);
include/net/cfg80211.h:7074: wiphy_work_init(&hrwork->work, func);
include/net/cfg80211.h-7075-}
--
net/mac80211/ibss.c=1656=void ieee80211_ibss_setup_sdata(struct ieee80211_sub_if_data *sdata)
--
net/mac80211/ibss.c-1662- spin_lock_init(&ifibss->incomplete_lock);
net/mac80211/ibss.c:1663: wiphy_work_init(&ifibss->csa_connection_drop_work,
net/mac80211/ibss.c-1664- ieee80211_csa_connection_drop_work);
--
net/mac80211/iface.c=1228=int ieee80211_add_virtual_monitor(struct ieee80211_local *local,
--
net/mac80211/iface.c-1295- skb_queue_head_init(&sdata->status_queue);
net/mac80211/iface.c:1296: wiphy_work_init(&sdata->work, ieee80211_iface_work);
net/mac80211/iface.c-1297-
--
net/mac80211/iface.c=1878=static void ieee80211_setup_sdata(struct ieee80211_sub_if_data *sdata,
--
net/mac80211/iface.c-1909- skb_queue_head_init(&sdata->status_queue);
net/mac80211/iface.c:1910: wiphy_work_init(&sdata->work, ieee80211_iface_work);
net/mac80211/iface.c:1911: wiphy_work_init(&sdata->activate_links_work,
net/mac80211/iface.c-1912- ieee80211_activate_links_work);
--
net/mac80211/link.c=95=void ieee80211_link_init(struct ieee80211_sub_if_data *sdata,
--
net/mac80211/link.c-129-
net/mac80211/link.c:130: wiphy_work_init(&link->csa.finalize_work,
net/mac80211/link.c-131- ieee80211_csa_finalize_work);
net/mac80211/link.c:132: wiphy_work_init(&link->color_change_finalize_work,
net/mac80211/link.c-133- ieee80211_color_change_finalize_work);
--
net/mac80211/main.c=793=struct ieee80211_hw *ieee80211_alloc_hw_nm(size_t priv_data_len,
--
net/mac80211/main.c-1010-
net/mac80211/main.c:1011: wiphy_work_init(&local->radar_detected_work,
net/mac80211/main.c-1012- ieee80211_dfs_radar_detected_work);
net/mac80211/main.c-1013-
net/mac80211/main.c:1014: wiphy_work_init(&local->reconfig_filter, ieee80211_reconfig_filter);
net/mac80211/main.c-1015-
net/mac80211/main.c:1016: wiphy_work_init(&local->dynamic_ps_enable_work,
net/mac80211/main.c-1017- ieee80211_dynamic_ps_enable_work);
net/mac80211/main.c:1018: wiphy_work_init(&local->dynamic_ps_disable_work,
net/mac80211/main.c-1019- ieee80211_dynamic_ps_disable_work);
--
net/mac80211/main.c-1021-
net/mac80211/main.c:1022: wiphy_work_init(&local->sched_scan_stopped_work,
net/mac80211/main.c-1023- ieee80211_sched_scan_stopped_work);
--
net/mac80211/mlme.c=9498=void ieee80211_sta_setup_sdata(struct ieee80211_sub_if_data *sdata)
--
net/mac80211/mlme.c-9501-
net/mac80211/mlme.c:9502: wiphy_work_init(&ifmgd->monitor_work, ieee80211_sta_monitor_work);
net/mac80211/mlme.c:9503: wiphy_work_init(&ifmgd->beacon_connection_loss_work,
net/mac80211/mlme.c-9504- ieee80211_beacon_connection_loss_work);
net/mac80211/mlme.c:9505: wiphy_work_init(&ifmgd->csa_connection_drop_work,
net/mac80211/mlme.c-9506- ieee80211_csa_connection_drop_work);
--
net/mac80211/mlme.c-9521- ieee80211_neg_ttlm_timeout_work);
net/mac80211/mlme.c:9522: wiphy_work_init(&ifmgd->teardown_ttlm_work,
net/mac80211/mlme.c-9523- ieee80211_teardown_ttlm_work);
--
net/mac80211/mlme.c=9548=void ieee80211_mgd_setup_link(struct ieee80211_link_data *link)
--
net/mac80211/mlme.c-9557-
net/mac80211/mlme.c:9558: wiphy_work_init(&link->u.mgd.request_smps_work,
net/mac80211/mlme.c-9559- ieee80211_request_smps_mgd_work);
net/mac80211/mlme.c:9560: wiphy_work_init(&link->u.mgd.recalc_smps,
net/mac80211/mlme.c-9561- ieee80211_recalc_smps_work);
--
net/mac80211/offchannel.c=1054=void ieee80211_roc_setup(struct ieee80211_local *local)
net/mac80211/offchannel.c-1055-{
net/mac80211/offchannel.c:1056: wiphy_work_init(&local->hw_roc_start, ieee80211_hw_roc_start);
net/mac80211/offchannel.c:1057: wiphy_work_init(&local->hw_roc_done, ieee80211_hw_roc_done);
net/mac80211/offchannel.c-1058- wiphy_delayed_work_init(&local->roc_work, ieee80211_roc_work);
--
net/mac80211/sta_info.c=633=__sta_info_alloc(struct ieee80211_sub_if_data *sdata,
--
net/mac80211/sta_info.c-666- INIT_WORK(&sta->drv_deliver_wk, sta_deliver_ps_frames);
net/mac80211/sta_info.c:667: wiphy_work_init(&sta->ampdu_mlme.work, ieee80211_ba_session_work);
net/mac80211/sta_info.c-668-#ifdef CONFIG_MAC80211_MESH
--
net/wireless/core.c=549=struct wiphy *wiphy_new_nm(const struct cfg80211_ops *ops, int sizeof_priv,
--
net/wireless/core.c-633- INIT_LIST_HEAD(&rdev->sched_scan_req_list);
net/wireless/core.c:634: wiphy_work_init(&rdev->scan_done_wk, __cfg80211_scan_done);
net/wireless/core.c-635- INIT_DELAYED_WORK(&rdev->dfs_update_channels_wk,
--
net/wireless/core.c-646- INIT_WORK(&rdev->destroy_work, cfg80211_destroy_iface_wk);
net/wireless/core.c:647: wiphy_work_init(&rdev->sched_scan_stop_wk, cfg80211_sched_scan_stop_wk);
net/wireless/core.c-648- INIT_WORK(&rdev->sched_scan_res_wk, cfg80211_sched_scan_results_wk);
--
net/wireless/core.c=1614=void cfg80211_init_wdev(struct wireless_dev *wdev)
--
net/wireless/core.c-1620- spin_lock_init(&wdev->pmsr_lock);
net/wireless/core.c:1621: wiphy_work_init(&wdev->pmsr_free_wk, cfg80211_pmsr_free_wk);
net/wireless/core.c-1622-
--
net/wireless/core.c-1628-
net/wireless/core.c:1629: wiphy_work_init(&wdev->cqm_rssi_work, cfg80211_cqm_rssi_notify_work);
net/wireless/core.c-1630-
--
net/wireless/core.c-1644-
net/wireless/core.c:1645: wiphy_work_init(&wdev->disconnect_wk, cfg80211_autodisconnect_wk);
net/wireless/core.c-1646-}
--
net/wireless/debugfs.c=181=ssize_t wiphy_locked_debugfs_read(struct wiphy *wiphy, struct file *file,
--
net/wireless/debugfs.c-209-
net/wireless/debugfs.c:210: wiphy_work_init(&work.work, wiphy_locked_debugfs_read_work);
net/wireless/debugfs.c-211- wiphy_work_queue(wiphy, &work.work);
--
net/wireless/debugfs.c=261=ssize_t wiphy_locked_debugfs_write(struct wiphy *wiphy,
--
net/wireless/debugfs.c-294-
net/wireless/debugfs.c:295: wiphy_work_init(&work.work, wiphy_locked_debugfs_write_work);
net/wireless/debugfs.c-296- wiphy_work_queue(wiphy, &work.work);
]
|
| 38/2 |
2026/09/13 00:04 |
llm |
expert |
0m
Model:
Tokens:
input: 49135
output: 43
thoughts: 204
Thoughts: **Debugging a Potential CPU Hog in Wireless Debugfs**
Okay, so I'm seeing a lot of calls to `wiphy_work_init`. That immediately caught my eye. Let's dig into `net/wireless/debugfs.c`. Hmm, `wiphy_locked_debugfs_read` and `wiphy_locked_debugfs_write` are using a workqueue approach. Interesting. They initialize a work structure like so:
```c
wiphy_work_init(&work.work, wiphy_locked_debugfs_read_work);
wiphy_work_queue(wiphy, &work.work);
wait_for_completion(&work.done);
```
Wait a secondβ¦ `wait_for_completion`! If syzbot is hitting debugfs hard, and it *is* fuzzing it, then itβs very possible it's calling `wiphy_locked_debugfs_read` or `wiphy_locked_debugfs_write`. And if the underlying `read` or `write` function inside those routines gets stuck in an infinite loop, that `wait_for_completion` would block, and it would hog the CPU. We're potentially looking at a denial-of-service vulnerability here. I need to check `wiphy_locked_debugfs_read_work` ASAP.
|
| 39/2 |
2026/09/13 00:04 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:net/wireless/debugfs.c Name:wiphy_locked_debugfs_read_work]
Results: map[SourceCode: 163: static void wiphy_locked_debugfs_read_work(struct wiphy *wiphy,
164: struct wiphy_work *work)
165: {
166: struct debugfs_read_work *w = container_of(work, typeof(*w), work);
167:
168: w->ret = w->handler(w->wiphy, w->file, w->buf, w->bufsize, w->data);
169: complete(&w->completion);
170: }
SourceFile:net/wireless/debugfs.c]
|
| 40/2 |
2026/09/13 00:04 |
llm |
expert |
0m
Model:
Tokens:
input: 49853
output: 56
thoughts: 509
Thoughts: **Debugging a Persistent Kernel Hang**
Okay, so I'm looking at this issue and it seems to stem from a workqueue problem. The initial clue is this call to `w->handler` which I need to investigate further. My first thought was maybe syzbot was indirectly fuzzing the debugfs interface, potentially through something like mac80211_hwsim, but that's a bit of a reach. Wait, though, syzbot *can* fuzz debugfs, it just depends on whether it can mount it with `unprivileged_bpf_disabled=1`. But that doesn't seem to be the case here. And, hold on... the bug report itself doesn't mention debugfs, which is a key piece of information.
Okay, so if it's not directly related to debugfs, let's explore these other workqueues: `cfg80211_autodisconnect_wk`, `ieee80211_iface_work`, `ieee80211_scan_work`, `ieee80211_roc_work`, `ieee80211_ba_session_work`, `ieee80211_csa_connection_drop_work`, and `ieee80211_dynamic_ps_enable_work`. I have to consider all the possibilities.
Then there's the watchdog information. It shows seven `cfg80211_wiphy_work` instances in flight for an extended duration. That's highly suspicious! If one of these work items is stuck in an infinite loop, that would explain the hang. It's time to dig into the `cfg80211_wiphy_work` functions, looking for a potential culprit. Are there known infinite loops in mac80211 or cfg80211? I need to search the commit history for "infinite loop" within the mac80211 and cfg80211 areas to identify any relevant bug fixes or known issues.
|
| 41/2 |
2026/09/13 00:05 |
tool |
git-log |
0m
Args: map[CodeRegexp:while.* Count:10 MessageRegexps:[infinite loop mac80211] PathPrefix:net/mac80211]
Results:
|
| 42/2 |
2026/09/13 00:05 |
llm |
expert |
0m
Model:
Tokens:
input: 50875
output: 38
thoughts: 26
Thoughts: Here's my attempt at summarizing the thought process, tailored for an expert audience:
**Hunting Down That Pesky Infinite Loop**
Okay, so I'm suspecting an infinite loop in the kernel, likely somewhere related to wireless networking. Given the nature of these types of issues, my gut tells me to focus my search on the core wireless networking code. Specifically, the areas that handle the lower-level hardware interaction and frame processing.
Therefore, I'm going to start by zeroing in on the `net/wireless` and `net/mac80211` directories in the kernel source. Those are the obvious candidates for where this thing could be lurking, right? `net/wireless` likely contains the broader framework, while `net/mac80211` houses the more device-specific and frame handling aspects, which is where things often get hairy. I'll start by searching both, since there's often cross-dependencies and the source could be in either place. Let's see what we find!
|
| 43/2 |
2026/09/13 00:05 |
tool |
git-log |
0m
Args: map[Count:10 MessageRegexps:[infinite loop] PathPrefix:net/mac80211]
Results:
|
| 44/2 |
2026/09/13 00:05 |
llm |
expert |
0m
Model:
Tokens:
input: 51169
output: 38
thoughts: 20
Thoughts: Here's my attempt at summarizing the thought process, tailored for an expert audience:
**Investigating Potential Locking Issues in mac80211**
Okay, so I'm thinking about digging into potential lockup issues within the `net/mac80211` subsystem. The term "lockup" itself is pretty broad, but it serves as a good starting point. My initial instinct is to search the codebase for the literal string "lockup." This should quickly identify any existing debugging messages, comments, or perhaps even explicitly named variables or functions related to locking problems. It's a brute-force approach, but sometimes that's the fastest way to get a lay of the land, especially when you're jumping into a complex area. I'm expecting this search to give me a few key functions or files to investigate further. From there, I'll probably broaden my search, looking for related terms and lock primitives.
|
| 45/2 |
2026/09/13 00:05 |
tool |
git-log |
0m
Args: map[Count:10 MessageRegexps:[lockup] PathPrefix:net/mac80211]
Results:
|
| 46/2 |
2026/09/13 00:05 |
llm |
expert |
0m
Model:
Tokens:
input: 51436
output: 37
thoughts: 19
Thoughts: Here's my take on those thoughts:
**Analyzing the `net/mac80211` Codebase**
Okay, so I need to dig into the `net/mac80211` codebase. My immediate thought is to start with a broad keyword search. "Hang" seems like a reasonable term to use as a starting point, particularly if I'm looking for potential locking issues, unexpected delays, or even stalled processes within the wireless stack. It's a fairly generic term, but it should be a good way to find related references in the code, and narrow my focus. I'm expecting this initial search will probably be too broad, but it's a good first step to identify potential areas to investigate further. Let's see what turns up.
|
| 47/2 |
2026/09/13 00:05 |
tool |
git-log |
0m
Args: map[Count:10 MessageRegexps:[hang] PathPrefix:net/mac80211]
Results:
|
| 48/2 |
2026/09/13 00:05 |
llm |
expert |
0m
Model:
Tokens:
input: 51669
output: 26
thoughts: 20
Thoughts: Okay, here's my summary, in the first person, as if these are my thoughts:
**Eureka! A Direct Path to the Root Cause**
Hold on a second... I'm overthinking this. All this debugging feels too convoluted. I don't need to try and manually piece together every possibility. I can just cut through all the noise. What I *really* need to do is a focused search. Let me see, I bet a straightforward search within the kernel's git logs is the answer. "workqueue lockup"... that's the key term. Bingo! That should turn up *all* the relevant commits, patches, and discussions related to the problem. It's the most efficient way to pinpoint the exact issue and find any existing solutions or known workarounds. This is going to save me a ton of time. Let's see what that search unveils!
|
| 49/2 |
2026/09/13 00:05 |
tool |
git-log |
0m
Args: map[Count:10 MessageRegexps:[workqueue lockup]]
Results:
|
| 50/2 |
2026/09/13 00:05 |
llm |
expert |
0m
Model:
Tokens:
input: 51914
output: 38
thoughts: 4994
Thoughts: **Analyzing a Persistent Workqueue Lockup**
Okay, here's the situation as I understand it. I'm looking at a generic "workqueue lockup" bug report. My initial thought is it's likely an infinite loop, a long delay with preemption disabled, or a softirq storm. Given the context, I immediately consider WireGuard, specifically the workers `wg_packet_tx_worker` and `wg_packet_decrypt_worker`. Those are the usual suspects. I see these two tasks, along with `cfg80211_wiphy_work`, and `wb_workfn` are all in flight, and for an awfully long time β around 80-90 seconds, leading me to believe the CPU got bogged down around that time.
My first thought process is to understand what happened to the CPU around that time and which tasks are most likely involved. Based on my findings, all this work started, and CPU 0 got locked up. I immediately go to check which CPU the pool involved is in and find that `wg_packet_tx_worker`, `wg_packet_decrypt_worker`, and `reg_todo` are on CPU 0. On the other hand, `cfg80211_wiphy_work` is in the pool spanning CPU 0 and 1. If CPU 0 got stuck at the time all of those began, the work on that CPU should be the reason for the lock up. But then I see `reg_todo` started 48s ago. If CPU 0 had been totally hogged for 90 seconds, no new work could start on it. It seems like CPU 0 has still been processing work. So if CPU 0 has been processing new work, then why is `wg_packet_tx_worker` is in flight for 91 seconds?
Now, I'm thinking, perhaps it got preempted 91 seconds ago and never got scheduled back. However, I can see that other tasks did get scheduled, because `reg_todo` started 48 seconds ago. The scheduler would prioritize `reg_todo` with same priority tasks. That doesn't make sense, unless `wg_packet_tx_worker` was not even on the runqueue, which is not possible because it was preempted. So this is more likely. Perhaps CPU 0 was available 48s ago, but totally locked 48s ago. It's now that it seems like it's a completely locked up. The pieces of the puzzle are coming together: 91s ago, the tx worker started and was preempted, 83s ago the decrypt worker started and was preempted, 48s ago reg_todo started and got preempted.
At this point, I think, something started 48s ago and went into an infinite loop and completely hogged CPU 0. Looking at the in-flight tasks, `cfg80211_wiphy_work` is at 49 seconds. It's so close to 48s. Could that be the culprit? It is on CPU 0 and if it went into an infinite loop 49s ago, it could be hogging CPU 0. The reason why workqueue is hung up is because of this.
But wait, there are also `cfg80211_wiphy_work` items running for 89s, 85s, and so on. If those started earlier, why are they still in flight? They're probably blocked on the `wiphy` lock. The one holding the lock must have started before them. But, it should be the 49s one that is locking up CPU 0.
Could the one from 89s ago be locking CPU 1? I remember pool 8 spans CPU 0 and CPU 1. If the 89s task is on CPU 1, and in an infinite loop, that would hog CPU 1. CPU 0 then runs the one from 49s, and it takes the wiphy lock. It blocks (sleeps). CPU 0 is free, and the `reg_todo` runs, but gets preempted 48s ago, and CPU 0 gets hogged.
So, who is locking up CPU 0? Not `reg_todo`, it's just preempted. It is possible there is a softirq storm. Or it could be a user task in an infinite loop. But the watchdogs only check worker thread states. But a user program could still be in an infinite loop on a worker thread. Is there an infinite loop in mac80211 or cfg80211? Yes, there are many but the watchdog did not print the running task. So,
|
| 51/2 |
2026/09/13 00:06 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:kernel/workqueue.c Name:wq_watchdog_timer_fn]
Results: map[SourceCode:7927: static void wq_watchdog_timer_fn(struct timer_list *unused)
7928: {
7929: unsigned long thresh = READ_ONCE(wq_watchdog_thresh) * HZ;
7930: unsigned int max_stall_time = 0;
7931: bool lockup_detected = false;
7932: bool cpu_pool_stall = false;
7933: unsigned long now = jiffies;
7934: struct worker_pool *pool;
7935: unsigned int stall_time;
7936: int pi;
7937:
7938: if (!thresh)
7939: return;
7940:
7941: for_each_pool(pool, pi) {
7942: unsigned long pool_ts, touched, ts;
7943:
7944: pool->cpu_stall = false;
7945: if (list_empty(&pool->worklist))
7946: continue;
7947:
7948: /*
7949: * If a virtual machine is stopped by the host it can look to
7950: * the watchdog like a stall.
7951: */
7952: kvm_check_and_clear_guest_paused();
7953:
7954: /* get the latest of pool and touched timestamps */
7955: if (pool->cpu >= 0)
7956: touched = READ_ONCE(per_cpu(wq_watchdog_touched_cpu, pool->cpu));
7957: else
7958: touched = READ_ONCE(wq_watchdog_touched);
7959: pool_ts = READ_ONCE(pool->last_progress_ts);
7960:
7961: if (time_after(pool_ts, touched))
7962: ts = pool_ts;
7963: else
7964: ts = touched;
7965:
7966: /*
7967: * Did we stall?
7968: *
7969: * Do a lockless check first to do not disturb the system.
7970: *
7971: * Prevent false positives by double checking the timestamp
7972: * under pool->lock. The lock makes sure that the check reads
7973: * an updated pool->last_progress_ts when this CPU saw
7974: * an already updated pool->worklist above. It seems better
7975: * than adding another barrier into __queue_work() which
7976: * is a hotter path.
7977: */
7978: if (time_after(now, ts + thresh)) {
7979: scoped_guard(raw_spinlock_irqsave, &pool->lock) {
7980: pool_ts = pool->last_progress_ts;
7981: if (time_after(pool_ts, touched))
7982: ts = pool_ts;
7983: else
7984: ts = touched;
7985: }
7986: if (!time_after(now, ts + thresh))
7987: continue;
7988:
7989: lockup_detected = true;
7990: stall_time = jiffies_to_msecs(now - pool_ts) / 1000;
7991: max_stall_time = max(max_stall_time, stall_time);
7992: if (is_percpu_pool(pool) && !(pool->flags & POOL_BH)) {
7993: pool->cpu_stall = true;
7994: cpu_pool_stall = true;
7995: }
7996: pr_emerg("BUG: workqueue lockup - pool");
7997: pr_cont_pool_info(pool);
7998: pr_cont(" stuck for %us!\n", stall_time);
7999: }
8000: }
8001:
8002: if (lockup_detected)
8003: show_all_workqueues();
8004:
8005: if (cpu_pool_stall)
8006: show_cpu_pools_busy_workers();
8007:
8008: if (lockup_detected)
8009: panic_on_wq_watchdog(max_stall_time);
8010:
8011: wq_watchdog_reset_touched();
8012: mod_timer(&wq_watchdog_timer, jiffies + thresh);
8013: }
SourceFile:kernel/workqueue.c]
|
| 52/2 |
2026/09/13 00:06 |
llm |
expert |
0m
Model:
Tokens:
input: 59273
output: 40
thoughts: 681
Thoughts: **Analyzing the Workqueue Watchdog Trigger**
Okay, so the watchdog is triggering based on `pool->last_progress_ts`. That timestamp gets updated only when a worker *finishes* a work item, right? So, if that timestamp hasn't been updated in 48 seconds, that means nothing in pool 2 has actually completed a work item in that time. Hmm.
Now, let's think about `wg_packet_tx_worker`. It's got that `while` loop, processing packets from the `tx_queue`. The key here is that it *doesn't* finish the work item until the queue is empty. If there's a routing loop or a constant stream of packets, the queue will *never* empty! The worker will just keep looping, calling `cond_resched()`, yielding the CPU, but never actually returning. That means `last_progress_ts` never gets updated, and the watchdog gets a false positive, thinking the pool is stalled. Yup, this is the classic problem with work items that can loop indefinitely. They yield, but they never *end*, causing the watchdog to trip.
Let's double-check the theory. What about `wg_packet_decrypt_worker`? Another `while` loop! The same issue applies: packets keep coming, the loop runs, and it never finishes the work item.
Now, what about `reg_todo`? Ah, this one *doesn't* have a loop. So, why would it be in flight for 48 seconds? Maybe it's being preempted by the other workers, yes? If `wg_packet_tx_worker` and `wg_packet_decrypt_worker` are looping, they're consuming CPU, even with the `cond_resched()` calls. `reg_todo` should still get its time, but if it never finishes... something's not right.
Wait, is `reg_process_pending_beacon_hints` within `reg_todo` the culprit? Maybe that function is looping, even if `reg_todo` itself is not? That's the next place to look.
|
| 53/2 |
2026/09/13 00:06 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:net/wireless/reg.c Name:reg_process_pending_beacon_hints]
Results: map[SourceCode:3125: /* Processes beacon hints -- this has nothing to do with country IEs */
3126: static void reg_process_pending_beacon_hints(void)
3127: {
3128: struct cfg80211_registered_device *rdev;
3129: struct reg_beacon *pending_beacon, *tmp;
3130:
3131: /* This goes through the _pending_ beacon list */
3132: spin_lock_bh(®_pending_beacons_lock);
3133:
3134: list_for_each_entry_safe(pending_beacon, tmp,
3135: ®_pending_beacons, list) {
3136: list_del_init(&pending_beacon->list);
3137:
3138: /* Applies the beacon hint to current wiphys */
3139: for_each_rdev(rdev)
3140: wiphy_update_new_beacon(&rdev->wiphy, pending_beacon);
3141:
3142: /* Remembers the beacon hint for new wiphys or reg changes */
3143: list_add_tail(&pending_beacon->list, ®_beacon_list);
3144: }
3145:
3146: spin_unlock_bh(®_pending_beacons_lock);
3147: }
SourceFile:net/wireless/reg.c]
|
| 54/2 |
2026/09/13 00:06 |
llm |
expert |
0m
Model:
Tokens:
input: 60854
output: 66
thoughts: 3847
Thoughts: **Analysis of a Potential CPU Lockup in the Kernel**
Okay, let's break this down. My initial thought process revolves around a workqueue item, `reg_todo`, that seems to be getting stuck. I'm seeing it's looping through `reg_pending_beacons`, but the code uses a safe iterator, so an infinite loop there is unlikely. The delay could be coming from the `for_each_rdev` loop, but 48 seconds is excessive. Something else must be going on.
The fact that `reg_todo` is preempted *after* unlocking the lock suggests the loop has finished, and it's getting hung up during the unlock operation. The unlock involves `preempt_schedule()`, which *should* yield to other tasks if they're runnable. The problem: CPU 0 is 100% busy with WireGuard workers, `wg_packet_tx_worker` and `wg_packet_decrypt_worker`. However, CFS (Completely Fair Scheduler) should fairly distribute CPU time. The WireGuard workers should give `reg_todo` a chance to run.
Unless, there are *so* many WireGuard workers that they collectively starve `reg_todo`. However, I see there are only 2 WireGuard workers running! Two workers should not overwhelm the CFS scheduler. This should mean `reg_todo` gets a fair slice of CPU time. Why isn't it?
The backtrace shows `reg_todo` is in state `R` - runnable. If it's runnable, it's on the runqueue and CFS *should* schedule it. Something's blocking it. What could it be? Could it be an RT (Real-Time) task, which would preempt all CFS tasks? That seems plausible. Syzbot *can* trigger RT tasks through `sched_setscheduler`, or maybe a kernel thread with RT priority. Watchdog is an RT task, but it sleeps. Interrupts? If `threadirqs` is used, interrupt handlers run in RT threads. If an interrupt handler goes into an infinite loop, that RT thread hogs the CPU. Does syzbot use `threadirqs`? Yes, it does sometimes! If there's an interrupt storm, an RT thread could hog the CPU, which would explain everything. Wait, this would be a DoS if caused by the interrupt storm.
Let's consider another angle. Maybe the WireGuard workers aren't yielding using `cond_resched()`? `cond_resched()` checks `need_resched()`. If `need_resched()` is true, it calls `__schedule()`. If it calls `__schedule()`, it updates its vruntime. Since `reg_todo` is on the runqueue, `cond_resched()` should switch to it! But, `reg_todo` is also preempted! This means `reg_todo` did run and *then* was preempted, which makes the RT task theory more likely.
So, the blocking task did NOT yield! It's either an infinite loop without `cond_resched()`, an RT task, or an interrupt storm. In all cases, there's a CPU hog. This confirms my suspicion: it's a CPU hog on CPU 0 (and possibly 1) caused by an infinite loop or interrupt storm. Since this can cause a workqueue to hang up, this impacts the functionality of the system and has a "Denial of Service" impact.
Is this exploitable? Not for privilege escalation.
But can an unprivileged user trigger it? Yes, Syzbot is triggering it. It needs a network configuration change (requires a user namespace).
Can it be triggered from a user namespace? Yes, with `CAP_NET_ADMIN` privileges.
Can it be triggered from a VM guest? Yes, because Syzbot runs in a guest.
Is this network triggered? Yes, wireguard/mac80211 processes network packets; a specific packet or routing loop could trigger this.
The more I investigate, the more I see network issues. This can be caused by a CPU hog caused by an RT task, interrupt storm, an infinite loop in some work, or most probably caused by a spinlock deadlock (I am seeing `cfg80211_wiphy_work`, running with multiple workers), so that makes the DoS more probable.
I will also check if a similar loop or problem lies in `cfg80211_wiphy_work`, with that many processes running at the same time. If one of the `cfg80211_wiphy_work` has an infinite loop on CPU 0, it would hog the CPU!
But if `cfg80211_wiphy_work` disabled preemption within the loop (e
|
| 55/2 |
2026/09/13 00:06 |
tool |
set-results |
0m
Args: map[DenialOfService:true Exploitable:false FilesystemTrigger:false NetworkTrigger:true PeripheralTrigger:false RemoteTrigger:false Unprivileged:false UserNamespace:true VMGuestTrigger:true VMHostTrigger:false]
Results: map[DenialOfService:true Exploitable:false FilesystemTrigger:false NetworkTrigger:true PeripheralTrigger:false RemoteTrigger:false Unprivileged:false UserNamespace:true VMGuestTrigger:true VMHostTrigger:false]
|
| 56/2 |
2026/09/13 00:06 |
llm |
expert |
0m
Model:
Tokens:
input: 65856
output: 712
thoughts: 373
Thoughts: **My Analysis of the System Failure**
Okay, the data is in, and I've got a pretty clear picture. Time to articulate this for the user. My reasoning centers around a classic workqueue lockup. That's the key. This means one of the CPUs is completely consumed β either by an endless loop, an overwhelming flood of interrupts, or, most likely, a spinlock deadlock where a thread is spinning with preemption disabled.
The backtraces are critical here. I see worker threads, specifically `reg_todo`, `wg_packet_tx_worker`, and `wg_packet_decrypt_worker`, all in a `R` (running) state, but preempted within `__local_bh_enable_ip` and then `preempt_schedule`. That tells me these threads were kicked off by something else, something that's subsequently hogged the CPU and didnβt yield it back. That is telling.
The in-flight work items solidify this. Several `cfg80211_wiphy_work` and WireGuard worker threads are stalled for significant periods, up to 91 seconds. That's a huge red flag. This strongly implicates a bug within the mac80211/cfg80211 or WireGuard subsystems. A spinlock deadlock, perhaps, or an infinite loop when processing packets or handling configuration. That's where the problem almost certainly lies.
Because it's a CPU hog, or more specifically, a deadlock, this presents a Denial of Service (DoS) issue, but this type of bug is generally not going to be exploitable for privilege escalation or memory corruption. We're looking at a system resource exhaustion problem.
Adding further context to the analysis, an unprivileged user inside a user namespace can, with `CAP_NET_ADMIN` capabilities, configure the vulnerable subsystems, namely mac80211, WireGuard and batman-adv. This is relevant to consider.
And, finally, the triggering mechanism is clearly network-based. It's almost certainly triggered by network traffic, like a packet flood or even a crafted packet that induces a routing loop or endless loop within WireGuard or batman-adv. Given the specifics of the traces and the workqueue stalls, this is a network trigger.
Overall, I'm confident that this covers all the angles and offers a sound technical explanation based on the evidence.
|
| 57/1 |
2026/09/13 00:07 |
action |
format-explanation |
0m
Results: map[Explanation:Based on the provided bug report and source code analysis, here is the
assessment of the security impact:
**Analysis:**
The bug is a `workqueue lockup`, specifically indicating that worker pool 2
(bound to CPU 0) has been stuck for 48 seconds. The watchdog printed the
backtraces of three busy workers in this pool: `reg_todo`,
`wg_packet_decrypt_worker`, and `wg_packet_tx_worker`.
Looking at their backtraces, all three workers are in the `R` (Runnable) state
and were preempted inside `__local_bh_enable_ip` -> `preempt_schedule`. This
means these worker threads are not the ones hogging the CPU; rather, they were
running, got preempted by the scheduler, and were never scheduled back. This
implies that CPU 0 is completely hogged by another task that is either stuck in
an infinite loop with preemption disabled, spinning infinitely on a spinlock
(spinlock deadlock), or the CPU is suffering from an interrupt/softirq storm.
Looking at the other in-flight works, we see multiple `cfg80211_wiphy_work`
items stuck for up to 89 seconds, as well as wireguard workers stuck for up to
91 seconds. This strongly points to a logical bug, routing loop, or spinlock
deadlock within the `mac80211`/`cfg80211` or `wireguard` subsystems. For
instance, if a task on another CPU holds a spinlock and gets stuck, and a task
on CPU 0 tries to acquire the same spinlock, CPU 0 will spin indefinitely with
preemption disabled, starving all CFS tasks (like the preempted worker threads).
**Exploitability:**
A CPU hog, infinite loop, or spinlock deadlock leads to a system hang but does
not involve memory corruption (like use-after-free or out-of-bounds access) or
wild pointer dereferences. Therefore, it is not exploitable for privilege
escalation or arbitrary code execution.
**Denial of Service:**
Yes. The bug causes a CPU to lock up, eventually leading to a system-wide hang
or panic (via the workqueue watchdog or RCU stall detector), which is a clear
Denial of Service.
**Trigger Context:**
- **Unprivileged / User Namespace:** Configuring virtual network devices like
`mac80211_hwsim`, `wireguard`, and `batman-adv` requires `CAP_NET_ADMIN`. While
an unprivileged user cannot do this in the initial namespace, they can easily
create a new user namespace, gain `CAP_NET_ADMIN` within it, and trigger the
bug.
- **Network Trigger:** Yes. Wireguard and batman-adv are network protocols. The
lockup could be triggered by processing specific ingress network packets (e.g.,
a packet flood causing a softirq storm, or a crafted setup causing an infinite
routing loop between virtual interfaces).
- **VM Guest:** Yes, the bug is in the guest kernel's network stack and can be
triggered from within a standard VM guest.
- **Filesystem / Peripheral:** No. The presence of `ext4_end_io_rsv_work` is
likely collateral damage (it just happened to be queued when the workqueues
locked up). The root cause is firmly in the networking subsystems.]
|