From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io0-f198.google.com (mail-io0-f198.google.com [209.85.223.198]) by kanga.kvack.org (Postfix) with ESMTP id B4C9B6B0003 for ; Mon, 12 Mar 2018 09:10:54 -0400 (EDT) Received: by mail-io0-f198.google.com with SMTP id t9so3851258ioa.9 for ; Mon, 12 Mar 2018 06:10:54 -0700 (PDT) Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id 26sor1344765ioq.234.2018.03.12.06.10.53 for (Google Transport Security); Mon, 12 Mar 2018 06:10:53 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20180309191823.p6r7f5dlxhifxokh@lakrids.cambridge.arm.com> References: <1943a345f4fb7e8e8f19b4ece2457bccd772f0dc.1520017438.git.andreyknvl@google.com> <20180305145435.tfaldb334lp4obhi@lakrids.cambridge.arm.com> <20180309191823.p6r7f5dlxhifxokh@lakrids.cambridge.arm.com> From: Andrey Konovalov Date: Mon, 12 Mar 2018 14:10:50 +0100 Message-ID: Subject: Re: [RFC PATCH 14/14] khwasan: default the instrumentation mode to inline Content-Type: text/plain; charset="UTF-8" Sender: owner-linux-mm@kvack.org List-ID: To: Mark Rutland Cc: 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 , 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 , linux-doc@vger.kernel.org, LKML , Linux ARM , linux-ext4@vger.kernel.org, linux-sparse@vger.kernel.org, Linux Memory Management List , Linux Kbuild mailing list , Kostya Serebryany , Evgeniy Stepanov , Lee Smith , Ramana Radhakrishnan , Jacob Bramley , Ruben Ayrapetyan , Kees Cook , Jann Horn , Mark Brand On Fri, Mar 9, 2018 at 8:18 PM, Mark Rutland wrote: > On Fri, Mar 09, 2018 at 07:06:59PM +0100, Andrey Konovalov wrote: >> On Mon, Mar 5, 2018 at 3:54 PM, Mark Rutland wrote: >> >> Hi Mark! >> >> GCC before 5.0 doesn't support KASAN_INLINE, but AFAIU will fallback >> to outline instrumentation in this case. >> >> Latest Clang Release doesn't support KASAN_INLINE (although current >> trunk does) and falls back to outline instrumentation. >> >> So nothing should break, but people with newer compilers should get >> the benefits of using the inline instrumentation by default. > > Ah, ok. I had assumed that they were separate compiler options, and this > would result in a build failure. No worries, I'll check that GCC 4.9 works and add this info to the commit message. > > I have no strong feelings either way as to the default. I typically use > inline today unless I'm trying to debug particularly weird cases and > want to hack the shadow accesses. Great! > > Thanks, > Mark.