]> asedeno.scripts.mit.edu Git - linux.git/commit
Merge branch 'bpf-map-val-as-key'
authorDaniel Borkmann <daniel@iogearbox.net>
Tue, 24 Apr 2018 20:39:14 +0000 (22:39 +0200)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 24 Apr 2018 20:39:14 +0000 (22:39 +0200)
commit68db35b12586cb320f7cedee1ddf763f12ceaf1b
tree7f69917315e6f4e06266033093070afd9dc1bcad
parent0e25d14e5f0a3d4c32a1961e0cf58ae23b637681
parent5f90dd6aaea48abc02b5ba0c4530f5c71bc1ab15
Merge branch 'bpf-map-val-as-key'

Paul Chaignon says:

====================
Currently, helpers that expect ARG_PTR_TO_MAP_KEY and ARG_PTR_TO_MAP_VALUE
can only access stack and packet memory.  This patchset allows these
helpers to directly access map values by passing registers of type
PTR_TO_MAP_VALUE.

The first patch changes the verifier; the second adds new test cases.

The first three versions of this patchset were sent on the iovisor-dev
mailing list only.

Changelogs:
  Changes in v5:
    - Refactor using check_helper_mem_access.
  Changes in v4:
    - Rebase.
  Changes in v3:
    - Bug fixes.
    - Negative test cases.
  Changes in v2:
    - Additional test cases for adjusted maps.
====================

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>