Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966781AbeAOQfG (ORCPT + 1 other); Mon, 15 Jan 2018 11:35:06 -0500 Received: from mail-db5eur01on0101.outbound.protection.outlook.com ([104.47.2.101]:35520 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S965065AbeAOQfE (ORCPT ); Mon, 15 Jan 2018 11:35:04 -0500 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=aryabinin@virtuozzo.com; Subject: Re: [PATCH v2 2/2] kasan: clean up KASAN_SHADOW_SCALE_SHIFT usage To: Andrey Konovalov , Alexander Potapenko , Dmitry Vyukov , Catalin Marinas , Will Deacon , Thomas Gleixner , Ingo Molnar , "H . Peter Anvin" , kasan-dev@googlegroups.com, linux-mm@kvack.org, linux-arm-kernel@lists.infradead.org, x86@kernel.org, linux-kernel@vger.kernel.org Cc: Kostya Serebryany , Andrew Morton References: <34937ca3b90736eaad91b568edf5684091f662e3.1515775666.git.andreyknvl@google.com> From: Andrey Ryabinin Message-ID: Date: Mon, 15 Jan 2018 19:35:11 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <34937ca3b90736eaad91b568edf5684091f662e3.1515775666.git.andreyknvl@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: HE1PR0402CA0034.eurprd04.prod.outlook.com (2603:10a6:7:7c::23) To AM4PR08MB2818.eurprd08.prod.outlook.com (2603:10a6:205:d::24) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4c2d718f-81b8-406a-2f3a-08d55c35ec8b X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(5600026)(4604075)(2017052603307)(7153060)(7193020);SRVR:AM4PR08MB2818; X-Micros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WJuqKsJ6bhvIr8X2viWqR3BcjViEFbZsFv2LAl2oDufw7lz5ytt+GXd+n78LT0+vkGwdKLnpYSfPXiqr7JRj7iOvUg6gPwUMD//biARNycymrvqrQhdtCpV5A7u4ZVNyW9vb4NwjQmbY7dPN8Nhjm+JjOtcrphOal+usH6kPCQ9U1U9uRzCLHwzbs52KrnXCwqAdYfC3Xi2BYkgFQHMEZga45gAjWgl5YXexiOk9ro0Y4N40B5S/w8ZThhiso29AERKKQ5fqUg6kqhm9XH4OFHJeyw3aFTcX9r8=;4:sAs7FcHw2WidwbCH+uVATFTCTimazL8Ytmr19cUGa2MElan0gsjJU///Zul89/02Z5dbwW8zlSjed/PAWFZ9G/zHOBHeXsWDRAFskpzIhsepwWrukDxyhDCLUipAq6HZlE8Fcxuzdb8CcBD1jivNhRVxUucDNokzLNjYG6Q9emVLVjd7kKbo1BYLsRXqsbp2zpltDPIvyUYxlFzaCLHIPNvGdv2XUkx3GZAkJCDMMnjhHhmAnpM/Mcn5zryV18JxRtibsDUdomECcEbBlpFaKTxzFqMPiZ5hT0+KkeFPIbG9F3m2xbeus0gAQygTMsngosNT3MsjnCmUly1Pr5pGaDcT30L8H+rd7TcPuEcJtNo= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(211936372134217)(153496737603132); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040470)(2401047)(8121501046)(5005006)(93006095)(93001095)(3002001)(10201501046)(3231023)(944501161)(6041268)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123564045)(20161123560045)(20161123562045)(6072148)(201708071742011);SRVR:AM4PR08MB2818;BCL:0;PCL:0;RULEID:(100000803101)(100110400095);SRVR:AM4PR08MB2818; X-Forefront-PRVS: 0553CBB77A X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(6049001)(39380400002)(39840400004)(376002)(396003)(366004)(346002)(199004)(189003)(24454002)(97736004)(83506002)(65826007)(23676004)(2486003)(52146003)(5660300001)(6486002)(50466002)(2906002)(229853002)(4326008)(8936002)(31696002)(52116002)(53936002)(81156014)(81166006)(230700001)(2950100002)(36756003)(6666003)(86362001)(77096006)(47776003)(6116002)(3846002)(16526018)(31686004)(25786009)(8676002)(105586002)(7416002)(68736007)(66066001)(65806001)(106356001)(64126003)(7736002)(53546011)(478600001)(316002)(76176011)(110136005)(54906003)(58126008)(386003)(16576012)(305945005)(6246003)(65956001)(921003)(1121003);DIR:OUT;SFP:1102;SCL:1;SRVR:AM4PR08MB2818;H:[172.16.25.12];FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtBTTRQUjA4TUIyODE4OzIzOlJ1MnFDbENaZnZaeUtNN244enpZaFY2dTdx?= =?utf-8?B?TU1KRmk2dGhGQnFBVXFUN2xKa0pGMy80S21nQ1MwQlppT3FDY0ExSFF0R2lv?= =?utf-8?B?eEkvalI2b29VcXZNUW54VlIyaWt5QlFpM2RCdWFyRFowYVl0T1hseHMyNDBB?= =?utf-8?B?a2RYRjRsS3hTVHllcXUrdWZIL054S2pqVWc5K1FpU2IzNE9DZXpNOVNzdDlP?= =?utf-8?B?VnpvRUVKS2MvbWhpNEkxN2dzOUp4K21KSVV0eHdOeHd6K3JMUTJ3anZlb3dB?= =?utf-8?B?emhDZVJxeEkrQnBnemVKSEd0WVc5Zm9xWkVsd2p0a1pBbG1qNll3MGZiSDVK?= =?utf-8?B?UFBaOGdHWEJoSEV6MkM0akl2N2Q3S3l0Wm5BdjRRSlAzVHp4RnViU1ZrTTFj?= =?utf-8?B?WlV3MXZPTFQ0NUxHek5rQml4dmJRVlo5S0tUcklzM2F6dEtDdXp6Y3dEakt1?= =?utf-8?B?aGY3bEFidjVpeUh1YU1FcmZtVVNmYmlVc2p6SmFQdlZIeVRUS0JiNkxFck1R?= =?utf-8?B?bUlzOFZSYVpJc2xxdk5SaGNqTllJb2hYbEZ0WXYzd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MzKgJK9feFguGHYBAVhvetAtZWZ0wnWk5bF78b7lJhRf39uWZlvGkb/FvQi+AXMTXUZf9xwrsX8XRJb3ByknzUIKM=;24:RzFdma0L2TwlkyyCeKWVRsj18J3LjcfZKuqXvH6E1/M+zzS5raw6p7f1/ZouLx+H5Tiue/A3/zaA3E3/VxnMjT9cIu90QDKMzqYgj+ddb5E=;7:7O6ZDKoUTjjL3ND8MGdrChklnGU5HNYgY8ACyFJzLrmvmoZLbpmKilKRzC4+lnNt9+DM5wx8AMn+WR2GQPEbweDd/r10y2Dc8rXaMtf6zJ5EpaCcAuco4CHKVC2PLSD+pDszXB8RTEHXSxsg0021GxNutllcDiwoaUQIf3Fw5hF0YLc+lACt6X9ei5TkCGxzxWrRH6DDYIwfCCtgw3bpQOI3dhMcg9x3DlqXixKSORO5GZwYX+5OGId6no4voZOL SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;AM4PR08MB2818;20:vgD8rbZlaUBw1g9dEDDUQ2MOuXeRxZBNV+vYZcLkkKcqT4uJWJlHS+TQoox37+ieQG4XjVd9o7HFC/htV3H0sNIS9uT5troV2qlitO95o8EfM3mnQbz/snWBtTdARb69tkLs8ags/Filvx0wFCeEfKjEdPxJtod4p+c1IXmIYmo= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Jan 2018 16:35:00.3578 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4c2d718f-81b8-406a-2f3a-08d55c35ec8b X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR08MB2818 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On 01/12/2018 07:49 PM, Andrey Konovalov wrote: > Right now the fact that KASAN uses a single shadow byte for 8 bytes of > memory is scattered all over the code. > > This change defines KASAN_SHADOW_SCALE_SHIFT early in asm include files > and makes use of this constant where necessary. > > Signed-off-by: Andrey Konovalov > --- Acked-by: Andrey Ryabinin