Re: [PATCH net-next v4 07/10] net: ntb_netdev: Reject short RX frames

From: Joe Damato

Date: Fri Sep 18 2026 - 21:17:24 EST


On Mon, Sep 14, 2026 at 05:48:35PM +0900, Koichiro Den wrote:
> ntb_netdev passes RX frames shorter than ETH_HLEN to eth_type_trans(),
> which expects a complete Ethernet header.
>
> Reject them as length errors.
>
> Fixes: 548c237c0a99 ("net: Add support for NTB virtual ethernet device")
> Signed-off-by: Koichiro Den <den@xxxxxxxxxxxxx>
> ---
> Changes in v4:
> - New patch. Included here to fix the existing RX length check before
> adding checks for ntb_netdev_hdr later in the series.
>
> drivers/net/ntb_netdev.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>

Reviewed-by: Joe Damato <joe@xxxxxxx>