From mboxrd@z Thu Jan 1 00:00:00 1970 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 1A9221C695; Thu, 2 Jul 2026 16:56:47 +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=1783011408; cv=none; b=caqWh77J2SxmL4r37xL0igLXenqn/UQbEQrkYv+CjzKZedMf6zUNucSIqiLPyPw+MzovsAB8HTAvZwusqxsWZkuJqrxYMrA0c14fLEeAWdXD3fhPPgU/efF0+I/AoiHRaEaEntqh2ycs0bQ/NMCxOVUVAQK4RuU9f8237mbBr4k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783011408; c=relaxed/simple; bh=GJ2H9wkHqs6b5/O2b74Qvjgz7cL3/8dRR7R1r7YjxNc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=lvyW+ADuVfqgI+y/S+lNuh9sgAQq4lFKXsh/kK//4vi1DwXkPsYztUj95F96cPvzfPTtU145ZqdRMhklM/KJwtE97EXcwsvJUGp2PjT3rwUGEP8r/BHYtqBmJRJM3FG9qNmO9cr6JVcxSoEXtRX1vW6uuhSQz24XEjBOgzrJYv0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=D7hgww5S; 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="D7hgww5S" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 81DFA1F000E9; Thu, 2 Jul 2026 16:56:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1783011407; bh=d846CjjQeMifoovuX6wp+7Pow9w5GJ9fAvU3F4jKEF0=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=D7hgww5SiBljwLVyJwauY5JNtkTe5dLanW/9UQ89wWBAGghZWBJZaZJNBKoE+OtWu k/OSJ1BS5OUVyaYzAezQalcIhsYRhGwleRl20tNmP8t/8XM0AaCWTfz4YwWFVa7NxS FwDjFX/gvC/2jFqvOe+RVCOlbgZMRurwcQSOVwgk= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Jose Ignacio Tornos Martinez , Baochen Qiang , Rameshkumar Sundaram , Jeff Johnson Subject: [PATCH 6.18 053/108] wifi: ath11k: fix warning when unbinding Date: Thu, 2 Jul 2026 18:20:50 +0200 Message-ID: <20260702155113.208784269@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260702155112.110058792@linuxfoundation.org> References: <20260702155112.110058792@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Jose Ignacio Tornos Martinez commit 8b7a26b6681922a38cd5a7829ace61f8e54df9b7 upstream. If there is an error during some initialization related to firmware, the buffers dp->tx_ring[i].tx_status are released. However this is released again when the device is unbinded (ath11k_pci), and we get: WARNING: CPU: 0 PID: 6231 at mm/slub.c:4368 free_large_kmalloc+0x57/0x90 Call Trace: free_large_kmalloc ath11k_dp_free ath11k_core_deinit ath11k_pci_remove ... The issue is always reproducible from a VM because the MSI addressing initialization is failing. In order to fix the issue, just set the buffers to NULL after releasing in order to avoid the double free. Fixes: d5c65159f289 ("ath11k: driver for Qualcomm IEEE 802.11ax devices") Cc: stable@vger.kernel.org Signed-off-by: Jose Ignacio Tornos Martinez Reviewed-by: Baochen Qiang Reviewed-by: Rameshkumar Sundaram Link: https://patch.msgid.link/20260420110130.509670-1-jtornosm@redhat.com Signed-off-by: Jeff Johnson Signed-off-by: Greg Kroah-Hartman --- drivers/net/wireless/ath/ath11k/dp.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/net/wireless/ath/ath11k/dp.c +++ b/drivers/net/wireless/ath/ath11k/dp.c @@ -1042,6 +1042,7 @@ void ath11k_dp_free(struct ath11k_base * idr_destroy(&dp->tx_ring[i].txbuf_idr); spin_unlock_bh(&dp->tx_ring[i].tx_idr_lock); kfree(dp->tx_ring[i].tx_status); + dp->tx_ring[i].tx_status = NULL; } /* Deinit any SOC level resource */