]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: dpaa: Pad packets to ETH_ZLEN
authorSean Anderson <sean.anderson@linux.dev>
Tue, 10 Sep 2024 14:31:44 +0000 (10:31 -0400)
committerJakub Kicinski <kuba@kernel.org>
Wed, 11 Sep 2024 23:01:25 +0000 (16:01 -0700)
commitcbd7ec083413c6a2e0c326d49e24ec7d12c7a9e0
tree5f80b68e9558f1f4c0e175f02d611ad312318fbb
parentb4cd80b0338945a94972ac3ed54f8338d2da2076
net: dpaa: Pad packets to ETH_ZLEN

When sending packets under 60 bytes, up to three bytes of the buffer
following the data may be leaked. Avoid this by extending all packets to
ETH_ZLEN, ensuring nothing is leaked in the padding. This bug can be
reproduced by running

$ ping -s 11 destination

Fixes: 9ad1a3749333 ("dpaa_eth: add support for DPAA Ethernet")
Suggested-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Sean Anderson <sean.anderson@linux.dev>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20240910143144.1439910-1-sean.anderson@linux.dev
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/freescale/dpaa/dpaa_eth.c