Skip to content

bpf, test_run: Fix user-memory-access vulnerability for LIVE_FRAMES

KaFai Wan bpf linux-kselftest lkml netdev syzbot 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2bpf, test_run: Fix user-memory-access vulnerability for LIVE_FRAMESnet/bpf/test_run.c tools/testing/selftests/bpf/prog_tests/xdp_do_redirect.c+14 -154 replies
2/2selftests/bpf: Add test for xdp_md context with LIVE_FRAMES in BPF_PROG_TEST_RUNtools/testing/selftests/bpf/prog_tests/xdp_context_test_run.c tools/testing/selftests/bpf/progs/test_xdp_context_test_run.c+25 -00 replies

Reviews trailers per patch

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

PatchDongliang Mu
1/2R-b
2/2

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-next 0/2] bpf, test_run: Fix user-memory-access vulnerability for LIVE_FRAMES

This small patchset is about avoid user-memory-access vulnerability for LIVE_FRAMES at specific xdp_md context.

---
KaFai Wan (2):
bpf, test_run: Fix user-memory-access vulnerability for LIVE_FRAMES selftests/bpf: Add test for xdp_md context with LIVE_FRAMES in
BPF_PROG_TEST_RUN

 net/bpf/test_run.c                            | 23 +++++++++----------
 .../bpf/prog_tests/xdp_context_test_run.c     | 19 +++++++++++++++
 .../bpf/prog_tests/xdp_do_redirect.c          |  6 ++---
 .../bpf/progs/test_xdp_context_test_run.c     |  6 +++++
 4 files changed, 39 insertions(+), 15 deletions(-)
Signature · 1 line
2.43.0