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 64AA93438B9 for ; Tue, 29 Sep 2026 09:38:24 +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=1790674705; cv=none; b=Ru8Id5lmsMX4NCtcVQXzdlR2LkrQjBoPlRX3SdTWwJYRIRUgsTpDsGOJONUMnkB1iJ3r5L5Jf00s2RR9mYvHoeFu31jAgyDjTzFgAqsaZgMWKSKj20sGn5tK12m3305aTuL2wYVRhxTaLB6E3oXQz2dk0PhJyDLbZ/afjqrX4Cg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790674705; c=relaxed/simple; bh=MRXZiyhWovtUAi4pPg9taPb+zFJqVXIjT7bqrtXfrYY=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=uBgg4NmwK9+JI1gpj9uZmwNcOcch6vu4gJYO4jKxmJs7e6ez4NxJYAfD/Ssh0w3k6dKLNBFOdqvMXUIxQkQanmshoiHtzCeOGI5WH7GJfZ87wh7UnUuuxWFjHKkPCqNiRY1HFbrugOkZIS067hF3iFbPuKxbzGmBWJid1dmQFOY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=I7E05UEV; 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="I7E05UEV" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9FADE1F000FF; Tue, 29 Sep 2026 09:38:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790674704; bh=giidf9EVprv4bFlciwYtW/50aS/ZcDEvFEyM19AEVRk=; h=Subject:To:Cc:From:Date; b=I7E05UEVO7B55Shw5wQJ8Sy8QofrVGsGXU/uGxMLE2MZJEegZ+lqpIvgDJj7txOp0 1izYE54zYm18fsbH4d4iYz20A7wm9Vj2U+bnwmMu+uddnpMrysmuCSlGOVk/cempB3 PhioBQ5SmmPdngHaTZn5gt88fcy2UnV53ifok1/4= Subject: FAILED: patch "[PATCH] net: ena: fix MMIO read buffer leak on probe failure" failed to apply to 6.12-stable tree To: lgs201920130244@gmail.com,kuba@kernel.org Cc: From: Date: Tue, 29 Sep 2026 11:38:18 +0200 Message-ID: <2026092918-goldfish-rocker-07f7@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 6.12-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-6.12.y git checkout FETCH_HEAD git cherry-pick -x 9476b4468862927297c94c440863cd8ed1e7cc83 # git commit -s git send-email --to '' --in-reply-to '2026092918-goldfish-rocker-07f7@gregkh' --subject-prefix 'PATCH 6.12.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: