Skip to content
Snippets Groups Projects
Commit d4f3e612 authored by Jerome Marchand's avatar Jerome Marchand
Browse files

bpf: Fix bpf_prog_pack when PMU_SIZE is not defined

Bugzilla: https://bugzilla.redhat.com/2120966



commit e5810941
Author: Song Liu <song@kernel.org>
Date:   Mon Mar 21 11:00:09 2022 -0700

    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: ef078600 ("bpf: Select proper size for bpf_prog_pack")
Reported-by: default avatarkernel test robot <lkp@intel.com>
Signed-off-by: default avatarSong Liu <song@kernel.org>
Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
    Link: https://lore.kernel.org/bpf/20220321180009.1944482-3-song@kernel.org



Signed-off-by: default avatarJerome Marchand <jmarchan@redhat.com>
parent 67520d77
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment