Software Tag-Based KASAN
modulename: kasan_sw_tags.ko
and/orinit.ko
and/ortags.ko
configname: CONFIG_KASAN_SW_TAGS
KASAN mode
└─>Software Tag-Based KASAN
In linux kernel since version 4.14.326 (release Date: 2023-09-23)
Enables Software Tag-Based KASAN.
Requires GCC 11+ or Clang.
Supported only on arm64 CPUs and relies on Top Byte Ignore.
Consumes about 1/16th of available memory at kernel start and
add an overhead of ~20% for dynamic allocations.
May potentially introduce problems related to pointer casting and
comparison, as it embeds a tag into the top byte of each pointer.
Requires GCC 11+ or Clang.
Supported only on arm64 CPUs and relies on Top Byte Ignore.
Consumes about 1/16th of available memory at kernel start and
add an overhead of ~20% for dynamic allocations.
May potentially introduce problems related to pointer casting and
comparison, as it embeds a tag into the top byte of each pointer.
source code:
depends
CONFIG_CC_HAS_KASAN_SW_TAGSCONFIG_CC_HAS_WORKING_NOSANITIZE_ADDRESS
CONFIG_HAVE_ARCH_KASAN_SW_TAGS or CONFIG_SLUB or CONFIG_SYSFS or CONFIG_SLAB or NOT CONFIG_DEBUG_SLAB
