Re: [PATCH net 0/4] net: dsa: Use strncpy() for ethtool::get_strings

2018-03-01 Thread Florian Fainelli
Hi David, On 03/01/2018 04:25 PM, Florian Fainelli wrote: > 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

[PATCH net 0/4] net: dsa: Use strncpy() for ethtool::get_strings

2018-03-01 Thread Florian Fainelli
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::