From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f198.google.com (mail-wr0-f198.google.com [209.85.128.198]) by kanga.kvack.org (Postfix) with ESMTP id 0D3286B0030 for ; Fri, 2 Mar 2018 14:45:27 -0500 (EST) Received: by mail-wr0-f198.google.com with SMTP id o23so7033436wrc.9 for ; Fri, 02 Mar 2018 11:45:27 -0800 (PST) Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id c14sor214288wmi.67.2018.03.02.11.45.25 for (Google Transport Security); Fri, 02 Mar 2018 11:45:25 -0800 (PST) From: Andrey Konovalov Subject: [RFC PATCH 14/14] khwasan: default the instrumentation mode to inline Date: Fri, 2 Mar 2018 20:44:33 +0100 Message-Id: <1943a345f4fb7e8e8f19b4ece2457bccd772f0dc.1520017438.git.andreyknvl@google.com> In-Reply-To: References: In-Reply-To: References: Sender: owner-linux-mm@kvack.org List-ID: To: Andrey Ryabinin , Alexander Potapenko , Dmitry Vyukov , Jonathan Corbet , Catalin Marinas , Will Deacon , Theodore Ts'o , Jan Kara , Christopher Li , Christoph Lameter , Pekka Enberg , David Rientjes , Joonsoo Kim , Andrew Morton , Masahiro Yamada , Michal Marek , Mark Rutland , Ard Biesheuvel , Yury Norov , Nick Desaulniers , Marc Zyngier , Bob Picco , Suzuki K Poulose , Kristina Martsenko , Punit Agrawal , Dave Martin , James Morse , Julien Thierry , Michael Weiser , Steve Capper , Ingo Molnar , Thomas Gleixner , Sandipan Das , Paul Lawrence , David Woodhouse , Kees Cook , Geert Uytterhoeven , Josh Poimboeuf , Arnd Bergmann , kasan-dev@googlegroups.com, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-ext4@vger.kernel.org, linux-sparse@vger.kernel.org, linux-mm@kvack.org, linux-kbuild@vger.kernel.org, Kostya Serebryany , Evgeniy Stepanov , Lee Smith , Ramana Radhakrishnan , Jacob Bramley , Ruben Ayrapetyan , Kees Cook , Jann Horn , Mark Brand Cc: Andrey Konovalov There are two reasons to use outline instrumentation: 1. Outline instrumentation reduces the size of the kernel text, and should be used where this size matters. 2. Outline instrumentation is less invasive and can be used for debugging for KASAN developers, when it's not clear whether some issue is caused by KASAN or by something else. For the rest cases inline instrumentation is preferrable, since it's faster. This patch changes the default instrumentation mode to inline. --- lib/Kconfig.kasan | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Kconfig.kasan b/lib/Kconfig.kasan index ab34e7d7d3a7..8ea6ae26b4a3 100644 --- a/lib/Kconfig.kasan +++ b/lib/Kconfig.kasan @@ -70,7 +70,7 @@ config KASAN_EXTRA choice prompt "Instrumentation type" depends on KASAN - default KASAN_OUTLINE + default KASAN_INLINE config KASAN_OUTLINE bool "Outline instrumentation" -- 2.16.2.395.g2e18187dfd-goog -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org