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)
commited2d9e1a26cca963ff5ed3b76326d70f7d8201a9
tree573daed017dc2c0fdd4736cd52d93d0eb1b64d68
parent3486bedd99196ecdfe99c0ab5b67ad3c47e8a8fa
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