lkml.org 
[lkml]   [2018]   [Mar]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH net 0/4] net: dsa: Use strncpy() for ethtool::get_strings
Date
Hi all,

After turning on KASAN on one of my systems, I started getting lots of out of
bounds errors while fetching a given port's statistics, and indeed using
memcpy() is unsafe for copying strings, so let's use strncpy() instead.

Florian Fainelli (4):
net: dsa: b53: Use strncpy() for ethtool::get_strings
net: dsa: loop: Use strncpy() for ethtool::get_strings
net: dsa: microchip: Utilize strncpy() for ethtool::get_strings
net: dsa: mv88e6xxx: Utilize strncpy() for ethtool::get_strings

drivers/net/dsa/b53/b53_common.c | 4 ++--
drivers/net/dsa/dsa_loop.c | 4 ++--
drivers/net/dsa/microchip/ksz_common.c | 4 ++--
drivers/net/dsa/mv88e6xxx/chip.c | 4 ++--
4 files changed, 8 insertions(+), 8 deletions(-)

--
2.14.1

\
 
 \ /
  Last update: 2018-03-02 01:26    [W:0.089 / U:0.644 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site