linux-stable/include
Daniel Rosenberg 3bda08b636 bpf: Allow NULL buffers in bpf_dynptr_slice(_rw)
bpf_dynptr_slice(_rw) uses a user provided buffer if it can not provide
a pointer to a block of contiguous memory. This buffer is unused in the
case of local dynptrs, and may be unused in other cases as well. There
is no need to require the buffer, as the kfunc can just return NULL if
it was needed and not provided.

This adds another kfunc annotation, __opt, which combines with __sz and
__szk to allow the buffer associated with the size to be NULL. If the
buffer is NULL, the verifier does not check that the buffer is of
sufficient size.

Signed-off-by: Daniel Rosenberg <drosen@google.com>
Link: https://lore.kernel.org/r/20230506013134.2492210-2-drosen@google.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
2023-05-06 16:42:57 -07:00
..
acpi Power management updates for 6.4-rc1 2023-04-25 18:44:10 -07:00
asm-generic gpio updates for v6.4-rc1 2023-04-25 17:18:18 -07:00
clocksource
crypto This update includes the following changes: 2023-04-26 08:32:52 -07:00
drm drm next for 6.4-rc1 2023-04-25 16:12:15 -07:00
dt-bindings Thermal control updates for 6.4-rc1 2023-04-25 18:32:43 -07:00
keys
kunit
kvm
linux bpf: Allow NULL buffers in bpf_dynptr_slice(_rw) 2023-05-06 16:42:57 -07:00
math-emu
media media: i2c: Drop unused sr030pc30 camera sensor driver 2023-04-15 09:56:49 +01:00
memory
misc
net xsk: Use pool->dma_pages to check for DMA 2023-04-27 22:24:51 +02:00
pcmcia
ras
rdma
rv
scsi
soc Networking changes for 6.4. 2023-04-26 16:07:23 -07:00
sound
target
trace Networking changes for 6.4. 2023-04-26 16:07:23 -07:00
uapi Networking changes for 6.4. 2023-04-26 16:07:23 -07:00
ufs SCSI misc on 20230426 2023-04-26 15:39:25 -07:00
vdso
video
xen