Re: [PATCH net 0/2] tap/tun: harden by dropping short frame
From: patchwork-bot+netdevbpf
Date: Thu Jul 25 2024 - 11:19:29 EST
Hello:
This series was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:
On Wed, 24 Jul 2024 10:04:50 -0700 you wrote:
> This is to harden all of tap/tun to avoid any short frame smaller than the
> Ethernet header (ETH_HLEN).
>
> While the xen-netback already rejects short frame smaller than ETH_HLEN ...
>
> 914 static void xenvif_tx_build_gops(struct xenvif_queue *queue,
> 915 int budget,
> 916 unsigned *copy_ops,
> 917 unsigned *map_ops)
> 918 {
> ... ...
> 1007 if (unlikely(txreq.size < ETH_HLEN)) {
> 1008 netdev_dbg(queue->vif->dev,
> 1009 "Bad packet size: %d\n", txreq.size);
> 1010 xenvif_tx_err(queue, &txreq, extra_count, idx);
> 1011 break;
> 1012 }
>
> [...]
Here is the summary with links:
- [net,1/2] tap: add missing verification for short frame
https://git.kernel.org/netdev/net/c/ed7f2afdd0e0
- [net,2/2] tun: add missing verification for short frame
https://git.kernel.org/netdev/net/c/049584807f1d
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html