kernel_optimize_test/drivers/net/phy
Antoine Tenart 1c95d4d432 net: phy: mscc: fix macsec key length
[ Upstream commit c309217f91f2d2097c2a0a832d9bff50b88c81dc ]

The key length used to store the macsec key was set to MACSEC_KEYID_LEN
(16), which is an issue as:
- This was never meant to be the key length.
- The key length can be > 16.

Fix this by using MACSEC_MAX_KEY_LEN instead (the max length accepted in
uAPI).

Fixes: 28c5107aa9 ("net: phy: mscc: macsec support")
Reported-by: Lior Nahmanson <liorna@nvidia.com>
Signed-off-by: Antoine Tenart <atenart@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-07-14 16:56:28 +02:00
..
mscc net: phy: mscc: fix macsec key length 2021-07-14 16:56:28 +02:00
adin.c
amd.c
aquantia_hwmon.c
aquantia_main.c
aquantia.h
at803x.c
ax88796b.c
bcm-cygnus.c
bcm-phy-lib.c net: phy: broadcom: Only advertise EEE for supported modes 2021-04-14 08:42:08 +02:00
bcm-phy-lib.h
bcm7xxx.c
bcm63xx.c
bcm87xx.c
bcm54140.c
bcm84881.c
broadcom.c net: phy: broadcom: Fix RGMII delays for BCM50160 and BCM50610M 2021-03-30 14:32:05 +02:00
cicada.c
cortina.c
davicom.c
dp83tc811.c
dp83640_reg.h
dp83640.c
dp83822.c net: phy: introduce phydev->port 2021-03-30 14:32:05 +02:00
dp83848.c
dp83867.c net: phy: dp83867: perform soft reset and retain established link 2021-06-30 08:47:21 -04:00
dp83869.c net: phy: introduce phydev->port 2021-03-30 14:32:05 +02:00
et1011c.c
fixed_phy.c
icplus.c
intel-xway.c net: phy: intel-xway: enable integrated led functions 2021-05-14 09:50:41 +02:00
Kconfig
linkmode.c
lxt.c net: phy: introduce phydev->port 2021-03-30 14:32:05 +02:00
Makefile
marvell.c net: phy: marvell: fix m88e1111_set_downshift 2021-05-14 09:50:42 +02:00
marvell10g.c net: phy: introduce phydev->port 2021-03-30 14:32:05 +02:00
mdio_bus.c net: mdiobus: get rid of a BUG_ON() 2021-06-16 12:01:36 +02:00
mdio_device.c
mdio_devres.c
mdio-boardinfo.c
mdio-boardinfo.h
meson-gxl.c
micrel.c net: phy: introduce phydev->port 2021-03-30 14:32:05 +02:00
microchip_t1.c
microchip.c
mii_timestamper.c
national.c
nxp-tja11xx.c
phy_device.c net: phy: introduce phydev->port 2021-03-30 14:32:05 +02:00
phy_led_triggers.c
phy-c45.c
phy-core.c
phy.c net: phy: introduce phydev->port 2021-03-30 14:32:05 +02:00
phylink.c net: phylink: Fix phylink_err() function name error in phylink_major_config 2021-03-30 14:31:59 +02:00
qsemi.c
realtek.c
rockchip.c
sfp-bus.c net: sfp: relax bitrate-derived mode check 2021-04-16 11:43:22 +02:00
sfp.c net: sfp: cope with SFPs that set both LOS normal and LOS inverted 2021-04-16 11:43:22 +02:00
sfp.h
smsc.c net: phy: lan87xx: fix access to wrong register of LAN87xx 2021-05-14 09:50:31 +02:00
spi_ks8995.c
ste10Xp.c
swphy.c
swphy.h
teranetics.c
uPD60620.c
vitesse.c
xilinx_gmii2rgmii.c