Re: [PATCH v2 2/2] riscv: Add KASAN support

2019-10-02 Thread Andrey Konovalov
On Wed, Oct 2, 2019 at 8:16 AM Nick Hu wrote: > > This patch ports the feature Kernel Address SANitizer (KASAN). Hi Nick, Please also update KASAN documentation to mention that riscv is supported. Thanks! > > Note: The start address of shadow memory is at the beginning of kernel > space, which

[PATCH v2 2/2] riscv: Add KASAN support

2019-10-01 Thread Nick Hu
This patch ports the feature Kernel Address SANitizer (KASAN). Note: The start address of shadow memory is at the beginning of kernel space, which is 2^64 - (2^39 / 2) in SV39. The size of the kernel space is 2^38 bytes so the size of shadow memory should be 2^38 / 8. Thus, the shadow memory would