# \[PATCH v6 04/18\] khwasan, arm64: adjust shadow size for CONFIG\_KASAN\_HW

- From: Andrey Konovalov \<hidden\>
- Date: 2018-09-19 17:27:57 
- List: linux-arm-kernel
- Page: https://ratatoskr.run/linux-arm-kernel/2018/09/5385325
- Thread: https://ratatoskr.run/linux-doc/2018/08/5366389/t.md

```text
On Wed, Sep 12, 2018 at 4:54 PM, Dmitry Vyukov [ref] wrote:
> On Wed, Aug 29, 2018 at 1:35 PM, Andrey Konovalov [ref] wrote:

>>  /*
>> - * KASAN requires 1/8th of the kernel virtual address space for the shadow
>> - * region. KASAN can bloat the stack significantly, so double the (minimum)
>> - * stack size when KASAN is in use.
>> + * KASAN and KHWASAN require 1/8th and 1/16th of the kernel virtual address
>
>
> I am somewhat confused by the terminology.
> "KASAN" is not actually "CONFIG_KASAN" below, it is actually
> "CONFIG_KASAN_GENERIC". While "KHWASAN" translates to "KASAN_HW" few
> lines later.
> I think we need some consistent terminology for comments and config
> names until it's too late.
>

As per offline discussion will rename in v7.
```
