Skip to content

BPF LRU map fix

Daniel Borkmann bpf netdev 1 version Applied

Status from this message: Applied. Thanks

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 5 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3bpf: add map_lookup_elem_sys_only for lookups from syscall sideinclude/linux/bpf.h kernel/bpf/syscall.c+5 -13 replies
2/3bpf, lru: avoid messing with eviction heuristics upon syscall lookupkernel/bpf/hashtab.c+18 -50 replies
3/3bpf: test ref bit from data path and add new tests for syscall pathtools/testing/selftests/bpf/test_lru_map.c+274 -140 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchMartin KaFai LauAndrii Nakryiko
SeriesA-b
1/3A-b
2/3A-b
3/3A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH bpf 0/3] BPF LRU map fix

This set fixes LRU map eviction in combination with map lookups out of system call side from user space. Main patch is the second one and test cases are adapted and added in the last one. Thanks!

Daniel Borkmann (3):
bpf: add map_lookup_elem_sys_only for lookups from syscall side bpf, lru: avoid messing with eviction heuristics upon syscall lookup
bpf: test ref bit from data path and add new tests for syscall path

 include/linux/bpf.h                        |   1 +
 kernel/bpf/hashtab.c                       |  23 ++-
 kernel/bpf/syscall.c                       |   5 +-
 tools/testing/selftests/bpf/test_lru_map.c | 288 +++++++++++++++++++++++++++--
 4 files changed, 297 insertions(+), 20 deletions(-)
Signature · 1 line
2.9.5