omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

linux-ptl: iwlwifi skbuff runaway OOM under wlan0 TX load on Dell XPS Panther Lake

Open berenddeboer opened this issue 6 months ago • 11 comments

Summary

On a Dell XPS Panther Lake system using Omarchy's linux-ptl kernel, sustained outbound Wi-Fi traffic can trigger a sudden unreclaimable kernel skbuff_* slab allocation storm. The system OOMs user/session processes, then iwlwifi reports a stuck queue and firmware restart.

This is probably below Omarchy itself (iwlwifi/iwlmld/mac80211 or firmware), but I'm filing here first because the affected kernel package is Omarchy's linux-ptl package and I don't know where its PKGBUILD/backport patchset lives.

Environment

  • Machine: Dell XPS 14 DA14260 / Intel Panther Lake platform
  • Kernel: 7.0.3-arch1-2-ptl
  • Omarchy package: omarchy/linux-ptl 7.0.3.arch1-2
  • Package description: The Linux with Panther Lake hardware backports (SDCA audio, PSR2, Panel Replay SU) kernel and modules
  • Wi-Fi interface: wlan0
  • Wi-Fi driver path: iwlwifi / iwlmld / mac80211
  • Firmware loaded: 101.6e695a70.0 sc-a0-wh-b0-c101.ucode
  • Swap: disabled

Observed Failure

The OOMs are dominated by unreclaimable kernel networking slab caches, not userspace RSS and not ZFS ARC:

  • skbuff_small_head
  • skbuff_head_cache

These grow from around 1 MiB to tens of GiB within seconds. OOM victims are incidental user/session processes such as elephant, Hyprland, walker, direnv, or browsers with modest RSS.

A representative OOM log showed:

skbuff_small_head   41901327KB
skbuff_head_cache   15236888KB

The monitor later captured an even larger wave:

2026-05-15T14:19:58+12:00 skb_total_kb=52530722
skbuff_small_head approx_kb=38558814
skbuff_head_cache approx_kb=14021415
SUnreclaim: 53910012 kB
MemAvailable: 3181328 kB

2026-05-15T14:19:59+12:00 skb_total_kb=57028760

Dmesg Extracts

OOM starts from normal userspace allocation, but memory is consumed by unreclaimable kernel slab:

[16742.772329] direnv invoked oom-killer: gfp_mask=0x140dca(GFP_HIGHUSER_MOVABLE|__GFP_ZERO|__GFP_COMP), order=0, oom_score_adj=200
[16742.772337] CPU: 11 UID: 1000 PID: 1270644 Comm: direnv Tainted: P        W  OE       7.0.3-arch1-2-ptl #1 PREEMPT(full)  f3ae37c960e57db84cb617efedd3a8d4d21c121c
[16742.772341] Hardware name: Dell Inc. XPS 14 DA14260/0TVXV7, BIOS 1.3.1 02/12/2026
[16742.772440] active_file:933 inactive_file:2211 isolated_file:0
[16742.772440] unevictable:16815 dirty:205 writeback:0
[16742.772440] slab_reclaimable:165600 slab_unreclaimable:14643334
[16742.772488] Free swap  = 0kB
[16742.772489] Total swap = 0kB
[16742.772492] Unreclaimable slab info:
[16742.773367] skbuff_small_head   41901327KB   41901346KB
[16742.773368] skbuff_head_cache   15236888KB   15236896KB

The OOM victim is incidental and has modest RSS compared to the slab explosion:

[16742.776431] oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),cpuset=user.slice,mems_allowed=0,global_oom,task_memcg=/user.slice/user-1000.slice/[email protected]/app.slice/elephant.service,task=elephant,pid=1111128,uid=1000
[16742.776482] Out of memory: Killed process 1111128 (elephant) total-vm:3558056kB, anon-rss:124720kB, file-rss:112kB, shmem-rss:0kB, UID:1000 pgtables:1056kB, oom_score_adj:200

Soft lockup follows in networking softirq with the iwlwifi / iwlmld TX segmentation path:

