Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753579AbdGJKca (ORCPT ); Mon, 10 Jul 2017 06:32:30 -0400 Received: from mail-ve1eur01on0094.outbound.protection.outlook.com ([104.47.1.94]:6607 "EHLO EUR01-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752666AbdGJKc0 (ORCPT ); Mon, 10 Jul 2017 06:32:26 -0400 Authentication-Results: google.com; dkim=none (message not signed) header.d=none;google.com; dmarc=none action=none header.from=virtuozzo.com; Subject: Re: [PATCH 4/4] kasan: add compiler support for clang To: Greg Hackmann , Alexander Potapenko , Dmitry Vyukov , Masahiro Yamada , Michal Marek Cc: linux-kernel@vger.kernel.org, kasan-dev@googlegroups.com, linux-mm@kvack.org, linux-kbuild@vger.kernel.org, Matthias Kaehlcke , Michael Davidson References: <20170706220114.142438-1-ghackmann@google.com> <20170706220114.142438-5-ghackmann@google.com> From: Andrey Ryabinin Message-ID: <34230d2e-c134-6cbc-2a59-c78c78782526@virtuozzo.com> Date: Mon, 10 Jul 2017 13:34:24 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.0 MIME-Version: 1.0 In-Reply-To: <20170706220114.142438-5-ghackmann@google.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [195.214.232.6] X-ClientProxiedBy: SIXPR04CA0061.apcprd04.prod.outlook.com (10.162.171.51) To DB5PR0801MB2726.eurprd08.prod.outlook.com (10.166.176.22) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 34ffa3ef-0dc5-4199-3250-08d4c77ef3c9 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(300000503095)(300135400095)(201703131423075)(201703031133081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:DB5PR0801MB2726; X-Microsoft-Exchange-Diagnostics: 1;DB5PR0801MB2726;3:amvWElrYsBok7iEmUn6uNZFJ3az7ADXqh57Z2V6y2MBnzqQegRwAMiiOOmDgtXRLBsJi8sFRVOq4T3o+Q4up+WRE9Tr36cU6HVhRCwqo7ChiCKPhTSbA2YuDbfjplRhlbCrHDMtIw6BNY8+of3YtVJlGUsW71G+EDvHFljM664HPDnWhrhe7VY3gmaLTFcN0fXsWwt3DcktuAYMVVOPETUhNmRFGP3BKJyv1SGlZgptLT4GQyHRq+yIxhqu4OJpLKMjafSjbeCbT36bLZxXszV1bRsornfUR6eLtPN5MZ21AvdYdi8xLlbQnaBTOiRfk9HoMbNMg17vNOImYklTA1bnzGvfjbkIrGpEuFzAMzyVOiTXxNR3RAh85trW3wZzkoqM/MSk5fM4uBjUZQHDfAXEWCA6FUTjKhitTjD/IEgY6Ke3TbQMfrxh0cR6tgjtv42Lp66EAFe/W/TAayXSzY3DbB9DewDMwdvY4J2AQKJAADroW9WWcAADg7NlY0ALjxbh98P/q9ShgzukpmRKSlgnCxJTF7Du2hW0PT+Qj+rCsDMBqsmjv/hJ6J3952lffaqc1DVj39ti6iIKqbQQD15aHxwfMB6i3SOzNCtqUJoI/DR+wm2eA7PpOgwPkidJL/aV7lvmcYt2PbOYf+yYpYKzmLRILLeo5P6gmKd960AGtuz2tKwIHgNOxV9DY1rwz0sIzSPg7MV3Vd17t3LXV8HzzyovM4POg1J5Gie1wZQQ= X-MS-TrafficTypeDiagnostic: DB5PR0801MB2726: X-Microsoft-Exchange-Diagnostics: 1;DB5PR0801MB2726;25:cJWcKrOtDV5eNoQRFw/XdGCRWKMxR9KFYlP4yo5Nh3o+MdXf9dYdJWpckd8n0zL1Sa+hhnWwO7UsORJpru/1+UDQiyTyY5Ipf0aylOojaHN2Rc2b98MZE95i9sj7H+9MRUz4Jm0Yl3pcoIFf4kkl5Yq9eAU5hMDB5mOiWqQ+CaXFNHUovIUsZjxAn1isN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HQZ7Mtg9WoAn+7d0O5Os3frtjOoupS7pmeQsggIQP4ovrCY25x0Z+bCX5odWcI2L1Dnw7BFbPU/w380a6MKiABvzvEmyCxoip2m7dm1C9n9jD5l0BincuB7fTzAZ8DutPXq33hWhWnt5M7IXHlP6SSsBr+ZoAVy3E2vWBUtYdnbdI8beV3YS3UVl+0/f6nMv0R9q32VSN1TYua5SiC/KXOjgVk20n5iWUU7KacsgQoafxp9DO8qf2+lO27OKxGid+GYmKRyvu+CKVp+zW2Kf5ExEG4HTNMkm6GHbjD5cJ8x0IkEecghOzF6A5WxYnQmw6ILU1KnE/U8Fr9Jsmtwsv1EgVv03V4R97EumfulQBp37a9ZTwTLFeDMa+4cSp+8F+wfUw6orlqJl0G78iozQ6PSdZXXyPD+DqZ1TGNg== X-Microsoft-Exchange-Diagnostics: 1;DB5PR0801MB2726;20:PfrtP8fPori8vCSZTrOYxIHyNvFBOlMEU7tGZwdZD7kQK70vLbaqMRcnYFLlpR2I+yXI2K/OXjBIFkBYMS0Sblht93e0ehKVHfgS1kS2h6XWk31sfwCuEUopehAd+eK1w/e/fWWCb11EYCfSG6xeXWwNMHnYFdgi9awRE17JojWIEQHwzz9Xs+9syuAYQlqvC46Fkmu+zxP8wXztdhFJKc7xIKS4xWoTrqCW0Slt4zoo7L7+bQCqXfClI5tYSF5QRjS+5MS5U6marhz37tN+wCMShUAs34y5PO/mhOCqJEQtgExm+uj/hsgrll2B+HteLvrixG4fSurSYCZXhLGil3Kztd3zxqw4YIfbY145LKPnBpBxpjQIfmf45G3cZwppUrT3pc+oTDibI98fdBKHRa3K8FAz037272PlVSblfMU= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(133145235818549)(236129657087228)(211936372134217); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(8121501046)(2017060910075)(93006095)(93001095)(10201501046)(3002001)(100000703101)(100105400095)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(20161123560025)(20161123555025)(20161123562025)(20161123558100)(6072148)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:DB5PR0801MB2726;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:DB5PR0801MB2726; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtEQjVQUjA4MDFNQjI3MjY7NDpkemI0WktRcGZMRHh2QXVFN1dQT2dDWnhP?= =?utf-8?B?bVpTZFdFQUp5TERRVUZ2aXIzZXlNL2ZMV2UxNGdYdEdwdFZPelNKQ0JYbFc2?= =?utf-8?B?eXo5U3lnTFhFNGZMcmp2bzQ3cnZQamx2OXdqd1pCeXdROW8wTjRDWlpXcThi?= =?utf-8?B?MFJ6dVNMVldUbGhpaHJmb0lBdUhuR0V0V2VyMUhscVEwUEpRTkVaNENHVm5H?= =?utf-8?B?ZlhYSThkZTlQWEIxMzYzVDB3T3UvU0NWd0dvWDZZdmF1RGRhSnk5eko3TjJ0?= =?utf-8?B?MjB3SGY1SnlUNGtWeVIvcHpOaXVyb1k3QVNoalVxKzJPYjNHdHNPbzJVTEdn?= =?utf-8?B?VGs1eGRocWRSUGZ5SndkbkRuMG12VHI0bUxhTGx2ZndXUjV4eHM1WFdKWFZV?= =?utf-8?B?eG41OTZkRGtha2sybmFxekFZVnVhelhlWTRCVDliUk42U2p2MXNaMzRGTmtJ?= =?utf-8?B?Nm52UDd3WGV0YWRWN0k2ZkYvRXpWYjRhcDF5NEQ5RDFwcDRjUjFNT2RVQnVm?= =?utf-8?B?WHF6RXZjd0M4RS9SSVhGckY5UGxUQWdDNkc2NFJNenUyVFl3d1lPRDlVL3dZ?= =?utf-8?B?dnAxL2JSUWxIVjlDdG9CSlFZTFdpblExdjBrL0tTRTlGbkN4c1hXbHZEOC9P?= =?utf-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= =?utf-8?B?UFBxRks2azQvWG9wZlN0Mnc4MURuSWlLVlpMdit5ZWNiTklNWjZBaHJvOXBR?= =?utf-8?B?Qnl3VWlvay9mMUs0cVhIcEdEZW9lYVhUdW5FTHRZMzkvYTNQeFAraWMwdnNE?= =?utf-8?B?cDc4VTRKNXVtV1ovdTRVQjJBU3A2bXE2MzFtenRzWVYyOXdBaXAvWUlqV0R1?= =?utf-8?B?bTgxT25Hclg0Y25qSzZJQnc9PQ==?= X-Forefront-PRVS: 03648EFF89 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(7370300001)(4630300001)(6049001)(6009001)(39450400003)(39410400002)(39830400002)(39400400002)(24454002)(377454003)(7736002)(229853002)(77096006)(305945005)(6666003)(5660300001)(6486002)(7416002)(38730400002)(2950100002)(53546010)(25786009)(4326008)(86362001)(66066001)(65806001)(65956001)(6246003)(54356999)(50986999)(76176999)(478600001)(47776003)(31696002)(53936002)(64126003)(2906002)(33646002)(31686004)(81166006)(54906002)(42186005)(50466002)(3846002)(36756003)(65826007)(83506001)(230700001)(8676002)(189998001)(7350300001)(23676002)(4001350100001)(6116002);DIR:OUT;SFP:1102;SCL:1;SRVR:DB5PR0801MB2726;H:[172.16.25.12];FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtEQjVQUjA4MDFNQjI3MjY7MjM6V2lpR08rZlZxUHo3bHVobEZnWmplTG1W?= =?utf-8?B?bTVQbWNtV2VHY2xscGtQOE1vTFUxYzRpa0hiTnI2Nk5DbmpwbzBmZ2RKV3VH?= =?utf-8?B?WjZWbnRuaUZyOVFyODdZSlU5a3lHM1ROUnhnMGNrWjIyOEJaMTFCWHc2NDdq?= =?utf-8?B?Q2tXT0E4ZjJvSGd0dTBXM0JKUE1oVTJwNS9DcExJaWU5V1dZZEVaZFNLNEJZ?= =?utf-8?B?U1FMQkptclJ0RW5iR1Roc016dm5NZmlwbDNWKzdmd2N4TjArTEJsUVR1c1U5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ZJZ7JgoT9Qkt9DxfAOWiMlePv7hkITUFxLXUbvBk6Kgn7GyowXWl5j9V3OZRmtjyrXWOIZuOpk7q6J9WPbW4qA3Rsw8Otc7bMe9EYOVTUIjju3u//QsnuANK4f73jAsyX6M1MR8A/II5gcj8NAnhhqKCXUBRmzzZZe41HmXJoMAgKafnrQDjdxDEUpGCfIh0UuOVN21Sg03rB1lN84w5ZEJfM7YvaOCg/HSTjrMuq5VxkD5M/tKIiuz68g25eHJRRaligPZZzt8iZTMn3qIDNqM5aYwYYnKIu81SkU6m9Gu1e167xDW9uKBIFaXjMhnWkzcLdZcuhn6K4FZo38d5zWboj4C9SQVSMufWoPHL0vnhHWT6+zubXt09Dn8KkTx5bL15mSVp9PWJ/fOtrHj2sQ8ba8YmGuO9VjEl+N4qCB+NXrhMV8aVVHekUxIHxnO/iX6QG2U7hXOxx9uFQIEPLDpkWWAWQuXYRx/jkL9mevmorgLVm18LSURiXb6ZjYFr4LLREVnC3ebopTm0b8aWNkQONInIKJLPFkzU8Kz9mqAR9W5xtXB54yjkTBnbHRo1RxwY2IOMyKMNt+OLs7Lq2Sn+Xh66EmJbb0gEixiElEx2ZZgGYngG4i6X5P7BPq2lofWPG1wz/bmlpcrgpxbeyq3B0b+cIlvHG29+va8yd2WcRa2La5EuyVCg+igsxIqAEs1eg7aoNPfux+beCLelqMEe8vSFON49z4eg4KwHM0tiV13mMwu0THye97aEXvI= X-Microsoft-Exchange-Diagnostics: 1;DB5PR0801MB2726;20:oWeaLHgB/e7yvwz1z5VAV3HkeIEEkjSMeH7d1WnvfWkXuBokEyn8k50lxPVFND+zXswUUx0NJOwowdxg8QHf/uU8CrJk0RqOIV9k0hPzqYJqMT2ZJV7CqCIVwoRBkvL6yDOK0WwAMVy4b3NiCjNDudUIuGLz7jbIggkxNaA85vM= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jul 2017 10:32:17.3127 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB5PR0801MB2726 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1045 Lines: 35 On 07/07/2017 01:01 AM, Greg Hackmann wrote: > For now we can hard-code ASAN ABI level 5, since historical clang builds > can't build the kernel anyway. We also need to emulate gcc's > __SANITIZE_ADDRESS__ flag, or memset() calls won't be instrumented. > > Signed-off-by: Greg Hackmann > --- > include/linux/compiler-clang.h | 10 ++++++++++ > 1 file changed, 10 insertions(+) > > diff --git a/include/linux/compiler-clang.h b/include/linux/compiler-clang.h > index d614c5ea1b5e..8153f793b22a 100644 > --- a/include/linux/compiler-clang.h > +++ b/include/linux/compiler-clang.h > @@ -23,3 +23,13 @@ > */ > #undef inline > #define inline inline __attribute__((unused)) notrace > + > +/* all clang versions usable with the kernel support KASAN ABI version 5 > + */ Enclosing */ should be on the same line for single-line comments. > +#define KASAN_ABI_VERSION 5 > + > +/* emulate gcc's __SANITIZE_ADDRESS__ flag > + */ Ditto. > +#if __has_feature(address_sanitizer) > +#define __SANITIZE_ADDRESS__ > +#endif >