linux/arch/parisc
Helge Deller 213aa67015 parisc: Delay write-protection until mark_rodata_ro() call
Do not write-protect the kernel read-only and __ro_after_init sections
earlier than before mark_rodata_ro() is called.  This fixes a boot issue on
parisc which is triggered by commit 91a1d97ef4 ("jump_label,module: Don't
alloc static_key_mod for __ro_after_init keys"). That commit may modify
static key contents in the __ro_after_init section at bootup, so this
section needs to be writable at least until mark_rodata_ro() is called.

Signed-off-by: Helge Deller <deller@gmx.de>
Reported-by: matoro <matoro_mailinglist_kernel@matoro.tk>
Reported-by: Christoph Biedl <linux-kernel.bfrz@manchmal.in-ulm.de>
Tested-by: Christoph Biedl <linux-kernel.bfrz@manchmal.in-ulm.de>
Link: https://lore.kernel.org/linux-parisc/096cad5aada514255cd7b0b9dbafc768@matoro.tk/#r
Fixes: 91a1d97ef4 ("jump_label,module: Don't alloc static_key_mod for __ro_after_init keys")
Cc: stable@vger.kernel.org # v6.10+
2024-09-03 12:59:21 +02:00
..
boot Makefile: remove redundant tool coverage variables 2024-05-14 23:35:48 +09:00
configs drm/display: Make DisplayPort CEC-over-AUX Kconfig name consistent 2024-03-28 11:26:47 +01:00
include parisc: fix a possible DMA corruption 2024-07-29 16:19:07 +02:00
kernel parisc architecture fixes and updates for kernel v6.11-rc1: 2024-07-25 12:37:42 -07:00
lib parisc: add u16 support to cmpxchg() 2024-04-09 22:06:00 -07:00
math-emu parisc/math-emu: Remove unused struct 'exc_reg' 2024-05-10 15:09:15 +02:00
mm parisc: Delay write-protection until mark_rodata_ro() call 2024-09-03 12:59:21 +02:00
net parisc: fix unaligned accesses in BPF 2024-07-29 16:19:07 +02:00
video arch: Rename fbdev header and source files 2024-05-03 17:07:50 +02:00
defpalo.conf
install.sh kbuild: Abort make on install failures 2024-07-20 13:34:54 +09:00
Kbuild parisc: Wire up eBPF JIT compiler 2023-08-22 10:24:47 +02:00
Kconfig parisc: fix a possible DMA corruption 2024-07-29 16:19:07 +02:00
Kconfig.debug parisc: Use page table locks only if DEBUG_KERNEL is enabled 2023-08-20 20:23:46 +02:00
Makefile arch: Select fbdev helpers with CONFIG_VIDEO 2024-05-03 17:07:50 +02:00