linux/include
Joanne Koong 34d4ef5775 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
2022-05-23 14:31:28 -07:00
..
acpi ACPI: bus: Eliminate acpi_bus_get_device() 2022-04-05 19:49:26 +02:00
asm-generic block-5.18-2022-04-15 2022-04-15 11:38:55 -07:00
clocksource
crypto
drm
dt-bindings
keys
kunit
kvm
linux bpf: Add dynptr data slices 2022-05-23 14:31:28 -07:00
math-emu
media
memory
misc
net bpf: Add bpf_skc_to_mptcp_sock_proto 2022-05-20 15:29:00 -07:00
pcmcia
ras
rdma RDMA/core: Delete IPsec flow action logic from the core 2022-04-09 08:25:06 +03:00
scsi scsi: iscsi: Fix NOP handling during conn recovery 2022-04-11 22:09:35 -04:00
soc
sound sound fixes for 5.18-rc3 2022-04-14 11:08:12 -07:00
target
trace mptcp: dump infinite_map field in mptcp_dump_mpext 2022-04-23 11:51:05 +01:00
uapi bpf: Add dynptr data slices 2022-05-23 14:31:28 -07:00
vdso
video
xen