Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752582AbdLEQc1 (ORCPT ); Tue, 5 Dec 2017 11:32:27 -0500 Received: from mail-he1eur01on0131.outbound.protection.outlook.com ([104.47.0.131]:17082 "EHLO EUR01-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752520AbdLEQcX (ORCPT ); Tue, 5 Dec 2017 11:32:23 -0500 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=aryabinin@virtuozzo.com; Subject: Re: [PATCH v4 1/5] kasan: add compiler support for clang To: Paul Lawrence , Alexander Potapenko , Dmitry Vyukov , Masahiro Yamada Cc: linux-kernel@vger.kernel.org, kasan-dev@googlegroups.com, linux-mm@kvack.org, linux-kbuild@vger.kernel.org, Matthias Kaehlcke , Michael Davidson , Greg Hackmann References: <20171204191735.132544-1-paullawrence@google.com> <20171204191735.132544-2-paullawrence@google.com> From: Andrey Ryabinin Message-ID: <5e96ec6f-214a-b623-eb1e-c50d91ba4819@virtuozzo.com> Date: Tue, 5 Dec 2017 19:35:51 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <20171204191735.132544-2-paullawrence@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: HE1PR08CA0068.eurprd08.prod.outlook.com (10.170.248.167) To DB6PR08MB2824.eurprd08.prod.outlook.com (10.170.222.155) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1b7a3244-8e68-41c3-1469-08d53bfdc157 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(4534020)(4602075)(7168020)(4627115)(201703031133081)(201702281549075)(5600026)(4604075)(2017052603286);SRVR:DB6PR08MB2824; X-Microsoft-Exchange-Diagnostics: 1;DB6PR08MB2824;3:E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BqH5FpUTfv4nHR/q5s2aBeTBgGGw5Cf+BBoyFGJBBdiUbnVp193RSaXgOBITUGyoo0p0deLrQfCuIzmhCsBVWjYnvncXqctn6COAq22utAH4VVabB2bkN+tDlLGraF/JKIBXy2BTW+eIjS4wdVZZmmxRpdrEzgJ4HSyBYkIARLOu/u41U1KVyKSHrDr9FrGeC+IXYAO7uF2KzNyUVwxZ5Eh2C8fzGSv7ujCDvnHupptoITDf4OO1dd77bBtJRpWWwRXVenVleXcZWs=;4:+s/rrwe/VsLAWbLz9uK1mvCXQ+qcK7uDh8aQn/FL4JocqhlulJFfypW0yAlwzlLgBpnGwS8IisQiNu7Bv2tcE8vMcBthbXzxw8tG8i1NKoXMft/vtxdh8C0cJuWFrGURXXCnAx/cX8sHAWui8NLjpFUu5JhwG9IK0xqAPqoCxQj6/KNh8elOzXya9yXJQtBR4ChCzY02LvsNrt3C4+oCpEXHscrJnf0OZjzqlxN0K710S5JrpFdKgi3nIo03DvbWeySi6E3eXtabUaZLdSxA1+OBpHzPaV3tP3dEFG4747ChoDdcW/dzFeOny9Y6DvXok5UsvBENFHFBH1n5Sys12FSn3Hnes4smNmOxBMJO5Ew= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(211936372134217)(153496737603132); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040450)(2401047)(5005006)(8121501046)(10201501046)(3231022)(920507027)(3002001)(93006095)(93001095)(6041248)(20161123555025)(20161123562025)(20161123560025)(20161123564025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(201708071742011);SRVR:DB6PR08MB2824;BCL:0;PCL:0;RULEID:(100000803101)(100110400095);SRVR:DB6PR08MB2824; X-Forefront-PRVS: 0512CC5201 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(6049001)(376002)(346002)(366004)(24454002)(97736004)(2950100002)(50466002)(7736002)(6246003)(4326008)(305945005)(6666003)(34040400001)(81166006)(33646002)(8676002)(47776003)(229853002)(16526018)(81156014)(65826007)(25786009)(230700001)(16576012)(76176011)(77096006)(6486002)(316002)(54906003)(53936002)(52146003)(23676004)(2486003)(58126008)(86362001)(64126003)(5660300001)(65956001)(110136005)(66066001)(90366009)(31696002)(65806001)(53546010)(55236003)(106356001)(6116002)(3846002)(105586002)(8936002)(31686004)(83506002)(68736007)(101416001)(52116002)(478600001)(36756003)(7416002)(2906002);DIR:OUT;SFP:1102;SCL:1;SRVR:DB6PR08MB2824;H:[172.16.25.12];FPR:;SPF:None;PTR:InfoNoRecords;LANG:en; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtEQjZQUjA4TUIyODI0OzIzOlYwalZLL201a0xDUm5jeTEwcWtTVGJ4WnVI?= =?utf-8?B?QVN0REx3Y0Vrd1JWQlJ2WHJiblRHK04wc0tiRHczdFAzQlErZURZZnkrQllI?= =?utf-8?B?VFZvcTZPMUV2dndMb0l2YXRGcE1UQmtwTmFXNkpaK2NuZFNNdmlmQnBDQ1VE?= =?utf-8?B?MENjU0RwNzJIMEtocElwRVU4WDluMGIxMi9VSzI1eTkyUUVHUWdrU2M4T1Zw?= =?utf-8?B?enQ1NnlNcm9kOUhDQkdETGR6dXUzN1RWMkdkaC9INzhzR1hOekpEajFNdDNh?= =?utf-8?B?RlNMak0wOVNuQk1FUkw1QWJYOXc0K0E5cDlQSGZmeXIzUVdYYUh0U3JtRWhT?= =?utf-8?B?aDJ6WWVhOWtrcVdGSG5QajcvVlBSRk9WRGw4cnl5aUd1d0ZWRHNrNmVTai9r?= =?utf-8?B?eXR6ZEFXNWk2UlRXak1uTWhSV1Q5ME9SbUxxYVVacWlIa3IvbmJMT2E5UVVZ?= =?utf-8?B?SjBOYXMwYXhVL2wyeEdESkVSMmdmWnVvYzhreDV0NHRoZnF1MjZqMjVyZGVT?= =?utf-8?B?NndMWjMzd21xUXN0c1FydEFDWGJPVnEwajVMc3QwUjIvL2xhOTN6MlA0YTFS?= =?utf-8?B?M1cvdFY5b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Ywfzm37QKb12hRY5KSzkYa+0vubrhkXW6mZtj2+ZDbMTYoEB+1g1VuUR+mJg8jMxziO/ydoOGUrwdmPpw=;7:hLXdKD8jnCjYpt3eZNOkx+OQZmBYco4IABMaEy6vk7AnjVf1eAi3ho66703VSYZ9JPqEuJX0UHhXSMh+6s2I/RRb3vXnqu08X+bWBgs1k4mXVRkRHsgA9m7rp6zmLWkn72EG4Hdu2T3GhuKatzdcDnu0Z+GjO9VBe4yvlNPsl6ZOy6ayrqtLDN0V2XntBTXFQ/WRP2oKyqNs7QDGiu6gdMNOTh+ad0wVZ/tZKkrvtb6shDRe8sgH5Zcl9ISdu0yK SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;DB6PR08MB2824;20:uKp3DioICdSnS/JyNkEU59anqRuwGsiQiaElqg19mfzQoYlBu29HGWiZbRVaH8L9liBiUDBmWRp4LpZgXmki+RTOWMCHNsZs8JYQA692/Mch8KWYz2HPbn7CwT3Pg67VgVMrkRiOhSMMF9MXTaauBJGGBdGFZlebVUFO3CZ2RX8= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Dec 2017 16:32:18.9111 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1b7a3244-8e68-41c3-1469-08d53bfdc157 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR08MB2824 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 429 Lines: 12 On 12/04/2017 10:17 PM, Paul Lawrence 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 > Signed-off-by: Paul Lawrence > --- Acked-by: Andrey Ryabinin