Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C52C1C433F5 for ; Tue, 7 Dec 2021 17:17:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239982AbhLGRVF (ORCPT ); Tue, 7 Dec 2021 12:21:05 -0500 Received: from mail-dm3nam07on2061.outbound.protection.outlook.com ([40.107.95.61]:10784 "EHLO NAM02-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S239905AbhLGRVD (ORCPT ); Tue, 7 Dec 2021 12:21:03 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YIJ/0IfFwJA+GQjnDUZL8Ddxe8zz374FA+tAikg4xGjB4FgA8qGHBIZW6yRc86XGgpz9Wd5QZ/MTXeaNY/FEYPR48TqjekK0vP99yhJdyfDWQuJZ4s0NkJAirrZp3VG5GwyXBbSGce6bwRPrChn693C1KHn67h31PhZPmMdk/aT2cg/OhrBJZq+DM81Bzz7IW+huvdtxdDG//5Nra/HFhvB0UakEg/awXpqxLv0oSDqtqunsw05XpwrZPeOQay3UDlNOzZkrOtKAVRKKdEnjyc21aTwAKowGXicuru/IUtVITpFjDfry9BKiH2qgGDgB0g7ft8bqoMDjfY4QvuLTgQ== 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=y7iq9kRmqmtSBX80Uu7trSp3ElNQBhVym1ntaogC1Dw=; b=UD4nGfwZ6oPHQwlAWI0nw2peRAavbCZd7SrCXWRDOfjYLtl1HjGvdwZZj22E7XnbjlAf0Jq4X/zb9uIUlp0iGp/5y0TQEECjHCSiTJbs+djNkZM+ONKaSkdsBaDia4q3s1CWjXOtAv1N1W9A+mdFFJZ/F6INMqAS7RFodjAd/64G/9NSGlqM+q8u9DdZO32HVUHgZPDDqk3hG0m3xTdFwf44+i7KwxcjeIHRR67TrLtl8s+fhgpoOxAB/SnZ6MOw5wKdjjQfIfibxp31v91T3iO2rM9IZNHFWoXuztSsQMg576Rkh2flSHaSX+uVD3mSZ6b2WOfnK019Zn3bhkmVCA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=vmware.com; dmarc=pass action=none header.from=vmware.com; dkim=pass header.d=vmware.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vmware.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=y7iq9kRmqmtSBX80Uu7trSp3ElNQBhVym1ntaogC1Dw=; b=q+dquGcZexnik95+9+sPorIMSuxievMFwJO9O6wovq36G9D82xiNCFuakU5aN+lCb+CIl6gPWiKvew4mCFCMqZgfiNT7gHYevThviUUqVGUt4/na5ftHj5D3u2/GCTrgsVevFRFtjEtGCGwQM0bNiv4Z23SFTJ2OGs03Sd8ukHY= Received: from MWHPR05MB3648.namprd05.prod.outlook.com (2603:10b6:301:45::23) by CO2PR05MB2759.namprd05.prod.outlook.com (2603:10b6:102:7::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4778.11; Tue, 7 Dec 2021 17:17:28 +0000 Received: from MWHPR05MB3648.namprd05.prod.outlook.com ([fe80::ad1f:5c06:a9cf:3dfa]) by MWHPR05MB3648.namprd05.prod.outlook.com ([fe80::ad1f:5c06:a9cf:3dfa%5]) with mapi id 15.20.4755.011; Tue, 7 Dec 2021 17:17:27 +0000 From: Alexey Makhalov To: David Hildenbrand CC: Michal Hocko , Dennis Zhou , Eric Dumazet , "linux-mm@kvack.org" , Andrew Morton , Oscar Salvador , Tejun Heo , Christoph Lameter , "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" Subject: Re: [PATCH v3] mm: fix panic in __alloc_pages Thread-Topic: [PATCH v3] mm: fix panic in __alloc_pages Thread-Index: AQHX1N5+lqzX5/9/hUCR9L+z9tfLRKv6c74AgAD9U4CAAB7tAIAADZWAgAnMHQCAAIIHgIAAufyAgAJfDQCAHgMmAIAABAWAgAASAgCAAAQ5gIAADzyAgAAdyYCAAAWLgIAAAWYAgAAGEoCAAAPOAIAABOmAgAACrYCAAAckgIAAAy2AgAAA/AA= Date: Tue, 7 Dec 2021 17:17:27 +0000 Message-ID: <78E39A43-D094-4706-B4BD-18C0B18EB2C3@vmware.com> References: <1043a1a4-b7f2-8730-d192-7cab9f15ee24@redhat.com> <77e785e6-cf34-0cff-26a5-852d3786a9b8@redhat.com> <2E174230-04F3-4798-86D5-1257859FFAD8@vmware.com> <21539fc8-15a8-1c8c-4a4f-8b85734d2a0e@redhat.com> In-Reply-To: <21539fc8-15a8-1c8c-4a4f-8b85734d2a0e@redhat.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: Apple Mail (2.3654.120.0.1.13) authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vmware.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 157287f0-2572-4c20-c00a-08d9b9a571d0 x-ms-traffictypediagnostic: CO2PR05MB2759:EE_ x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8882; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: JEACWtiaxJ4JXs72pFNkSFOOhzDb/kDVeD+qsU7t6KCJXFagPr7o7iMsixR7N9+K2Fl/SvD2JpY4SLwkJ06B81Ei6mVxpSoSKFtbHwlHzwQ4Uy+GyS0Ca4Wn8oZaLdYrj6j6DoS/wN2sGgDV2SFgc4baP2X/mR3nC8eXASPSW4NSEdrngKu3WDsn/2rZlxd8/7Djyud7iAiswe6c3mJPIb4hRBxroqUSCXA3a3GRN3gntOvVTHwrww/d0QuErmDRn3fooEUXBxubCIoHu00vS6qZz7uq4d//uL8GXJLi7NR1n6ER6h3cfrM4J7Y3URcFBqteKoNVn0Yx/KD8aBfdeAMY/DH5346Sia9tVOco19jxMz5INb1twyAWr+JyfC5Q3qhXw2qjwmouxaVdwgmouCcM8YD9SRtXc641e1pUAzSH3w4tgEk/yLN0bJyezxr2llr5tBUKDUKvwJ4PLE2APg7+mxwd6zWyM2GkxQAqg4YUCcJ7pJnz/T5FDJ5o5M5ehHxltI2OG7HbrQXbC0X2PQJii5Ml1Q5nafHcLpe86XZxIPhYmUimyEvJGFB0MUKN5lI1eDsuPjyjtkd/Hoy2Kbmsz7d/3RZKflO5pwU260KtUKfhNu5G2ulX8PUHHjNjrOFA0my7egRg1hg/8BigrGzuuR6pfHpUFHgQb/Cah4hX9vCLTk/bm5VKAtqhHoNGUuNfRFiemlKVJmxp4dyV6umkrN4HuRBLDY6ID/HqzAFWqe9vK6R7nFD9R+0l3Csta4tVD2b78eTQ62t7flIOvMSQcfmII+w+HPYrnmkoGEo= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MWHPR05MB3648.namprd05.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(366004)(76116006)(66556008)(33656002)(86362001)(66446008)(2616005)(316002)(64756008)(4326008)(66476007)(91956017)(83380400001)(66946007)(6512007)(54906003)(508600001)(53546011)(36756003)(2906002)(26005)(8676002)(7416002)(71200400001)(6486002)(8936002)(122000001)(38100700002)(6916009)(6506007)(38070700005)(5660300002)(186003)(45980500001);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?TnlkbE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d3pzdFg3YzlqRFZYOEg0?= =?utf-8?B?dEdLakNGNjhFS0R4KzNuNytmWFdidGlid1hlVkdmRDJCY3NTTUh4SkQ4cWxm?= =?utf-8?B?TjduWk5md3JKTGJIUVhTZ0JTNHhBK0I1R3pjb2ZCSWIvYUNNUWt2Y3VIbHVG?= =?utf-8?B?d1c5aVAzb2hJNkVpU3BiNnpzdFExM1RqWEUvY2pOa2JJbmcxY3hNcm5DOTd4?= =?utf-8?B?TWNneUlpMkJ2Z0Q0Z2ZheWVRdnFFMUNXTzNnZE1YcXFDMlFUN0VVa2h4cnBD?= =?utf-8?B?UkRjbTc4TmRoN0xKRFNRQS9iV2ovRUtid2d5dXZWdHNqZ1NpM3M2NjlzdGh6?= =?utf-8?B?QWhGcTJMem1mb3RlYzMvVDViT2d3VXFvSG5YbUE2TWl1WW9DNHFNT1JsUXNw?= =?utf-8?Q?zLPv9VQAHoVEg0whyoJq5iE=3D?= Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: vmware.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MWHPR05MB3648.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 157287f0-2572-4c20-c00a-08d9b9a571d0 X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Dec 2021 17:17:27.9259 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b39138ca-3cee-4b4a-a4d6-cd83d9dd62f0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: BZ85KaJbhvrD9nDleek5EI+AmjQTz0dK8s73NZ/VEvoJa0PrIlf68U4PsklEt/PYo4QC0L9a9+VD5IAjDA6rwQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO2PR05MB2759 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DQoNC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