Lines Matching +full:mode +full:- +full:based
1 # SPDX-License-Identifier: GPL-2.0-only
3 # This config refers to the generic KASAN mode.
32 compile-time constants for better performance.
35 def_bool $(cc-option, -fsanitize=kernel-address)
38 def_bool $(cc-option, -fsanitize=kernel-hwaddress)
55 Enables KASAN (Kernel Address Sanitizer) - a dynamic memory safety
56 error detector designed to find out-of-bounds and use-after-free bugs.
58 See Documentation/dev-tools/kasan.rst for details.
65 …def_bool (CC_IS_CLANG && $(cc-option,-fsanitize=kernel-address -mllvm -asan-kernel-mem-intrinsic-p…
66 (CC_IS_GCC && $(cc-option,-fsanitize=kernel-address --param asan-kernel-mem-intrinsic-prefix=1))
74 prompt "KASAN mode"
81 2. Software Tag-Based KASAN (arm64 only, based on software memory
84 3. Hardware Tag-Based KASAN (arm64 only, based on hardware memory
87 See Documentation/dev-tools/kasan.rst for details about each mode.
105 bool "Software Tag-Based KASAN"
111 Enables Software Tag-Based KASAN.
124 bool "Hardware Tag-Based KASAN"
127 Enables Hardware Tag-Based KASAN.
170 out-of-bounds bugs in stack variables.
176 This option is always disabled when compile-testing with Clang to
183 as well, as it adds inline-style instrumentation that is run
195 With Hardware Tag-Based KASAN, only non-executable VM_ALLOC mappings
199 tristate "KUnit-compatible tests of KASAN bug detection capabilities" if !KUNIT_ALL_TESTS
203 A KUnit-based KASAN test suite. Triggers different kinds of
204 out-of-bounds and use-after-free accesses. Useful for testing whether
208 to the KUnit documentation in Documentation/dev-tools/kunit/.
222 In Generic KASAN, each kmalloc-8 and kmalloc-16 object will add
223 16 bytes of additional memory consumption, and each kmalloc-32