[16756.650915] watchdog: BUG: soft lockup - CPU#10 stuck for 26s! [swapper/10:0]
[16756.650920]     #1:   0% system, 100% softirq,   1% hardirq,   0% idle
[16756.651040]  <IRQ>
[16756.651060]  __alloc_skb+0x137/0x330
[16756.651062]  skb_segment+0x359/0xfc0
[16756.651064]  tcp_gso_segment+0x11f/0x620
[16756.651068]  inet_gso_segment+0x166/0x440
[16756.651074]  skb_mac_gso_segment+0xaa/0x120
[16756.651077]  __skb_gso_segment+0x79/0x1c0
[16756.651079]  iwl_tx_tso_segment+0x32a/0x380 [iwlwifi 104e89be23eb81f4b2ec5ccb16068af6563b64ab]
[16756.651099]  iwl_mld_tx_skb+0x3cf/0x400 [iwlmld 44d6238a3aa52c20c847e5ff73e8a3e3c4be7b16]
[16756.651112]  iwl_mld_tx_from_txq+0x94/0x130 [iwlmld 44d6238a3aa52c20c847e5ff73e8a3e3c4be7b16]
[16756.651120]  ieee80211_queue_skb+0x52e/0x720 [mac80211 d4ecc517b267e3a2bc077b5f4b26fbf4f3802507]
[16756.651176]  __ieee80211_xmit_fast+0x84c/0xb10 [mac80211 d4ecc517b267e3a2bc077b5f4b26fbf4f3802507]
[16756.651222]  __ieee80211_subif_start_xmit+0x328/0x420 [mac80211 d4ecc517b267e3a2bc077b5f4b26fbf4f3802507]
[16756.651309]  dev_hard_start_xmit+0x57/0x1e0
[16756.651311]  sch_direct_xmit+0x159/0x380
[16756.651313]  __qdisc_run+0x82/0x640
[16756.651318]  net_tx_action+0x12e/0x350
[16756.651319]  handle_softirqs+0xe8/0x2c0
[16756.651324]  </IRQ>

A second OOM repeats with the same slab signature:

[16760.606943] bluetoothd invoked oom-killer: gfp_mask=0xcc0(GFP_KERNEL), order=0, oom_score_adj=0
[16760.607131] slab_reclaimable:164998 slab_unreclaimable:14726572
[16760.608107] skbuff_small_head   42229054KB   42229787KB
[16760.608121] skbuff_head_cache   15355977KB   15356636KB
[16760.618019] Out of memory: Killed process 1111127 (walker) total-vm:1770516kB, anon-rss:21156kB, file-rss:3028kB, shmem-rss:44kB, UID:1000 pgtables:528kB, oom_score_adj:200

The iwlwifi queue/firmware failure happens after the OOM storm:

[16766.429631] iwlwifi 0000:00:14.3: Queue 2 is stuck 3713 3720
[16766.435843] iwlwifi 0000:00:14.3: Microcode SW error detected. Restarting 0x0.
[16766.435893] iwlwifi 0000:00:14.3: Transport status: 0x0000004A, valid: 6
[16766.435895] iwlwifi 0000:00:14.3: Loaded firmware version: 101.6e695a70.0 sc-a0-wh-b0-c101.ucode
[16766.435896] iwlwifi 0000:00:14.3: 0x00000084 | NMI_INTERRUPT_UNKNOWN
[16766.436009] iwlwifi 0000:00:14.3: Transport status: 0x0000004A, valid: 7
[16766.436010] iwlwifi 0000:00:14.3: 0x20000066 | NMI_INTERRUPT_HOST

Ordering

The important ordering is:

  1. Huge skbuff_* allocation storm.
  2. OOM/session fallout.
  3. iwlwifi stuck queue / firmware restart.

The later driver messages include:

iwlwifi 0000:00:14.3: Queue 2 is stuck 3713 3720
iwlwifi 0000:00:14.3: Microcode SW error detected. Restarting 0x0.
iwlwifi 0000:00:14.3: Loaded firmware version: 101.6e695a70.0 sc-a0-wh-b0-c101.ucode

Kernel Stack Evidence

A watchdog soft lockup happened in networking softirq/TX segmentation path, with the stack including:

__alloc_skb
skb_segment
tcp_gso_segment
inet_gso_segment
skb_mac_gso_segment
__skb_gso_segment
iwl_tx_tso_segment [iwlwifi]
iwl_mld_tx_skb [iwlmld]
iwl_mld_tx_from_txq [iwlmld]
ieee80211_queue_skb [mac80211]
__ieee80211_xmit_fast [mac80211]
dev_hard_start_xmit
sch_direct_xmit
net_tx_action
handle_softirqs

The watchdog reported 100% softirq, which fits a TX-path networking storm rather than a userspace memory leak.

Trigger Pattern

The strongest common factor is sustained outbound Wi-Fi TX on wlan0:

  • ZFS backup / SSH traffic to another LAN host (192.168.33.60)
  • AWS/HTTPS uploads
  • ISO build/download traffic can amplify reproduction

Negative Mitigation Result

A tc egress rate limit did not prevent the issue:

sudo tc qdisc replace dev wlan0 root tbf rate 100mbit burst 32kbit latency 400ms

