aboutsummaryrefslogtreecommitdiff
path: root/samples/bpf/map_perf_test_user.c
diff options
context:
space:
mode:
authorColin Foster <colin.foster@in-advantage.com>2022-02-10 07:04:51 -0800
committerJakub Kicinski <kuba@kernel.org>2022-02-10 11:44:41 -0800
commit7fbf6795d127a3b1bb39b0e42579904cf6db1624 (patch)
treed0cb98a9fa64a98280eeea6e5c9456ae29900f63 /samples/bpf/map_perf_test_user.c
parentc4416f5c2eb3ed48dfba265e628a6e52da962f03 (diff)
net: mscc: ocelot: fix mutex lock error during ethtool stats read
An ongoing workqueue populates the stats buffer. At the same time, a user might query the statistics. While writing to the buffer is mutex-locked, reading from the buffer wasn't. This could lead to buggy reads by ethtool. This patch fixes the former blamed commit, but the bug was introduced in the latter. Signed-off-by: Colin Foster <colin.foster@in-advantage.com> Fixes: 1e1caa9735f90 ("ocelot: Clean up stats update deferred work") Fixes: a556c76adc052 ("net: mscc: Add initial Ocelot switch support") Reported-by: Vladimir Oltean <vladimir.oltean@nxp.com> Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com> Link: https://lore.kernel.org/all/20220210150451.416845-2-colin.foster@in-advantage.com/ Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'samples/bpf/map_perf_test_user.c')
0 files changed, 0 insertions, 0 deletions