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 1E8E21F91F6; Mon, 23 Mar 2026 13:57:32 +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=1774274252; cv=none; b=sgtRQPOUSLGhJnvF4s2lILWfgj/slH1BuIaYn5ssuvoDd8BeTHmfk4PBeLZ5GENhtI+IpOf/fOL5MgH4jBcztPv6FopqDT5sZ/D1fOtlEeA2G7SDtII7obHwF7G3SIVwbkTMIzhl/eZnwHqwaAvdnn4y9SG3F+K48fplk342Izw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774274252; c=relaxed/simple; bh=w3K5AwzGuewXazvDBOJdsFpNoZLgE2sHibLOSgQu60c=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=IWnEhgvvAWkii60Yw5nMwglmaq+0DXY/nzPXexbeCiG1PX/koCepDtpyOEyUhgJELWTkkdMQ066ReF2kcSxPkquTAmd9A+gFOp7KM3X0SlvURCS+8B+qTza0gG9ubDbSl+Gmqp2dn2vpwKGXOWsSYgHn/iRuLcoTMQ05NCLy5JA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=TRRhddfX; 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="TRRhddfX" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 961D2C4CEF7; Mon, 23 Mar 2026 13:57:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1774274252; bh=w3K5AwzGuewXazvDBOJdsFpNoZLgE2sHibLOSgQu60c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TRRhddfXaBZZDO0k9bLkaMBCYbugpc+/njNBJ8gyUzGrYv5VchkC6fliA9PRrzUTQ CSvXTmt5cZOyEWIxT+IkMyq/rWV2sjrwVwRKp80eCfoAlZy2aV/4YOzZCtey2F5wPH NHwV0ZJbvPENNoO16bNNvCieimGDNRTJcU6VLI+o= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Kohei Enju , Simon Horman , Paul Menzel , Avigail Dahan , Tony Nguyen , Sasha Levin Subject: [PATCH 6.19 157/220] igc: fix missing update of skb->tail in igc_xmit_frame() Date: Mon, 23 Mar 2026 14:45:34 +0100 Message-ID: <20260323134509.531953571@linuxfoundation.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260323134504.575022936@linuxfoundation.org> References: <20260323134504.575022936@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.19-stable review patch. If anyone has any objections, please let me know. ------------------ From: Kohei Enju [ Upstream commit 0ffba246652faf4a36aedc66059c2f94e4c83ea5 ] igc_xmit_frame() misses updating skb->tail when the packet size is shorter than the minimum one. Use skb_put_padto() in alignment with other Intel Ethernet drivers. Fixes: 0507ef8a0372 ("igc: Add transmit and receive fastpath and interrupt handlers") Signed-off-by: Kohei Enju Reviewed-by: Simon Horman Reviewed-by: Paul Menzel Tested-by: Avigail Dahan Signed-off-by: Tony Nguyen Signed-off-by: Sasha Levin --- drivers/net/ethernet/intel/igc/igc_main.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/net/ethernet/intel/igc/igc_main.c b/drivers/net/ethernet/intel/igc/igc_main.c index 4439eeb378c1f..6a174d46929e2 100644 --- a/drivers/net/ethernet/intel/igc/igc_main.c +++ b/drivers/net/ethernet/intel/igc/igc_main.c @@ -1730,11 +1730,8 @@ static netdev_tx_t igc_xmit_frame(struct sk_buff *skb, /* The minimum packet size with TCTL.PSP set is 17 so pad the skb * in order to meet this minimum size requirement. */ - if (skb->len < 17) { - if (skb_padto(skb, 17)) - return NETDEV_TX_OK; - skb->len = 17; - } + if (skb_put_padto(skb, 17)) + return NETDEV_TX_OK; return igc_xmit_frame_ring(skb, igc_tx_queue_mapping(adapter, skb)); } -- 2.51.0