Skip to content
Commit 913b9d44 authored by Helge Deller's avatar Helge Deller
Browse files

parisc: BTLB: Fix crash when setting up BTLB at CPU bringup



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: e5ef93d0 ("parisc: BTLB: Initialize BTLB tables at CPU startup")
Signed-off-by: default avatarHelge Deller <deller@gmx.de>
Cc: <stable@vger.kernel.org> # v6.6+
parent 8b1d7239
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment