Skip to content

bug(al2023): kernel 6.12.110-135.201 in v20260930 panics in list_lru_add during reclaim #2845

Closed

Description

@hyperb1iss

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_add reaching 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.c or include/linux/list_lru.h between v6.12.103 and v6.12.110. Reclaim-path commits in that range include b5391676c61d (mm/vmscan: report RCU-tasks quiescent states in shrink_lruvec()), a7c322137515 (mm/vmscan: wake up flushers conditionally to avoid cgroup OOM) and 39ec1e4183a7 (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

  1. adsanchez-apptio commented on Oct 6, 2026

    @adsanchez-apptio

    +1 on x86_64 too: EKS 1.34, al2023-x86_64-standard-1.34-v20260930, kernel 6.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.

  2. kyrylomiro commented on Oct 6, 2026

    @kyrylomiro

    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 versionv20260923

  3. taihen commented on Oct 6, 2026

    @taihen

    +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.

  4. EngHabu commented on Oct 6, 2026

    @EngHabu

    +1 I pray this is not AI Slop shipping unvalidated code

  5. bastaramus commented on Oct 7, 2026

    @bastaramus

    Also reproduces on x86_64 (AMD) — not only Graviton. Same AMI release, same kernel, same panic in list_lru_add from kswapd0, four distinct nodes in one day.

    Environment

    AMI amazon-eks-node-al2023-x86_64-standard-1.34-v20260930 (ami-014517e3a8d1b61c3, eu-central-1), selected through Karpenter alias: al2023@latest
    Kernel 6.12.110-135.201.amzn2023.x86_64
    Kubernetes kubelet v1.34.11-eks-3b4a6ca, containerd 2.2.7
    Instance types c5ad.2xlarge (16 GiB) and c5ad.4xlarge (32 GiB), on-demand, AMD EPYC
    Karpenter 1.8.8
    Swap none
    Kernel taint G OE from the stock efa module only; no other out-of-tree modules

    The previous release (v20260923, kernel 6.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 to al2023@v20260923 and can report back after a few days of load.

    Workload

    A CI image-build pool: GitHub Actions runners (ARC) on the node, buildkitd v0.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 concurrent docker buildx build jobs of large Node.js monorepo images (full pnpm 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.service runs with MemoryAccounting=yes, MemoryHigh=50%, MemoryMax=65%, so memcg reclaim is in play (note shrink_node_memcgs / __mod_memcg_lruvec_state in the trace).

    Occurrences (all 2026-10-06, UTC)

    Node uptime at panic Instance type Concurrent builds at the time
    9 min c5ad.2xlarge 3
    2 h 29 min c5ad.4xlarge 2
    4 h 08 min c5ad.4xlarge 3
    38 min c5ad.4xlarge 1

    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 v20260930 since 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): MemAvailable 15.7 GiB, Cached falling 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)

    BUG: kernel NULL pointer dereference, address: 0000000000000008
    Oops: Oops: 0000 [#1] PREEMPT SMP NOPTI
    CPU: 11 UID: 0 PID: 207 Comm: kswapd0 Tainted: G           OE      6.12.110-135.201.amzn2023.x86_64 #1
    Hardware name: Amazon EC2 c5ad.4xlarge/, BIOS 1.0 10/16/2017
    RIP: 0010:list_lru_add+0x82/0x120
    Code: 8d 00 48 8b 04 24 4d 89 f4 48 85 c0 74 12 41 80 7f 1c 00 48 63 b0 20 05 00 00 74 04 85 f6 79 7d 49 03 2f 48 83 c5 08 48 89 ea <4c> 8b 75 08 48 89 df 48 89 54 24 08 4c 89 f6e8 ea 05 3c 00 84 c0
    RSP: 0018:ffffd29d40cf37d8 EFLAGS: 00010046
    RAX: 0000000000000000 RBX: ffff8ddecae1f000 RCX: 0000000000000000
    RDX: 0000000000000000 RSI: 000000000000000e RDI: ffff8ddf847fd300
    RBP: 0000000000000000 R08: ffff8ddf80045a00 R09: 000000000000001f
    R10: 0000000000000020 R11: 0000000000000001 R12: 0000000000000000
    R13: ffff8ddf80c18c00 R14: 0000000000000000 R15: ffffffffb0053700
    FS:  0000000000000000(0000) GS:ffff8de688780000(0000) knlGS:0000000000000000
    CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
    CR2: 0000000000000008 CR3: 000000032dc34000 CR4: 00000000003506f0
    Call Trace:
     <TASK>
     list_lru_add_obj+0x7c/0xa0
     workingset_update_node+0x89/0xa0
     xas_store+0x1b6/0x5c0
     __filemap_remove_folio+0x112/0x1e0
     ? __pfx_workingset_update_node+0x10/0x10
     __remove_mapping+0x115/0x230
     shrink_folio_list+0xbbc/0xd50
     ? __mod_memcg_lruvec_state+0x95/0x150
     ? isolate_lru_folios+0x345/0x410
     shrink_inactive_list+0x15a/0x460
     shrink_lruvec+0x340/0x480
     ? shrink_slab_memcg+0x28f/0x2b0
     ? shrink_slab+0x120/0x1a0
     shrink_node_memcgs+0x1c9/0x250
     shrink_node+0xc2/0x4a0
     balance_pgdat+0x369/0x740
     ? __pfx_kswapd+0x10/0x10
     kswapd+0xf7/0x180
     kthread+0xcf/0x100
     ? __pfx_kthread+0x10/0x10
     ret_from_fork+0x30/0x50
     ? __pfx_kthread+0x10/0x10
     ret_from_fork_asm+0x1a/0x30
     </TASK>
    Modules linked in: cls_bpf sch_ingress veth xt_connmark nf_conntrack_netlink xt_nat xt_statistic xt_MASQUERADE xt_mark xt_nfacct xt_addrtype ipt_REJECT nf_reject_ipv4 nft_chain_nat nfnetlink_acct xt_conntrack xt_comment nft_compat nf_tables nfnetlink overlay nls_ascii nls_cp437 vfat fat sunrpc i8042 ghash_clmulni_intel serio ena button sch_fq_codel iptable_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 efa(OE) crc16 ib_uverbs ib_core fuse loop configfs dmi_sysfs crc32_pclmul crc32c_intel dm_mirror dm_region_hash dm_log dm_mod efivarfs
    Kernel panic - not syncing: Fatal exception
    

    RBP = 0 with the fault at RBP+8 matches the earlier reading of a NULL per-memcg list_lru_one for the shadow node's cgroup. The ? lines for srso_return_thunk / _stext were 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.

  6. anish commented on Oct 9, 2026

    @anish

    This is now called out in the release notes : https://github.com/awslabs/amazon-eks-ami/releases/tag/v20261003
    albeit somewhat incorrectly :

    This release contains kernel 6.12.110 in Amazon Linux 2023 AMIs which might cause kernel panic on certain instances for kubernetes versions 1.31 to 1.35. See #2845
    

    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

  7. andrewegel commented on Oct 10, 2026

    @andrewegel

    FWIW https://github.com/awslabs/amazon-eks-ami/releases/tag/v20260930 is where we're detecting this regression which makes the same notes.

    ... might cause kernel panic on certain instances...

    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 v20260930 AMI version.

  8. bseenu commented on Oct 12, 2026

    @bseenu

    Still reproduces on the newer kernel 6.12.110-135.202 (AMI v20261003), x86_64, Intel and AMD

    The v20261003 release ships kernel 6.12.110-135.202 for K8s 1.33-1.35, a newer build than the 135.201 in v20260930. It panics with the same signature.

    AMI amazon-eks-node-al2023-x86_64-standard-1.35-v20261003 (ami-06ee11fb2e882f9d5, us-east-1)
    Kernel 6.12.110-135.202.amzn2023.x86_64 (oops text names exactly this build)
    Kubernetes EKS 1.35 (kubelet v1.35.8)
    Instance types that panicked c5.2xlarge (3), c6a.2xlarge (2), c8i-flex.2xlarge (4), all 16 GiB
    Workload general service workloads; the nodes panic shortly after joining, while many pods are being scheduled and started on them

    Results in one cluster: 58 nodes were running 135.202. 10 of them had an unclean reboot (2 boots in journalctl --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 on 135.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 0x8 in list_lru_add from kswapd0:

    BUG: kernel NULL pointer dereference, address: 0000000000000008
    Oops: Oops: 0000 [#1] PREEMPT SMP PTI
    CPU: 0 UID: 0 PID: 128 Comm: kswapd0 Tainted: G           OE      6.12.110-135.202.amzn2023.x86_64 #1
    Hardware name: Amazon EC2 c5.2xlarge/, BIOS 1.0 10/16/2017
    RIP: 0010:list_lru_add+0x82/0x120
     list_lru_add_obj+0x7c/0xa0
     workingset_update_node+0x89/0xa0
     xas_store+0x1b6/0x5c0
     __filemap_remove_folio+0x112/0x1e0
     __remove_mapping+0x115/0x230
     shrink_folio_list+0xbbc/0xd50
     shrink_inactive_list+0x15a/0x460
     shrink_lruvec+0x340/0x480
     shrink_node_memcgs+0x1c9/0x250
     shrink_node+0xc2/0x4a0
     balance_pgdat+0x369/0x740
     kswapd+0xf7/0x180
    Kernel panic - not syncing: Fatal exception
    

    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.202 contains any change for the list_lru_add path? The v20261003 release notes still carry the "might cause kernel panic" warning, and anyone tracking al2023@latest or the recommended SSM parameter now rolls onto 135.202, which is still affected. Please consider pulling back both v20260930 and v20261003 (or holding the recommended SSM parameters) until a fixed kernel ships. The only workaround we have found is pinning to v20260923 (kernel 6.12.103-129.197).

    Happy to share full console captures if that helps.

  9. Moglum commented on Oct 13, 2026

    @Moglum

    We see the same panic on arm64 (Graviton, c8g / m8g) nodes with AL2023 kernels 6.12.110-135.201 (v20260930) and 6.12.110-135.202 (v20261003). Kernel 6.12.103-129.197 (v20260923) is not affected. We pinned that AMI as a workaround, and we have had no panics since.

    Signature

    Unable to handle kernel NULL pointer dereference at virtual address 0000000000000008
    pc : list_lru_add+0xe4
    Call trace: list_lru_add -> list_lru_add_obj -> workingset_update_node -> xas_store
      -> __filemap_remove_folio -> __remove_mapping -> shrink_folio_list -> ... -> kswapd
    

    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.197 and 6.12.110-135.201. No Amazon-specific patch touches list_lru, workingset, memcontrol or xarray. The relevant change is in upstream 6.12.y stable:

    • 6.12.110 contains the backport of "xarray: honor XA_FLAGS_ACCOUNT in xas_split_alloc()". xas_split_alloc() now adds __GFP_ACCOUNT, so new xa_nodes for the page-cache i_pages xarray are charged to the folio's memcg. Patch series: lore (mirror). Merged to mm-stable: lore (mirror).
    • That patch depends on "mm/huge_memory: initialise workingset state before folio split" (aca1f2d5de17). This dependency calls mapping_set_update(&xas, mapping) before the split, which sets xas->xa_lru = &shadow_nodes. Patch: lore (mirror). 6.12.y does not have it, probably because its Fixes: tag (58729c04cf10, folio_split()) is not in 6.12. Its 6.18-stable backport also failed to apply: lore (mirror).
    • In 6.12.110, split_huge_page_to_list_to_order() calls xas_split_alloc() with xa_lru == NULL. The node is charged to a memcg, but memcg_list_lru_alloc() is skipped, so the per-memcg shadow_nodes list is never allocated.
    • Later, reclaim leaves only shadow entries in that node. Then workingset_update_node() → list_lru_add_obj() → list_lru_from_memcg_idx() returns NULL, and list_add_tail(item, &l->list) reads l->list.prev at offset 8. This matches the faulting address 0x8.

    6.18.51-120.163 seems to have the same gap: __GFP_ACCOUNT is in xas_split_alloc() and xas_try_split(), and __folio_split() has no mapping_set_update().

    Possible fixes

    • Revert the xas_split_alloc() __GFP_ACCOUNT backport, or
    • Backport aca1f2d5de17 (an equivalent mapping_set_update() call in split_huge_page_to_list_to_order()) to 6.12.y and 6.18.y.
  10. YoranSys commented on Oct 14, 2026

    @YoranSys

    Also reproduces on 6.12.110-135.202 (v20261003), x86_64 AMD c6a.2xlarge, triggered by direct memcg reclaim from a large buffered write

    AMI amazon-eks-node-al2023-x86_64-standard-1.35-v20261003, selected through Karpenter alias: al2023@latest
    Kernel 6.12.110-135.202.amzn2023.x86_64
    Kubernetes EKS 1.35, kubelet v1.35.8
    Instance type c6a.2xlarge (16 GiB), on-demand, dedicated node per job

    Workload. 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_bytes stays 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_memcg in the writing process, not kswapd:

    BUG: kernel NULL pointer dereference, address: 0000000000000008
    Oops: 0000 [#1] PREEMPT SMP NOPTI
    CPU: 1 UID: 1000 PID: 7093 Comm: _osmium_write Tainted: G           OE      6.12.110-135.202.amzn2023.x86_64 #1
    Hardware name: Amazon EC2 c6a.2xlarge/, BIOS 1.0 10/16/2017
    RIP: 0010:list_lru_add+0x82/0x120
    Call Trace:
     list_lru_add_obj+0x7c/0xa0
     workingset_update_node+0x89/0xa0
     xas_store+0x1b6/0x5c0
     __filemap_remove_folio+0x112/0x1e0
     __remove_mapping+0x115/0x230
     shrink_folio_list+0xbbc/0xd50
     shrink_inactive_list+0x15a/0x460
     shrink_lruvec+0x340/0x480
     shrink_node_memcgs+0x1c9/0x250
     shrink_node+0xc2/0x4a0
     shrink_zones.constprop.0+0x88/0x2a0
     do_try_to_free_pages+0x4a/0x2e0
     try_to_free_mem_cgroup_pages+0x101/0x210
     try_charge_memcg+0x197/0x620
     charge_memcg+0x30/0x80
     __mem_cgroup_charge+0x29/0x80
     filemap_add_folio+0x42/0xe0
     __filemap_get_folio+0x177/0x300
     iomap_write_begin+0x1a5/0x270
     iomap_write_iter+0x110/0x350
     iomap_file_buffered_write+0x8b/0xf0
     xfs_file_buffered_write+0x81/0x290
     ...
     ovl_write_iter+0xff/0x130 [overlay]
     vfs_write+0x2ff/0x410
     ksys_write+0x5f/0xe0
    Kernel panic - not syncing: Fatal exception
    Rebooting in 10 seconds..
    

    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 stays Ready, 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 (kernel 6.12.103-129.197). Is v20261012 (kernel 6.12.111-136.204) expected to carry a fix?

  11. Moglum commented on Oct 15, 2026

    @Moglum
  12. tzneal commented on Oct 15, 2026

    @tzneal
    Contributor

    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.

  13. hyperb1iss commented on Oct 15, 2026

    @hyperb1iss
    Author

    Tysm! Will give it a try!!

  14. kummatty commented on Oct 15, 2026

    @kummatty
    Contributor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions