Navigation: Linux Kernel Driver DataBase - web LKDDB: Main index - K index

CONFIG_KASAN_GENERIC: Generic KASAN

General informations

The Linux kernel configuration item CONFIG_KASAN_GENERIC has multiple definitions:

Generic KASAN found in lib/Kconfig.kasan

The configuration item CONFIG_KASAN_GENERIC:

Help text

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.

Generic mode found in lib/Kconfig.kasan

The configuration item CONFIG_KASAN_GENERIC:

Help text

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).

Hardware

LKDDb

Raw data from LKDDb:

Sources

This page is automaticly generated with free (libre, open) software lkddb(see lkddb-sources).

The data is retrived from:

Automatic links from Google (and ads)

Custom Search

Popular queries:

Navigation: Linux Kernel Driver DataBase - web LKDDB: main index - K index

Automatically generated (in year 2024). See also LKDDb sources on GitLab