]> Git Repo - J-linux.git/commitdiff
bpf: remove CONFIG_BPF_JIT dependency on CONFIG_MODULES of
authorMike Rapoport (IBM) <[email protected]>
Sun, 5 May 2024 16:06:28 +0000 (19:06 +0300)
committerLuis Chamberlain <[email protected]>
Tue, 14 May 2024 07:36:29 +0000 (00:36 -0700)
BPF just-in-time compiler depended on CONFIG_MODULES because it used
module_alloc() to allocate memory for the generated code.

Since code allocations are now implemented with execmem, drop dependency of
CONFIG_BPF_JIT on CONFIG_MODULES and make it select CONFIG_EXECMEM.

Suggested-by: Björn Töpel <[email protected]>
Signed-off-by: Mike Rapoport (IBM) <[email protected]>
Signed-off-by: Luis Chamberlain <[email protected]>
kernel/bpf/Kconfig

index 4100df44c66529277893c4ad342a82efce2259cf..17067dcb43861006c35015a577878a2b96d74b28 100644 (file)
@@ -43,7 +43,7 @@ config BPF_JIT
        bool "Enable BPF Just In Time compiler"
        depends on BPF
        depends on HAVE_CBPF_JIT || HAVE_EBPF_JIT
-       depends on MODULES
+       select EXECMEM
        help
          BPF programs are normally handled by a BPF interpreter. This option
          allows the kernel to generate native code when a program is loaded
This page took 0.047178 seconds and 4 git commands to generate.