Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp5552793imm; Wed, 12 Sep 2018 07:40:58 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdb4Vd+P5qs3Jo3Y15D++ACKo4b48H648E1a5Gr1VR3mUMN5R4a8xFicvaYPsjo0ubhwqyaS X-Received: by 2002:a63:d348:: with SMTP id u8-v6mr2716836pgi.420.1536763258743; Wed, 12 Sep 2018 07:40:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536763258; cv=none; d=google.com; s=arc-20160816; b=Zw2wAbmN4t022Pm1W6MkcHKoOsaostt8+8idz+4BaPEdXaXKiLUWpafkaPjntLw0Qy DheQAV7o+Q0kah/6KySS7/iS4O6DS2iXviRbyAsLFTqu//WzfleUycJ4i9yJIfbScgy/ unCCYOn1ozZpVo3q0fK3/oK9/A58kGSdntax7+vKSCS0XPwG85xIxrURHyE443pctSh8 QWMm700Mry3cCre8JvlHh0iqkkBcDwvVHiunjCmOcaQBC0s4Bn3EAmICTpCX0sw2HeJm yTbzJpSjJN/NZn64FgHxVB9XmJ36eBFAn21ekkYwNfx+0WXEzffdmA7SDFYE01ijRST8 l09Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:spamdiagnosticmetadata:spamdiagnosticoutput :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=PgyaZTLOe82qawMwYiksIZJZTKiEzbyxA7McOGFjUIQ=; b=wEff7UugqB2voJPjCXqQErJvGIk3UWWPfAczNLcXIAgk/ExWfttrCgn1CSO1hDqcqK eqq8nKURf2RgENv/qekAUWyBF/DznrbeWf33gs+7DcqY+m2v/czYEN/1cUTHahCmMuBB 7nLr5GpNEUdovvFKfntbKzfKLqeU+Vsx21yYEIhjXv9cd7xtCp/zovlgbCki5cJtxxMw G8eBHzSoksgvkFuFZzxSY68+8BYWTvUD47tdfA+xGEvA+/RUCj8UBX5XETIk9YRxvOmw j/u4D/2CkkJnA9C82vjvrbB3FWEEDZgkpkqt2vnMnBE3xEhbDKAH6Y5efNfxw8V1/ZYX 7zrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b="ci7V/940"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r29-v6si1267996pff.24.2018.09.12.07.40.36; Wed, 12 Sep 2018 07:40:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b="ci7V/940"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727770AbeILTpK (ORCPT + 99 others); Wed, 12 Sep 2018 15:45:10 -0400 Received: from mail-sn1nam01on0091.outbound.protection.outlook.com ([104.47.32.91]:51648 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726945AbeILTpK (ORCPT ); Wed, 12 Sep 2018 15:45:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=PgyaZTLOe82qawMwYiksIZJZTKiEzbyxA7McOGFjUIQ=; b=ci7V/9404R0Qc7auG2gz0iXbsHSgvpIQ51RnnvgH8KOu+ByLTShZKtkUDHWnKiPNaSJzkKtyPZj2qwDH/morXUuWdqUzLK68zTJVNShIYHyTM8yc55liJsfJCIKe2OcTZ7ocXsKlfSoo8QKsd/onOlLNbqXEtOytKYF6lWwRHvE= Received: from DM5PR21MB0508.namprd21.prod.outlook.com (10.172.91.142) by DM5PR21MB0860.namprd21.prod.outlook.com (10.173.172.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1164.9; Wed, 12 Sep 2018 14:40:19 +0000 Received: from DM5PR21MB0508.namprd21.prod.outlook.com ([fe80::88e6:fdc:1d8e:71f5]) by DM5PR21MB0508.namprd21.prod.outlook.com ([fe80::88e6:fdc:1d8e:71f5%4]) with mapi id 15.20.1164.006; Wed, 12 Sep 2018 14:40:19 +0000 From: Pasha Tatashin To: Gerald Schaefer , Michal Hocko CC: Mikhail Zaslonko , "akpm@linux-foundation.org" , "linux-kernel@vger.kernel.org" , "linux-mm@kvack.org" , "osalvador@suse.de" Subject: Re: [PATCH] memory_hotplug: fix the panic when memory end is not on the section boundary Thread-Topic: [PATCH] memory_hotplug: fix the panic when memory end is not on the section boundary Thread-Index: AQHUSQLFF/mQjCkfKkuMMO7HZfKu+6Tpf1cAgAMgwwCAAAn0gIAADVaAgAADooA= Date: Wed, 12 Sep 2018 14:40:18 +0000 Message-ID: <38ce1d0b-14bd-9a4a-1061-62c366cb11b5@microsoft.com> References: <20180910123527.71209-1-zaslonko@linux.ibm.com> <20180910131754.GG10951@dhcp22.suse.cz> <20180912150356.642c1dab@thinkpad> <20180912133933.GI10951@dhcp22.suse.cz> <20180912162717.5a018bf6@thinkpad> In-Reply-To: <20180912162717.5a018bf6@thinkpad> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [137.117.57.82] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DM5PR21MB0860;6:DP8yZP2FAKTXlRjvzGf8i+02lF5FbHLx6nbNIs8oMEMoRqExhShEogIyKM2tYXMbF7VOUrSNKUpk+ou3rhy+PL9Dk4T8WwiXMMky5Ze8hxPOfd5+HftplAebm6nkp6wVDo+C7k7k+AQngRKv0vsqkLZKQ/+ETnnZEIgUbKBMo1/0RQJ1ilID1kl/Ut4hbH/27jJXLfu6SKOXQjrHIO+uW5S6CUU+9evh8GoSDvJZR0DouTxjLJSF711DI94i1UOXsscVGTvaUPqNcZBzISm8XKCAGJzVQerlrnddZ3RUBnZkTGiMbpoSDt92eP0toG0TYzTwLnFrL3pV+qKFTLO5YsP71hWMMmUsjmMDRzdyjId4BCz1rffvJFIjOpGu2qLWVb7R1EZuKRrRg7JGlMmmkzzYEEWoAQE6rog+edDcyV1XcRO2UnKV/5EdOyTmPdgXxJk809KFYqarJ1ar4oJuJg==;5:6XXvjnYciJWxGuBkV/oDwRrTC7Mlzj0Db4MYsbRJMLtMWc9L3cZra9Uzd84mYRLwCIN8dxrFc8JRjUiA4+nk+Xg4bWs1aYN2t3C7nF9xAbABZYVU83Vxu1bnpxWB2bjt3NprvHGal+blmCLsBY0CLfiG3XtrmWWDQ9v3CGcnT8M=;7:MXVZ77C7ui8C5hRXF/Kpr4TK16ZeGOahukxcvgJAUfT068uA+NfGJ3O9x5vuakYYn5LPfXXFbRfd1BRSZ88SuGaOodrp6vVbUlJe9BOmkn3vMGMoNajLyBXkcm1z15AnieyB37d9NI8nye+yO/wRembuuQ+JUuoElMDTedroUC1AqFRdwUvfzryuMMS6Bq4bUrHIv+QmlHXsgoMtG8wLp6dfumrivErnn04ltaa8CuNjXJr+JCq/FmU5kycR4Trk x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: 11d26f0a-13f0-4398-d3a4-08d618bda983 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(4618075)(2017052603328)(7193020);SRVR:DM5PR21MB0860; x-ms-traffictypediagnostic: DM5PR21MB0860: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3231344)(944501410)(52105095)(2018427008)(3002001)(10201501046)(93006095)(93001095)(6055026)(149027)(150027)(6041310)(20161123562045)(20161123564045)(20161123560045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699050)(76991041);SRVR:DM5PR21MB0860;BCL:0;PCL:0;RULEID:;SRVR:DM5PR21MB0860; x-forefront-prvs: 07935ACF08 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(346002)(366004)(376002)(136003)(39860400002)(396003)(199004)(189003)(5660300001)(106356001)(93886005)(105586002)(31686004)(3846002)(561944003)(6116002)(72206003)(6486002)(14454004)(99286004)(478600001)(6246003)(6436002)(25786009)(7736002)(305945005)(81166006)(4326008)(8676002)(81156014)(76176011)(8936002)(10090500001)(229853002)(6346003)(26005)(6512007)(2900100001)(68736007)(186003)(5250100002)(66066001)(11346002)(102836004)(6506007)(53546011)(486006)(31696002)(97736004)(2616005)(476003)(36756003)(446003)(256004)(86362001)(14444005)(22452003)(86612001)(53936002)(10290500003)(2906002)(110136005)(54906003)(316002);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR21MB0860;H:DM5PR21MB0508.namprd21.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Pavel.Tatashin@microsoft.com; x-microsoft-antispam-message-info: sUBvCNPCkHAqWhobRhNa0ecnQO13iDapbQ1e9+L1tDBzrI3kkvWKEwtyVVWdQXMaA1KW9ZNpQtcsngqwe/7fG1uYABl1sEKJlHvNe/BcfCNKTkaqARTIDQDcOcQ8sJKg8D/0PbxQbts6j4jh0MR/6J+5pi8hURmmKEZjFvOUDDH1B6in1uzjYQ8WLc5vARS1s2rDJf4ZyKf1ZMDtl1Jm57ZH7RKofqz9zCMl2t9dBJNzztsXvapKwH3YMVaWoxnOiohT/W2cAIjmfDmadvreQt58epNvH9gGpVBNmAYMMkC2XG764iVjHfh5CUV1aZ9jWopDdxnhank31OLixgmcXkcHMF52VXSWUs1mj9d+b5s= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 11d26f0a-13f0-4398-d3a4-08d618bda983 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Sep 2018 14:40:19.0027 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR21MB0860 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DQoNCk9uIDkvMTIvMTggMTA6MjcgQU0sIEdlcmFsZCBTY2hhZWZlciB3cm90ZToNCj4gT24gV2Vk LCAxMiBTZXAgMjAxOCAxNTozOTozMyArMDIwMA0KPiBNaWNoYWwgSG9ja28gPG1ob2Nrb0BrZXJu ZWwub3JnPiB3cm90ZToNCj4gDQo+PiBPbiBXZWQgMTItMDktMTggMTU6MDM6NTYsIEdlcmFsZCBT Y2hhZWZlciB3cm90ZToNCj4+IFsuLi5dDQo+Pj4gQlRXLCB0aG9zZSBzeXNmcyBhdHRyaWJ1dGVz IGFyZSB3b3JsZC1yZWFkYWJsZSwgc28gYW55b25lIGNhbiB0cmlnZ2VyDQo+Pj4gdGhlIHBhbmlj I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