The monitor confirmed the tbf qdisc was active during later spikes:

qdisc tbf 8001: root refcnt 2 rate 100Mbit burst 4Kb lat 400ms

Despite that, skbuff_* still peaked around 57 GiB.

Offload State

ethtool -k wlan0 showed these enabled at the time:

tcp-segmentation-offload: on
generic-segmentation-offload: on
generic-receive-offload: on

Given the stack is in iwl_tx_tso_segment / GSO/TSO segmentation, disabling these is the next local test if supported.

Might not be the place, happy to move if this is not the right place to file this

  • Where is the linux-ptl PKGBUILD/backport patchset hosted?
  • Is there a newer PTL kernel package or firmware recommendation for Panther Lake Wi-Fi?
  • Should this be escalated directly to Arch kernel or Linux wireless with the linux-ptl patch context?

I can provide the full dmesg excerpt and monitor logs if useful.

berenddeboer avatar May 15 '26 03:05 berenddeboer

You can see the ptl patches we have here. I doubt there's any relation to this: https://github.com/omacom-io/omarchy-pkgs/blob/master/pkgbuilds/linux-ptl/PKGBUILD

dhh avatar May 15 '26 18:05 dhh

Indeed, checked and agree. I'll need to hunt more upstream.

berenddeboer avatar May 15 '26 22:05 berenddeboer

I think I am facing the same issue in other distributions. Tried contacting intel support here: https://community.intel.com/t5/Wireless/Intel-BE201-driver-broken-on-linux/td-p/1746556

Seems like an upstream intel or linux issue. Older kernels (6.12, 6.17) seem to work.

eklavya avatar May 19 '26 16:05 eklavya

I've done two things which so far have given me pretty stable up time (4 days so far):

  • I've stopping remote backup server from pulling ZFS snapshots from the laptop when the system is under CPU load.
  • I've added 8GB of zram (64GB machine).

I'm on latest Omarchy, so 7.0.3-arch1-2-ptl. Firmware:

firmware-version: 101.6e695a70.0 sc-a0-wh-b0-c101
driver: iwlwifi

berenddeboer avatar May 19 '26 20:05 berenddeboer

You know, as I wrote that I was pulling in an ZFS snapshot, and bang, issue came straight back:

2026-05-20T08:48:12+12:00      1.3MB/s      18808     51.0MB/s       1493             44.8GB             37.3GB skb=11883KB small=7913KB head=3970KB
2026-05-20T08:48:14+12:00      1.4MB/s      21029     57.4MB/s       2725             44.8GB             37.4GB skb=11883KB small=7913KB head=3970KB
2026-05-20T08:48:16+12:00      1.2MB/s      17345     46.6MB/s       2263             44.8GB             37.5GB skb=11856KB small=7893KB head=3963KB
2026-05-20T08:48:18+12:00      7.5KB/s         23      9.9KB/s         20             44.8GB             37.5GB skb=11856KB small=7893KB head=3963KB
2026-05-20T08:48:20+12:00     17.6KB/s         49     17.0KB/s         36             44.8GB             37.5GB skb=2489062KB small=1824516KB head=664546KB
2026-05-20T08:48:22+12:00     894.0B/s          3       0.0B/s          0             44.8GB             37.5GB skb=11942696KB small=8757184KB head=3185512KB
2026-05-20T08:48:24+12:00      1.6KB/s         11       0.0B/s          0             44.8GB             37.5GB skb=8095197KB small=5935672KB head=2159525KB
2026-05-20T08:48:26+12:00     10.4KB/s         60     10.7KB/s         75             44.8GB             37.5GB skb=4126707KB small=3025451KB head=1101256KB
2026-05-20T08:48:28+12:00     741.0B/s          1       0.0B/s          0             44.8GB             37.5GB skb=14038968KB small=10294444KB head=3744524KB
2026-05-20T08:48:32+12:00      2.3KB/s         16      2.9KB/s         19             44.8GB             37.5GB skb=11885KB small=7938KB head=3947KB
2026-05-20T08:48:34+12:00     14.2KB/s         70     16.4KB/s         56             44.8GB             37.5GB skb=11866KB small=7919KB head=3947KB
2026-05-20T08:48:36+12:00    621.9KB/s       9518     26.6MB/s        859             44.8GB             37.5GB skb=11887KB small=7919KB head=3968KB

The jump appears to happen straight at the end of the zfs snapshot pull: so the progress on the server is 100%, then something happens on the laptop where everything briefly freezes, we get this crazy jump, and it starts killing things.

