Software tag-based mode

modulename: init.ko

configname: CONFIG_KASAN_SW_TAGS

KASAN mode
└─>Software tag-based mode
In linux kernel since version 4.14.326 (release Date: 2023-09-23)  
Enables software tag-based KASAN mode.

This mode require software memory tagging support in the form of
HWASan-like compiler instrumentation.

Currently this mode is only implemented for arm64 CPUs and relies on
Top Byte Ignore. This mode requires Clang.

This mode consumes about 1/16th of available memory at kernel start
and introduces an overhead of ~20% for the rest of the allocations.
This mode may potentially introduce problems relating to pointer
casting and comparison, as it embeds tags into the top byte of each
pointer.

Currently CONFIG_KASAN_SW_TAGS doesn't work with CONFIG_DEBUG_SLAB
(the resulting kernel does not boot).

source code:
selects
CONFIG_SLUB_DEBUG
CONFIG_CONSTRUCTORS