Bugzilla: https://bugzilla.redhat.com/2120968 commit 34d4ef5775f776ec4b0d53a02d588bf3195cada6 Author: Joanne Koong <joannelkoong@gmail.com> Date: Mon May 23 14:07:11 2022 -0700 bpf: Add dynptr data slices This patch adds a new helper function void *bpf_dynptr_data(struct bpf_dynptr *ptr, u32 offset, u32 len); which returns a pointer to the underlying data of a dynptr. *len* must be a statically known value. The bpf program may access the returned data slice as a normal buffer (eg can do direct reads and writes), since the verifier associates the length with the returned pointer, and enforces that no out of bounds accesses occur. Signed-off-by: Joanne Koong <joannelkoong@gmail.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Acked-by: Yonghong Song <yhs@fb.com> Link: https://lore.kernel.org/bpf/20220523210712.3641569-6-joannelkoong@gmail.com Signed-off-by: Yauheni Kaliuta <ykaliuta@redhat.com> |
||
---|---|---|
.. | ||
tc_act | ||
bpf.h | ||
bpf_common.h | ||
bpf_perf_event.h | ||
btf.h | ||
const.h | ||
erspan.h | ||
ethtool.h | ||
fadvise.h | ||
fcntl.h | ||
filter.h | ||
fs.h | ||
fscrypt.h | ||
hw_breakpoint.h | ||
if_link.h | ||
if_tun.h | ||
if_xdp.h | ||
in.h | ||
kcmp.h | ||
kvm.h | ||
mman.h | ||
mount.h | ||
netlink.h | ||
openat2.h | ||
perf_event.h | ||
pkt_cls.h | ||
pkt_sched.h | ||
prctl.h | ||
sched.h | ||
seg6.h | ||
seg6_local.h | ||
stat.h | ||
tcp.h | ||
tls.h | ||
types.h | ||
usbdevice_fs.h | ||
vhost.h |