]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: Fix bpf_prog_pack when PMU_SIZE is not defined
authorSong Liu <song@kernel.org>
Mon, 21 Mar 2022 18:00:09 +0000 (11:00 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Mon, 21 Mar 2022 20:53:45 +0000 (13:53 -0700)
commit7da09f0410d33c5d9ee878d4221af214ec3ab16c
tree4c79e4a7c3007fab728afc50e74cf59017066cc4
parent23ec8c90289f33ea2898ae120727d91d7ddd75ca
bpf: Fix bpf_prog_pack when PMU_SIZE is not defined

PMD_SIZE is not available in some special config, e.g. ARCH=arm with
CONFIG_MMU=n. Use bpf_prog_pack of PAGE_SIZE in these cases.

Fixes: 1ca2b2ac2c72 ("bpf: Select proper size for bpf_prog_pack")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Song Liu <song@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20220321180009.1944482-3-song@kernel.org
kernel/bpf/core.c