Skip to content

bpf: use 32bit safe version of u64_stats

Eric Dumazet bpf netdev 2 versions Applied

Status from this message: Applied to bpf-next. Thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 1 replyApplied
  2. v12 patches 2 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/3bpf: avoid races in __bpf_prog_run() for 32bit archesinclude/linux/filter.h+3 -20 replies
2/3bpf: fixes possible race in update_prog_stats() for 32bit archeskernel/bpf/trampoline.c+4 -20 replies
3/3bpf: use u64_stats_t in struct bpf_prog_statsinclude/linux/filter.h kernel/bpf/syscall.c kernel/bpf/trampoline.c+20 -140 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH V2 bpf-next 0/3] bpf: use 32bit safe version of u64_stats

From: Eric Dumazet <[email protected]>

Two first patches fix bugs added in 5.1 and 5.5

Third patch replaces the u64 fields in struct bpf_prog_stats with u64_stats_t ones to avoid possible sampling errors, in case of load/store stearing.

Eric Dumazet (3):
bpf: avoid races in __bpf_prog_run() for 32bit arches
bpf: fixes possible race in update_prog_stats() for 32bit arches
bpf: use u64_stats_t in struct bpf_prog_stats

 include/linux/filter.h  | 15 ++++++++-------
 kernel/bpf/syscall.c    | 18 ++++++++++++------
 kernel/bpf/trampoline.c | 12 +++++++-----
 3 files changed, 27 insertions(+), 18 deletions(-)
Signature · 1 line
2.33.0.1079.g6e70778dc9-goog