Skip to content

bpf: allow wide (u64) aligned stores for some fields of bpf_sock_addr

Stanislav Fomichev bpf netdev 3 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. v3 Latest3 patches 2 repliesApplied
  2. v23 patches 3 repliesSuperseded
  3. v12 patches 9 repliesSuperseded

Changes in v3 from the cover letter

* fix comments spelling an -> and (Andrii Nakryiko)

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/3bpf: allow wide (u64) aligned stores for some fields of bpf_sock_addrinclude/linux/filter.h include/uapi/linux/bpf.h net/core/filter.c+23 -110 replies
2/3bpf: sync bpf.h to tools/tools/include/uapi/linux/bpf.h+3 -30 replies
3/3selftests/bpf: add verifier tests for wide storestools/testing/selftests/bpf/test_verifier.c tools/testing/selftests/bpf/verifier/wide_store.c+50 -31 reply

Reviews trailers per patch

2 of 3 patches have a Reviewed-by or Acked-by.

PatchYonghong SongAndrii Nakryiko
1/3A-b A-b
2/3
3/3A-b A-b

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

Read the v3 thread

Cover letter [PATCH bpf-next v3 0/3] bpf: allow wide (u64) aligned stores for some fields of bpf_sock_addr

Clang can generate 8-byte stores for user_ip6 & msg_src_ip6, let's support that on the verifier side.

v3:
* fix comments spelling an -> and (Andrii Nakryiko)

v2:
* Add simple cover letter (Yonghong Song)
* Update comments (Yonghong Song)
* Remove [4] selftests (Yonghong Song)

Stanislav Fomichev (3):
bpf: allow wide (u64) aligned stores for some fields of bpf_sock_addr
bpf: sync bpf.h to tools/
selftests/bpf: add verifier tests for wide stores

 include/linux/filter.h                        |  6 ++++
 include/uapi/linux/bpf.h                      |  6 ++--
 net/core/filter.c                             | 22 +++++++-----
 tools/include/uapi/linux/bpf.h                |  6 ++--
 tools/testing/selftests/bpf/test_verifier.c   | 17 +++++++--
 .../selftests/bpf/verifier/wide_store.c       | 36 +++++++++++++++++++
 6 files changed, 76 insertions(+), 17 deletions(-)
 create mode 100644 tools/testing/selftests/bpf/verifier/wide_store.c
Signature · 1 line
2.22.0.410.gd8fdbe21b5-goog