netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/3 v2] bpf: improve verifier ARG_CONST_SIZE_OR_ZERO semantics
@ 2017-11-12 16:03 Yonghong Song
  2017-11-12 16:03 ` [PATCH net-next 1/3 " Yonghong Song
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Yonghong Song @ 2017-11-12 16:03 UTC (permalink / raw)
  To: ast, daniel, netdev; +Cc: kernel-team

This patch set intends to change verifier ARG_CONST_SIZE_OR_ZERO
semantics so that simpler bpf programs can be written with verifier
acceptance. Patch #1 comment provided the detailed examples and
the patch itself implements the new semantics. Patch #2
changes bpf_probe_read helper arg2 type from
ARG_CONST_SIZE to ARG_CONST_SIZE_OR_ZERO. Patch #3 fixed a few
test cases and added some for better coverage.

Changelog:
v1 -> v2:
  Fix typo in commit message pointed by Sergei Shtylyov

Yonghong Song (3):
  bpf: improve verifier ARG_CONST_SIZE_OR_ZERO semantics
  bpf: change helper bpf_probe_read arg2 type to ARG_CONST_SIZE_OR_ZERO
  bpf: fix and add test cases for ARG_CONST_SIZE_OR_ZERO semantics
    change

 kernel/bpf/verifier.c                       |  40 +++++----
 kernel/trace/bpf_trace.c                    |   8 +-
 tools/testing/selftests/bpf/test_verifier.c | 131 ++++++++++++++++++++++++----
 3 files changed, 142 insertions(+), 37 deletions(-)

-- 
2.9.5

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

end of thread, other threads:[~2017-11-12 19:21 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-12 16:03 [PATCH net-next 0/3 v2] bpf: improve verifier ARG_CONST_SIZE_OR_ZERO semantics Yonghong Song
2017-11-12 16:03 ` [PATCH net-next 1/3 " Yonghong Song
2017-11-12 19:20   ` Daniel Borkmann
2017-11-12 16:04 ` [PATCH net-next 2/3 v2] bpf: change helper bpf_probe_read arg2 type to ARG_CONST_SIZE_OR_ZERO Yonghong Song
2017-11-12 19:20   ` Daniel Borkmann
2017-11-12 16:04 ` [PATCH net-next 3/3 v2] bpf: fix and add test cases for ARG_CONST_SIZE_OR_ZERO semantics change Yonghong Song
2017-11-12 19:20   ` Daniel Borkmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).