mbox series

[bpf-next,v2,0/2] bpf: permits pointers on stack for helper calls

Message ID 20201210013348.943623-1-yhs@fb.com (mailing list archive)
Headers show
Series bpf: permits pointers on stack for helper calls | expand

Message

Yonghong Song Dec. 10, 2020, 1:33 a.m. UTC
This patch permits pointers on stack for helper calls if permission is
granted. Patch #1 described the detailed usecase and Patch #2
added a test.

Changelog:
  v1 -> v2:
    - fix a verifier test failure due to verifier change.

Yonghong Song (2):
  bpf: permits pointers on stack for helper calls
  selftests/bpf: add a test for ptr_to_map_value on stack for helper
    access

 kernel/bpf/verifier.c                             | 3 ++-
 tools/testing/selftests/bpf/progs/bpf_iter_task.c | 3 ++-
 tools/testing/selftests/bpf/verifier/unpriv.c     | 5 +++--
 3 files changed, 7 insertions(+), 4 deletions(-)