kernel_samsung_a53x/drivers/net/ethernet/freescale
Sean Anderson 3ad5828caa net: dpaa: Pad packets to ETH_ZLEN
[ Upstream commit cbd7ec083413c6a2e0c326d49e24ec7d12c7a9e0 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-23 23:21:13 +01:00
..
dpaa net: dpaa: Pad packets to ETH_ZLEN 2024-11-23 23:21:13 +01:00
dpaa2 net/dpaa2: Avoid explicit cpumask var allocation on stack 2024-11-19 14:19:32 +01:00
enetc Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fman Backport mac80211 patches from linux-6.1.y 2024-06-15 16:29:20 -03:00
fs_enet Backport mac80211 patches from linux-6.1.y 2024-06-15 16:29:20 -03:00
fec.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fec_main.c net: fec: Fix FEC_ECR_EN1588 being cleared on link-down 2024-11-23 23:20:07 +01:00
fec_mpc52xx.c Backport mac80211 patches from linux-6.1.y 2024-06-15 16:29:20 -03:00
fec_mpc52xx.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fec_mpc52xx_phy.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fec_ptp.c net: fec: Stop PPS on driver remove 2024-11-23 23:20:22 +01:00
fsl_pq_mdio.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
gianfar.c Backport mac80211 patches from linux-6.1.y 2024-06-15 16:29:20 -03:00
gianfar.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
gianfar_ethtool.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ucc_geth.c Backport mac80211 patches from linux-6.1.y 2024-06-15 16:29:20 -03:00
ucc_geth.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ucc_geth_ethtool.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
xgmac_mdio.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00