[d-kernel] [PATCH] config-armh: Fix relocation out of range errors when loading modules

Vitaly Chikunov vt на altlinux.org
Пн Май 15 01:35:21 MSK 2023


Example error:

  [    7.195775] netfs: section 4 reloc 51 sym '__stack_chk_fail': relocation 28 out of range (0xbf02bad4 -> 0xc1038854)
  init_module 'netfs.ko' Exec format error

Link: https://lore.kernel.org/linux-arm-kernel/20230310222309.vulvctspwqvkkz4t@altlinux.org/
Link: https://lore.kernel.org/linux-arm-kernel/4995c6bc655337598b88bef025cd48b320c2ada0.1349235619.git.pratyush.anand@st.com/
Link: https://lore.kernel.org/linux-arm-kernel/1422733759-27236-3-git-send-email-ard.biesheuvel@linaro.org/
Signed-off-by: Vitaly Chikunov <vt at altlinux.org>
---
 config-armh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/config-armh b/config-armh
index 9e3a69414543..c99003e47c1e 100644
--- a/config-armh
+++ b/config-armh
@@ -331,7 +331,7 @@ CONFIG_HIGHPTE=y
 CONFIG_CPU_SW_DOMAIN_PAN=y
 CONFIG_HW_PERF_EVENTS=y
 CONFIG_ARCH_WANT_GENERAL_HUGETLB=y
-# CONFIG_ARM_MODULE_PLTS is not set
+CONFIG_ARM_MODULE_PLTS=y
 CONFIG_FORCE_MAX_ZONEORDER=11
 CONFIG_ALIGNMENT_TRAP=y
 # CONFIG_UACCESS_WITH_MEMCPY is not set
-- 
2.33.8



Подробная информация о списке рассылки devel-kernel