bpf: Use bytes instead of pages for bpf_jit_[charge|uncharge]_modmem
authorSong Liu <songliubraving@fb.com>
Fri, 4 Feb 2022 18:57:35 +0000 (10:57 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 8 Feb 2022 02:13:01 +0000 (18:13 -0800)
commit3486bedd99196ecdfe99c0ab5b67ad3c47e8a8fa
tree14f258f23c25f941a2f33f9ff0b09587aa8e8028
parentfac54e2bfb5be2b0bbf115fe80d45f59fd773048
bpf: Use bytes instead of pages for bpf_jit_[charge|uncharge]_modmem

This enables sub-page memory charge and allocation.

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