bpf: handle CONFIG_SMP=n configuration in x86 BPF JIT
authorAndrii Nakryiko <andrii@kernel.org>
Thu, 4 Apr 2024 03:47:26 +0000 (20:47 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 4 Apr 2024 04:36:35 +0000 (21:36 -0700)
commit1e9e0b85255e6eca6036b59d8a5fbca6501905ac
tree0b90da08e9a36a61517c7e31b761e140234e82b7
parent519e1de94b719f741e0de42b085b9a4551c5b15c
bpf: handle CONFIG_SMP=n configuration in x86 BPF JIT

On non-SMP systems, there is no "per-CPU" data, it's just global data.
So in such case just don't do this_cpu_off-based per-CPU address adjustment.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202404040951.d4CUx5S6-lkp@intel.com/
Fixes: 7bdbf7446305 ("bpf: add special internal-only MOV instruction to resolve per-CPU addrs")
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/r/20240404034726.2766740-1-andrii@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
arch/x86/net/bpf_jit_comp.c