Centos-kernel-stream-9/tools/include/uapi/linux
Yauheni Kaliuta a4778555c5 bpf: Add dynptr data slices
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>
2022-11-30 12:47:06 +02:00
..
tc_act
bpf.h bpf: Add dynptr data slices 2022-11-30 12:47:06 +02:00
bpf_common.h
bpf_perf_event.h
btf.h bpf: Correct the comment for BTF kind bitfield 2022-11-28 16:48:55 +02:00
const.h
erspan.h
ethtool.h tools: include: Add ethtool_drvinfo definition to UAPI header 2022-04-29 18:14:44 +02:00
fadvise.h
fcntl.h
filter.h
fs.h tools headers UAPI: Sync linux/fs.h with the kernel sources 2021-12-08 23:30:28 +08:00
fscrypt.h
hw_breakpoint.h
if_link.h net: add IFLA_TSO_{MAX_SIZE|SEGS} attributes 2022-11-02 18:55:47 +01:00
if_tun.h
if_xdp.h
in.h
kcmp.h
kvm.h tools headers UAPI: Sync linux/kvm.h with the kernel sources 2022-10-25 13:53:41 +02:00
mman.h
mount.h
netlink.h
openat2.h
perf_event.h perf tools: Sync addition of PERF_MEM_SNOOPX_PEER 2022-11-14 20:25:59 +01:00
pkt_cls.h
pkt_sched.h
prctl.h tools headers UAPI: Sync linux/prctl.h with the kernel sources 2022-10-12 07:27:44 -04:00
sched.h
seg6.h
seg6_local.h
stat.h
tcp.h
tls.h
types.h
usbdevice_fs.h
vhost.h tools include UAPI: Sync linux/vhost.h with the kernel sources 2022-09-21 07:23:14 +02:00