From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) (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 50CE1384224 for ; Tue, 7 Jul 2026 17:41:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.118.77.11 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783446105; cv=none; b=oQNcxn/DLLQ31jbdVfWRV45qAQ60bVQpc8XB8B9GMPxZ+H6K7pIOtRHcHAYVUum06sKgEmzJ2JLM6cBGZuYi+KMB9aQkZH8RQ31/JAAwxQ24irwaXn7ibvin+ciPek0VbJW25EJiK23Ex2TOXhIlL65ehHBa425gr+IIAYVh0g8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783446105; c=relaxed/simple; bh=i0bQxOBX18UYFMM8jpxcDX7DYW4c5s3mKOoz1KdKh7E=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type: References; b=RCpU7f9eFHPIqWb7Xplv0qvxhzacc6WshJnuEyVBL+pypP3depwYw0y+O0feAvtHjlTuwsKanQOIZwWPB4F52BKr/NUXHlVubUGdITj/Ce3qETasYivpet2g3lxHdwskPnfD+K4LibQDPtkHHAquYMJfe21sMtITjgKsOoNf0vY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com; spf=pass smtp.mailfrom=samsung.com; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b=L/Y3F9RT; arc=none smtp.client-ip=210.118.77.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=samsung.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="L/Y3F9RT" Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20260707174135euoutp0159cf3ff4aeea824d6ab7b11030c1271f~AEsZXYfPW2780127801euoutp01O for ; Tue, 7 Jul 2026 17:41:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20260707174135euoutp0159cf3ff4aeea824d6ab7b11030c1271f~AEsZXYfPW2780127801euoutp01O DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1783446095; bh=Q5JM7bNL+vvD39sKvHstP3GgCnVUZ9CKB+B+yeWlQEg=; h=From:To:Cc:Subject:Date:References:From; b=L/Y3F9RTlHLo98VkCsSuh+UtR71ATMVFANv9mPj2yDBHZrlpg6+aRld7uyr/joUN6 v0g+wmPShDE3aSnGD9TvS7mUCx6NsMP/sPQ/Gmz9rN47FQvmvwmBu74VwRhRc8Wnt6 ehtqLK3NID0EkXo+RsrvbYXXtq1HcjYzsVMDipk8= Received: from eusmtip1.samsung.com (unknown [203.254.199.221]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20260707174134eucas1p2d88b2b6007e833f02ef6497b388374ef~AEsYmDoRO2783027830eucas1p2n; Tue, 7 Jul 2026 17:41:34 +0000 (GMT) Received: from AMDC4843.eu.corp.samsungelectronics.net (unknown [106.120.77.61]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20260707174133eusmtip1f584699ca9032f159ed4a173781ce399~AEsX6Tayo1541815418eusmtip1L; Tue, 7 Jul 2026 17:41:33 +0000 (GMT) From: Jakub Raczynski To: netdev@vger.kernel.org Cc: k.tegowski@samsung.com, k.domagalski@samsung.com, andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, mcoquelin.stm32@gmail.com, alexandre.torgue@foss.st.com, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Jakub Raczynski Subject: [PATCH net 0/2] net/stmmac: Secure against failures of DMA memory allocation Date: Tue, 7 Jul 2026 19:41:13 +0200 Message-Id: <20260707174115.1264466-1-j.raczynski@samsung.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CMS-MailID: 20260707174134eucas1p2d88b2b6007e833f02ef6497b388374ef X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20260707174134eucas1p2d88b2b6007e833f02ef6497b388374ef X-EPHeader: CA X-CMS-RootMailID: 20260707174134eucas1p2d88b2b6007e833f02ef6497b388374ef References: This series fixing two possible issues related to fails of __alloc_dma_rx_desc_resources(). Original issue from 1st patch is related to page_pool that has happened in testing env, while second was requested by Sashiko to have similar change for DMA allocation. To have complete fix for all failures of __alloc_dma_rx_desc_resources(), merge two fixes into series. --- Note: 1st patch "Set Rx queue page_pool to NULL when freeing DMA resources" is set to v2 while this series is v1. I know this is inconsistent, but this series is not v2 and would be even more confusing. Hopefully that doesn't break some CI, as second patch is v1. Link to original: https://lore.kernel.org/netdev/20260630100953.747868-1-j.raczynski@samsung.com/ Changes in v2 (in first patch): - Added reviewed by Maxime - Dropped null check as page_pool_destroy() does provide that - Modified comment to reflect that Jakub Raczynski (2): net/stmmac: Set Rx queue page_pool to NULL when freeing DMA resources net/stmmac: Prevent dma queue NULL free on allocation failure .../net/ethernet/stmicro/stmmac/stmmac_main.c | 20 +++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) -- 2.34.1