[PATCH v2 12/12] kprobes: remove dependcy on CONFIG_MODULES

Björn Töpel bjorn at kernel.org
Fri Jun 16 21:44:55 AEST 2023

Mike Rapoport <rppt at kernel.org> writes:

> From: "Mike Rapoport (IBM)" <rppt at kernel.org>
> kprobes depended on CONFIG_MODULES because it has to allocate memory for
> code.

I think you can remove the MODULES dependency from BPF_JIT as well:

diff --git a/kernel/bpf/Kconfig b/kernel/bpf/Kconfig
index 2dfe1079f772..fa4587027f8b 100644
--- a/kernel/bpf/Kconfig
+++ b/kernel/bpf/Kconfig
@@ -41,7 +41,6 @@ config BPF_JIT
        bool "Enable BPF Just In Time compiler"
        depends on BPF
        depends on HAVE_CBPF_JIT || HAVE_EBPF_JIT
-       depends on MODULES
          BPF programs are normally handled by a BPF interpreter. This option
          allows the kernel to generate native code when a program is loaded


More information about the Linuxppc-dev mailing list