kernel-hacking-2024-linux-s.../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
configs
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
math-emu
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
defpalo.conf
install.sh kbuild: Abort make on install failures 2024-07-20 13:34:54 +09:00
Kbuild
Kconfig parisc: fix a possible DMA corruption 2024-07-29 16:19:07 +02:00
Kconfig.debug
Makefile