|author||Andrey Ryabinin <email@example.com>||2015-11-05 18:51:23 -0800|
|committer||Alex Shi <firstname.lastname@example.org>||2016-04-11 22:59:45 +0800|
mm, slub, kasan: enable user tracking by default with KASAN=y
It's recommended to have slub's user tracking enabled with CONFIG_KASAN, because: a) User tracking disables slab merging which improves detecting out-of-bounds accesses. b) User tracking metadata acts as redzone which also improves detecting out-of-bounds accesses. c) User tracking provides additional information about object. This information helps to understand bugs. Currently it is not enabled by default. Besides recompiling the kernel with KASAN and reinstalling it, user also have to change the boot cmdline, which is not very handy. Enable slub user tracking by default with KASAN=y, since there is no good reason to not do this. [email@example.com: little fixes, per David] Signed-off-by: Andrey Ryabinin <firstname.lastname@example.org> Cc: Christoph Lameter <email@example.com> Cc: Pekka Enberg <firstname.lastname@example.org> Cc: David Rientjes <email@example.com> Cc: Joonsoo Kim <firstname.lastname@example.org> Signed-off-by: Andrew Morton <email@example.com> Signed-off-by: Linus Torvalds <firstname.lastname@example.org> (cherry picked from commit 89d3c87e20d95e3238eac85e43de7b3cb1f39d8b) Signed-off-by: Alex Shi <email@example.com>
Diffstat (limited to 'Documentation')
1 files changed, 1 insertions, 2 deletions
diff --git a/Documentation/kasan.txt b/Documentation/kasan.txt
index 4e906a091c60..58b72fbf450d 100644
@@ -28,8 +28,7 @@ the latter is 1.1 - 2 times faster. Inline instrumentation requires a GCC
version 5.0 or later.
Currently KASAN works only with the SLUB memory allocator.
-For better bug detection and nicer report, enable CONFIG_STACKTRACE and put
-at least 'slub_debug=U' in the boot cmdline.
+For better bug detection and nicer reporting, enable CONFIG_STACKTRACE.
To disable instrumentation for specific files or directories, add a line
similar to the following to the respective kernel Makefile: