summaryrefslogtreecommitdiffstats
path: root/samples/bpf
diff options
context:
space:
mode:
authoryunshui <jiangyunshui@kylinos.cn>2024-05-23 05:35:20 +0200
committerDaniel Borkmann <daniel@iogearbox.net>2024-05-28 12:04:11 +0200
commitd9cbd8343b010016fcaabc361c37720dcafddcbe (patch)
treebca0593a4757df7d7d20410e46e08b3855d39faa /samples/bpf
parentbpf, docs: Fix instruction.rst indentation (diff)
downloadlinux-d9cbd8343b010016fcaabc361c37720dcafddcbe.tar.xz
linux-d9cbd8343b010016fcaabc361c37720dcafddcbe.zip
bpf, net: Use DEV_STAT_INC()
syzbot/KCSAN reported that races happen when multiple CPUs updating dev->stats.tx_error concurrently. Adopt SMP safe DEV_STATS_INC() to update the dev->stats fields. Reported-by: syzbot <syzkaller@googlegroups.com> Signed-off-by: yunshui <jiangyunshui@kylinos.cn> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Link: https://lore.kernel.org/bpf/20240523033520.4029314-1-jiangyunshui@kylinos.cn
Diffstat (limited to 'samples/bpf')
0 files changed, 0 insertions, 0 deletions