All of lore.kernel.org
 help / color / mirror / Atom feed
From: Simon Horman <horms@kernel.org>
To: Aibing Chen <chenaibing@cmss.chinamobile.com>
Cc: netdev-bot+sinfo@kernel.org, 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
Subject: Re: [PATCH v2] net: hso: cap the MTU and drop oversized frames
Date: Sat, 28 Nov 2026 15:24:22 +0000	[thread overview]
Message-ID: <20261128152422.GA804035@horms.kernel.org> (raw)
In-Reply-To: <20261120095337.1088-1-chenaibing@cmss.chinamobile.com>

On Fri, Nov 20, 2026 at 05:53:37PM +0800, Aibing Chen wrote:
> Hi,
> 
> Same provenance as for v1: the missing bound was found by code inspection,
> after the automated review of the companion skb_tx_buf fix in this driver
> reported that hso_net_start_xmit() copies skb->len bytes into the fixed
> 2048 byte mux_bulk_tx_buf without a bound check, and that hso_net_init()
> never sets max_mtu.
> 
> The overflow itself was not triggered at runtime; it is statically
> decidable from the code.  The additional paths listed in the review of v1
> (AF_PACKET with PACKET_VNET_HDR, tpacket_snd() with a vnet header, and a
> route MTU metric above the device MTU) are covered by the length check
> added in v2, which drops such frames with SKB_DROP_REASON_PKT_TOO_BIG and
> tx_dropped accounting.

Reviewed-by: Simon Horman <horms@kernel.org>


  reply	other threads:[~2026-11-28 15:24 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-16  1:49 [PATCH] net: hso: cap the MTU to the mux tx buffer size Aibing Chen
2026-11-16  1:53 ` netdev-bot+sinfo
2026-11-16  2:58   ` Aibing Chen
2026-11-16  1:58 ` sashiko-bot
2026-11-19 19:50 ` netdev-bot+sashiko
2026-11-20  1:23 ` [PATCH v2] net: hso: cap the MTU and drop oversized frames Aibing Chen
2026-11-20  1:26   ` netdev-bot+sinfo
2026-11-20  9:53     ` Aibing Chen
2026-11-28 15:24       ` Simon Horman [this message]
2026-11-20  1:28   ` sashiko-bot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261128152422.GA804035@horms.kernel.org \
    --to=horms@kernel.org \
    --cc=andrew+netdev@lunn.ch \
    --cc=chenaibing@cmss.chinamobile.com \
    --cc=davem@davemloft.net \
    --cc=edumazet@kernel.org \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=netdev-bot+sinfo@kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.