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

CONFIG_KASAN_STACK: Stack instrumentation (unsafe)

General informations

The Linux kernel configuration item CONFIG_KASAN_STACK has multiple definitions:

Stack instrumentation (unsafe) found in lib/Kconfig.kasan

The configuration item CONFIG_KASAN_STACK:

Help text

Disables stack instrumentation and thus KASAN's ability to detect out-of-bounds bugs in stack variables.

With Clang, stack instrumentation has a problem that causes excessive stack usage, see https://bugs.llvm.org/show_bug.cgi?id=38809. Thus, with Clang, this option is deemed unsafe.

This option is always disabled when compile-testing with Clang to avoid cluttering the log with stack overflow warnings.

With GCC, enabling stack instrumentation is assumed to be safe.

If the architecture disables inline instrumentation via ARCH_DISABLE_KASAN_INLINE, stack instrumentation gets disabled as well, as it adds inline-style instrumentation that is run unconditionally.

Enable stack instrumentation (unsafe) found in lib/Kconfig.kasan

The configuration item CONFIG_KASAN_STACK:

Help text

The LLVM stack address sanitizer has a know problem that causes excessive stack usage in a lot of functions, see https://bugs.llvm.org/show_bug.cgi?id=38809 Disabling asan-stack makes it safe to run kernels build with clang-8 with KASAN enabled, though it loses some of the functionality. This feature is always disabled when compile-testing with clang to avoid cluttering the output in stack overflow warnings, but clang users can still enable it for builds without COMPILE_TEST. On gcc it is assumed to always be safe to use and enabled by default. If the architecture disables inline instrumentation, stack instrumentation is also disabled as it adds inline-style instrumentation that is run unconditionally.

found in lib/Kconfig.kasan

The configuration item CONFIG_KASAN_STACK:

Help text

(none)

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 2022). See also LKDDb sources on GitLab