Skip to content

Allow CONFIG_DEBUG_SET_MODULE_RONX to be used on ARM

Laura Abbott linux-arm-kernel linux-arm-msm 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 0 repliesNew
  2. v1 RFC3 patches 0 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3arm: Add definitions for pte_mkexec/pte_mknexecarch/arm/include/asm/pgtable.h+2 -00 replies
2/3arm: mm: Define set_memory_* functions for ARMarch/arm/include/asm/cacheflush.h arch/arm/mm/mmu.c+43 -00 replies
3/3arm: add DEBUG_SET_MODULE_RONX option to Kconfigarch/arm/Kconfig.debug+11 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/3] Allow CONFIG_DEBUG_SET_MODULE_RONX to be used on ARM

Hi,

This is a series to allow CONFIG_DEBUG_SET_MODULE_RONX to be used on ARM. The current config description from x86 describes it best:

This option helps catch unintended modifications to loadable kernel module's text and read-only data. It also prevents execution of module data. Such protection may interfere with run-time code patching and dynamic kernel tracing - and they might also protect against certain classes of kernel exploits.

v2: Add module bounds checking per Russell, removed dsb per Catalin. Macrofied the set_memory_* functions to avoid so much code duplication.

Thanks,
Laura

---

 arch/arm/Kconfig.debug            |   11 ++++++++++
 arch/arm/include/asm/cacheflush.h |    5 ++++
 arch/arm/include/asm/pgtable.h    |    2 +
 arch/arm/mm/mmu.c                 |   38 +++++++++++++++++++++++++++++++++++++
 4 files changed, 56 insertions(+), 0 deletions(-)