Received: by 10.192.165.156 with SMTP id m28csp1049360imm; Fri, 13 Apr 2018 12:18:55 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/6oumOXldZUnCByMtbtdmFKjdDvOIm9GgkSqk6VrpxELLvrc2ZI4We6sFqIOHdRKKxWn/N X-Received: by 10.98.205.69 with SMTP id o66mr12674665pfg.34.1523647135487; Fri, 13 Apr 2018 12:18:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523647135; cv=none; d=google.com; s=arc-20160816; b=RvqfKWa3BZ7cxKJfSKzY9x9D+VG4CWVsWqcXVXBTN1Uvcrd9AKnvPvpTMQWtN+5Flt /xQyEuQX6/gWIPH5h8zRMJVg3pREkC6emA5+hyB7Ev4UlCQ6pmpGqURCKVaZqpSJ4KHQ aifGUZsWSZbVca6yEMbZvTIe09lkjTXqIgfnIgza9R/RRQ0xlLy2n3NEOG4ZO3bq1tby 2Acuh6AlxnBoivkYxBTrapDNHnjKnDmFuZ4OiUBDSGBB41E09IWU+AZ/vH8X6PDJ8gQJ ZQr2QqTIIW3MFpTC0bMM1b7zRVH2w5mnpPtZ5R2IMdaIsQ5+eva12aHiSt37p8VUKSba CcWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature:arc-authentication-results; bh=J2gqNgQredrYQfjyq/M9pgHOYHlAG8YsbEs4K30O0bU=; b=VqeLLjEf+m/GopUmCXxV3a7XMh5BH1Zu1m46h9uDMiVSKlNZ3Kx5jeOw/Rn7sXPYdL udOUjo7T0N/b+HMEXrAP5mtepILqJ/w1pXBu2qlINtvB290wMC68+TJOJqlJOZQE2cMd U7977fQvWceKQhfD1U0K2X1+tLMOKCKaWCfFNWulcVcXYGYnIo6Lw79y8d2p7c/gLIEL 8RWg35kIZBlt/H2qs24dgL3ZUotWMVh/F2GsMbM1/z+ALLSxjQOkGi+Vz5e3R2/4E2HM O2u+/xEwhVjB6Es8IFxRkoAkZuWsnJDhj/V7Q1FzsCIEWfzwAFc9dzQBDFpODWZVPsuA iEpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector1 header.b=EYSbGGTU; 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=NONE sp=NONE dis=NONE) header.from=virtuozzo.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s11si4381034pgp.680.2018.04.13.12.18.00; Fri, 13 Apr 2018 12:18:55 -0700 (PDT) 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=@virtuozzo.com header.s=selector1 header.b=EYSbGGTU; 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=NONE sp=NONE dis=NONE) header.from=virtuozzo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751076AbeDMTPn (ORCPT + 99 others); Fri, 13 Apr 2018 15:15:43 -0400 Received: from mail-he1eur01on0123.outbound.protection.outlook.com ([104.47.0.123]:65072 "EHLO EUR01-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750972AbeDMTPk (ORCPT ); Fri, 13 Apr 2018 15:15:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=virtuozzo.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=J2gqNgQredrYQfjyq/M9pgHOYHlAG8YsbEs4K30O0bU=; b=EYSbGGTUDk1e2DQ2MiuY7Q+PQwvktfQqNIcOc8UVVknfvjPRtOHoePSwAL36mP6wMOo09TAOD6G+qXsNvQzlWmB+/1Zub0lYcW9fdJQ8BNtN6j2UBgkjLR161RMST1Jk9tp/3lTeMxREsMBDjFQMZTj1pxn4/YQbjsTkdrZ2dWs= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=aryabinin@virtuozzo.com; Received: from [172.16.25.12] (195.214.232.6) by AM0PR08MB3251.eurprd08.prod.outlook.com (2603:10a6:208:5e::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.675.10; Fri, 13 Apr 2018 19:15:35 +0000 Subject: Re: [PATCH] kasan: add no_sanitize attribute for clang builds To: Andrey Konovalov Cc: Alexander Potapenko , Dmitry Vyukov , Andrew Morton , David Rientjes , Thomas Gleixner , Ingo Molnar , David Woodhouse , Will Deacon , Greg Kroah-Hartman , Paul Lawrence , Sandipan Das , Kees Cook , LKML , kasan-dev , Linux Memory Management List , Kostya Serebryany References: <4ad725cc903f8534f8c8a60f0daade5e3d674f8d.1523554166.git.andreyknvl@google.com> From: Andrey Ryabinin Message-ID: Date: Fri, 13 Apr 2018 22:16:30 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [195.214.232.6] X-ClientProxiedBy: HE1PR0202CA0017.eurprd02.prod.outlook.com (2603:10a6:3:8c::27) To AM0PR08MB3251.eurprd08.prod.outlook.com (2603:10a6:208:5e::20) X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(5600026)(2017052603328)(7153060)(7193020);SRVR:AM0PR08MB3251; X-Microsoft-Exchange-Diag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aZJyEjIXqVBhZvW2qVAf8w/n/LdChYYCNJGkWYeZ3aRFu14cRqdFC2M7d7/8v+FxIomdx6KmBuQP0cDaJo47w6uMzXzYVP0MWdA7IJsk1CPrZqVd7C1jmmJ7PUNu7cRRMzSF4QHyKaSVqb1geriA/kK0bT79nLbP7gdQNRTzxKYe3kVIn0C0A4iWGFXv5zE6UspCc9YcnrX++R7MxWrv8Eg1HuY6WEZrQh9k30wowYpx4Ru3Tm2wYASsg7bjS/oTOQxA+KUw8zJNUvnHKWBsobq1fwd387mPeRAqaCSfcGdGdxUauIChd6wR611LOuyz/9hQXKJaYwHknYF0T6wPijVXo11vGggodykPB;4:YVgJ6NyqUsabk4Z/QJt9sIm0mwJOr1WIh6EU3M7Nv/uothTtMnk+ktl42pdBqQEErYFjsQi3sYU5jfA3XKqjD1aZQzmpoSXV1+euWehstCLenrcsk/iYoDulZc2fiZYPTfEiroJ1bQca6vMkIvoQZKR3vRSX0W3lk2Xqz6+Jvd7bORrAASwdnAGtVVfRupmKvACVY4+iKuol8Rgw/G3iaC1DJH9B7rL+Dp0PYLght5oVX1GqX+AytkstHhkfY2fwYXdSTipITgQx8YHuwUIEm91ukm9hTjrUFMOtlvdnCR3qpAIdKoSLsz52V+UCyUkXslvaKoouqLAOhzYoARDFTiDbXiz4iDY6mEhdDdCcRcw= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(211936372134217)(153496737603132); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040522)(2401047)(8121501046)(5005006)(3002001)(10201501046)(3231232)(944501327)(52105095)(93006095)(93001095)(6041310)(20161123560045)(20161123558120)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(6072148)(201708071742011);SRVR:AM0PR08MB3251;BCL:0;PCL:0;RULEID:;SRVR:AM0PR08MB3251; X-Forefront-PRVS: 0641678E68 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(6049001)(39850400004)(376002)(396003)(39380400002)(346002)(366004)(189003)(199004)(64126003)(316002)(2906002)(386003)(86362001)(31696002)(54906003)(8676002)(65956001)(65826007)(77096007)(26005)(68736007)(66066001)(55236004)(25786009)(16526019)(53546011)(186003)(31686004)(81156014)(16576012)(8936002)(478600001)(47776003)(36756003)(81166006)(58126008)(97736004)(6486002)(5660300001)(52146003)(446003)(2486003)(2616005)(23676004)(956004)(11346002)(76176011)(105586002)(50466002)(4326008)(476003)(65806001)(52116002)(53936002)(486006)(6116002)(6916009)(6666003)(6246003)(3846002)(106356001)(229853002)(305945005)(7736002)(7416002)(230700001);DIR:OUT;SFP:1102;SCL:1;SRVR:AM0PR08MB3251;H:[172.16.25.12];FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; Received-SPF: None (protection.outlook.com: virtuozzo.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtBTTBQUjA4TUIzMjUxOzIzOisvR01aYjBrS05PNmc5MXJkbXZINmlyK1dH?= =?utf-8?B?cnV4WUwya1gycUgrZkwybXBheTBuaUdQT3dzT244VEgrUVlyNHNCVnI3ekds?= =?utf-8?B?cmx1SmRMNWw5TmMveFlRK0hVZG5LUGF6bW92Ym0yQmE1NW1Ba1Nld2pST0VO?= =?utf-8?B?dnNjZnJ4WTNqaUhVclRhVUw3SW1mOC9ScVMrT0xlcDVNOVJPOFhTd2g1b09n?= =?utf-8?B?YTVqY0V0bWtWMEo2blVFT2tnM0R5QXBlUmVCZHdhMFBiZUVZd3kxUU9lenhN?= =?utf-8?B?dHVTQkpEeTFPeVdqQVd2RUZRZW03Q0VoNFNhMnl4V0xKNkV2VEdjTy96WlFm?= =?utf-8?B?eHJUbVFjdCtZZlQ2TXVVc0lwMUNIMytMZmZQRlZqSit5dUFNOWN4ZGM2SGZm?= =?utf-8?B?NGJQVnc1VVJ4dnljWHVpZnZYNjBmazNJN1dDenZIeCtsSU9uYmNUK09seUY0?= =?utf-8?B?OUhh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wmM5NJjFbF9cHFzhKhjSOMsmPCwmoY1GJiFx+Av53OrDjm741ecunJ9wZzYxysFvSSy6wePQRKLTLuUjADHAqzEIudsWLBckFo= X-MS-Office365-Filtering-Correlation-Id: 5cc5af43-5859-4392-ebbd-08d5a172efe3 X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Apr 2018 19:15:35.4578 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5cc5af43-5859-4392-ebbd-08d5a172efe3 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR08MB3251 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/13/2018 08:34 PM, Andrey Konovalov wrote: > On Fri, Apr 13, 2018 at 5:31 PM, Andrey Ryabinin > wrote: >> >> >> On 04/12/2018 08:29 PM, Andrey Konovalov wrote: >>> KASAN uses the __no_sanitize_address macro to disable instrumentation >>> of particular functions. Right now it's defined only for GCC build, >>> which causes false positives when clang is used. >>> >>> This patch adds a definition for clang. >>> >>> Note, that clang's revision 329612 or higher is required. >>> >>> Signed-off-by: Andrey Konovalov >>> --- >>> include/linux/compiler-clang.h | 5 +++++ >>> 1 file changed, 5 insertions(+) >>> >>> diff --git a/include/linux/compiler-clang.h b/include/linux/compiler-clang.h >>> index ceb96ecab96e..5a1d8580febe 100644 >>> --- a/include/linux/compiler-clang.h >>> +++ b/include/linux/compiler-clang.h >>> @@ -25,6 +25,11 @@ >>> #define __SANITIZE_ADDRESS__ >>> #endif >>> >>> +#ifdef CONFIG_KASAN >> >> If, for whatever reason, developer decides to add __no_sanitize_address to some >> generic function, guess what will happen next when he/she will try to build CONFIG_KASAN=n kernel? > > It's defined to nothing in compiler-gcc.h and redefined in > compiler-clang.h only if CONFIG_KASAN is enabled, so everything should > be fine. Am I missing something? No, It's was me missing something ;) However, "#ifdef CONFIG_KASAN" seems to be redundant, I'd rather remove it. Anyway: Acked-by: Andrey Ryabinin