linux-IllusionX/drivers/net/ethernet/freescale
Sean Anderson cbd7ec0834 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: 9ad1a37493 ("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>
2024-09-11 16:01:25 -07:00
..
dpaa net: dpaa: Pad packets to ETH_ZLEN 2024-09-11 16:01:25 -07:00
dpaa2 dpaa2-switch: Fix error checking in dpaa2_switch_seed_bp() 2024-08-20 15:17:17 -07:00
enetc net: Add struct kernel_ethtool_ts_info 2024-07-15 08:02:26 -07:00
fman net: fman_memac: remove the now unnecessary checking for fixed-link 2024-05-30 18:32:16 -07:00
fs_enet net: ethernet: Use device_get_match_data() 2023-10-13 10:04:53 +01:00
fec.h ethtool: replace struct ethtool_eee with a new struct ethtool_keee on kernel side 2024-01-31 12:30:47 +00:00
fec_main.c net: Add struct kernel_ethtool_ts_info 2024-07-15 08:02:26 -07:00
fec_mpc52xx.c net: Explicitly include correct DT includes 2023-07-27 20:33:16 -07:00
fec_mpc52xx.h
fec_mpc52xx_phy.c net: Explicitly include correct DT includes 2023-07-27 20:33:16 -07:00
fec_ptp.c net: fec: Stop PPS on driver remove 2024-08-08 08:31:45 -07:00
fsl_pq_mdio.c net: fill in MODULE_DESCRIPTION()s for fsl_pq_mdio 2024-01-24 15:12:21 -08:00
gianfar.c net: annotate writes on dev->mtu from ndo_change_mtu() 2024-05-07 16:19:14 -07:00
gianfar.h eth: gfar: remove a copy of the NAPI_POLL_WEIGHT define 2022-04-29 11:56:42 +01:00
gianfar_ethtool.c net: Add struct kernel_ethtool_ts_info 2024-07-15 08:02:26 -07:00
Kconfig net: fec: allow to build without PAGE_POOL_STATS 2023-06-20 12:11:59 -07:00
Makefile
ucc_geth.c net: Explicitly include correct DT includes 2023-07-27 20:33:16 -07:00
ucc_geth.h
ucc_geth_ethtool.c net: ethernet: move from strlcpy with unused retval to strscpy 2022-08-31 14:11:26 -07:00
xgmac_mdio.c net: Explicitly include correct DT includes 2023-07-27 20:33:16 -07:00