berenddeboer avatar May 19 '26 20:05 berenddeboer

In my case it doesn't even have to be a long transfer. I can reliably reproduce this by just scping small files (10-30 mb) over lan. A very clear memory spike appears.

eklavya avatar May 20 '26 06:05 eklavya

@berenddeboer are you still having this issue on the latest intel-ptl kernel 7.0.9 or 7.0.11?

spencerbull avatar Jun 16 '26 01:06 spencerbull

Good question, not as obvious. But just ran a test that reliably repeated this, and it still does, but seems to recover better:

2026-06-16T16:14:31+12:00    108.3KB/s       1024      5.2MB/s        381             28.0GB             37.4GB skb=12186KB small=8094KB head=4092KB
2026-06-16T16:14:33+12:00    460.3KB/s       4481     25.1MB/s       1386             28.0GB             37.5GB skb=12186KB small=8094KB head=4092KB
2026-06-16T16:14:35+12:00    209.5KB/s       2063     12.0MB/s        673             28.0GB             37.5GB skb=12179KB small=8094KB head=4085KB
2026-06-16T16:14:38+12:00     65.3KB/s        720     14.1MB/s        375             28.0GB             37.6GB skb=12179KB small=8094KB head=4085KB
2026-06-16T16:14:40+12:00     36.0KB/s         79      8.2KB/s         52             28.0GB             37.6GB skb=1770940KB small=1297848KB head=473092KB
2026-06-16T16:14:42+12:00      3.1KB/s         12       0.0B/s          0             28.0GB             37.6GB skb=10884156KB small=7980874KB head=2903282KB
2026-06-16T16:14:44+12:00     966.0B/s          2       0.0B/s          0             28.0GB             37.6GB skb=19573753KB small=14353233KB head=5220520KB
2026-06-16T16:14:48+12:00     14.5KB/s         30      1.7KB/s         13             28.0GB             37.6GB skb=12507KB small=8236KB head=4271KB
2026-06-16T16:14:50+12:00     65.5KB/s        207     80.9KB/s        197             28.0GB             37.6GB skb=12262KB small=8159KB head=4103KB
2026-06-16T16:14:52+12:00     20.0KB/s         80      9.8KB/s         71             28.0GB             37.6GB skb=12223KB small=8120KB head=4103KB
2026-06-16T16:14:54+12:00    314.1KB/s        342    101.3KB/s        317             28.0GB             37.6GB skb=12223KB small=8120KB head=4103KB
2026-06-16T16:14:56+12:00     50.3KB/s         99     11.2KB/s         69             28.0GB             37.6GB skb=12223KB small=8120KB head=4103KB
2026-06-16T16:14:58+12:00     17.5KB/s         95     10.2KB/s         85             28.0GB             37.6GB skb=12185KB small=8082KB head=4103KB

Still got a few OOM kills, but since installing zram this has helped a bit too, so probably also why it wasn't that visible.

So definitely not fixed.

berenddeboer avatar Jun 16 '26 04:06 berenddeboer

Pretty sure this is a firmware bug, not kernel - upgrading to ucode c106 (linux-firmware 20260810, currently in core-testing) fixed it completely for me.

Hit the same TX collapse on a BE211 (Panther Lake CNVi) with iwlmld on mainline 7.2-rc5: uplink throttles to ~2 Mbit/s with zero dmesg errors, degrades over the life of the association, and a reconnect temporarily resets it. No skb runaway in my case, but same trigger profile. Disabling AQL did nothing.

Same kernel + driver, only the ucode changed (c103 -> c106):

iperf3 to the AP c103 c106
UDP uplink 1.7 Mbit/s 265 Mbit/s
TCP uplink 22 Mbit/s 277 Mbit/s
TCP downlink 19-140 Mbit/s 403 Mbit/s

The driver has been requesting c104-c106 all along and silently falling back to c103. BE201/BE213 get corresponding new ucodes in the same linux-firmware release, so worth a shot for the XPS folks here - upgrade to >=20260810 (or drop the ucode into /usr/lib/firmware manually) and reboot. Keen to hear if it also fixes the OOM variant.

0xApotheosis avatar Aug 12 '26 06:08 0xApotheosis

Thanks to everyone who contributed logs and testing. We investigated the reports here and found two separate iwlwifi problems.

1. Original skbuff runaway and OOM

The original failure occurred on linux-ptl 7.0.3 with C101 firmware. Sustained Wi-Fi transmission caused skbuff_small_head and skbuff_head_cache to grow by tens of GiB, followed by OOM kills, a stuck iwlwifi queue, and a firmware restart.

