* [PATCH] arm64: kconfig: Make STRICT_KERNEL_RWX visable.
@ 2026-01-14 1:38 junan
2026-01-14 8:38 ` kernel test robot
2026-01-15 13:08 ` Will Deacon
0 siblings, 2 replies; 4+ messages in thread
From: junan @ 2026-01-14 1:38 UTC (permalink / raw)
To: catalin.marinas, will; +Cc: linux-arm-kernel, linux-kernel, junan76
Make "STRICT_KERNEL_RWX" visable to menuconfig on arm64 platform.
I can not set breakpoints when using kgdb/kdb on arm64, the document
says "STRICT_KERNEL_RWX" should be "n", but it's not visable in
menuconfig and the default value is "y".
kgdb/kdb doc: https://docs.kernel.org/process/debugging/kgdb.html
Signed-off-by: junan <junan76@163.com>
---
arch/arm64/Kconfig | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig
index 93173f0a09c7..cc3aaffa1e12 100644
--- a/arch/arm64/Kconfig
+++ b/arch/arm64/Kconfig
@@ -52,6 +52,8 @@ config ARM64
select ARCH_STACKWALK
select ARCH_HAS_STRICT_KERNEL_RWX
select ARCH_HAS_STRICT_MODULE_RWX
+ select ARCH_OPTIONAL_KERNEL_RWX if ARCH_HAS_STRICT_KERNEL_RWX
+ select ARCH_OPTIONAL_KERNEL_RWX_DEFAULT
select ARCH_HAS_SYNC_DMA_FOR_DEVICE
select ARCH_HAS_SYNC_DMA_FOR_CPU
select ARCH_HAS_SYSCALL_WRAPPER
--
2.43.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] arm64: kconfig: Make STRICT_KERNEL_RWX visable.
2026-01-14 1:38 [PATCH] arm64: kconfig: Make STRICT_KERNEL_RWX visable junan
@ 2026-01-14 8:38 ` kernel test robot
2026-01-15 13:08 ` Will Deacon
1 sibling, 0 replies; 4+ messages in thread
From: kernel test robot @ 2026-01-14 8:38 UTC (permalink / raw)
To: junan, catalin.marinas, will
Cc: oe-kbuild-all, linux-arm-kernel, linux-kernel, junan76
Hi junan,
kernel test robot noticed the following build errors:
[auto build test ERROR on arm64/for-next/core]
[also build test ERROR on linus/master v6.19-rc5 next-20260114]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/junan/arm64-kconfig-Make-STRICT_KERNEL_RWX-visable/20260114-094935
base: https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-next/core
patch link: https://lore.kernel.org/r/20260114013859.498148-2-junan76%40163.com
patch subject: [PATCH] arm64: kconfig: Make STRICT_KERNEL_RWX visable.
config: arm64-allnoconfig (https://download.01.org/0day-ci/archive/20260114/202601141630.sCPCgSYw-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 15.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260114/202601141630.sCPCgSYw-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202601141630.sCPCgSYw-lkp@intel.com/
All errors (new ones prefixed by >>):
aarch64-linux-ld: arch/arm64/mm/mmu.o: in function `map_entry_trampoline':
>> mmu.c:(.init.text+0x578): undefined reference to `rodata_enabled'
aarch64-linux-ld: arch/arm64/mm/mmu.o: relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `rodata_enabled' which may bind externally can not be used when making a shared object; recompile with -fPIC
>> mmu.c:(.init.text+0x578): dangerous relocation: unsupported relocation
>> aarch64-linux-ld: mmu.c:(.init.text+0x584): undefined reference to `rodata_enabled'
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] arm64: kconfig: Make STRICT_KERNEL_RWX visable.
2026-01-14 1:38 [PATCH] arm64: kconfig: Make STRICT_KERNEL_RWX visable junan
2026-01-14 8:38 ` kernel test robot
@ 2026-01-15 13:08 ` Will Deacon
2026-01-16 2:23 ` junan
1 sibling, 1 reply; 4+ messages in thread
From: Will Deacon @ 2026-01-15 13:08 UTC (permalink / raw)
To: junan; +Cc: catalin.marinas, linux-arm-kernel, linux-kernel
On Wed, Jan 14, 2026 at 09:38:42AM +0800, junan wrote:
> Make "STRICT_KERNEL_RWX" visable to menuconfig on arm64 platform.
>
> I can not set breakpoints when using kgdb/kdb on arm64, the document
> says "STRICT_KERNEL_RWX" should be "n", but it's not visable in
> menuconfig and the default value is "y".
Does it help if you pass rodata=off on the cmdline instead?
Will
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re:Re: [PATCH] arm64: kconfig: Make STRICT_KERNEL_RWX visable.
2026-01-15 13:08 ` Will Deacon
@ 2026-01-16 2:23 ` junan
0 siblings, 0 replies; 4+ messages in thread
From: junan @ 2026-01-16 2:23 UTC (permalink / raw)
To: Will Deacon; +Cc: catalin.marinas, linux-arm-kernel, linux-kernel
At 2026-01-15 21:08:36, "Will Deacon" <will@kernel.org> wrote:
>>Does it help if you pass rodata=off on the cmdline instead?
I tested it with qemu, "rodata=off" actually works well, thanks for your time Will!
junan
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-01-16 2:23 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-14 1:38 [PATCH] arm64: kconfig: Make STRICT_KERNEL_RWX visable junan
2026-01-14 8:38 ` kernel test robot
2026-01-15 13:08 ` Will Deacon
2026-01-16 2:23 ` junan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox