Skip to content

bpf: Fix RHASH batch cursor loss

Tianyi Chen bpf linux-kselftest 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 0 repliesNew
  2. v12 patches 1 replySuperseded

Changes in v2 from the cover letter

- Add the batch subtests to the existing rhash.c suite.
- Carry Mykyta's Acked-by on the fix.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2bpf: Report lost RHASH batch traversal keys as EAGAINkernel/bpf/hashtab.c+7 -60 replies
2/2selftests/bpf: Cover RHASH batch cursor losstools/testing/selftests/bpf/prog_tests/rhash.c+177 -00 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchMykyta Yatsenko
1/2A-b
2/2

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

Read the v2 thread

Cover letter [PATCH bpf v2 0/2] bpf: Fix RHASH batch cursor loss

Report a lost RHASH traversal key as -EAGAIN rather than end-of-iteration. The kernel change is unchanged from v1.

Changes in v2:
- Add the batch subtests to the existing rhash.c suite.
- Carry Mykyta's Acked-by on the fix.

All 17 RHASH subtests pass in x86-64 KVM, with five further successful runs of the five batch subtests. The concurrent-delete test still fails on the unpatched kernel.

v1: https://lore.kernel.org/r/[email protected]

Tianyi Chen (2):
bpf: Report lost RHASH batch traversal keys as EAGAIN selftests/bpf: Cover RHASH batch cursor loss

 kernel/bpf/hashtab.c                          |  13 +-
 .../testing/selftests/bpf/prog_tests/rhash.c  | 177 ++++++++++++++++++
 2 files changed, 184 insertions(+), 6 deletions(-)

base-commit: 475a0cfd02f14d764023e926ac01fc7597134229

Signature · 1 line
2.56.0