Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4934810pxj; Wed, 12 May 2021 17:02:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwx/HcL+sipc/jIcFsagdm8LHB6RVSLk+kzQDw8tMSsgUnQHPJR5h9qyrV3cdHDYnX4lEYb X-Received: by 2002:a05:6808:128a:: with SMTP id a10mr843929oiw.161.1620864176238; Wed, 12 May 2021 17:02:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1620864176; cv=pass; d=google.com; s=arc-20160816; b=Ab4YBTP0JZVrgWzHdH5CnF68UnlKR/7vLs00sWYIG7h1ChuUF9pI8b9Ed2f5W8b2HO y5ezg6ef7sLWK24bE1bu+4/RmGiqlJTgdRBNJhAdlMC8M/kRT+ZSOaxkVHIT46lcx9e+ qgsHJoQwKgb4Vt7hA7VCNer984t2ctKJTmQBzg/c/S6CfvcI4qW05e1zy/fARM+lNpFS C00eJ1HGCHvPf5YWGa1r8gf9yDwUf8yeP5aji50xc2ELy7uMshVUnAB9QLOEC4UZtaGd 1y9/Jz803C46kESonLEK33X0pLi8DlwxCIkpEdPCp2UU5jwTY5k22b40NJ3by2vo2JX8 gWmg== 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 :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=HP/AHWk1WSojwew8rxYgeYptyHQAOepAhdACAarVuuo=; b=S7dxwOOIyuM66k6j9IX3IKwXqyAmBGhx4aorWOpw9chZIDB+jMyltmc+vq/JLjoSYz ascBzctXOE1cN4UTtFElXxlBvC/zkHrbz7Pi2DC5hoWv9NucQCI4enH7N82QYnz5sCFs Wd4LHCq86dALRVuQ+omNOCAA8R8OxM0fH54o1hoYgGKLvYq756SP6WVCalFIGUT3sELQ r1YhPHm5u456v74p7uFcGgHE0s+ZwlHUCIFr1ZHWBtLFk/sXO+eHiVPvfl6J+fnpUgfD 1KX2m5SkBnhd71P/p+l+c6VKjT524xtHHyya0JhocgbjnJGjFuTN0TLdj0386DXBrL7v yB/A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nec.com header.s=selector1 header.b=XEZx2yDJ; arc=pass (i=1 spf=pass spfdomain=nec.com dkim=pass dkdomain=nec.com dmarc=pass fromdomain=nec.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c10si1677785oou.16.2021.05.12.17.02.42; Wed, 12 May 2021 17:02:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@nec.com header.s=selector1 header.b=XEZx2yDJ; arc=pass (i=1 spf=pass spfdomain=nec.com dkim=pass dkdomain=nec.com dmarc=pass fromdomain=nec.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232856AbhELX6a (ORCPT + 99 others); Wed, 12 May 2021 19:58:30 -0400 Received: from mail-eopbgr1400042.outbound.protection.outlook.com ([40.107.140.42]:47184 "EHLO JPN01-TY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1351878AbhELXwr (ORCPT ); Wed, 12 May 2021 19:52:47 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iHIAod8QaqnYQ1zeqyRSDisLoRdBruvMnaGQxyJTTWS/4OVl4HcjEoU3Idw9XUnd3e10Hb6kJ2O/eHFziyiahMkcVOxF7hi8SqDaqd/tO0Ug04eAjHoCgGS0uQH46cWDk6nzsUBAzg6s9JnFOr/Hd67fIf/p6VKJwVU8Ywme5oV8fCJG/8P6LZlvw6R3cajJu0NaMYpma7FenqAItwfHKa6omL2+2H+aLu5lkSxhcxVhf1tTvCS45GSnr4LP5fnlpfmppmuNmQY25iFl3sjHRwDui1zdP1zq9BVsDL44U/GXsUN9qR7Cjr+scBuq0bb1cUDAET8cIabSCal1HEyF1Q== 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-SenderADCheck; bh=HP/AHWk1WSojwew8rxYgeYptyHQAOepAhdACAarVuuo=; b=lCj0fxmhuRGQtW5T+5DQZo+xroFBgVYdUuV0r6zp3KAVtJ62AB/cR+voLLtASeDS4xIV6z9MoLuvdL1w2Haif4uhHRZGe5CXbtttlfAHxbY6GWBpJLELPtRqfB8sFK3PKXvPJJuK8tw6YYEXJnQtjikV4iw7P0Zs3Vf2UAiT3XDXD6MOsUiVYMwvIWa7WEtCcCD3QP0ve3A/+TVj/0W08CmJdklzv/iqfia/+udQ0gTiMUHTwYMLBel01Nge3aPCUEMIbD/DuwEs3RJU0VM0lVoBQe+OsS3PwGBid0n9r8PCIFDfUahgP376SQuRqh4tPgcbXiXo8/4jdVmsutJ0iw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nec.com; dmarc=pass action=none header.from=nec.com; dkim=pass header.d=nec.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nec.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=HP/AHWk1WSojwew8rxYgeYptyHQAOepAhdACAarVuuo=; b=XEZx2yDJDcbtMk3dHYldFeTT3e6d364iewEcuJMqA6Gk0plywrP60FBUyng7mPLBQu75jy6sjgTuS3FE1tWdNWSfX9AQI/eBkxYeVqL53NspoZKm4UREPbCuzx8vVIdNA8ktM/Jd+TBhUL3u8RJO2hgg/I7jXPDskITGbIKgqQc= Received: from TY1PR01MB1852.jpnprd01.prod.outlook.com (2603:1096:403:8::12) by TYAPR01MB1933.jpnprd01.prod.outlook.com (2603:1096:404:8::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4129.25; Wed, 12 May 2021 23:51:30 +0000 Received: from TY1PR01MB1852.jpnprd01.prod.outlook.com ([fe80::751b:afbb:95df:b563]) by TY1PR01MB1852.jpnprd01.prod.outlook.com ([fe80::751b:afbb:95df:b563%5]) with mapi id 15.20.4108.031; Wed, 12 May 2021 23:51:30 +0000 From: =?utf-8?B?SE9SSUdVQ0hJIE5BT1lBKOWggOWPo+OAgOebtOS5nyk=?= To: Michal Hocko CC: Naoya Horiguchi , Oscar Salvador , Muchun Song , "linux-mm@kvack.org" , Andrew Morton , Mike Kravetz , Tony Luck , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v3 1/2] mm,hwpoison: fix race with compound page allocation Thread-Topic: [PATCH v3 1/2] mm,hwpoison: fix race with compound page allocation Thread-Index: AQHXRnfMctW6aDSg1UK1GvKY2EfBA6rfxTAAgADBVIA= Date: Wed, 12 May 2021 23:51:29 +0000 Message-ID: <20210512235129.GA527307@hori.linux.bs1.fc.nec.co.jp> References: <20210511151016.2310627-1-nao.horiguchi@gmail.com> <20210511151016.2310627-2-nao.horiguchi@gmail.com> In-Reply-To: Accept-Language: ja-JP, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: suse.com; dkim=none (message not signed) header.d=none;suse.com; dmarc=none action=none header.from=nec.com; x-originating-ip: [165.225.110.205] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 924a1872-a50d-406a-f360-08d915a0dd42 x-ms-traffictypediagnostic: TYAPR01MB1933: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8273; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Yz+nJVqf6QFHDQDZTXuru3gD7ZV/vMs3DAcOiT//nsXEOCfvayMDxQCAHFqHPb87kpzQ+9no52DSuXboLSEdkfb5zqerqXkW47LuUbHaWeuRwb9v06MdMOoXU6nCHIIt6JxJlT2Dao3YgNN3tlF4tgaNSsCOyIrcAP5EWQxbZxbHRuHtHgASjp4Vnl2cnhovGsIUlKdrRRWDwCFryifafzoOxeyJKeHRTs8w7pcfK/uLS6jr4DtS+OHvfFxV905/4ubPRcVy8UtRxFv/NplAy6NWtPQ7xp5kLlU4ZHCvdlgjSuAuvUInYlYxW5+KoDxLOmwQHQlsqj40BgHjrC097IlE02Z46Nq+THbi0j1AD9+7A/iOiJraMFt8ir7CH2Fxq9cUxT2v0/lEkAXswwm/uCIeccTX1YhmVrbZTvYcs9Mqq6UMaQ0wkWLAkuvmNnnFxFSUGHYRuyDLNFvbS3Y5X6vgPSPzzM5YZlY3gryBUjpEyQlPGenEfgpfyfJet+mGVqzzhDSUkghPcslPEgz1X2P7D7NUI6YSfJlTFW0tBrvast/0RxFgboyeObCWZm2UK6kWohMAzP5g4vCbcsNHJx2E8bOeloWjEux9XsQF7ss= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:TY1PR01MB1852.jpnprd01.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(366004)(376002)(136003)(346002)(39860400002)(396003)(6512007)(1076003)(6916009)(8936002)(54906003)(6506007)(316002)(186003)(6486002)(4326008)(71200400001)(9686003)(8676002)(122000001)(66446008)(66556008)(64756008)(66476007)(66946007)(76116006)(38100700002)(478600001)(55236004)(33656002)(5660300002)(26005)(86362001)(83380400001)(2906002)(85182001);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata: =?utf-8?B?Q3JXVUtGbE52V1ZISk5hODFEQWUwRjRjT3RiRVdQcj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?TGdLSHZseFUySDhlQXNhQT09?= Content-Type: text/plain; charset="utf-8" Content-ID: <0CDDFBB7F2344D40860F6711AB29CE36@jpnprd01.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: nec.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: TY1PR01MB1852.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 924a1872-a50d-406a-f360-08d915a0dd42 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 May 2021 23:51:29.9849 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: e67df547-9d0d-4f4d-9161-51c6ed1f7d11 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: +S9kj6JjBYumBX6Qfg5XSNGeMbSC2HKKG/ORy0P9eIwubZp/rCU/o9gb8lno1xdHVVPWcmFtjad5IVskw5vgpQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYAPR01MB1933 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gV2VkLCBNYXkgMTIsIDIwMjEgYXQgMDI6MTk6MzJQTSArMDIwMCwgTWljaGFsIEhvY2tvIHdy b3RlOg0KPiBPbiBXZWQgMTItMDUtMjEgMDA6MTA6MTUsIE5hb3lhIEhvcmlndWNoaSB3cm90ZToN Cj4gPiBGcm9tOiBOYW95YSBIb3JpZ3VjaGkgPG5hb3lhLmhvcmlndWNoaUBuZWMuY29tPg0KPiA+ IA0KPiA+IFdoZW4gaHVnZXRsYiBwYWdlIGZhdWx0ICh1bmRlciBvdmVyY29tbWl0aW5nIHNpdHVh dGlvbikgYW5kDQo+ID4gbWVtb3J5X2ZhaWx1cmUoKSByYWNlLCBWTV9CVUdfT05fUEFHRSgpIGlz IHRyaWdnZXJlZCBieSB0aGUgZm9sbG93aW5nIHJhY2U6DQo+ID4gDQo+ID4gICAgIENQVTA6ICAg ICAgICAgICAgICAgICAgICAgICAgICAgQ1BVMToNCj4gPiANCj4gPiAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICBnYXRoZXJfc3VycGx1c19wYWdlcygpDQo+ID4gICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICBwYWdlID0gYWxsb2Nfc3VycGx1c19odWdlX3Bh Z2UoKQ0KPiA+ICAgICBtZW1vcnlfZmFpbHVyZV9odWdldGxiKCkNCj4gPiAgICAgICBnZXRfaHdw b2lzb25fcGFnZShwYWdlKQ0KPiA+ICAgICAgICAgX19nZXRfaHdwb2lzb25fcGFnZShwYWdlKQ0K PiA+ICAgICAgICAgICBnZXRfcGFnZV91bmxlc3NfemVybyhwYWdlKQ0KPiA+ICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgemVybyA9IHB1dF9wYWdlX3Rlc3R6ZXJvKHBhZ2Up DQo+ID4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBWTV9CVUdfT05fUEFH RSghemVybywgcGFnZSkNCj4gPiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg IGVucXVldWVfaHVnZV9wYWdlKGgsIHBhZ2UpDQo+ID4gICAgICAgcHV0X3BhZ2UocGFnZSkNCj4g PiANCj4gPiBfX2dldF9od3BvaXNvbl9wYWdlKCkgb25seSBjaGVja3MgcGFnZSByZWZjb3VudCBi ZWZvcmUgdGFraW5nIGFkZGl0aW9uYWwNCj4gPiBvbmUgZm9yIG1lbW9yeSBlcnJvciBoYW5kbGlu Zywgd2hpY2ggaXMgd3JvbmcgYmVjYXVzZSB0aGVyZSdzIHRpbWUNCj4gPiB3aW5kb3dzIHdoZXJl IGNvbXBvdW5kIHBhZ2VzIGhhdmUgbm9uLXplcm8gcmVmY291bnQgZHVyaW5nIGluaXRpYWxpemF0 aW9uLg0KPiA+IA0KPiA+IFNvIG1ha2VzIF9fZ2V0X2h3cG9pc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