-
由 Alexei Starovoitov 提交于
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>
c3c60f20