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 17D6937AA7A for ; Tue, 29 Sep 2026 09:38:32 +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=1790674714; cv=none; b=Jju9qENBh1ECHanDkIx9XMQN+JHU31rARhtRY/4hrAlNxlyw+jjwEFs+P7XmEiSaDPNak3vPPGBfwhZ3JVlhC/Fp+SRAhq8GQ58a692yN/qLJik47oIoD1hnWtXJip5b6qxJOy8ndU+yjM7VsLeIbzMIgSHAKn0TcEmRMX7UImU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790674714; c=relaxed/simple; bh=siQBKKxjwCgHDfpUTf/rxYLfe1nxr1L54xvp6duh/gE=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=GpgUWtIMfmbIAS/97xChLccT/57fkJ9P4nub76f9KIFl+1HY5EuIT41RIKRf4Ft9A8IRU455C3I5bK7isnCKpW8SCrlq0SMGE8jDZ++oydV5zqy5zR9nRZyOqbF8o/yBVs24qoKv1jc5cwQ8DZ2JM24mgifaa8Mb1CqW3Lf2t6M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=CzKQXVl8; 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="CzKQXVl8" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 145B51F000FF; Tue, 29 Sep 2026 09:38:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790674712; bh=7AGNp+1BZQZergIxzT9zzFPx70hrLJHV0ZjcbvTUbQY=; h=Subject:To:Cc:From:Date; b=CzKQXVl8flKAuTPYO+cXXycFR5hr9/zo2BxUKVH4TKmn61ICL3y/a3JJc26KAEp3a 2BMzyF+Qh8wAsryykzGAPKvS1czzOvMv/ozOBvHpDY7CCcM7meB2smEmr6iN7yzWfS peBWc9o0kp52/RB6p1tXpfXFiLLYbdLsp2fzSsvI= Subject: FAILED: patch "[PATCH] net: ena: fix MMIO read buffer leak on probe failure" failed to apply to 6.1-stable tree To: lgs201920130244@gmail.com,kuba@kernel.org Cc: From: Date: Tue, 29 Sep 2026 11:38:19 +0200 Message-ID: <2026092919-casualty-fetch-4223@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.1-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.1.y git checkout FETCH_HEAD git cherry-pick -x 9476b4468862927297c94c440863cd8ed1e7cc83 # git commit -s git send-email --to '' --in-reply-to '2026092919-casualty-fetch-4223@gregkh' --subject-prefix 'PATCH 6.1.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: