Article View: linux.kernel.netdev
Article #203Re: [PATCH net] net: usb: ax88179_178a: fix rx frame length for non-last packets
From: Simon Horman
Date: Wed, 07 Oct 2026 14:31
Date: Wed, 07 Oct 2026 14:31
26 lines
6885 bytes
6885 bytes
On Fri, Oct 02, 2026 at 02:28:57PM +0200, Fredrik Nyberg via B4 Relay wrote:
> From: Fredrik Nyberg <fredrik.nyberg@volvocars.com>
>
> Commit 4ce62d5b2f7a ("net: usb: ax88179_178a: stop lying about
> skb->truesize") replaced skb_clone() with a copy into a new skb for
> every packet of a bulk-in transfer except the last one. The copy skips
> the 2-byte IP alignment pseudo header but still copies pkt_len bytes,
> and pkt_len includes that header. Each of these frames is therefore
> delivered with two extra trailing bytes: the 0xeeee pseudo header of
> the next slot when the frame ends on an 8-byte boundary, or slot
> padding otherwise. The last packet is still trimmed to pkt_len - 2.
>
> IPv4 and IPv6 trim the extra bytes, so most traffic is unaffected.
> Anything that relies on the frame length is not. MACsec takes the ICV
> from the last 16 bytes and drops every such frame as InPktsNotValid. In
> our setup that was 0.2-1.2% of received MACsec frames, depending on how
> many frames shared a transfer, including service discovery multicast.
>
> Allocate and copy pkt_len - 2 bytes, like the last-packet path.
>
> Fixes: 4ce62d5b2f7a ("net: usb: ax88179_178a: stop lying about skb->truesize")
> Cc: stable@vger.kernel.org
> Signed-off-by: Fredrik Nyberg <fredrik.nyberg@volvocars.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Technical Details
Message-ID:
<20261007143137.GQ83879@horms.kernel.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-342370-linux-kernel-netdev=dewy.ruReferences:
<20261002-ax88179-rx-len-v1-1-f01a2a295079@volvocars.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-342370-linux-kernel-netdev=dewy.ru From: horms@kernel.org (Simon Horman) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net] net: usb: ax88179_178a: fix rx frame length for non-last packets Date: Wed, 7 Oct 2026 15:31:37 +0100 Organization: Usenet Network Message-ID: <20261007143137.GQ83879@horms.kernel.org> References: <20261002-ax88179-rx-len-v1-1-f01a2a295079@volvocars.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: usenet.network; logging-data="665925"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:QjCMEgPOC81bnu4bseZ2oglbnwE= sha256:1pWyVBAjxOExYmfJi4sgtQFGiYReQ7fU0GfvpGpartE= sha1:Wd1+kejEIMiAJiZQCz0BfgGNsgQ= sha256:CsFOZ3c46u8lcXzNz1l6IS2ZMIVzm7/52Oei3XyCmLw= Content-Disposition: inline List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 5CB8C10F190; Wed, 7 Oct 2026 17:40:02 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.641 X-Spam-Status: No, score=-3.641 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.241, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=kernel.org X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MI8iKzC_RQpz; Wed, 7 Oct 2026 17:39:59 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-342370-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mail.dewy.ru (Postfix) with ESMTPS id 58FF010F158; Wed, 7 Oct 2026 17:39:56 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by tor.lore.kernel.org (Postfix) with ESMTP id 22F663874E; Wed, 7 Oct 2026 14:32:13 +0000 (UTC) X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 019714AA1E1; Wed, 7 Oct 2026 14:31:49 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="fvkQA9AR" X-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 C2A8139EF1C; Wed, 7 Oct 2026 14:31:43 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791383508; cv=none; b=LOJMk9deUBtan6YTGfygbuD6ypJPL+VdA4ThrA7Pr+GHFouAXLZEIPJx1w1H7j/WpCjuCRaOWEJY6384io5giTZK0NEmLs7vJnzeE+Y8/YACNzBfjLfXRwLvsGaNAzdlWwfwmePF3r+FcKab9cEbqXOwRgS0TbzuXO0mPZRCOts= X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791383508; c=relaxed/simple; bh=EWOXX0pSdVpVw0OMH8V6abkv3BIwXFK0qW0lRd/OYK4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=e9+xVZGMaE42DzrjY9NeNsIGfxEnnLnrRgo2HNvexzzsr+cTFg217MuL92v1Dhzm/Iu/6iRDhE98WEwmhEFN+hBCLmRU/B6USMqPG9ysFizrseqEDDTKEMlUMUIg/DzUQFP/Le/1r+tdKv12Dg2G7+rrtXCRzIYyd1/Zv6LLMrI= X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=fvkQA9AR; arc=none smtp.client-ip=100.103.45.18 X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 42D1D1F0089C; Wed, 7 Oct 2026 14:31:40 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1791383503; bh=mVdNjo/aJq7ORJIk7eTcpj5IV+csgIa9+cL62v3XkAU=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=fvkQA9ARbrEG6VR4KEwjSRrfOi0xyixaPV0x+kDwWYZW8tFswTwcusfBL4ubBaLSr q3gzEu7CB1dZJDHsMms4vA7Els7Iz+ZaJLDpT1C4lA+y/DKg+pznLTwZGUfNw7VedH Ccd+YUrArLgz094DZKHyqEfzncOzmJBFfx9r97lkfaJf9vSx5ZTK4XqJmYTixv+waz VU/+MkzOKsNDSt3M0Mf5seAOTwsZg3FSAULjFcme7cXczflXB5PJaf3D2/KGXWIyZE pl0fIck59YPsS0hsu2W0QUZw7bP5njy/3ftBJLG5yRwiFLbhM1JAATQwXQnewXD5zo TJgEYa0gSDlHw== X-Cc: Andrew Lunn <andrew+netdev@lunn.ch>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@kernel.org>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, linux-usb@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Jose Alonso <joalonsof@gmail.com>, stable@vger.kernel.org X-Precedence: bulk X-Mailing-List: netdev@vger.kernel.org X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-In-Reply-To: <20261002-ax88179-rx-len-v1-1-f01a2a295079@volvocars.com>