linux-kernelorg-stable/include
Kumar Kartikeya Dwivedi 4d7d7f69f4 bpf: Adapt copy_map_value for multiple offset case
Since now there might be at most 10 offsets that need handling in
copy_map_value, the manual shuffling and special case is no longer going
to work. Hence, let's generalise the copy_map_value function by using
a sorted array of offsets to skip regions that must be avoided while
copying into and out of a map value.

When the map is created, we populate the offset array in struct map,
Then, copy_map_value uses this sorted offset array is used to memcpy
while skipping timer, spin lock, and kptr. The array is allocated as
in most cases none of these special fields would be present in map
value, hence we can save on space for the common case by not embedding
the entire object inside bpf_map struct.

Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20220424214901.2743946-6-memxor@gmail.com
2022-04-25 20:26:44 -07:00
..
acpi
asm-generic hyperv-fixes for 5.18-rc2 2022-04-07 06:35:34 -10:00
clocksource
crypto
drm
dt-bindings RTC for 5.18 2022-04-01 09:37:18 -07:00
keys
kunit
kvm
linux bpf: Adapt copy_map_value for multiple offset case 2022-04-25 20:26:44 -07:00
math-emu
media
memory
misc
net net/sched: act_skbedit: Add extack messages for offload failure 2022-04-08 13:45:43 +01:00
pcmcia
ras
rdma
scsi SCSI misc on 20220324 2022-03-24 19:37:53 -07:00
soc drm for 5.18-rc1 2022-03-24 16:19:43 -07:00
sound sound fixes for 5.18-rc1 2022-04-01 10:32:46 -07:00
target
trace tcp: Add tracepoint for tcp_set_ca_state 2022-04-07 20:33:15 -07:00
uapi bpf: Allow storing referenced kptr in map 2022-04-25 20:26:05 -07:00
vdso
video
xen