Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754143AbdCILi0 (ORCPT ); Thu, 9 Mar 2017 06:38:26 -0500 Received: from mail-eopbgr20135.outbound.protection.outlook.com ([40.107.2.135]:56048 "EHLO EUR02-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750812AbdCILiY (ORCPT ); Thu, 9 Mar 2017 06:38:24 -0500 Authentication-Results: google.com; dkim=none (message not signed) header.d=none;google.com; dmarc=none action=none header.from=virtuozzo.com; Subject: Re: kasan behavior when built with unsupported compiler To: Dmitry Vyukov , Nikolay Borisov References: <1eb0b1ba-3847-9bdc-8f4a-adcd34de3486@gmail.com> <9ebf6262-fd9e-5b58-4039-b0004623493a@gmail.com> <95bc2575-b62b-73e5-2324-d02289d92867@virtuozzo.com> <0c4df6fc-ff08-5eef-2ef9-c42f38171190@gmail.com> CC: Alexander Potapenko , LKML , kasan-dev , Kees Cook From: Andrey Ryabinin Message-ID: <5163c242-4bbe-7fec-ab58-9c360abf0afd@virtuozzo.com> Date: Thu, 9 Mar 2017 14:23:30 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [195.214.232.6] X-ClientProxiedBy: HE1P190CA0051.EURP190.PROD.OUTLOOK.COM (10.160.72.168) To DB6PR0801MB2054.eurprd08.prod.outlook.com (10.168.86.135) X-MS-Office365-Filtering-Correlation-Id: 43566f5f-59fb-4c50-7089-08d466de8d16 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:DB6PR0801MB2054; X-Microsoft-Exchange-Diagnostics: 1;DB6PR0801MB2054;3:sgaeMAvC036wRBVy30gFe5+RXplSidITINLRU/qnzwDH76tgVM0/JFMtqjTkDmcIKpNare41tW2ueuyHveuz2ECQaK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meJCEKtgQCMhXL3LMUHcmWc+xQy89rpeIlcluPM2RXwBcijjxS9y8M9UjSMfwo39LKI8UzTnSI6/bLGbQ3vvUwqRNZednW8vvm1AvbXEvAnmaoF4oLy9bAZeAQetztikNG5S5YRxdurRVOmPlD38YZGRW8urPJJbuyfRjmr3crLs1CHK8cLzghh/7YWXYWbZoEhR7VrsnaxtlJEJAVWQmTdVQIZLcY2+pXqwXe5uLfpeb4d4XfJbBDc9U4EUqGotMfsAUZSzzurw0T7DV19CSa/oF7SkSZZupF9X4U4VcLXAmymrCaqK7cXl1YogR4mikO/yRh52TmAo204jFzhra3dbFTppVwAga3DKijOELNU= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6041248)(20161123562025)(20161123560025)(20161123564025)(20161123555025)(20161123558025)(6072148);SRVR:DB6PR0801MB2054;BCL:0;PCL:0;RULEID:;SRVR:DB6PR0801MB2054; X-Microsoft-Exchange-Diagnostics: 1;DB6PR0801MB2054;4:b5QhvemtSywiZJ91xeVigkxCJe0MHCe+EdYn3wA/CJxHgbZS5aWgnhB6RCa3QTidTZKTu2agRXqfJvEsvq0D8KnW9QHd153U3YiEN53/MRqEjeGC2kA7gkz2HxAV0oAw1fGBwx+45znythhtzOt9W8TZs+EGv+4wHiV32togbswoH2SkgitEPGiHR+hLdBox5rxYAxKZtJB4UkiCL2es2mht/upOc5lgBlAzR1ssX4MqPqloUKCh8kev7XsVZOZeEZODO9COxAaamhybqP9Znii6r9AwGahiNlvJr2pRMZAmvxB1AUfwbC35IjZhZswiRydzlx1aT7XaGFRNFi1ZdE/xwhmEYUE7ZdwovhenodrcaI0APV5w4veeRlgzDRY0nvBYAZxbVVT0yPTTMvFxErpgHxTxcr+n1D2YLXUUYXVxZ7qYVaQrCiXzyIf3oE9ufBvwU3snWdf7CFWcwF2lMkDAzaglYkBokM5Wy9etKaR6FC8mlSmUIve0O/OtVa6XpNc2Ghb5QP2GqkPNJXI7qwRyGPbmZz+gfsuKga2ApI6/NqASPVOA1/i1y1LCN0U+XQOsAMxzFYBU4nIaqw5TAya3CYPDel/0P42s68eouRI= X-Forefront-PRVS: 0241D5F98C X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(4630300001)(6049001)(6009001)(39450400003)(24454002)(377454003)(53546006)(33646002)(229853002)(6246003)(53936002)(31696002)(230700001)(36756003)(64126003)(86362001)(66066001)(2950100002)(47776003)(23676002)(5660300001)(65806001)(65826007)(6666003)(65956001)(31686004)(50986999)(54356999)(93886004)(305945005)(8676002)(81166006)(2906002)(189998001)(76176999)(25786008)(4326008)(6116002)(38730400002)(3846002)(90366009)(42186005)(7736002)(6486002)(54906002)(77096006)(50466002);DIR:OUT;SFP:1102;SCL:1;SRVR:DB6PR0801MB2054;H:[172.16.25.12];FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtEQjZQUjA4MDFNQjIwNTQ7MjM6M0VpVXVmMGJsVUV5L3BTL0d6d1VSSDVi?= =?utf-8?B?dnplV05VeEtVWE5ZN0pxeUJhZFVIclM5RUJlQm9McHVkSDRUNTFMV0xmam85?= =?utf-8?B?SFlsQWhtdm9VbVJsQWNjVnpwVmdMU21ZZ3c2UEdEV3NsRjVtRlc4MXMyb1R5?= =?utf-8?B?QU1FSkV2UUNhbktRNkxpYTBuRHdjYzFqeWxxT2RmcVRhbXhjYmRGNTUzaTlr?= =?utf-8?B?MlNEUTV5WUVZU0w2WkxZbzRaUEdMUitLWG9YNG0xZ2NwaFpDYUVqbjdhV1c4?= =?utf-8?B?aHBLdExLNzNsTHFvNUpJcGJlTFlTbCtkR0xlQWs4TG1ZSUhMeGRxK0JIZGR5?= =?utf-8?B?TDhVNGh2ejdZd2JXTU5vWDVLS09Wb1ZUVkFaZ3pycmlGbHBpZXJwTHdLZGdC?= =?utf-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Metadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;DB6PR0801MB2054;7:9XCqVh5KrTL3n0VMtipPfTvIHrdf81ePS6WtHS8sYCPoCXFVcYealpMemmt7vrXtpXt4GE8gQGv6NWrO+npzBeMux7KN99NzH2Hg4xiU1iAKh9hcOkms2S0sCa0SE/7naNKIvfaue07dBkaRGxJlZsXuroJ77jl5+Sf16gEQPpugkfBcsaKZAxfluCXQLwcj/pS3Fg8WzdlUYRHorBpK5DHzXojaEEnIxHoFwXvz9RVc+E6IVNtoTatgPFM9Wp2G/I3YPAC0D1h7q6aR7utF+HkniRXTDqAqfGGbocq96/3MnNl5wcfNEkrfJIt2Vqz6PpJQdYFKDhfwR7I0cRoZcg==;20:0aJBMYxFS4S1K+DNyF+6oGzvGQZ9ueHiq6SvLKrlF3m8ki/+HDbiQm8ObNel2zWh0lXEr4nZQOhjsKpAuOyWCh3AMTdIT5h2QMo5tOAQ5jsbcvd0UWP6hN8jlsSNNFAfiqrKjV3RBxUyOcL201VoczOg943ICZEptI+nMVkBrZo= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Mar 2017 11:22:19.5350 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0801MB2054 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 343 Lines: 9 On 03/09/2017 01:16 PM, Dmitry Vyukov wrote: > > Looking at this report I don't see how this is OOB. > Object starts at 0xffff88006a2255e0, object size is 69 bytes (from shadow). > ffff88006a22560e + 20 bytes is not OOB. > Indeed, perhaps gcc 4.7.4 miscompiles something check_memory_region ? That's the only reasonable explanation I have.