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

CONFIG_KASAN_SW_TAGS: Software Tag-Based KASAN

General informations

The Linux kernel configuration item CONFIG_KASAN_SW_TAGS has multiple definitions:

Software Tag-Based KASAN found in lib/Kconfig.kasan

The configuration item CONFIG_KASAN_SW_TAGS:

Help text

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.

Software tag-based mode found in lib/Kconfig.kasan

The configuration item CONFIG_KASAN_SW_TAGS:

Help text

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

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