Re: [PATCH v3 2/3] riscv: Add KASAN support

2019-10-21 Thread Nick Hu
On Mon, Oct 21, 2019 at 05:33:31PM +0800, Greentime Hu wrote: > Nick Hu 於 2019年10月8日 週二 下午2:17寫道: > > > > 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

Re: [PATCH v3 2/3] riscv: Add KASAN support

2019-10-21 Thread Greentime Hu
Nick Hu 於 2019年10月8日 週二 下午2:17寫道: > > 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 sho

[PATCH v3 2/3] riscv: Add KASAN support

2019-10-07 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