linux_dsm_epyc7002/drivers/net/dsa
Florian Fainelli cd526676de net: dsa: b53: Use strlcpy() for ethtool::get_strings
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: 967dd82ffc ("net: dsa: b53: Add support for Broadcom RoboSwitch")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-03-06 11:12:39 -05:00
..
b53 net: dsa: b53: Use strlcpy() for ethtool::get_strings 2018-03-06 11:12:39 -05:00
microchip net: dsa: remove trans argument from mdb ops 2017-12-02 21:18:56 -05:00
mv88e6xxx net: dsa: mv88e6xxx: Free ATU/VTU irq only when there is chip irq 2018-01-19 15:57:02 -05:00
bcm_sf2_cfp.c net: dsa: bcm_sf2: Set correct CHAIN_ID and slice number mask 2017-11-30 14:21:35 -05:00
bcm_sf2_regs.h
bcm_sf2.c net: dsa: bcm_sf2: Update compatible string for 7278B0 2017-12-15 10:57:04 -05:00
bcm_sf2.h
dsa_loop_bdinfo.c
dsa_loop.c net: dsa: remove trans argument from vlan ops 2017-12-02 21:18:55 -05:00
dsa_loop.h
Kconfig net: dsa: Allow compiling out legacy support 2017-12-07 14:14:54 -05:00
lan9303_i2c.c net: dsa: lan9303: Adjust indenting 2017-11-08 13:29:06 +09:00
lan9303_mdio.c net: dsa: lan9303: Adjust indenting 2017-11-08 13:29:06 +09:00
lan9303-core.c net: dsa: lan9303: check error value from devm_gpiod_get_optional() 2018-01-15 13:18:02 -05:00
lan9303.h
Makefile
mt7530.c net: dsa: mediatek: add VLAN support for MT7530 2017-12-15 10:31:54 -05:00
mt7530.h net: dsa: mediatek: add VLAN support for MT7530 2017-12-15 10:31:54 -05:00
mv88e6060.c net: dsa: Pass a port to get_tag_protocol() 2017-11-13 10:34:54 +09:00
mv88e6060.h
qca8k.c net: dsa: Pass a port to get_tag_protocol() 2017-11-13 10:34:54 +09:00
qca8k.h