android_kernel_sony_sdm845/drivers/net/phy
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Florian Fainelli 0101213f67 net: phy: micrel: Use strlcpy() for ethtool::get_strings
commit 55f53567afe5f0cd2fd9e006b174c08c31c466f8 upstream.

Our statistics strings are allocated at initialization without being
bound to a specific size, yet, we would copy ETH_GSTRING_LEN bytes using
memcpy() which would create out of bounds accesses, this was flagged by
KASAN. Replace this with strlcpy() to make sure we are bound the source
buffer size and we also always NUL-terminate strings.

Fixes: 2b2427d064 ("phy: micrel: Add ethtool statistics counters")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-05-20 08:15:37 +02:00
..
amd.c
aquantia.c
at803x.c
bcm-cygnus.c
bcm-phy-lib.c
bcm-phy-lib.h
bcm7xxx.c
bcm63xx.c
bcm87xx.c
broadcom.c
cicada.c
davicom.c
dp83640.c dp83640: reverse arguments to list_add_tail 2020-05-20 08:15:24 +02:00
dp83640_reg.h
dp83848.c
dp83867.c
et1011c.c
fixed_phy.c net: phy: fixed_phy: Fix fixed_phy not checking GPIO 2020-01-29 10:24:14 +01:00
icplus.c
intel-xway.c
Kconfig
lxt.c
Makefile
marvell.c net: phy: marvell: Fix buffer overrun with stats counters 2019-05-08 07:19:05 +02:00
mdio-bcm-iproc.c net: phy: restore mdio regs in the iproc mdio driver 2020-03-11 07:53:04 +01:00
mdio-bcm-unimac.c
mdio-bitbang.c
mdio-cavium.c
mdio-cavium.h
mdio-gpio.c
mdio-hisi-femac.c
mdio-moxart.c
mdio-mux-bcm-iproc.c
mdio-mux-gpio.c
mdio-mux-mmioreg.c
mdio-mux.c
mdio-octeon.c
mdio-sun4i.c
mdio-thunder.c
mdio-xgene.c
mdio-xgene.h
mdio_bus.c mdio_bus: Fix use-after-free on device_register fails 2019-03-19 13:14:09 +01:00
mdio_device.c
micrel.c net: phy: micrel: Use strlcpy() for ethtool::get_strings 2020-05-20 08:15:37 +02:00
microchip.c
mscc.c
national.c net/phy: fix DP83865 10 Mbps HDX loopback disable function 2019-10-05 12:30:13 +02:00
phy.c net: phy: Keep reporting transceiver type 2020-01-29 10:24:36 +01:00
phy_device.c net: phy: fix MDIO bus PM PHY resuming 2020-03-20 09:07:43 +01:00
qsemi.c
realtek.c
smsc.c
spi_ks8995.c spi: Micrel eth switch: declare missing of table 2019-05-16 19:43:43 +02:00
ste10Xp.c
swphy.c
swphy.h
teranetics.c
vitesse.c
xilinx_gmii2rgmii.c net: phy: xgmiitorgmii: Support generic PHY status read 2019-02-23 09:05:58 +01:00