Skip to content

bpf: Allow narrow loads with offset > 0

Andrey Ignatov netdev 2 versions – Applied

Status from this message: Applied, Thanks

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 1 replyApplied
  2. v13 patches 2 repliesApplied

Changes in v2 from the cover letter

- fix -Wdeclaration-after-statement warning.

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/3bpf: Allow narrow loads with offset > 0include/linux/filter.h kernel/bpf/verifier.c+17 -200 replies
2/3selftests/bpf: Test narrow loads with off > 0 in test_verifiertools/testing/selftests/bpf/test_verifier.c+38 -100 replies
3/3selftests/bpf: Test narrow loads with off > 0 for bpf_sock_addrtools/testing/selftests/bpf/test_sock_addr.c+24 -40 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH bpf-next v2 0/3] bpf: Allow narrow loads with offset > 0

This patch set adds support for narrow loads with offset > 0 to BPF verifier.

Patch 1 provides more details and is the main patch in the set. Patches 2 and 3 add new test cases to test_verifier and test_sock_addr selftests.

v1->v2:
- fix -Wdeclaration-after-statement warning.

Andrey Ignatov (3):
bpf: Allow narrow loads with offset > 0 selftests/bpf: Test narrow loads with off > 0 in test_verifier selftests/bpf: Test narrow loads with off > 0 for bpf_sock_addr

 include/linux/filter.h                       | 16 +------
 kernel/bpf/verifier.c                        | 21 +++++++--
 tools/testing/selftests/bpf/test_sock_addr.c | 28 ++++++++++--
 tools/testing/selftests/bpf/test_verifier.c  | 48 ++++++++++++++++----
 4 files changed, 79 insertions(+), 34 deletions(-)
Signature · 1 line
2.17.1