Re: [PATCH net] net: mvpp2: Use strscpy to handle stat strings

From: David Miller
Date: Thu Jun 06 2019 - 13:43:35 EST


From: Maxime Chevallier <maxime.chevallier@xxxxxxxxxxx>
Date: Thu, 6 Jun 2019 10:42:56 +0200

> Use a safe strscpy call to copy the ethtool stat strings into the
> relevant buffers, instead of a memcpy that will be accessing
> out-of-bound data.
>
> Fixes: 118d6298f6f0 ("net: mvpp2: add ethtool GOP statistics")
> Signed-off-by: Maxime Chevallier <maxime.chevallier@xxxxxxxxxxx>

Applied and queued up for -stable.