From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796229298; b=cQvmQzSZmxg7QuMJR5E4uAQH7vuh0SuLHk9Yve+wZuwWVY2zI7aD2svQhcEnXNv+UlFT 5hmdWjY9KBBmjU8HC6rPoSuw0bmun2+PrpAeVBtu1yk4g3Z86y0QuCfSLFiWnhKEs6KOk FsaqO8CyYqykIhvztk9mgH3Y0k0S3knXzJ/Vz2nL64lSENdgf+0bRs7i2X1kOnHSZKjTr 0O0so04JuF+LG+d6qGIi7h1bRnGZUo11HUwyDBthQcTFMU0lV1KEP9vgNMUvnewfR6ZyO Vu60gGGRY6N4LitA0JDRjBYOTygHtaAZNDux6Cu1HtHps5CBwRyp0u3yQae8vYtEMIA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796229298; h=Received:DKIM-Signature:Subject:To:Cc:From:Date:Message-ID: MIME-Version:Content-Type:Content-Transfer-Encoding; bh=fjoBev+Gb+7KjTSF8kRI2jI+r1P55XrVQnOE8UH1804=; b=GFPRLWmk/n7+vVuyQIQ41i1yWsNDMPKXHhdsU3ewOIvUqvkN2X4w0us+/JuMXCvW65/x m7rei4NsNkB8ZZpqD7EHS67yHtWwUAfCjoJoFpqm6hol/6pWAlS+8trIAyvjvk+z0GqfC b+lryXamU/irofpgeG43+JQdxqGxSGW8m/N6I15Uh91/EAF0WD0XbFtNapXQk++ezrTIF A3QKRI/KiNwicz2XT6nfjLPTAUz7vDjHdDCTvejSbGHVK4ZmbACKgQ9+Uc68pwCv7185b Xv8v40IAeaTNqSSWY5tAgn8xMtNnC5lw1cBrqxcD2/GeZst9DPNK5eEZTmZrTpy4bkg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b="CIm/ldpQ"; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 37A4E606A32A for ; Wed, 2 Dec 2026 16:34:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=CIm/ldpQ Received: by smtp.kernel.org (Postfix) with ESMTPSA id 147F91F00897; Wed, 2 Dec 2026 16:34:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796229297; bh=fjoBev+Gb+7KjTSF8kRI2jI+r1P55XrVQnOE8UH1804=; h=Subject:To:Cc:From:Date; b=CIm/ldpQpnQjB3ujRI4NLXFo0fJ6Y4OxWDW4QfFkN0eXdE5aJc+gs+MS9xwkEYwwe EnR4tSyH8FgDSdODjZiONxPrh5cZWIJzXPQ+h1hLESv1yLtt5O3xTOSKAoaMcmAQpV izOo/FacT9oiUqkNrGGrVD8Fl8dUvDOGJIUePoj4= Subject: FAILED: patch "[PATCH] net: stmmac: drop the rest of the frame when napi_build_skb()" failed to apply to 6.12-stable tree To: aiyengar1990@gmail.com,kuba@kernel.org,maxime.chevallier@bootlin.com Cc: From: Date: Wed, 02 Dec 2026 17:07:13 +0100 Message-ID: <2026120213-cherub-disarm-03b0@gregkh> X-Mailing-List: stable@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list 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 ece404eac250fc4be7aa4cec82e8c248cca83c28 # git commit -s git send-email --to '' --in-reply-to '2026120213-cherub-disarm-03b0@gregkh' --subject-prefix 'PATCH 6.12.y' 'HEAD^..' Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From ece404eac250fc4be7aa4cec82e8c248cca83c28 Mon Sep 17 00:00:00 2001 From: Arun Iyengar Date: Fri, 13 Nov 2026 17:13:40 +0000 Subject: [PATCH] net: stmmac: drop the rest of the frame when napi_build_skb() fails If napi_build_skb() fails on the first buffer of a frame that spans several descriptors, stmmac_rx() drops that buffer but goes on with the next descriptor of the same frame as if a new frame started there. The rest of the frame is then passed up the stack as a frame of its own. A frame spans several descriptors when it does not fit in the RX buffers of one descriptor. Mark the frame as errored instead, so that its remaining descriptors are discarded like those of a frame with a receive error. The frame is counted once in rx_dropped and once against the NAPI budget. Found while working on the sun8i EMAC jumbo frame series, where frames over 2032 bytes span several descriptors. Tested on an Orange Pi Zero2 (dwmac-sun8i, MTU 4070), w/ jumbo series and error injection. Fixes: ec222003bd94 ("net: stmmac: Prepare to add Split Header support") Cc: stable@vger.kernel.org Signed-off-by: Arun Iyengar Reviewed-by: Maxime Chevallier Link: https://patch.msgid.link/20261113-stmmac-rx-skb-fail-v1-1-fcaae89f2d2c@gmail.com Signed-off-by: Jakub Kicinski diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c index ee63f5ecf570..9a9c44aab2e4 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c @@ -6045,7 +6045,7 @@ static int stmmac_rx(struct stmmac_priv *priv, int limit, u32 queue) buf->page); buf->page = NULL; rx_dropped++; - count++; + error = 1; goto drain_data; } @@ -6081,7 +6081,7 @@ static int stmmac_rx(struct stmmac_priv *priv, int limit, u32 queue) if (likely(status & rx_not_ls)) goto read_again; if (!skb) - continue; + goto next; /* Got entire packet into SKB. Finish it. */