linux/include
Hou Tao 62a898b07b bpf: Add bpf_mem_alloc_check_size() helper
Introduce bpf_mem_alloc_check_size() to check whether the allocation
size exceeds the limitation for the kmalloc-equivalent allocator. The
upper limit for percpu allocation is LLIST_NODE_SZ bytes larger than
non-percpu allocation, so a percpu argument is added to the helper.

The helper will be used in the following patch to check whether the size
parameter passed to bpf_mem_alloc() is too big.

Signed-off-by: Hou Tao <houtao1@huawei.com>
Link: https://lore.kernel.org/r/20241030100516.3633640-3-houtao@huaweicloud.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
2024-10-30 12:13:46 -07:00
..
acpi
asm-generic
clocksource
crypto
cxl
drm
dt-bindings
keys
kunit
kvm
linux bpf: Add bpf_mem_alloc_check_size() helper 2024-10-30 12:13:46 -07:00
math-emu
media
memory
misc
net Including fixes from netfiler, xfrm and bluetooth. 2024-10-24 16:43:50 -07:00
pcmcia
ras
rdma
rv
scsi
soc
sound
target
trace vfs-6.12-rc5.fixes 2024-10-21 10:48:24 -07:00
uapi bpf: Add the missing BPF_LINK_TYPE invocation for sockmap 2024-10-24 10:17:12 -07:00
ufs
vdso
video
xen xen: Remove dependency between pciback and privcmd 2024-10-18 11:59:04 +02:00