]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: Use size instead of pages in bpf_binary_header
authorSong Liu <songliubraving@fb.com>
Fri, 4 Feb 2022 18:57:36 +0000 (10:57 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 8 Feb 2022 02:13:01 +0000 (18:13 -0800)
commite9ab6cc0838c7c51a0f173bccc6696714b146afb
tree573daed017dc2c0fdd4736cd52d93d0eb1b64d68
parent768827a909eb67d8163b6a8c5c84e72483c562a3
bpf: Use size instead of pages in bpf_binary_header

This is necessary to charge sub page memory for the BPF program.

Signed-off-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20220204185742.271030-4-song@kernel.org
include/linux/filter.h
kernel/bpf/core.c