public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH bpf-next v2 0/3] bpf: Allow narrow loads with offset > 0
@ 2018-11-11  6:15 Andrey Ignatov
  2018-11-11  6:15 ` [PATCH bpf-next v2 1/3] " Andrey Ignatov
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Andrey Ignatov @ 2018-11-11  6:15 UTC (permalink / raw)
  To: netdev; +Cc: Andrey Ignatov, ast, daniel, yhs, kernel-team

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(-)

-- 
2.17.1

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-11-11 16:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-11-11  6:15 [PATCH bpf-next v2 0/3] bpf: Allow narrow loads with offset > 0 Andrey Ignatov
2018-11-11  6:15 ` [PATCH bpf-next v2 1/3] " Andrey Ignatov
2018-11-11  6:15 ` [PATCH bpf-next v2 2/3] selftests/bpf: Test narrow loads with off > 0 in test_verifier Andrey Ignatov
2018-11-11  6:15 ` [PATCH bpf-next v2 3/3] selftests/bpf: Test narrow loads with off > 0 for bpf_sock_addr Andrey Ignatov
2018-11-11  6:39 ` [PATCH bpf-next v2 0/3] bpf: Allow narrow loads with offset > 0 Alexei Starovoitov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox