Navigation: Linux Kernel Driver DataBase - web LKDDB: Main index - K index
The Linux kernel configuration item CONFIG_KASAN_SW_TAGS
has multiple definitions:
lib/Kconfig.kasan
The configuration item CONFIG_KASAN_SW_TAGS:
( CONFIG_HAVE_ARCH_KASAN_SW_TAGS && CONFIG_CC_HAS_KASAN_SW_TAGS ) && ( CONFIG_CC_HAS_WORKING_NOSANITIZE_ADDRESS )
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.
lib/Kconfig.kasan
The configuration item CONFIG_KASAN_SW_TAGS:
( CONFIG_HAVE_ARCH_KASAN_SW_TAGS && CONFIG_CC_HAS_KASAN_SW_TAGS ) && ( CONFIG_CC_HAS_WORKING_NOSANITIZE_ADDRESS )
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 KASAN_SW_TAGS doesn't work with DEBUG_SLAB (the resulting kernel does not boot).
Raw data from LKDDb:
(none)
This page is automaticly generated with free (libre, open) software lkddb(see lkddb-sources).
The data is retrived from:
Popular queries:
Navigation: Linux Kernel Driver DataBase - web LKDDB: main index - K index
Automatically generated (in year 2024). See also LKDDb sources on GitLab