aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/8390
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2018-03-06 11:12:40 -0500
committerDavid S. Miller <davem@davemloft.net>2018-03-06 11:12:40 -0500
commit30b7483f35f283db62b10aa0dd81f059a165af21 (patch)
treebfe83716373863e2e6216a5e23a964a39dd49dd6 /drivers/net/ethernet/8390
parentMerge tag 'please-pull-ia64_misc' of git://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux (diff)
parentnet: phy: broadcom: Use strlcpy() for ethtool::get_strings (diff)
downloadlinux-dev-30b7483f35f283db62b10aa0dd81f059a165af21.tar.xz
linux-dev-30b7483f35f283db62b10aa0dd81f059a165af21.zip
Merge branch 'net-Use-strlcpy-for-ethtool-get_strings'
Florian Fainelli says: ==================== net: Use strlcpy() for ethtool::get_strings 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. This allows the best of both worlds: we still keep the efficient memory usage of variably sized strings, but we don't copy more than we need to. Changes in v2: - dropped the 3 other patches that were not necessary - use strlcpy() instead of strncpy() ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/8390')
0 files changed, 0 insertions, 0 deletions