Repository navigation
Description
What happened:
After v20260930 became the recommended AL2023 arm64 AMI for Kubernetes 1.33, our Graviton c9gd.4xlarge and c9gd.8xlarge nodes started kernel-panicking under sustained page-cache reclaim. Each node hard-resets and is back in about 15 seconds, so kubelet's Ready condition never changes and the only visible symptom is every container on the node exiting with reason Unknown (exit code 255). systemd-pstore and the EC2 console output on every affected node we checked carry the same oops:
Unable to handle kernel NULL pointer dereference at virtual address 0000000000000008
Internal error: Oops: 0000000096000005 [#1] SMP
CPU: 1 UID: 0 PID: 249 Comm: kswapd0 Tainted: G OE 6.12.110-135.201.amzn2023.aarch64 #1
Hardware name: Amazon EC2 c9gd.8xlarge/, BIOS 1.0 11/1/2018
pc : list_lru_add+0xe4/0x198
lr : list_lru_add+0x16c/0x198
Call trace:
list_lru_add+0xe4/0x198 (P)
list_lru_add_obj+0x68/0xa8
workingset_update_node+0x98/0xb0
xas_store+0x27c/0x4d8
__filemap_remove_folio+0x104/0x1e8
__remove_mapping+0x154/0x318
shrink_folio_list+0xcec/0xe60
shrink_inactive_list+0x154/0x508
shrink_lruvec+0x308/0x428
shrink_node_memcgs+0x120/0x2c0
shrink_node+0xbc/0x540
balance_pgdat+0x378/0x770
kswapd+0x130/0x1f8
kthread+0xe0/0xf0
ret_from_fork+0x10/0x20
Kernel panic - not syncing: Oops: Fatal exception
Console output from other affected nodes shows the same fault in list_lru_add reached through direct reclaim from try_charge_memcg instead of kswapd.
Scope so far:
- At least 14 nodes panicked in about 17 hours, sometimes several within a few minutes of each other. The first came roughly three hours after the recommended SSM parameter moved to v20260930.
- The same instance types and workload ran on v20260923 (kernel 6.12.103-129.197) for weeks before that with no panics.
- Only c9gd.4xlarge and c9gd.8xlarge nodes (32 and 64 GiB of memory) have panicked. None of our 29 c9gd.16xlarge nodes (128 GiB), and none of our m7g, m8g or c7gd nodes on the same kernel, have panicked yet.
Possibly useful for triage:
- The fault address (0x8) looks consistent with
list_lru_addreaching a NULL per-memcg list for the shadow node's memory cgroup, which may point at a race with memcg offlining or reparenting. That is our reading of the trace, not a confirmed cause. - Upstream linux-6.12.y did not change
mm/list_lru.c,mm/workingset.corinclude/linux/list_lru.hbetween v6.12.103 and v6.12.110. Reclaim-path commits in that range includeb5391676c61d(mm/vmscan: report RCU-tasks quiescent states in shrink_lruvec()),a7c322137515(mm/vmscan: wake up flushers conditionally to avoid cgroup OOM) and39ec1e4183a7(mm: memcg: stop reclaim when a limit update is superseded). We have not compared Amazon's own kernel patches between the two builds.
What you expected to happen:
No panics, as on v20260923. As a workaround we pinned our Karpenter EC2NodeClasses to alias: al2023@v20260923.
The v20260930 release notes list the same 6.12.110-135.201 kernel for Kubernetes 1.33 through 1.35. Could the recommended SSM parameters for those versions be held back, or the release flagged, while this is investigated? Anyone tracking al2023@latest rolls onto this kernel through drift. We can share full console outputs and test a candidate kernel.
How to reproduce it (as minimally and precisely as possible):
We don't have a minimal reproduction yet. The nodes that panic run CI: hundreds of short-lived containers per hour, heavy page cache from image layers and build caches on local NVMe, and no swap. On a c9gd.8xlarge, kswapd reclaimed about 50 GiB in under two hours of uptime, and the root cgroup reported about 137 dying memory cgroups. Under that load, roughly one in three c9gd.8xlarge nodes panicked within a few hours of joining.
Environment:
- AWS Region: us-west-2
- Instance Type(s): c9gd.4xlarge, c9gd.8xlarge (Spot)
- Cluster Kubernetes version: 1.33
- Node Kubernetes version: v1.33.13-eks-3b4a6ca
- AMI Version: amazon-eks-node-al2023-arm64-standard-1.33-v20260930 (ami-0660ab6ffe7c7d426), kernel 6.12.110-135.201.amzn2023.aarch64, containerd 2.2.7, Karpenter 1.14.0
Activity
adsanchez-apptio commentedon Oct 6, 2026
+1 on x86_64 too: EKS 1.34,
al2023-x86_64-standard-1.34-v20260930, kernel6.12.110-135.201, c6a.2xlarge (16 GiB). 7 nodes panicked with the same signature (kswapd0→workingset_update_node→list_lru_add+0x82, NULL deref at 0x8), most within 4-30 min of boot during pod and image-pull bursts.Side effect: panicking mid image unpack corrupted the containerd store, so cached images segfaulted on that node until it was replaced. Nodes on
v20260827(kernel 6.12.100) are unaffected; we're pinning back to it.kyrylomiro commentedon Oct 6, 2026
Facing the same on EKS 1.34m, especially on our CI nodes, that are actively working with ephemeral workloads, pinned the ami to the previous version
v20260923taihen commentedon Oct 6, 2026
+1
Our nodes on kernel 6.12.110-135.201.amzn2023 panic and reboot under page-cache reclaim. The trace matches frame for frame (kswapd0 -> workingset_update_node -> list_lru_add, NULL pointer dereference at 0x8), on x86_64 as well as arm64. In one node pool over the same six hours ~9% failed.
EngHabu commentedon Oct 6, 2026
+1 I pray this is not AI Slop shipping unvalidated code
bastaramus commentedon Oct 7, 2026
Also reproduces on x86_64 (AMD) — not only Graviton. Same AMI release, same kernel, same panic in
list_lru_addfromkswapd0, four distinct nodes in one day.Environment
amazon-eks-node-al2023-x86_64-standard-1.34-v20260930(ami-014517e3a8d1b61c3, eu-central-1), selected through Karpenteralias: al2023@latest6.12.110-135.201.amzn2023.x86_64v1.34.11-eks-3b4a6ca, containerd2.2.7c5ad.2xlarge(16 GiB) andc5ad.4xlarge(32 GiB), on-demand, AMD EPYCG OEfrom the stockefamodule only; no other out-of-tree modulesThe previous release (
v20260923, kernel6.12.103-129.197) ran the identical workload on one node for ~79 hours across two working days without a panic. We have now pinned thenode class toal2023@v20260923and can report back after a few days of load.Workload
A CI image-build pool: GitHub Actions runners (ARC) on the node,
buildkitdv0.27.1 running as a host systemd service (not in a pod) with its cache on the NVMe instance store (XFS), containerd's root also on the instance store. Each node runs 1–6 concurrentdocker buildx buildjobs of large Node.js monorepo images (fullpnpm install+ bundler build,--max-old-space-size=8192). Lots of page-cache churn from image layers and the build cache — the same shape as the original report.buildkitd.serviceruns withMemoryAccounting=yes,MemoryHigh=50%,MemoryMax=65%, so memcg reclaim is in play (noteshrink_node_memcgs/__mod_memcg_lruvec_statein the trace).Occurrences (all 2026-10-06, UTC)
4 of the 20 nodes launched from this AMI that day panicked, roughly one panic per ~140 node-minutes of active building. The pool had been on
v20260930since 2026-10-02 at low load without a panic; the panics started on the first day the full build load ran on it.Not an OOM
node_exporter samples 30 s before the last panic (32 GiB node):
MemAvailable15.7 GiB,Cachedfalling from 20.0 GiB to 11.4 GiB over the preceding 3 minutes,load1≈ 9. Another node had 7.2 GiB available at its last sample. The nodes die while reclaiming page cache, not when memory runs out.Oops (from EC2 console output; identical on all four nodes)
RBP = 0with the fault atRBP+8matches the earlier reading of a NULL per-memcglist_lru_onefor the shadow node's cgroup. The?lines forsrso_return_thunk/_stextwere dropped from the trace above for readability; everything else is verbatim.Happy to share the full console output of any of the four instances privately if it helps.
anish commentedon Oct 9, 2026
This is now called out in the release notes : https://github.com/awslabs/amazon-eks-ami/releases/tag/v20261003
albeit somewhat incorrectly :
eks 1.31 & 1.32 do not use the 6.12 kernel, so not sure if this is limited to the 6.12 kernel or affects both 6.1 and 6.12
andrewegel commentedon Oct 10, 2026
FWIW https://github.com/awslabs/amazon-eks-ami/releases/tag/v20260930 is where we're detecting this regression which makes the same notes.
which instances?
Making a note of it in release notes is not good enough, these EKS releases should be pulled back. Our production systems use a 14 day delay when selecting AMIs, so we have 4 days to scramble and pin/patch our infra to a pre
v20260930AMI version.bseenu commentedon Oct 12, 2026
Still reproduces on the newer kernel
6.12.110-135.202(AMIv20261003), x86_64, Intel and AMDThe
v20261003release ships kernel6.12.110-135.202for K8s 1.33-1.35, a newer build than the135.201inv20260930. It panics with the same signature.amazon-eks-node-al2023-x86_64-standard-1.35-v20261003(ami-06ee11fb2e882f9d5, us-east-1)6.12.110-135.202.amzn2023.x86_64(oops text names exactly this build)c5.2xlarge(3),c6a.2xlarge(2),c8i-flex.2xlarge(4), all 16 GiBResults in one cluster: 58 nodes were running
135.202. 10 of them had an unclean reboot (2 boots injournalctl --list-boots). For 9 of those 10 the EC2 console output has the full oops; the tenth has no console text (buffer rotated). That is roughly 17% of the nodes, which is in line with what we saw on135.201.Timing: uptime at panic was 242 s, 278 s, 279 s, 398 s, 482 s, 627 s, 810 s, 912 s and 2666 s.
Not an OOM: none of the 9 console captures has any OOM-killer line before the panic.
Control: 11 nodes in the same cluster on
6.12.103-129.197(v20260923) have not panicked. Nodes on older kernels in our QA and staging clusters have not panicked either.Oops (verbatim, from the EC2 console output of one node). All 9 captures show the same fault: NULL dereference at
0x8inlist_lru_addfromkswapd0:Side effect: the unclean reboot leaves XFS recovery behind, and pods that start on a crashed node from images unpacked just before the crash fail with
exec /bin/bash: exec format error(4 pods so far on 3 of these nodes).Ask: can someone from AWS confirm whether
135.202contains any change for thelist_lru_addpath? Thev20261003release notes still carry the "might cause kernel panic" warning, and anyone trackingal2023@latestor the recommended SSM parameter now rolls onto135.202, which is still affected. Please consider pulling back bothv20260930andv20261003(or holding the recommended SSM parameters) until a fixed kernel ships. The only workaround we have found is pinning tov20260923(kernel6.12.103-129.197).Happy to share full console captures if that helps.
Moglum commentedon Oct 13, 2026
We see the same panic on arm64 (Graviton, c8g / m8g) nodes with AL2023 kernels
6.12.110-135.201(v20260930) and6.12.110-135.202(v20261003). Kernel6.12.103-129.197(v20260923) is not affected. We pinned that AMI as a workaround, and we have had no panics since.Signature
The panic usually occurs a few minutes after boot, during image pulls. Side effect: layers that containerd was extracting at the time of the panic stay corrupt on disk after the reboot (
exec format error,file too short). The node must be replaced. A pod restart does not help.Possible cause (from source analysis, not reproduced)
We compared the SRPMs for
6.12.103-129.197and6.12.110-135.201. No Amazon-specific patch toucheslist_lru,workingset,memcontrolorxarray. The relevant change is in upstream 6.12.y stable:6.12.110contains the backport of "xarray: honor XA_FLAGS_ACCOUNT in xas_split_alloc()".xas_split_alloc()now adds__GFP_ACCOUNT, so newxa_nodes for the page-cachei_pagesxarray are charged to the folio's memcg. Patch series: lore (mirror). Merged to mm-stable: lore (mirror).aca1f2d5de17). This dependency callsmapping_set_update(&xas, mapping)before the split, which setsxas->xa_lru = &shadow_nodes. Patch: lore (mirror). 6.12.y does not have it, probably because itsFixes:tag (58729c04cf10,folio_split()) is not in 6.12. Its 6.18-stable backport also failed to apply: lore (mirror).split_huge_page_to_list_to_order()callsxas_split_alloc()withxa_lru == NULL. The node is charged to a memcg, butmemcg_list_lru_alloc()is skipped, so the per-memcgshadow_nodeslist is never allocated.workingset_update_node()→list_lru_add_obj()→list_lru_from_memcg_idx()returns NULL, andlist_add_tail(item, &l->list)readsl->list.prevat offset 8. This matches the faulting address0x8.6.18.51-120.163seems to have the same gap:__GFP_ACCOUNTis inxas_split_alloc()andxas_try_split(), and__folio_split()has nomapping_set_update().Possible fixes
xas_split_alloc()__GFP_ACCOUNTbackport, oraca1f2d5de17(an equivalentmapping_set_update()call insplit_huge_page_to_list_to_order()) to 6.12.y and 6.18.y.OSDC: Pin Karpenter node AMIs to v20260923 to stop kernel panics (pyt…
YoranSys commentedon Oct 14, 2026
Also reproduces on
6.12.110-135.202(v20261003), x86_64 AMDc6a.2xlarge, triggered by direct memcg reclaim from a large buffered writeamazon-eks-node-al2023-x86_64-standard-1.35-v20261003, selected through Karpenteralias: al2023@latest6.12.110-135.202.amzn2023.x86_64v1.35.8c6a.2xlarge(16 GiB), on-demand, dedicated node per jobWorkload. One pod per node runs a batch job that downloads a ~33 GB OSM PBF, filters it to ~5.7 GB with
osmium, then extracts a polygon. All writes are buffered writes to the container writable layer (overlayfs on xfs). Container memory limit is 8 GiB;container_memory_working_set_bytesstays around 4 GB, so the cgroup is full of inactive page cache rather than anonymous memory. Node memory stayed around 35% used, disk had over 100 GB free.Signature. Same fault as above, but reached through direct reclaim from
try_charge_memcgin the writing process, not kswapd:Reproducibility. Three runs of this job on three fresh nodes on 2026-10-14, all lost the node 26 to 34 minutes after boot, each time during the heaviest write phase (end of the filter step or the polygon extraction). Console output was still available for one of them (above); the other two show the same symptoms: every container on the node exits with reason
Unknown/ exit code 255 at the same time, the node staysReady, and node monitoring targets disappear for about a minute.So this does not need memory pressure at node level: a single cgroup filling its own limit with page cache from one sequential writer is enough. That may be an easier reproducer than waiting for kswapd: a container with a few GiB memory limit doing a long
dd/buffered copy larger than its limit onto overlayfs.Workaround we are evaluating: pin
al2023@v20260923(kernel6.12.103-129.197). Isv20261012(kernel6.12.111-136.204) expected to carry a fix?Moglum commentedon Oct 15, 2026
🤞🏼 Might be fixed in the new AMI
v20261012https://github.com/awslabs/amazon-eks-ami/releases/tag/v202610126.12 - amazonlinux/linux@70c30d7
6.18 - amazonlinux/linux@f53d739
tzneal commentedon Oct 15, 2026
The fix for this issue is in the Amazon Linux 6.12.111-136.204 kernel. That kernel is in the v20261012 set of AMIs that are currently in the release process.
hyperb1iss commentedon Oct 15, 2026
Tysm! Will give it a try!!
kummatty commentedon Oct 15, 2026
The fix for this issue is now available in v20261012, which ships Amazon Linux 2023 kernel
6.12.111-136.204. If you pinned to an older AMI to work around this, you can now move to v20261012.Thank you all for your patience and for the detailed reports and traces, which helped track this down. Closing this one out. Please reopen or file a new issue if you still encounter problems.