bpf: Support PTR_TO_MEM{,_OR_NULL} register spilling
commit 744ea4e3 upstream. 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: 457f4436 ("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 Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
parent
3ed29995
Please register or sign in to comment