Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752774AbdFURUD (ORCPT ); Wed, 21 Jun 2017 13:20:03 -0400 Received: from mail-ve1eur01on0131.outbound.protection.outlook.com ([104.47.1.131]:1377 "EHLO EUR01-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752249AbdFURUB (ORCPT ); Wed, 21 Jun 2017 13:20:01 -0400 Authentication-Results: virtuozzo.com; dkim=none (message not signed) header.d=none;virtuozzo.com; dmarc=none action=none header.from=virtuozzo.com; Subject: Re: [criu] 1M guard page ruined restore From: Dmitry Safonov To: Oleg Nesterov , Cyrill Gorcunov Cc: Hugh Dickins , Andrey Vagin , LKML , Pavel Emelyanov , Andrew Morton , Adrian Reber References: <20170620075206.GB1909@uranus.lan> <20170621152256.GC31050@uranus> <20170621155730.GA32554@redhat.com> <20170621160410.GF31050@uranus> <20170621170129.GA32752@redhat.com> Message-ID: <2551ee70-a4b6-4f38-7d3a-4eb2cddc96a5@virtuozzo.com> Date: Wed, 21 Jun 2017 20:19:34 +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: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [195.214.232.6] X-ClientProxiedBy: KL1PR0302CA0009.apcprd03.prod.outlook.com (2603:1096:802::19) To HE1PR0801MB1740.eurprd08.prod.outlook.com (2603:10a6:3:88::7) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 86ee4f78-a963-4624-5046-08d4b8c9bd3d X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500055)(300135000095)(300000501055)(300135300095)(22001)(300000502055)(300135100095)(300000503055)(300135400095)(201703131423075)(201703031133081)(300000504055)(300135200095)(300000505055)(300135600095)(300000506048)(300135500095);SRVR:HE1PR0801MB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Uz4DMu8eksfBktmLF9aNpq6vS4USXdhZj1qdNOYwDWPWQtL9GAAF+eGEgImOjuX7sN+gUYlebYzZGUpfb2oPkcC3sXvPzEEF1dlAZ6g3pWShikq7azsjHyyQO7aaawA5o1QMhsaSyFhjpcNT1WXwh+DgwssSoBVdcrwqU3zPjZJfmVVNQXiFASg04TltUQl/pNdEIIb0ZtampuxZhZ837uYzQXXeFpzQreOdgCYOE/4bTOHx9qTDDKVcNxEraQdQXwxd1UDFLBu+TKa+1b8kfBDm0I9/VY2qgowM7EwTJuQ0yWmZT9TKZPKseKosyGRQbI6H6R6dachP+nFTUCNhiiw9rWXth/OIOv8BnQ4CvqwKqKA0t5xQtpSe6i42d/ivog= X-Microsoft-Exchange-Diagnostics: 1;HE1PR0801MB1740;20:3p1AOojgYmHL+zE6TzPg22hBg/aiNu4lrVIoXwnkvZNVDxqAXWceI0xBjbBlDNPqEtI4r9eRac1JW75dQrcvoegfSDuw9LxZ24xKkz/zN8TKZSUmrMGgO3Z0SKD5o2DCTYKtw6Xa7kWG9PnMtT1Jdm+wiaTR0BVUyX/eAhtLTEJVbPygFJtHUAVb2/iyn0s3+h9qyskvckyLyeF5m+nY5wi/cJlHZI/NyoBctx94JzgSsLxYneQOlyZScxvl+P17zl+H42l+PWR98p64sPIbC0K18QS8bV8lTaT8cFmfZqRdm7s+vG/v/C7uanXViAjJ1oeMWngWdCtwb6JU24rNphHHqw9vfoRMxuDZ0zrphmbMFUy+h4m7GgItp3yAP+6jPy+tgWMJs0WCjJSezpHOtv6XI/YgiRqJ93a9SjQoEck= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(100000703101)(100105400095)(10201501046)(93006095)(93001095)(3002001)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123562025)(20161123555025)(20161123558100)(20161123564025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:HE1PR0801MB1740;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:HE1PR0801MB1740; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtIRTFQUjA4MDFNQjE3NDA7NDo3OXRVY1Z6QVk0c0svNWs1NmlxNldxNDdV?= =?utf-8?B?dWtacS8vTG9ld1RzV0hxWSsxM0drbEpOdVFORVdGc1piOFcxNGlaMHMybTFj?= =?utf-8?B?UmNZdk5ZYzFTMnQ0SXlwTFU3RTljWGR1cGZlZEhWQnJtbnFMYlRRTmo5cXdq?= =?utf-8?B?M2xzc1cvaXRSa1NEMVJ6U1BUdGdYNXE4cnZNQU41aERXS3FsVk5UTkhrUlor?= =?utf-8?B?N0J1dE5QZmFKdTFHOWp5c0d3OHZwdkdEQkhTVXBuV0hhdWhrYy9ydTJ1T3Vr?= =?utf-8?B?czJSYkhEQ2lqRXpiY1pMTjJIbEhPQTRUNTBNb24zaUQ4TDdHcDVCaHRBY1pJ?= =?utf-8?B?dTZvWjA3Ly9TSE5wYkF0ejFsMWlwL1VidjZlTjNUTi90M3NoNldSMDJpdTlz?= =?utf-8?B?QmpydG5ZSmdMTENsNG9tVTA1THdBeER1NFRDaUtQSjJuSTg2SVlUY2ZXTU16?= =?utf-8?B?Q1dhd0g0UUVOamVyb1lEMkowZ0llRFpPMmxFUDc1V253UnRTUWkrWkMrWC9M?= =?utf-8?B?SmYrT0ZiRjdjblBkbVAxNWtXbmNEbXYvcmZ2MUZoNkNqQ2dpMGwybittUFRR?= =?utf-8?B?Y2srN09MbXJNWHdIbS9EM1BHektzaVlRZFA0Z1FWK3BkTjFMVytER0RpenE0?= =?utf-8?B?cU9WcDFwMEFkRU1TRFIyUHVITUlzakl2S0ZOalREZnF0V0pERTAwSzR4V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)(6009001)(6049001)(39400400002)(39410400002)(39840400002)(39450400003)(24454002)(377454003)(8676002)(25786009)(81166006)(65806001)(66066001)(47776003)(54356999)(31696002)(86362001)(50986999)(76176999)(2906002)(230700001)(50466002)(53546010)(6246003)(53936002)(38730400002)(83506001)(93886004)(5660300001)(36756003)(33646002)(189998001)(42186005)(31686004)(4001350100001)(3846002)(6116002)(305945005)(54906002)(478600001)(77096006)(7736002)(229853002)(6486002)(2950100002)(4326008)(23676002)(6666003);DIR:OUT;SFP:1102;SCL:1;SRVR:HE1PR0801MB1740;H:[172.16.24.230];FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtIRTFQUjA4MDFNQjE3NDA7MjM6R2xERnlKanVWeDJFS3BDb1Rza1dtUnR5?= =?utf-8?B?OGkzYnErUUowbmRyUytmYks2dkk1U3l6WlhMdDF4RWhuMmNBYzBKMW1MK1R3?= =?utf-8?B?REJFSVdhckN2N2ZqWHJmbnZ3eUMzTXZDZUZ4T1c3S2JaSHVoNFF5QmY3OUhK?= =?utf-8?B?bmhVZlhYVjEvVnNndk81dzAvT3FxTE5HcXNuTklDL09xWHZLcVIvbDZtZGlL?= =?utf-8?B?eWNSSncxUFVWcHZHTmkrT3ljbVRTN1lEMjdzVlVyRjlGaTJOckdNMFdXdW1C?= =?utf-8?B?NzUzTEFFWFRIWmhrZmVFZmVRUTRiSkp0WWRVa201ZGhodHRHQm1zNFlXeWhl?= =?utf-8?B?RHU0V001ZE00NGcra25RZmVZKy9tYUhFVmZFaTg4TWZ3UTFHdG93YklLUkN4?= =?utf-8?B?Z3Jzanp3bU95RXByaVdUejZGWnp1ZVJzTlZLcFR1N3pwR0l5VnlCWSt3OGpa?= =?utf-8?B?aDVaTHF6YndhbGhLMzBLci80blAyWU9rOEUySitCVFM5R0pYbHdYa2F6MDc0?= =?utf-8?B?M0lRRWthMFRVUUhLUEdsK3gzMzJZT3RiN2c5K2NjeWwwYnFaNy9IOFA1SS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mhEN8uPJ3R/aB+jE5JrqiMCdk+GSaOkXxU1fGMQ399RufDrEGFISFkB1zdY4Q8xM5G4F9GsKc12rJWjSSntmX+wASqDRaGwkrS+XrMwSyJu13jTqj2p2OeflZk4ZutrJtOFJkkLgQd9pd3O2A21Dyk53gQp+6FRDhurCkT3EED/W9MJ5VFO1Q4ypf4ATXU1hcX8PzBWKFKFRxFuHRgnppxhxkIGim9FXhi+sxG4bx1OM2eC3EfwOd4= X-Microsoft-Exchange-Diagnostics: 1;HE1PR0801MB1740;20:ecLv0vYzM5MFoNYQGmlkPR6k0tiySgoFjkMD8u6RaR07WAOCsu/Wbfp43bQfDJMVbxyq57DX92wpleQCibaPbDfp60K9DzSrlVSN2KqQvr2FMZ22wGQKE9f/nz9cvAZHmIEjmI8Uo50oJ3Uq1AoSYspsbDSs3FFIbAYeenmxVyk= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Jun 2017 17:19:51.3375 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0801MB1740 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3065 Lines: 107 On 06/21/2017 08:15 PM, Dmitry Safonov wrote: > On 06/21/2017 08:01 PM, Oleg Nesterov wrote: >> On 06/21, Cyrill Gorcunov wrote: >>> >>> On Wed, Jun 21, 2017 at 05:57:30PM +0200, Oleg Nesterov wrote: >>>>> >>>>> p = fake_grow_down; >>>>> *p-- = 'c'; >>>> >>>> I guess this works? I mean, *p-- = 'c' should not fail... >>> >>> It fails. >> >> Hmm. Impossible ;) could you add the additional printf's to re-check? >> >>> Here is the complete code. It supposed to _extend_ stack but it fails >>> on the latest master + Hugh's [PATCH] mm: fix new crash in >>> unmapped_area_topdown() >>> --- >>> [root@fc2 criu]# ~/st2 >>> start_addr 7fe6162a8000 >>> start_addr 7fe6163d9000 >>> Segmentation fault (core dumped) >>> --- >>> #include >>> #include >>> #include >>> #include >>> #include >>> #include >>> >>> #include >>> >>> #define PAGE_SIZE 4096 >>> >>> int main(int argc, char **argv) >>> { >>> char *start_addr, *start_addr1, *fake_grow_down, *test_addr, >>> *grow_down; >>> volatile char *p; >>> >>> start_addr = mmap(NULL, PAGE_SIZE * 512, PROT_READ | PROT_WRITE, >>> MAP_ANONYMOUS | MAP_PRIVATE, -1, 0); >>> if (start_addr == MAP_FAILED) { >>> printf("Can't mal a new region"); >>> return 1; >>> } >>> printf("start_addr %lx\n", start_addr); >>> munmap(start_addr, PAGE_SIZE * 512); >>> >>> start_addr += PAGE_SIZE * 300; >>> >>> fake_grow_down = mmap(start_addr + PAGE_SIZE * 5, PAGE_SIZE, >>> PROT_READ | PROT_WRITE, >>> MAP_ANONYMOUS | MAP_PRIVATE | MAP_FIXED | MAP_GROWSDOWN, >>> -1, 0); >>> if (fake_grow_down == MAP_FAILED) { >>> printf("Can't mal a new region"); >>> return 1; >>> } >>> printf("start_addr %lx\n", fake_grow_down); >>> >>> p = fake_grow_down; >>> *p-- = 'c'; >> >> once again, I can't believe this STORE can fail... >> >>> *p = 'b'; >> >> Ah. I forgot about another kernel "feature" ;) not related to the >> recent guard >> page changes... >> >> Could you test the patch below? > > Well, for me only the second store caused segfault. > With your patch it passes.. The only question I have - how is it connected to guard page? Before the former patch the test has passed. Why? And this thing seems to be in kernel since 2009. > >> >> >> diff --git a/arch/x86/mm/fault.c b/arch/x86/mm/fault.c >> index 8ad91a0..edc5d68 100644 >> --- a/arch/x86/mm/fault.c >> +++ b/arch/x86/mm/fault.c >> @@ -1416,7 +1416,7 @@ __do_page_fault(struct pt_regs *regs, unsigned >> long error_code, >> * and pusha to work. ("enter $65535, $31" pushes >> * 32 pointers and then decrements %sp by 65535.) >> */ >> - if (unlikely(address + 65536 + 32 * sizeof(unsigned long) < >> regs->sp)) { >> +if (0) if (unlikely(address + 65536 + 32 * sizeof(unsigned >> long) < regs->sp)) { >> bad_area(regs, error_code, address); >> return; >> } >> > -- Dmitry