From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 A5B06423A99; Tue, 31 Mar 2026 16:56:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774976217; cv=none; b=Wf7tMaNhgiVwMByy/zuWJ9eC5lQNq/3LFcI+OcVGi3NyoKEgbCweRRt2D1nfiu7wBgObJkZ+nbpRxCf3UlzFE3BgRJQ0SVd/D4N8VDb+JGc6TqKFqGeAf3/KQ+ShggLCS2CtYTL5KPvC6qmBpn0WW20ULDq2t+whPvZuqHf3TO8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774976217; c=relaxed/simple; bh=dKdFs1ONmxSSrUN5+trAMwix7M1FtkixQPQ8xNzF9hk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Ug8PHFLiO9aB90IHZb8pA93T8cn4dkWX5gFhwlYTd5S+4zVArIDEz/bcyKqq97tmizerGbpqj5/LV4cZUZmE0LB9i4XSm0WWC69oH1egeHtwXHaFCeJmOteXnlVw/662lVSsSDVUWMNAtyH64l+6wTAgBBGS1e5ZhcJch0yx78Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=EmBn31h0; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="EmBn31h0" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 39E38C19424; Tue, 31 Mar 2026 16:56:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1774976217; bh=dKdFs1ONmxSSrUN5+trAMwix7M1FtkixQPQ8xNzF9hk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EmBn31h0aBPruVm1HgVZA6bLbak8aSt75UnyY5h+AsHbOHQ75sFoVT9vnSUAo4Sql 5cTFY/kXip1f1PxbzIu6Iud8Q3anmKCMakd47FFiSowYuLxSn8fGcHYTWTGcMN2L1k 3u3xp0htCPp8g5J5T5rEMhtnYKMAAxAnX3uPy/t8= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Li Li , Aleksandr Loktionov , Samuel Salin , Tony Nguyen Subject: [PATCH 6.12 244/244] idpf: nullify pointers after they are freed Date: Tue, 31 Mar 2026 18:23:14 +0200 Message-ID: <20260331161750.768396800@linuxfoundation.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260331161741.651718120@linuxfoundation.org> References: <20260331161741.651718120@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Li Li commit bc3b31977314433e4685ae92853d1b6e91ad7bc2 upstream. rss_data->rss_key needs to be nullified after it is freed. Checks like "if (!rss_data->rss_key)" in the code could fail if it is not nullified. Tested: built and booted the kernel. Fixes: 83f38f210b85 ("idpf: Fix RSS LUT NULL pointer crash on early ethtool operations") Signed-off-by: Li Li Reviewed-by: Aleksandr Loktionov Tested-by: Samuel Salin Signed-off-by: Tony Nguyen Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/intel/idpf/idpf_lib.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/net/ethernet/intel/idpf/idpf_lib.c +++ b/drivers/net/ethernet/intel/idpf/idpf_lib.c @@ -1230,6 +1230,7 @@ static struct idpf_vport *idpf_vport_all free_rss_key: kfree(rss_data->rss_key); + rss_data->rss_key = NULL; free_vector_idxs: kfree(vport->q_vector_idxs); free_vport: