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 4A586C433EF for ; Tue, 21 Dec 2021 20:25:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234137AbhLUUZn (ORCPT ); Tue, 21 Dec 2021 15:25:43 -0500 Received: from mail-mw2nam10lp2100.outbound.protection.outlook.com ([104.47.55.100]:11488 "EHLO NAM10-MW2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S234060AbhLUUZm (ORCPT ); Tue, 21 Dec 2021 15:25:42 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=H8l2RMwU8v6YtL9k0rbIgs93KQlCWjbrjG/eScXrz/XqkjBywzp9Sx/Yc3XXq3hKgYoM5E3zXRp6G4ytRn4/8PfgJ62ZvFGyrwKTwspFMBgkd7ao5pOtgJ7W7kxkRWh/LTHG2WIkLw9tBVs1/m5XDXPTuDGTj2O/PfbQZ30asqocpGqiXq/uRQYQYAa+NwEWrCFY9QNOTHLskDK805kvGV6xH0WtIsXW/hseL+rMEFLraflTIha7qu30N66Ol9xXP0KSmCBExzZW+laofwRl4XTJEsQ5w09nFOLdqf8E0vwdQvGDfyWQFjFgAu7+xzGqTfOPg0ot3SwsQ+XKu5A15g== 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=RsjEXCvWlFRjPfjC5YohSvGgYh1wbE/6Zj20Rg+fBe8=; b=BGdNNHTC9A9GtgYJ6jOGfqZRaYJgT/X8SWyzEw2S+EWodQ1/fHu0YpKd7ZzFsFc1mXBNjvIuqNGbYhPUh98hh07RphhzEUopl4Z4X7kbfqtme0KBdq3bcBp7PgV5bgRtm9T6/8HkETz5bru58yrsZdmBtRnEhieYKaf9RTI2H2GlQMUuU2ag961creIJGzvx51yHJRVYHtlMBfW+NAhSpndY0tE9G5WFeoaxIcgHg5TTm7nJmb5RxiaMZOMI4fy+X+ChPmlGdTyDWir1+tIrtvNnka5AyJ/S+il9ntvV+ttrsrF8/W6iV72PrqxeCKbiqoPPpTLQ4AI9aO3yEWuVdw== 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=RsjEXCvWlFRjPfjC5YohSvGgYh1wbE/6Zj20Rg+fBe8=; b=ZjyUHr4JAPbgROnkQZ9qpDXErQvSf1MC2WXy1b87xivm+ZxFIFGeqGe5QOi8RX/AaTZ8/vf6iJHVyKqXOCtrJ/UQKg+YT9nvB6Zmdn6+q4p6aUQkdLyWxvpSET+z3HdYQ0hi5Zbc2y4u3lLf+wambSaa49OK8R8NjKhQKZk9wkk= Received: from MWHPR05MB3648.namprd05.prod.outlook.com (2603:10b6:301:45::23) by BL0PR05MB4626.namprd05.prod.outlook.com (2603:10b6:208:59::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4823.10; Tue, 21 Dec 2021 20:23:34 +0000 Received: from MWHPR05MB3648.namprd05.prod.outlook.com ([fe80::6929:b34e:d8b9:70bc]) by MWHPR05MB3648.namprd05.prod.outlook.com ([fe80::6929:b34e:d8b9:70bc%4]) with mapi id 15.20.4823.016; Tue, 21 Dec 2021 20:23:34 +0000 From: Alexey Makhalov To: Michal Hocko CC: Dennis Zhou , Eric Dumazet , "linux-mm@kvack.org" , Andrew Morton , David Hildenbrand , 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+z9tfLRKv6c74AgAD9U4CAAB7tAIAADZWAgAnMHQCAAIIHgIAAufyAgAJfDQCAHgMmAIABcMIAgAEjF4CAAGztgIAAC/IAgAAHxwCAAAeTgIAAM82AgABcswCAAO2MgIALPnkAgAVLzQCAAMlJAIAAsfCA Date: Tue, 21 Dec 2021 20:23:34 +0000 Message-ID: <078460FE-84C4-442C-BD80-97DB90557809@vmware.com> References: <77BCF61E-224F-435D-8620-670C9E874A9A@vmware.com> <2291C572-3B22-4BE5-8C7A-0D6A4609547B@vmware.com> <7D1564FA-5AC6-47F3-BC5A-A11716CD40F2@vmware.com> In-Reply-To: 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: d2901c21-f89e-45be-0de8-08d9c4bfc362 x-ms-traffictypediagnostic: BL0PR05MB4626: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: ys7oeqXokaGOaiSMCTyg+U4bRlF7rGqu6OBdnXJN0Fo2FOK2kM5uNznJ5lbetcVN951HciVgNpMLwCDu+oRTRliGzPLgcxthfo6nWe/B+Gjlferbi0Mpy4YAG3vIMG4YVMFRFJRrK+gfcpUv3pbbjirfC5KFczUMP3tJC9onM1N7Tb4iNPG0vGyq2ZRLOjMqhWs4OpkkuiVyOu88I1a8IT8I3GgMOGzxbsVlppZNfatClsh5Z/Yk5qkscZCL/gQm2TdVXI+vsybNHtzP7J2RAsYYGw6ahrVerjiBQ4aVX2ER0tMTnmWuqhqxDLCKvV6DHsF+VEgWvyvachCakTrxA2gtC9Hd+5rA6WPgdOzhoskzCI9CR1/4dLDWkjqCaX+Ho5Qa/xS9qMxSLkR2EPv5t+25rCzE3TixdVmw6rcfOEtlBhGKFWWwHHIcjDOKEj9OTvYoonx7lvUUbvWgfjwMCyegbqS6LVPhmbhngeFrXNqudpit1BFDRW8p2CxXsNQU0Zvjumwu9FsMF1ozbtbthJ/9GraF1dukWM1MwfIbm/aSamEI4j5l2LZIsmNIga/yOO3p/ZfV12LjiQnC8Aqs3a6IVNK19YsUHMMdZaoBl31TxCkCYPzJkbU6ekzGCkm5JXQ97NVirN7o23zJb4kK/dCjVKw9bUp55MhnTVtPN0o3sOfuXGxYlA9EAdUfD+LCQ4ImwviuflTZ8Ajjt8++nnXNEEqWhIOtmb1UdgOQcE4i1PoWBkXnTK3oQguTKvFR 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:(13230001)(4636009)(366004)(66476007)(64756008)(66446008)(7416002)(38070700005)(2906002)(6506007)(66556008)(86362001)(186003)(26005)(36756003)(8676002)(38100700002)(8936002)(4326008)(33656002)(6512007)(122000001)(6916009)(6486002)(76116006)(91956017)(316002)(5660300002)(53546011)(2616005)(66946007)(508600001)(54906003)(71200400001)(45980500001)(20210929001);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?Y2ZYTXM3VW9rOTJuVW9ybWtmbEd0alRBanRMOGhlZG13K0xNeFhldjQ3UHlj?= =?utf-8?B?d05peG9DeFVLRGVnVEM5bmh1Y1F5N09PTkN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Nnd2Zmh6S0pLRTdMeGIxOFl5WkRETWQ3MmRmdUErK3NWTjVuYUdnRkE0?= =?utf-8?B?dGxFSE5QNzNnTmtOVFFRNDhvazRMaVhvTVIrMzZ2U0p4eGQza0JzbFEwdmtx?= =?utf-8?B?Vlcyd2NKNHd0YjFQSlo2SWM0cko0M0VVL0l6UytnUE5PdTVrSWRqVU1aWEVY?= =?utf-8?B?Y243Sm5YRzY2QUtpOVEvMHNCajdEdFBUUkI2dFhYdjhGUWJnVWdxWG8rWCty?= =?utf-8?B?UVg1YThMNjJOWGpFU1dSWERibjB3bXdibEQyeTJ2cUJsWUU0MHUwWmdDWlE0?= =?utf-8?Q?1NR+9MNRKfm0wiRSO3olH6JmSI8ErCsoofrN4IV5XMH0?= Content-Type: text/plain; charset="utf-8" Content-ID: <3919CE2FCFE9A544B5782956288C1641@namprd05.prod.outlook.com> 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: d2901c21-f89e-45be-0de8-08d9c4bfc362 X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Dec 2021 20:23:34.4791 (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: R35Nl1c43s18K0PZ/D9bYe+6O5212aZJaM8ynX4ocby7Qj3zX4UhO49qdhDegPH9MjuLyEnfRZaPMsar2bYeFw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL0PR05MB4626 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DQoNCj4gT24gRGVjIDIxLCAyMDIxLCBhdCAxOjQ2IEFNLCBNaWNoYWwgSG9ja28gPG1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