Re: [PATCH 1/2] powerpc/64s/radix: Fix crash with unaligned relocated kernel

2023-02-05 Thread Michael Ellerman
On Tue, 10 Jan 2023 23:47:52 +1100, Michael Ellerman wrote: > If a relocatable kernel is loaded at an address that is not 2MB aligned > and told not to relocate to zero, the kernel can crash due to > mark_rodata_ro() incorrectly changing some read-write data to read-only. > > Scenarios where the

Re: [PATCH 1/2] powerpc/64s/radix: Fix crash with unaligned relocated kernel

2023-01-10 Thread Sachin Sant
> On 10-Jan-2023, at 6:17 PM, Michael Ellerman wrote: > > If a relocatable kernel is loaded at an address that is not 2MB aligned > and told not to relocate to zero, the kernel can crash due to > mark_rodata_ro() incorrectly changing some read-write data to read-only. > > Scenarios where the

[PATCH 1/2] powerpc/64s/radix: Fix crash with unaligned relocated kernel

2023-01-10 Thread Michael Ellerman
If a relocatable kernel is loaded at an address that is not 2MB aligned and told not to relocate to zero, the kernel can crash due to mark_rodata_ro() incorrectly changing some read-write data to read-only. Scenarios where the misalignment can occur are when the kernel is loaded by kdump or using