Re: [PATCH v2] riscv: mm: Pre-allocate module page tables for execmem

From: Karl Mehltretter

Date: Sat Nov 14 2026 - 04:30:33 EST


On Fri, Oct 16, 2026 at 12:28:47PM +0100, Karl Mehltretter wrote:
> Unable to handle kernel paging request ...
> [ffffffff78000000] pgd=0000000000000000
> ...
> bpf_jit_fill_hole_with_zero
> bpf_prog_pack_alloc
>
> Use CONFIG_EXECMEM for the module-range pre-allocation, as powerpc does
> for its execmem page-table setup. Both CONFIG_MODULES and CONFIG_BPF_JIT
> select it.
>
> Fixes: 2c9e5d4a0082 ("bpf: remove CONFIG_BPF_JIT dependency on CONFIG_MODULES of")
> Cc: stable@xxxxxxxxxxxxxxx
> Assisted-by: LLM
> Signed-off-by: Karl Mehltretter <kmehltretter@xxxxxxxxx>
> Acked-by: Mike Rapoport (Microsoft) <rppt@xxxxxxxxxx>
> Acked-by: Björn Töpel <bjorn@xxxxxxxxxx>
> ---
> Changes in v2:
> - State that the BPF JIT region lies inside the module region (Mike).
> - Add Acked-by tags from Mike Rapoport and Björn Töpel.
> - No code changes from v1.
>

A friendly ping on v2 of this RV64 execmem page-table fix.

Is anything else needed from my side?

Thanks,
Karl