Re: [PATCH 0/2] Enable STRICT_MODULE_RWX

From: Huacai Chen

Date: Sat Jun 06 2026 - 10:04:21 EST


Hi, Haoran,

On Sat, Jun 6, 2026 at 9:21 PM <haoran.jiang@xxxxxxxxx> wrote:
>
> From: Haoran Jiang <jianghaoran@xxxxxxxxxx>
>
> Enable STRICT_MODULE_RWX on LoongArch and
> Move fixmap page tables to BSS segment.
As discussed before, we don't need to change fixmap, we can just use
set_memory() API, similar as done in larch_insn_text_copy().

Huacai

>
> Haoran Jiang (2):
> LoongArch: Move fixmap page tables to BSS segment
> LoongArch: Enable STRICT_MODULE_RWX for stricter modules memory
> permissions
>
> arch/loongarch/Kconfig | 2 +
> arch/loongarch/include/asm/fixmap.h | 2 +
> arch/loongarch/kernel/inst.c | 29 +++++++++++-
> arch/loongarch/kernel/setup.c | 1 +
> arch/loongarch/mm/init.c | 71 ++++++++++++++++++++++++++---
> 5 files changed, 98 insertions(+), 7 deletions(-)
>
> --
> 2.25.1
>
>