Re: [PATCH v3 1/2] MIPS: relocatable: Provide kaslr_offset() to get the kernel offset

From: Thomas Bogendoerfer
Date: Tue Feb 09 2021 - 07:42:13 EST


On Fri, Feb 05, 2021 at 06:11:21PM +0800, Jinyang He wrote:
> Provide kaslr_offset() to get the kernel offset when KASLR is enabled.
> Error may occur before update_kaslr_offset(), so put it at the end of
> the offset branch.
>
> Fixes: a307a4ce9ecd ("MIPS: Loongson64: Add KASLR support")
> Reported-by: kernel test robot <lkp@xxxxxxxxx>
> Signed-off-by: Jinyang He <hejinyang@xxxxxxxxxxx>
> ---
> arch/mips/include/asm/page.h | 6 ++++++
> arch/mips/kernel/relocate.c | 10 ++++++++++
> arch/mips/kernel/setup.c | 3 +++
> 3 files changed, 19 insertions(+)

applied to mips-next.

Thomas.

--
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea. [ RFC1925, 2.3 ]