diff options
author | Song Liu <song@kernel.org> | 2022-03-21 21:00:08 +0300 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2022-03-21 23:53:45 +0300 |
commit | 96805674e5624b3c79780a2b41c7a3d6bc38dc76 (patch) | |
tree | cb5323fa83da01aa49d7388482850e53fc6c627f /tools/perf/scripts/python/export-to-postgresql.py | |
parent | d56c9fe6a06820d5ef8188d96bf4345c7bdba249 (diff) | |
download | linux-96805674e5624b3c79780a2b41c7a3d6bc38dc76.tar.xz |
bpf: Fix bpf_prog_pack for multi-node setup
module_alloc requires num_online_nodes * PMD_SIZE to allocate huge pages.
bpf_prog_pack uses pack of size num_online_nodes * PMD_SIZE.
OTOH, module_alloc returns addresses that are PMD_SIZE aligned (instead of
num_online_nodes * PMD_SIZE aligned). Therefore, PMD_MASK should be used
to calculate pack_ptr in bpf_prog_pack_free().
Fixes: ef078600eec2 ("bpf: Select proper size for bpf_prog_pack")
Reported-by: syzbot+c946805b5ce6ab87df0b@syzkaller.appspotmail.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-2-song@kernel.org
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions