Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1745023rwb; Mon, 7 Nov 2022 05:24:32 -0800 (PST) X-Google-Smtp-Source: AMsMyM5XoNozQF9ikffdkqk7NJHuKvhQRc8Rt9FF8efFYf1lSgzEZZfbivsXphME1CgKgIe1kxV2 X-Received: by 2002:a17:907:2c6b:b0:7ad:c587:bc5b with SMTP id ib11-20020a1709072c6b00b007adc587bc5bmr42613602ejc.425.1667827471746; Mon, 07 Nov 2022 05:24:31 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1667827471; cv=pass; d=google.com; s=arc-20160816; b=WQprDdhqHcOajgWqL0GUYLoS+sSep1vHbcKrmMSi2aPSJBlO/94Ge84bgdU8ExojTx GkE7rShwXqH6mzLF2Jyi6dgxT9VLdrLfMh4lVfNtXif0ROuthZTbS8C0sAfJxwQi3OWU Mzs6I9afrmNtEI2kY3pClCIQDhYyl4teW7G1/D3k68i4i4b3t+Arrxlxq1HWMXuxJjPT aSvpVGKyxuKwfv+kbNiCEHnFGdJa4zt701OPonr5pc3oLuO8hvSQOdxAk+ZfVou7kbJX KyDZNk9UTY+khq190Y2dkdgLAmGFymti+rDyNzXTHJOGlF4Q7wMGF00ro++dMMuy6dit qMpQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :msip_labels:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=hjZr2OSQmClvn1uJmKa3TQ+IkuHd0an2ZfKQH6eK3s0=; b=pwGVZfkvnOOl3Vmb+KWbVx4X/j6bQYjyvNU6NykhLr5vJLEAsXw1I98KTi+shdrxbi WI/o9dPuTMhzFJBBdsW70seUwLABSHhw/C3qM2RJsnB1i9MpCvkn7ASBQa2LElAyG8ik h51VaDW1NY7srtzSddxS8YCKcMG/zsBBvv4cw5e7yR/6hojf5oFGUXUxekh5tUzXJrGW ZZQr02bKSGxzEHY3e5phjaqH4+YNEOyRGrdRxgqdQ7iMukiKQl+PyyrS3syDu9T8OQWd YMGG4/5YxhpujMt510p2kAk8XioQOTinSmdZxE0WJJ7ag8X18PHFVlELB/8BICDpez9P OTQA== ARC-Authentication-Results: i=2; mx.google.com; dkim=fail (test mode) header.i=@fujitsu.com header.s=fj1 header.b=kOsT1jZu; arc=pass (i=1 spf=pass spfdomain=fujitsu.com dkim=pass dkdomain=fujitsu.com dmarc=pass fromdomain=fujitsu.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=fujitsu.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hb13-20020a170907160d00b007707f83375bsi10108747ejc.945.2022.11.07.05.24.08; Mon, 07 Nov 2022 05:24:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@fujitsu.com header.s=fj1 header.b=kOsT1jZu; arc=pass (i=1 spf=pass spfdomain=fujitsu.com dkim=pass dkdomain=fujitsu.com dmarc=pass fromdomain=fujitsu.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=fujitsu.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232237AbiKGMdv (ORCPT + 93 others); Mon, 7 Nov 2022 07:33:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57300 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232161AbiKGMdq (ORCPT ); Mon, 7 Nov 2022 07:33:46 -0500 X-Greylist: delayed 63 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Mon, 07 Nov 2022 04:33:45 PST Received: from esa7.fujitsucc.c3s2.iphmx.com (esa7.fujitsucc.c3s2.iphmx.com [68.232.159.87]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2968C270F for ; Mon, 7 Nov 2022 04:33:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=fujitsu.com; i=@fujitsu.com; q=dns/txt; s=fj1; t=1667824425; x=1699360425; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=eu7tVovsb2J9HY0OF8i2Hn8n+sI75YpqMDVSlaPaaxE=; b=kOsT1jZulwWUiPqWNF4ObnKruiLrHCWjH9F/LshsUgxygFANeSTswJX3 nuOiEceqhIjTKUCjGrbOS7RmzhkZCCJuZJjGKYb+S84n4Fhi1OUKw87ES mkfCFWmZSEP3sTrErP6YrTKec+LL5xFoAkBVUUG+A2IwSYXAFwuxte8lJ rUDSXZE9FEpvp+UZFyLq8bLZYr21Npv4UF+UcQc7C7txsUoi58rFx0msL TdPESLxQqjdGTCSAisgKYuIXW+c8AIOU7ccdICix2wRsWddkj865on80K v3+DJaC9PrhlPpv7JKHNlLU6wwWN/VCdlN+Wul81zY3ZEwQuMWkmc6O9z A==; X-IronPort-AV: E=McAfee;i="6500,9779,10523"; a="69461715" X-IronPort-AV: E=Sophos;i="5.96,143,1665414000"; d="scan'208";a="69461715" Received: from mail-os0jpn01lp2113.outbound.protection.outlook.com (HELO JPN01-OS0-obe.outbound.protection.outlook.com) ([104.47.23.113]) by ob1.fujitsucc.c3s2.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Nov 2022 21:32:37 +0900 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NKBTom+etCHkOaKeVJf9KbGTFf72lhhuVO0+Wa/HJG41p4hNfQEv7Qjn43pOO9uQuCSdFebWZX0+yrLfc6LGzccKZGPn4PmeHVviwx7Sn756rnY/pMHgM5Wd2SalovtHeaDyK5pBL6sjMbdC3YqdBifAjRce0IxrIvPq788hq/w6W16v6wUvbp0GrPqftCpe4VcjuGPLP4qntX8B7QCZzfCziVUpw4Tr5kc5wUwvgfUFJPHmlUZwPRWRNuKhpMLAAKu62YmGBPWh1fLIH24K7aIbdJmSnkEWYDySEoriPVmewhx8UrisLgwIXmpCg/5uLo0YoFj1vnSIjXPh21T6qA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=hjZr2OSQmClvn1uJmKa3TQ+IkuHd0an2ZfKQH6eK3s0=; b=UBnoOoqYJH2RNr2DJZtS1fMLoGoQVvi6bpErhaBo+2uI65Tnrh0/9lJaQ5eQuYHayxjcYrgfJFQ8UUAVMPlZCDBtBUU61Bb8gHy/QQZC/DpSdJFTzSiombDAOxkt2+YLgTRzXZw3k7HmiLKtt4WF1CV+nUZd056f0ku0aZtHsWr/nJXtup3fKd3JD317BU3K8E9Vt5VBkIbw92j0HCDSiekMlN7eywhH8101ZCCaZm7KzrxySPCOZwBIN8wKaANekzYPpEc93CWdO5OS/trn/vNDb7jksNFTRYfn+HsiwJC0Ewt/rVDSDjK4nQSEmJQ2gSY1Y/OYy3JaIwM/azmiTw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=fujitsu.com; dmarc=pass action=none header.from=fujitsu.com; dkim=pass header.d=fujitsu.com; arc=none Received: from TYCPR01MB7775.jpnprd01.prod.outlook.com (2603:1096:400:180::5) by TYCPR01MB10713.jpnprd01.prod.outlook.com (2603:1096:400:295::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5791.26; Mon, 7 Nov 2022 12:32:34 +0000 Received: from TYCPR01MB7775.jpnprd01.prod.outlook.com ([fe80::2c55:97e2:6dff:bfe6]) by TYCPR01MB7775.jpnprd01.prod.outlook.com ([fe80::2c55:97e2:6dff:bfe6%9]) with mapi id 15.20.5791.025; Mon, 7 Nov 2022 12:32:34 +0000 From: "Akira Naribayashi (Fujitsu)" To: "akpm@linux-foundation.org" CC: "vbabka@suse.cz" , "mgorman@techsingularity.net" , "rientjes@google.com" , "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" , "Akira Naribayashi (Fujitsu)" Subject: RE: [PATCH] mm, compaction: fix fast_isolate_around() to stay within boundaries Thread-Topic: [PATCH] mm, compaction: fix fast_isolate_around() to stay within boundaries Thread-Index: AQHY6S3O4xnDu8L77EevMVig1gEQ/64iskiAgAVyM4CAC1JoQA== Date: Mon, 7 Nov 2022 12:32:34 +0000 Message-ID: References: <20221027132557.5f724149bd5753036f41512a@linux-foundation.org> <20221031073559.36021-1-a.naribayashi@fujitsu.com> In-Reply-To: <20221031073559.36021-1-a.naribayashi@fujitsu.com> Accept-Language: ja-JP, en-US Content-Language: ja-JP X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: =?iso-2022-jp?B?TVNJUF9MYWJlbF9hNzI5NWNjMS1kMjc5LTQyYWMtYWI0ZC0zYjBmNGZl?= =?iso-2022-jp?B?Y2UwNTBfQWN0aW9uSWQ9MWY4ZTYyNTItZDU0OC00NGZlLWJkM2ItMzRj?= =?iso-2022-jp?B?ZjdiY2FiMDRkO01TSVBfTGFiZWxfYTcyOTVjYzEtZDI3OS00MmFjLWFi?= =?iso-2022-jp?B?NGQtM2IwZjRmZWNlMDUwX0NvbnRlbnRCaXRzPTA7TVNJUF9MYWJlbF9h?= =?iso-2022-jp?B?NzI5NWNjMS1kMjc5LTQyYWMtYWI0ZC0zYjBmNGZlY2UwNTBfRW5hYmxl?= =?iso-2022-jp?B?ZD10cnVlO01TSVBfTGFiZWxfYTcyOTVjYzEtZDI3OS00MmFjLWFiNGQt?= =?iso-2022-jp?B?M2IwZjRmZWNlMDUwX01ldGhvZD1TdGFuZGFyZDtNU0lQX0xhYmVsX2E3?= =?iso-2022-jp?B?Mjk1Y2MxLWQyNzktNDJhYy1hYjRkLTNiMGY0ZmVjZTA1MF9OYW1lPUZV?= =?iso-2022-jp?B?SklUU1UtUkVTVFJJQ1RFRBskQiJMJT8lUhsoQjtNU0lQX0xhYmVsX2E3?= =?iso-2022-jp?B?Mjk1Y2MxLWQyNzktNDJhYy1hYjRkLTNiMGY0ZmVjZTA1MF9TZXREYXRl?= =?iso-2022-jp?B?PTIwMjItMTEtMDdUMTI6Mjk6NDdaO01TSVBfTGFiZWxfYTcyOTVjYzEt?= =?iso-2022-jp?B?ZDI3OS00MmFjLWFiNGQtM2IwZjRmZWNlMDUwX1NpdGVJZD1hMTlmMTIx?= =?iso-2022-jp?B?ZC04MWUxLTQ4NTgtYTlkOC03MzZlMjY3ZmQ0Yzc7?= authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=fujitsu.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: TYCPR01MB7775:EE_|TYCPR01MB10713:EE_ x-ms-office365-filtering-correlation-id: 865e44e1-173a-4eec-ace3-08dac0bc258c x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 7MTpHp2rJyHCCJTmiTA1XG6LqJJBKFUnBIpfRaUjCRGJ0K75rrVmbQdvu5SPr13L416zqXHDHjHfcFMtHhDlW044uhivsRJu3ybddVsdJlzKNzG8FxUqctyQdYIABJmrYn4GboJafDiY55lV/9Ze94wsiAvqw0PMSFEugmFi7uggaOjIzaXEIU1iwtRhITNJoE4QNMX9/PVcuk0pQjc0rDJo5QKd48yzWquDjckUbGjf/z2B+P4ti+/3uxWsSwXsQH/TmAO9D+5ZhC4a4dvStp1CF3KRXLRYmF1lUPOVqtHT1Wx1Qaz4ZJYkonKyE/V6UOtLpPiFLqriGbO0dLhJ08t5oNL65NBW2YNk3fOKxQx/P79qGRiyU5bc9iep8+wzpYq7u3vZ0IrHmBjhnqBLVXD2X5WciqqkpqZJBN+BPwPBn1U+mwGVZsiWTbjQQqdTBR54HIN+KSWmdDq+iy6Mr0XNMjbVFryI1lZEaE20itSnulV15ffH4HHjZyMs+ROxf+H6SyMhhLTS3ETerkhMBA43c086Y4ukI9X8VuDIUu4H9/ei1JtzGVlr1w2rqjha/O/SKwjhv7NVjX3eh59BRlKvvwMr9m1kP/iM2WJI18XnR1U/yup7NhX6OF2UUq8rwLoq9TWW2kLE3VzIB8Go5D+nFsiueWLxh7EB9zSAYhNZEHKMShoSxF/9uq4nT3ASHISvc2EqNMrUD4eq3RwB7Qu4WwgDRJyp9GZuOAkJV94Do87T3WrdpByxBYKcYDt/pqLxUViH6OxAiciRQdq8VXJmDgR68FphLjUtILYDweE= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:TYCPR01MB7775.jpnprd01.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(396003)(366004)(136003)(39860400002)(346002)(376002)(451199015)(1590799012)(5660300002)(6506007)(26005)(9686003)(82960400001)(478600001)(316002)(54906003)(6916009)(2906002)(122000001)(71200400001)(7696005)(86362001)(52536014)(41300700001)(8936002)(38100700002)(33656002)(107886003)(55016003)(85182001)(83380400001)(4326008)(76116006)(8676002)(38070700005)(186003)(64756008)(66946007)(66446008)(66556008)(1580799009)(66476007);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-2022-jp?B?UUpPcWNraDZLYVp3L1BrMW5LTEhOSGVLYkNSM2p1VGY2eEVKRkJJajE3?= =?iso-2022-jp?B?ZFltZFVKK0xFWlZYMzhzR2gzRWRyUitBc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B?WDN5UlNRR3FSaDBhdDVJTVAwMU1GdTNDbWdGZmFud0FwZkV0RzIvekJ2?= =?iso-2022-jp?B?VzVlWWZpWVI1V2xpbVkzbFUwTk1yODd5R2YxeGZmRFFNNDFnMVkxMU9k?= =?iso-2022-jp?B?THRGdzZPeXdVYTJOaHFtcHhyVUUyZkFmM0Qra1BGamZqYlRNUmRZZk1N?= =?iso-2022-jp?B?WjBLcWs1Wm4xSmFSbEY4eVozYzVMaG10YVY0SHFMcWx3K1lBWk5VNDAx?= =?iso-2022-jp?B?NThIcmxPak5sK0ZvNUZuN0xJNjA0U20yNmgxSkwvTHg1U2pXZk84OHRq?= =?iso-2022-jp?B?ZXBhajV1MUJJYzdPdUFwK1lwc2k4SFllN0VkTmIxTGpYTStRT3BaR3Nx?= =?iso-2022-jp?B?UkpIaDk0MXdHenNRQ0pRK05tZzIvQ2xxNk90V29sOVRlTTNTSFZ5UjNv?= =?iso-2022-jp?B?UFl2Mm5ZeVl6emNxVlFMNGk5Qm9ZTUFrMUE9PQ==?= Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: fujitsu.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB7775.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 865e44e1-173a-4eec-ace3-08dac0bc258c X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Nov 2022 12:32:34.2238 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a19f121d-81e1-4858-a9d8-736e267fd4c7 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: ofnvbKnkY5JtmMrzs4hUvK5QM8yep80mUXL5s3AJCU29wUMl5kf2i3KmE3BsxVObyJwhWmZn4gkrJRN1CjaZDbxo2Yy6lAhann7gpPocQhU= X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYCPR01MB10713 X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Sorry, I may not have sent the email correctly.=20 I will resend it. On Thu, 27 Oct 2022 20:26:04 +0000 Andrew Morton wrote: > On Wed, 26 Oct 2022 20:24:38 +0900 NARIBAYASHI Akira wrote: >=20 > > Depending on the memory configuration, isolate_freepages_block() may > > scan pages out of the target range and causes panic. > >=20 > > The problem is that pfn as argument of fast_isolate_around() could > > be out of the target range. Therefore we should consider the case > > where pfn < start_pfn, and also the case where end_pfn < pfn. > >=20 > > This problem should have been addressd by the commit 6e2b7044c199 > > ("mm, compaction: make fast_isolate_freepages() stay within zone") > > but there was an oversight. > >=20 > > Case1: pfn < start_pfn > >=20 > > > > | node X's zone | node Y's zone > > +-----------------+------------------------------... > > pageblock ^ ^ ^ > > +-----------+-----------+-----------+-----------+... > > ^ ^ ^ > > ^ ^ end_pfn > > ^ start_pfn =3D cc->zone->zone_start_pfn > > pfn > > <---------> scanned range by "Scan After" > >=20 > > Case2: end_pfn < pfn > >=20 > > > > | node X's zone | node Y's zone > > +-----------------+------------------------------... > > pageblock ^ ^ ^ > > +-----------+-----------+-----------+-----------+... > > ^ ^ ^ > > ^ ^ pfn > > ^ end_pfn > > start_pfn > > <---------> scanned range by "Scan Before" > >=20 > > It seems that there is no good reason to skip nr_isolated pages > > just after given pfn. So let perform simple scan from start to end > > instead of dividing the scan into "Before" and "After". >=20 > Under what circumstances will this panic occur? I assume those > circumstnces are pretty rare, give that 6e2b7044c1992 was nearly two > years ago. >=20 > Did you consider the desirability of backporting this fix into earlier > kernels? Panic can occur on systems with multiple zones in a single pageblock. The reason it is rare is that it only happens in special configurations. Depending on how many similar systems there are, it may be a good idea to f= ix this problem for older kernels as well.