Skip to content

Kernel panic in ENA driver (ena_reset_reason_info_free) on secondary-ENI detach — AL2023 kernel 6.12.92 / ENA v2.17.0g causing spontaneous EC2 reboots. Is this a known bug, and which AMI/kernel is saf

0

Our EKS-on-EC2 dev nodes intermittently hard-reboot due to a kernel panic in the ENA network driver, triggered when a secondary ENI is detached (routine Amazon VPC CNI scale-down).

Environment:

  • Amazon Linux 2023, kernel 6.12.92-122.166.amzn2023 (both aarch64 and x86_64)
  • ENA driver v2.17.0g (in-tree, shipped with the kernel)
  • EKS 1.34, AMI amazon-eks-node-al2023-*-1.34-v20260625, instance types c8g.large / c7i.large (Spot)
  • Region: ap-east-1

Kernel panic (captured only via aws ec2 get-console-output --latest, because the hard reboot prevents it from being written to disk):

Comm: irq/86-pciehp (PCIe hotplug) Unable to handle kernel paging request ... Internal error: Oops pc : ena_reset_reason_info_free+0x1c/0x40 [ena] lr : __ena_shutoff+0xc4/0x170 [ena] Call trace: ena_reset_reason_info_free -> __ena_shutoff -> ena_remove Kernel panic - not syncing: Oops: Fatal exception -> Rebooting in 10 seconds

It looks like a NULL-pointer dereference in the ENA reset-reason cleanup on the device-removal path.

We have ruled out (with data): systemd-networkd issue #3524 (fix is present), soft-lockup (sysctls disabled), region, instance type, spot, VPC CNI settings, and ENI-detach frequency (another cluster on the identical kernel does MORE ENI detaches with zero panics). It appears to be a rare race in the driver. No fix found in amzn-drivers r2.17.0 or mainline.

Questions:

  1. Is this a known ENA driver bug on the ena_remove / reset-reason path?
  2. Is there a fixed ENA driver / AL2023 kernel version, or is a fix planned?
  3. Which earlier AMI / kernel version is NOT affected (safe to pin to as an interim workaround)?
  4. Any recommended mitigation while awaiting a fix?

We also opened a GitHub issue on amzn/amzn-drivers with the same details.

asked 13 days ago94 views

2 Answers
0

Hello.

I searched through GitHub issues, but I couldn't find anyone reporting the same bug as you.
It's difficult to determine at this point whether the issue lies with the EC2 OS, so how about trying to update the node group using the previous AMI?
The previous version, according to the release notes below, was "amazon-eks-node-al2023-x86_64-standard-1.34-v20260618," so I recommend testing with that version.
If this version doesn't work, I recommend gradually trying older AMIs, such as "amazon-eks-node-al2023-x86_64-standard-1.34-v20260610," to see if it works.
https://github.com/awslabs/amazon-eks-ami/releases

EXPERT

answered 13 days ago

EXPERT

reviewed 13 days ago

  • Thank you for the recommendation. We have already pinned our cluster to v20260618 (kernel 6.12.90) and are monitoring, no reboots so far. For reference, AWS's own EKS AMI release notes for v20260625 already acknowledge this issue: "This release contains ENA driver (2.17.0g) in Amazon Linux 2023 AMIs which might cause kernel panic and unexpected node reboot." https://github.com/awslabs/amazon-eks-ami/releases/tag/v20260625 The root cause is therefore the ENA driver 2.17.0g introduced in v20260625 (kernel 6.12.92); v20260618 (kernel 6.12.90) predates it, which is why the pin resolves it. We captured the panic from the EC2 serial console — a NULL-pointer dereference on secondary-ENI detach: ena_reset_reason_info_free -> __ena_shutoff -> ena_remove Kernel panic - not syncing: Oops: Fatal exception

    Could you please advise:

    1. Is a fixed ENA driver / AMI planned, and an approximate timeline?
    2. Is v20260618 the recommended interim version?

    Thank you.

  • Is a fixed ENA driver / AMI planned, and an approximate timeline?

    If it has been logged as a GitHub issue, I imagine it will be addressed at some point. Since I am not an AWS employee, I do not know the schedule or roadmap for when it might be addressed.

    Is v20260618 the recommended interim version?

    If no restarts are currently occurring, I recommend continuing to use v20260618 for the time being and switching to the latest version once the issue is resolved.

0

Based on the available information, this specific kernel panic in the ENA driver's ena_reset_reason_info_free function during secondary ENI detachment does not appear to be documented as a known issue in the current AWS knowledge base. However, there are a few relevant points to consider:

Regarding Your Specific Issue: The kernel panic you're experiencing appears to be a race condition in the ENA driver's device removal path, specifically in the reset-reason cleanup code. The fact that it's intermittent and occurs during routine ENI detachment operations (PCIe hotplug events) suggests a timing-sensitive bug in the driver's shutdown sequence.

Available Information: Amazon Linux 2023 version 2023.10.20260316 includes updates to core packages and kernel components, with some releases being recalled due to availability issues. However, there's no specific mention of ENA driver fixes related to the reset-reason path in the available release notes.

Recommendations:

  1. For immediate support: Since this is causing production impact with spontaneous reboots, I recommend adding detailed correspondence to your existing support case through the AWS Support Center (https://console.aws.amazon.com/support/). Include the console output logs, kernel version details, and reproduction patterns you've documented.

  2. Kernel version consideration: Given that you mentioned another cluster on the identical kernel performs more ENI detaches without issues, this suggests the race condition may be influenced by additional factors like timing, workload patterns, or specific hardware configurations.

  3. Temporary mitigation options:

  • Consider testing with kernel 6.1 (which is also available for AL2023) as an interim measure, as it represents an earlier, more mature kernel line
  • Review your ENI attachment/detachment frequency and patterns to see if reducing the rate of operations helps avoid triggering the race condition
  • Monitor for any AL2023 kernel updates that may address this issue
  1. GitHub issue: Your approach of opening an issue on the amzn-drivers repository is appropriate for driver-specific bugs and may yield more targeted information from the driver development team.

Since this appears to be a driver-level bug requiring code analysis and potentially a patch, working through your support case and the GitHub issue simultaneously will give you the best path to resolution.
Sources
Amazon Linux 2023 version 2023.10.20260316 release notes - Amazon Linux 2023

answered 13 days ago

EXPERT

reviewed 13 days ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.