Re: [PATCH v5 0/4] KASAN for powerpc64 radix

From: Christophe Leroy
Date: Thu Jan 16 2020 - 04:34:10 EST




Le 09/01/2020 Ã 08:08, Daniel Axtens a ÃcritÂ:
Building on the work of Christophe, Aneesh and Balbir, I've ported
KASAN to 64-bit Book3S kernels running on the Radix MMU.

This provides full inline instrumentation on radix, but does require
that you be able to specify the amount of physically contiguous memory
on the system at compile time. More details in patch 4.

This might be a stupid idea as I don't know ppc64 much. IIUC, PPC64 kernel can be relocated, there is no requirement to have it at address 0. Therefore, would it be possible to put the KASAN shadow mem at the begining of the physical memory, instead of putting it at the end ?
That way, you wouldn't need to know the amount of memory at compile time because KASAN shadow mem would always be at address 0.

Christophe