This strongly matches an upstream iwlwifi/iwlmld TSO bug. When A-MSDU was disabled, the driver could calculate a zero TSO segment size and generate tens of thousands of tiny SKBs from a single packet. That matches both the reported memory growth and the stack through iwl_tx_tso_segment().

The upstream fix is:

The fix is absent from Linux 7.0.10, but present in Linux 7.0.11 and later releases.

XPS 14 and XPS 16 systems currently use Omarchy's linux-ptl 7.1.8 kernel. We confirmed that Linux 7.1.8 contains both parts of the upstream fix.

The June recurrence report did not include the booted kernel version after being asked about both 7.0.9 and 7.0.11. Because 7.0.9 does not contain the fix while 7.0.11 does, we cannot determine which code was running for that test.

Based on this, I recommend treating the original OOM as resolved by the upstream fix now included in the current linux-ptl 7.1.8 kernel.

If the same rapid skbuff_small_head/skbuff_head_cache growth reproduces on linux-ptl 7.1.8 or newer, please reopen this issue with:

  • uname -r
  • The loaded firmware line from the kernel journal
  • Fresh kernel logs covering the beginning of the SKB growth and subsequent failure

A confirmed recurrence with the same signature on 7.1.8 or newer would need to be escalated to Linux wireless.

2. C103/C106 throughput degradation

The later C106 report describes a different failure:

  • Linux 7.2-rc5 with C103 firmware
  • Throughput degrading over the lifetime of the association
  • No SKB runaway
  • No kernel errors
  • C106 restoring normal throughput

That is useful evidence of a separate BE211 firmware throughput problem, but it is not the same failure as the original OOM.

The current Linux 7.1 driver supports Panther Lake SC firmware only through C102. Installing the newer firmware package on Linux 7.1 will therefore continue loading C102. C106 becomes supported with the Linux 7.2 driver.

We have opened #7056 to track the stable Linux 7.2 linux-ptl rebase and C106 validation separately:

  • #7056

That issue includes the upstream references, kernel/firmware ownership, and validation criteria for confirming that the XPS 14/16 loads C106 without throughput or iwlwifi regressions.

I recommend closing this issue as resolved in the current linux-ptl 7.1.8 kernel. Please reopen it if the original SKB runaway signature is reproduced on that kernel or newer.

spencerbull avatar Aug 16 '26 02:08 spencerbull

Checked whether the kernel Omarchy ships today carries the upstream fix @spencerbull pointed to (torvalds/linux 92cee08dc4f0, "wifi: iwlwifi: mld: fix TSO segmentation explosion when AMSDU is disabled"). Its guards in drivers/net/wireless/intel/iwlwifi/mld/tx.c (max_tid_amsdu_len == 1 and WARN_ON_ONCE(!num_subframes)) are absent in 7.0.10 and present in 7.0.11, 7.2.3 and 7.2.8. The original report was on 7.0.3, which predates it.

What a current install boots:

  • On quattro, migration 1789325478 installs linux-omarchy on x86_64 machines (except T2 Macs) and puts it first in the Limine boot order. That package is currently 7.2.8, built as linux-omarchy-bore. The only one of its patches that touches iwlmld TX is 0662-iwlwifi-mld-skip-tx-when-firmware-dead.patch, which adds an early return when the firmware has crashed and leaves the TSO guard alone.
  • linux-ptl is now 7.2.3, and its three extra patches are all display (drm) patches.

So the mechanism in the upstream commit fits the stack in this report (iwl_tx_tso_segment -> __skb_gso_segment -> __alloc_skb flooding skbuff_small_head), and both kernels Omarchy now ships contain the fix. Nothing in Omarchy itself needs changing for it. This is a hardware bug that cannot be reproduced without this machine, so it was not run on a test VM.

@berenddeboer, @eklavya: if you can, update, reboot, and repeat the ZFS pull or scp test that triggered it before. Please post:

  • uname -r (it should show 7.2.8 or newer)
  • the loaded firmware line, from journalctl -k | grep 'Loaded firmware'
  • your slab monitor output during the transfer

A clean run means this can be closed. If the same skbuff_* growth comes back on a 7.2.x kernel, this needs to go to linux-wireless with those logs.

Reviewed by Claude Opus 5.5, with a second opinion from Codex Medium. Codex agreed with the outcome, and it is the one that noticed linux-omarchy is a metapackage for linux-omarchy-bore, which is why that kernel's patches were checked. Codex also notes that the fix explains the segmentation storm but not exactly why that much memory stays allocated, so a retest is the real confirmation. Waiting on the reporters.

omarchybot avatar Oct 08 '26 02:10 omarchybot