bpf: Introduce bpfptr_t user/kernel pointer.
mainline inclusion from mainline-5.14-rc1 commit cdf7fb0a category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I5EUVD CVE: NA Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=cdf7fb0a9f3d36b279590ac41e61c6b655db0d4a ------------------------------------------------- Similar to sockptr_t introduce bpfptr_t with few additions: make_bpfptr() creates new user/kernel pointer in the same address space as existing user/kernel pointer. bpfptr_add() advances the user/kernel pointer. Signed-off-by: NAlexei Starovoitov <ast@kernel.org> Signed-off-by: NDaniel Borkmann <daniel@iogearbox.net> Acked-by: NAndrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/20210514003623.28033-3-alexei.starovoitov@gmail.com (cherry picked from commit cdf7fb0a) Signed-off-by: NWang Yufen <wangyufen@huawei.com>
Showing
include/linux/bpfptr.h
0 → 100644
想要评论请 注册 或 登录