Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BF5BB4D9577 for ; Tue, 29 Sep 2026 09:38:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790674716; cv=none; b=Gc+Q4X8YtVtM/HNoTwcJ1VqkXMKwQtDGhHu3K6XU/vivAxvdo+3VT1/86CZYmmMfuxw+IzFqbTDglqB5VNOmQN+/To+Yzbcq6ZtC55jbJneBCRWlEtxqBjOddwgjVPstltvswPjlIybUCdjjByDA35R5e4xJN0yk6W9tsUQdunk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790674716; c=relaxed/simple; bh=pC85uXZxHz+dWce/pGIts0dphhkRW6ZWMYvwHrA/If0=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=mdk6FLAbC2G1P7zdXhBm//Ee5iW4Y2CJETBzRR9szJhhnlAl7IoiuG2Zf29XZqp342cqmmNScK1pL2IoaDUh5rdCLuZPPWXEKMwPyFNmdOdT6rB1bz2g8X2B7JXWwC24y+m9rNKpp6zDX3VlGxwjfnhxFwRTs3evLPEPkzI475s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=HdwDP+Ul; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="HdwDP+Ul" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D5CB01F000FF; Tue, 29 Sep 2026 09:38:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790674715; bh=tnQ4czufJxlkEKmQ0KolydaQjuOvH9QngOUGpSxLfD4=; h=Subject:To:Cc:From:Date; b=HdwDP+Ulocsu27l5xpcCt/kIJC19FJ8sLDXBbLS4KJjHpcG4kHN5IGvHqmoFpbu6s Ak/831Sleh929oL+svO+ALnouoJKKfaveXhR9qFenNQNpBIIKtu40JCQop3c7VmspB Xsmz8MDbE+0PlEUZZ/dlQaGAQQMyTnFTdhcN4lx0= Subject: FAILED: patch "[PATCH] net: ena: fix MMIO read buffer leak on probe failure" failed to apply to 5.15-stable tree To: lgs201920130244@gmail.com,kuba@kernel.org Cc: From: Date: Tue, 29 Sep 2026 11:38:19 +0200 Message-ID: <2026092919-snitch-prompter-ea9f@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit The patch below does not apply to the 5.15-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . To reproduce the conflict and resubmit, you may use the following commands: git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-5.15.y git checkout FETCH_HEAD git cherry-pick -x 9476b4468862927297c94c440863cd8ed1e7cc83 # git commit -s git send-email --to '' --in-reply-to '2026092919-snitch-prompter-ea9f@gregkh' --subject-prefix 'PATCH 5.15.y' 'HEAD^..' Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ From 9476b4468862927297c94c440863cd8ed1e7cc83 Mon Sep 17 00:00:00 2001 From: Guangshuo Li Date: Mon, 21 Sep 2026 23:42:02 +0800 Subject: [PATCH] net: ena: fix MMIO read buffer leak on probe failure ena_device_init() initializes the MMIO read mechanism with ena_com_mmio_reg_read_request_init(), which allocates a coherent DMA buffer for MMIO read responses. The normal removal path releases this buffer through ena_com_mmio_reg_read_request_destroy(). However, if ena_probe() fails after ena_device_init() succeeds, the error path destroys the admin resources and eventually frees ena_dev without destroying the MMIO read request, leaving the coherent DMA buffer allocated. Call ena_com_mmio_reg_read_request_destroy() in the probe error path before releasing the remaining device resources. This issue was found by manual code inspection. Fixes: 1738cd3ed342 ("net: ena: Add a driver for Amazon Elastic Network Adapters (ENA)") Cc: stable@vger.kernel.org Signed-off-by: Guangshuo Li Link: https://patch.msgid.link/20260921154202.471662-3-lgs201920130244@gmail.com Signed-off-by: Jakub Kicinski diff --git a/drivers/net/ethernet/amazon/ena/ena_netdev.c b/drivers/net/ethernet/amazon/ena/ena_netdev.c index 5f0864d16dd3..7eb6456ed0d5 100644 --- a/drivers/net/ethernet/amazon/ena/ena_netdev.c +++ b/drivers/net/ethernet/amazon/ena/ena_netdev.c @@ -4123,6 +4123,7 @@ err_device_destroy: ena_com_delete_host_info(ena_dev); ena_com_admin_destroy(ena_dev); ena_phc_destroy(adapter); + ena_com_mmio_reg_read_request_destroy(ena_dev); ena_devlink_destroy: ena_devlink_free(devlink); err_metrics_destroy: