Received: by 10.223.176.46 with SMTP id f43csp1334409wra; Fri, 19 Jan 2018 10:01:19 -0800 (PST) X-Google-Smtp-Source: ACJfBouBr5NV3nayk2FuuaFgy1O87TQNK1TmyXK3osL6f97grNvhiE73tvIY4imrfCSWyBU2+KyX X-Received: by 2002:a17:902:6988:: with SMTP id l8-v6mr1985648plk.394.1516384879242; Fri, 19 Jan 2018 10:01:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516384879; cv=none; d=google.com; s=arc-20160816; b=f90A52+yJlEkRnUiGqF5gI2PsOezf4tGJSMIlG8+l0b6lPoMNTZ9Ao6e4fukjGmOhv JkWYcmT8SwDKKV2aZQciTIpuLr9fq1UCymDUJ8wEiY2K7pFj+SYQeIWBTZ1EszdjlkGI U8VFpO5fJQdi/a3kJoSHuv3kUczkylG9FWxQ4yp4KU/bM9Dn0AguDsb2NUC1LZdtAM8Q ZcHOgdff0sqn08H0gt4P9yrTbVdvi9C0Iw0X6nfkXTWMBw141KlPOUIL57FLPl7M1Bx4 x/H1R0HgbW/GXccX2gMpuV4t0B2GFEVbdafNALPOqhluBSVIFeVdKIPA20fUGTBbiMdl i3tw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=xbpJV7Aa88dKhwJiRWHJ+UwZFSNI/SucpEWyla25bSA=; b=OLJtpfuB9HISYm9AzP+Pa9U5FhnPKli9h9VM1p1YP9HuzJqWvOy7li65FZ7VD6sr2u 3vu8qtuYiHMrlsDjSOL9gUve0se8yvc76WnTNhT7qXC7i1A7dR0wstAO52eFx9NUhmVj GA9knBTO6jSOi3KPwE9vK9SGnj6Nq2SHOjtQwuDkDHy1Tu8K6HJX9Q0ql9lLecCtmNEG A1cnqf4whthGjuShYy06u6WKTicUsri8TF4ncktlSnW+Zdyz2AYOWL7OIIDHFe/SbQhz b1vnisdGt3+8sEVk3ambIhzIs8jgkg8wpJAxyqj2GpvbcQRCzKbZgtZIyopdXKjhDnZV pMlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=c0rUKZEw; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p7si9665447pfk.8.2018.01.19.10.01.04; Fri, 19 Jan 2018 10:01:19 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=c0rUKZEw; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932479AbeASR6x (ORCPT + 99 others); Fri, 19 Jan 2018 12:58:53 -0500 Received: from mail-oi0-f52.google.com ([209.85.218.52]:36443 "EHLO mail-oi0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755993AbeASR6q (ORCPT ); Fri, 19 Jan 2018 12:58:46 -0500 Received: by mail-oi0-f52.google.com with SMTP id w135so1687196oie.3 for ; Fri, 19 Jan 2018 09:58:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=xbpJV7Aa88dKhwJiRWHJ+UwZFSNI/SucpEWyla25bSA=; b=c0rUKZEwU9oXnw/K09po9QnyeKW5UZ3Vh37H6D+29di78ZTHU/Is5WUoUV3C140Ybb EgbNM/y5ncYz4cqz1o1s+5QY/D3DyGJVYPqqn9QDVQGPWtA2TYTNq8Kumn2XYlyLMlUN nsfXayRYm+7meMUi2oiKbY758JMP1y2YsvYrOBy46btZ0nlaj5WxGXIsfJKcZhHG8lO/ Tfla2b9d+SzHmeZQG3XFLTAlCOVRJ9dX1i+eezFGlzRJQ+bupjrXAOqt3AKIsv8Atkt1 Wol6vwkXi7s4lH3e3B/IRoC1sghGsIvya9oPR7PlqzgkZP2SQum9Fc/jTdlOO2SIKCYy GljA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=xbpJV7Aa88dKhwJiRWHJ+UwZFSNI/SucpEWyla25bSA=; b=cBWiCEd8xED3ugupSKabdRJIi/hLbGC3GitNtGRBWkMtSeR9I+YqXEAa8gzmBqov5K ehVaA+fOsg9+uB0NE3b8x7M5Or8SNuykci5sOT0rlo29yt39qWX/FoHq91t1XPD3pEiw YOYTap7JbQPPa5qFDURUJpWGgourfALRyQ9+/+erI0KR5+7dh3sn45q65xxtZFFrmTyQ uGYWhJ8wJ1uiceHela2kPhiuzvGdYRMVdx67Wu6oivSYq6JqE0zCzNOufnG7zV5ELH3/ Ugc9bBAhivANUOf76MH/qRWT0bnVSRx286DHmGIq/sKxQ1XMA9H8tM+JqHRFUVQDTmxe OoBQ== X-Gm-Message-State: AKwxyteuheZAXTudkUXOXgta8Ne14Vqbwq36Y5ke5FQVJ3P1+q5isDtE pWvWLwHkZz38CtdfOJhoxAMNzBeqq/SLpCB1TNuBpA== X-Received: by 10.202.75.215 with SMTP id y206mr5720162oia.9.1516384726149; Fri, 19 Jan 2018 09:58:46 -0800 (PST) MIME-Version: 1.0 Received: by 10.168.117.74 with HTTP; Fri, 19 Jan 2018 09:58:45 -0800 (PST) In-Reply-To: <20516c34-7826-e07a-cda6-6228776ebee6@virtuozzo.com> References: <7d2dddbb7e4d4522fcf8e57c7da072c1ac76e1b0.1516373316.git.andreyknvl@google.com> <20516c34-7826-e07a-cda6-6228776ebee6@virtuozzo.com> From: Andrey Konovalov Date: Fri, 19 Jan 2018 18:58:45 +0100 Message-ID: Subject: Re: [PATCH] kasan: don't emit builtin calls when sanitization is off To: Andrey Ryabinin Cc: Masahiro Yamada , Michal Marek , Alexander Potapenko , Dmitry Vyukov , linux-kbuild@vger.kernel.org, LKML , kasan-dev , Kostya Serebryany , Evgeniy Stepanov , Nick Desaulniers , Stephen Hines , Pirama Arumuga Nainar , Manoj Gupta , Greg Hackmann , Andrew Morton Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 19, 2018 at 4:57 PM, Andrey Ryabinin wrote: > > > On 01/19/2018 05:54 PM, Andrey Konovalov wrote: > >> diff --git a/scripts/Makefile.kasan b/scripts/Makefile.kasan >> index dbbd4382f15a..db473309f136 100644 >> --- a/scripts/Makefile.kasan >> +++ b/scripts/Makefile.kasan >> @@ -39,4 +39,7 @@ else >> endif >> >> CFLAGS_KASAN += $(call cc-option, -fsanitize-address-use-after-scope) >> + >> +CFLAGS_KASAN_NOSANITIZE := $(call cc-option, -fno-builtin) >> + > > I think it should be fine to drop cc-option here. Even ancient versions of GCC have -fno-builtin. > Mailed v2. Thanks!