mbox series

[bpf,0/2] bpf: use 32bit safe version of u64_stats

Message ID 20211026203825.2720459-1-eric.dumazet@gmail.com (mailing list archive)
Headers show
Series bpf: use 32bit safe version of u64_stats | expand

Message

Eric Dumazet Oct. 26, 2021, 8:38 p.m. UTC
From: Eric Dumazet <edumazet@google.com>

Two patches, fixing bugs added in 5.1 and 5.5

I have a followup patch for bpf-next, replacing the u64 fields
in struct bpf_prog_stats with u64_stats_t ones to avoid
possible sampling errors.

Eric Dumazet (2):
  bpf: avoid races in __bpf_prog_run() for 32bit arches
  bpf: fixes possible race in update_prog_stats() for 32bit arches

 include/linux/filter.h  | 5 +++--
 kernel/bpf/trampoline.c | 6 ++++--
 2 files changed, 7 insertions(+), 4 deletions(-)