Re: [PATCH v2 0/4] net: Use strlcpy() for ethtool::get_strings

2018-03-06 Thread David Miller
From: Florian Fainelli Date: Fri, 2 Mar 2018 15:08:35 -0800 > 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 which have not

Re: [PATCH v2 0/4] net: Use strlcpy() for ethtool::get_strings

2018-03-04 Thread Andrew Lunn
On Fri, Mar 02, 2018 at 03:08:35PM -0800, 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 which have not been

[PATCH v2 0/4] net: Use strlcpy() for ethtool::get_strings

2018-03-02 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 which have not been declared as an array of ETH_GSTRING_LEN bytes, so let's use strlcpy() instead.