Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bpf: Use kvmalloc for map values in syscall
commit f0dce1d upstream ANBZ:torvalds#198 [BackportNotes] Modifications for bpf new interfaces(such as generic_map_update_batch, generic_map_lookup_batch) is not applied, since they are not implemented. Use kvmalloc/kvfree for temporary value when manipulating a map via syscall. kmalloc might not be sufficient for percpu maps where the value is big (and further multiplied by hundreds of CPUs). Can be reproduced with netcnt test on qemu with "-smp 255". Signed-off-by: Stanislav Fomichev <sdf@google.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Song Liu <songliubraving@fb.com> Link: https://lore.kernel.org/bpf/20210818235216.1159202-1-sdf@google.com Signed-off-by: Qiao Ma <mqaio@linux.alibaba.com> Acked-by: Tony Lu <tonylu@linux.alibaba.com>
- Loading branch information