Skip to content
Commit d9cbd834 authored by yunshui's avatar yunshui Committed by Daniel Borkmann
Browse files

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: default avatarsyzbot <syzkaller@googlegroups.com>
Signed-off-by: default avataryunshui <jiangyunshui@kylinos.cn>
Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20240523033520.4029314-1-jiangyunshui@kylinos.cn
parent e245ef8a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment