diff options
author | Gilad Reti <gilad.reti@gmail.com> | 2021-01-13 08:38:07 +0300 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2021-01-14 06:47:43 +0300 |
commit | 744ea4e3885eccb6d332a06fae9eb7420a622c0f (patch) | |
tree | aaf2aacc822e6ac3257dfa2931aa9cf9ba6ace23 /tools/testing/selftests | |
parent | 7ac6ad051150592557520b45773201b987ecfce3 (diff) | |
download | linux-744ea4e3885eccb6d332a06fae9eb7420a622c0f.tar.xz |
bpf: Support PTR_TO_MEM{,_OR_NULL} register spilling
Add support for pointer to mem register spilling, to allow the verifier
to track pointers to valid memory addresses. Such pointers are returned
for example by a successful call of the bpf_ringbuf_reserve helper.
The patch was partially contributed by CyberArk Software, Inc.
Fixes: 457f44363a88 ("bpf: Implement BPF ring buffer and verifier support for it")
Suggested-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Gilad Reti <gilad.reti@gmail.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: KP Singh <kpsingh@kernel.org>
Link: https://lore.kernel.org/bpf/20210113053810.13518-1-gilad.reti@gmail.com
Diffstat (limited to 'tools/testing/selftests')
0 files changed, 0 insertions, 0 deletions