Navigation: Linux Kernel Driver DataBase - web LKDDB: Main index - K index
The Linux kernel configuration item CONFIG_KASAN_GENERIC
has multiple definitions:
lib/Kconfig.kasan
The configuration item CONFIG_KASAN_GENERIC:
( CONFIG_HAVE_ARCH_KASAN && CONFIG_CC_HAS_KASAN_GENERIC ) && ( CONFIG_CC_HAS_WORKING_NOSANITIZE_ADDRESS )
Enables Generic KASAN.
Requires GCC 8.3.0+ or Clang.
Consumes about 1/8th of available memory at kernel start and adds an overhead of ~50% for dynamic allocations. The performance slowdown is ~x3.
lib/Kconfig.kasan
The configuration item CONFIG_KASAN_GENERIC:
( CONFIG_HAVE_ARCH_KASAN && CONFIG_CC_HAS_KASAN_GENERIC ) && ( CONFIG_CC_HAS_WORKING_NOSANITIZE_ADDRESS )
Enables generic KASAN mode.
This mode is supported in both GCC and Clang. With GCC it requires version 8.3.0 or later. Any supported Clang version is compatible, but detection of out-of-bounds accesses for global variables is supported only since Clang 11.
This mode consumes about 1/8th of available memory at kernel start and introduces an overhead of ~x1.5 for the rest of the allocations. The performance slowdown is ~x3.
Currently KASAN_GENERIC 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