Centos-kernel-stream-9/tools/include/uapi
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
..
asm ia64: tools: remove inclusion of ia64-specific version of errno.h header 2021-04-16 16:10:37 -07:00
asm-generic uapi: asm-generic: fcntl: Fix typo 'the the' in comment 2022-11-14 20:25:41 +01:00
drm tools headers UAPI: Update tools's copy of drm/drm.h header 2021-07-05 14:28:49 -03:00
linux bpf: Add dynptr data slices 2022-11-30 12:47:06 +02:00
sound tools include UAPI: Sync sound/asound.h copy with the kernel sources 2022-05-26 12:31:11 +02:00