Re: [PATCH] powerpc/prom_init: Undo relocation before entering secure mode
From: Thiago Jung Bauermann
Date: Fri Sep 27 2019 - 16:38:57 EST
Thiago Jung Bauermann <bauerman@xxxxxxxxxxxxx> writes:
> Thiago Jung Bauermann <bauerman@xxxxxxxxxxxxx> writes:
>
>> The ultravisor will do an integrity check of the kernel image but we
>> relocated it so the check will fail. Restore the original image by
>> relocating it back to the kernel virtual base address.
>>
>> This works because during build vmlinux is linked with an expected virtual
>> runtime address of KERNELBASE.
>>
>> Fixes: 6a9c930bd775 ("powerpc/prom_init: Add the ESM call to prom_init")
>> Signed-off-by: Thiago Jung Bauermann <bauerman@xxxxxxxxxxxxx>
>
> I meant to put a Suggested-by: Paul Mackerras <paulus@xxxxxxxxx>
>
> Sorry. Will add it if there's a v2.
Ping?
--
Thiago Jung Bauermann
IBM Linux Technology Center