Skip to content

Commit 2844126

Browse files
hdellerSasha Levin
authored and
Sasha Levin
committed
parisc: BTLB: Fix crash when setting up BTLB at CPU bringup
commit 913b9d4 upstream. When using hotplug and bringing up a 32-bit CPU, ask the firmware about the BTLB information to set up the static (block) TLB entries. For that write access to the static btlb_info struct is needed, but since it is marked __ro_after_init the kernel segfaults with missing write permissions. Fix the crash by dropping the __ro_after_init annotation. Fixes: e5ef93d ("parisc: BTLB: Initialize BTLB tables at CPU startup") Signed-off-by: Helge Deller <[email protected]> Cc: <[email protected]> # v6.6+ Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 0799c82 commit 2844126

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/parisc/kernel/cache.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ int pa_serialize_tlb_flushes __ro_after_init;
5858

5959
struct pdc_cache_info cache_info __ro_after_init;
6060
#ifndef CONFIG_PA20
61-
struct pdc_btlb_info btlb_info __ro_after_init;
61+
struct pdc_btlb_info btlb_info;
6262
#endif
6363

6464
DEFINE_STATIC_KEY_TRUE(parisc_has_cache);

0 commit comments

Comments
 (0)