Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp4094152ybl; Tue, 20 Aug 2019 06:58:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqyABkA9agHx7jiolUYs23qwwgS30iOKdViXGqVGqRBqVEXHd7+Ot9xgCSKOgX+NJRDImAkl X-Received: by 2002:a62:ce8a:: with SMTP id y132mr29927010pfg.240.1566309518058; Tue, 20 Aug 2019 06:58:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1566309518; cv=pass; d=google.com; s=arc-20160816; b=LSa0vhu2Yg2CEQrij4TmhmWvzwf0wkYvFbdHo+L9rf9vnJCSUtYlA4XRPXSKeSSmeX rsl5RJ9XGgpM4dSVodO0L+kO9em9DlI0nJWOBub33o9Dqy8HjpewKwcRAatLBdUR0LRM aPCsJVddMr/yrw6o1kcKMyv+L8NEyOwRTyZdGm4f9k3PBMmeeNlnoWVCL9B5K3Pb3pll tzBuqXZj62OPJRRZvfDY1ZJysfbWyBXnc7CXfpCqvv7dzfENWIVIpzoYKTgyOO9tPgjY oxYi8bvLBKMYStdSedzlouOrjn0K3EEuB8hQxZFhw90W+S2siZJcY2IEvwcq1FdY2FrZ OWRQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender: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:dkim-signature; bh=xpTfgEWHO8zSxSSk1x9GvYDrVgIph2RroPkqwh7t5xQ=; b=BFESGAi+UGaImTf4mGy8EWVCn6QbdC/s2MQmYeQ7NdB4wqtwwMgWRBexLg20Yuq3V9 IeW0e6gbmNFsIOzvelxdY59lsKvSrqnoBM9hZNaJtjhx3ZJVHze1xDPVliK+7ppL5jKO zzdyRLiSycvC88HEZzTLUOpp5psQUXnL/sCXgyooaXqPaFuJIBSTRfzdW7kG4zbPSCr9 ApuRoUBbZ4pT8GAEy2ZvaNV1JmeU8Z9L7d7dkcAmjcpoFYru1afD6Xg2mz95q+gpTcOf tImda7dZ+kivQYsUdw3adOmA5jaK3jseGBKjL2SKaU94UpjDyE0herY77nB6tvKOchHq Z6+g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=apRZqeG2; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector2-fb-onmicrosoft-com header.b=P39FNSq1; arc=pass (i=1 spf=pass spfdomain=fb.com dkim=pass dkdomain=fb.com dmarc=pass fromdomain=fb.com); 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=NONE sp=NONE dis=NONE) header.from=fb.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b5si12319245pgc.396.2019.08.20.06.58.23; Tue, 20 Aug 2019 06:58:38 -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=@fb.com header.s=facebook header.b=apRZqeG2; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector2-fb-onmicrosoft-com header.b=P39FNSq1; arc=pass (i=1 spf=pass spfdomain=fb.com dkim=pass dkdomain=fb.com dmarc=pass fromdomain=fb.com); 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=NONE sp=NONE dis=NONE) header.from=fb.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730076AbfHTN4Q (ORCPT + 99 others); Tue, 20 Aug 2019 09:56:16 -0400 Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:37912 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730033AbfHTN4P (ORCPT ); Tue, 20 Aug 2019 09:56:15 -0400 Received: from pps.filterd (m0109334.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x7KDlqX4015824; Tue, 20 Aug 2019 06:56:00 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-id : content-transfer-encoding : mime-version; s=facebook; bh=xpTfgEWHO8zSxSSk1x9GvYDrVgIph2RroPkqwh7t5xQ=; b=apRZqeG2J7WLwnhELqxVizNskrOZyXdPUuSeHZst8p3HyJ3twoLYNOwSqBM2RqU1fQ1E vAIPy+cGdo+jBiVJDJp9JgXApnwvs+CQYDb5+9iuBcIYDNk1KKolxygMc16T5uzl9DGu tN84tr5V9ChTscLWNpnU/jorCfv+d9MSiiU= Received: from maileast.thefacebook.com ([163.114.130.16]) by mx0a-00082601.pphosted.com with ESMTP id 2ug6dyafcq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Tue, 20 Aug 2019 06:56:00 -0700 Received: from ash-exhub101.TheFacebook.com (2620:10d:c0a8:82::e) by ash-exhub103.TheFacebook.com (2620:10d:c0a8:82::c) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Tue, 20 Aug 2019 06:55:59 -0700 Received: from NAM04-BN3-obe.outbound.protection.outlook.com (100.104.31.183) by o365-in.thefacebook.com (100.104.35.173) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.1713.5 via Frontend Transport; Tue, 20 Aug 2019 06:55:58 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YTavsT3xpJFynkUp86hXc+KgwbjiUSEBrYK+2MTzz2qisJwyjbzMDWPdNsLOhbebO1Gea2ydeMrSRVp6IRzS87NihkXQyVMWGWR1VBkQDjYhJQIrYbwexBNB7nofiWFGKHaTL8cuceiv/nKuqPXn60erv439hDKnQmImfWrDLxDpb+8zl5ObVW2cO6q+vrX3+4B4xqsh8GdD1h5hmI2Qb8qnQXXPB30wmvW3fUugCNDQq2Em1oeGIGwwbS1GA1M61deEWCeFuEMW7hBdhM5zyaCtwiFpiEyKY3dIRnUbqhEFTfR+4jPPYsgl3o+78LbKG9YTXgDUfrlG4qzA0tM9BQ== 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=xpTfgEWHO8zSxSSk1x9GvYDrVgIph2RroPkqwh7t5xQ=; b=Eeo1SJBQvP8shNfPKk/JxravRLFcyALNrlm8CD5SNNFFSKRmlYCf40tWJyqBOPXJKaKwuar261GUuUJJLWgyHiluWo/2RHp8uHUsG0HLjufm7BkBLOkShD1yYWss44pCT3+6pJfXix40HZQuOd2+5D6b1HjAwK4RFcJAa2hoRs66k3LuGNxJ6R2R61irFXP4FEPTfURVOKieRnsBCpVPKJ0zCCzDAAERQ53Mj6a40XDq0OUHiZ36QEtC8p8Bfrgu+JcfkpRsWqsYe3Y0n+afQz8Ub9vTPex6yG86ZXYtLiV23VwSPYS9FHF3SDKqK0Xeas2aYAPODwnV7WkHy3aqSg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=fb.com; dmarc=pass action=none header.from=fb.com; dkim=pass header.d=fb.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.onmicrosoft.com; s=selector2-fb-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=xpTfgEWHO8zSxSSk1x9GvYDrVgIph2RroPkqwh7t5xQ=; b=P39FNSq15JU+I52fncGSHgBr26CjZaj5ECahkNZhWPfuPoYUkDR38U4wscGnTMZVZeon9yvv73kwPyoQ3Pg+HAnXALOgdtAsabydZITtc47G8CRVR/2Tkiwjj53aYU6l6U3MUBfjvH1/RuMMsbZui7jgAS5HVvTLvPc+fSmQcX4= Received: from BYAPR15MB3479.namprd15.prod.outlook.com (20.179.60.19) by BYAPR15MB3207.namprd15.prod.outlook.com (20.179.56.157) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2157.18; Tue, 20 Aug 2019 13:55:58 +0000 Received: from BYAPR15MB3479.namprd15.prod.outlook.com ([fe80::cd53:3e19:5b34:c385]) by BYAPR15MB3479.namprd15.prod.outlook.com ([fe80::cd53:3e19:5b34:c385%3]) with mapi id 15.20.2178.018; Tue, 20 Aug 2019 13:55:58 +0000 From: Rik van Riel To: Song Liu , Thomas Gleixner CC: Peter Zijlstra , "linux-kernel@vger.kernel.org" , "linux-mm@kvack.org" , Kernel Team , "stable@vger.kernel.org" , Joerg Roedel , Dave Hansen , Andy Lutomirski Subject: Re: [PATCH] x86/mm/pti: in pti_clone_pgtable() don't increase addr by PUD_SIZE Thread-Topic: [PATCH] x86/mm/pti: in pti_clone_pgtable() don't increase addr by PUD_SIZE Thread-Index: AQHVVywhQLSFzdLXp0en14V4x7p7pacDzfeAgAAVLICAACLkAIAACZgA Date: Tue, 20 Aug 2019 13:55:57 +0000 Message-ID: References: <20190820075128.2912224-1-songliubraving@fb.com> <20190820100055.GI2332@hirez.programming.kicks-ass.net> <44EA504D-2388-49EF-A807-B9712903B146@fb.com> In-Reply-To: <44EA504D-2388-49EF-A807-B9712903B146@fb.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: BN6PR11CA0066.namprd11.prod.outlook.com (2603:10b6:404:f7::28) To BYAPR15MB3479.namprd15.prod.outlook.com (2603:10b6:a03:112::19) x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [2620:10d:c091:480::751a] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 24fcdb2c-ed5b-4135-3986-08d725762087 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(2017052603328)(7193020);SRVR:BYAPR15MB3207; x-ms-traffictypediagnostic: BYAPR15MB3207: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6108; x-forefront-prvs: 013568035E x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(366004)(346002)(396003)(376002)(136003)(39860400002)(199004)(189003)(102836004)(71190400001)(2906002)(110136005)(5660300002)(6116002)(476003)(8936002)(7736002)(54906003)(99286004)(305945005)(46003)(86362001)(486006)(446003)(8676002)(2616005)(186003)(11346002)(256004)(64756008)(229853002)(66446008)(66476007)(66946007)(6512007)(478600001)(76176011)(25786009)(66556008)(53546011)(81166006)(81156014)(52116002)(6486002)(386003)(71200400001)(6246003)(316002)(53936002)(6436002)(4326008)(118296001)(36756003)(14454004)(6506007);DIR:OUT;SFP:1102;SCL:1;SRVR:BYAPR15MB3207;H:BYAPR15MB3479.namprd15.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: fb.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: tJ9buLUJevEhLDM//RGIWdKifxGUinXi4puAndUh/VMBTK61Mz1ZbDzOjUZk2ywkP/U4uLqmGAb26hVCQS3LgHt2ibis1uWud+VG6AK3f0tOg62lSjuNNLXCMMAolbKEuAI9X9kuHyoOrzZs//iCL+OOI1Z8B7STHONRtWk0JAzCyhb37mILBj0dZnfobI2WnEMeJ55fJ8Oj3e76L3N5BAKjZmXPC3+6IMIDYX8NTeNUAZbhHvgjF492CYJ7CstYMOYeJfNKw5ThQmQHJU53mQmO30wr2aG/RpjJDJevWOC/nkIUuq1ZTjgMS90iLwAis4bMtd8YpEEMvEqIzcFeMODr4rDPGXfg5RcEoEYWaNlhbrmkUt/Wdl32yG5/yA9oJNUH1CbMGFjN3xGE3O5Yh99xMJ8KYhpfdEjgi3PXVbg= Content-Type: text/plain; charset="utf-8" Content-ID: <7DB66446F223444BADC7C0AD6B0EB412@namprd15.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 24fcdb2c-ed5b-4135-3986-08d725762087 X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Aug 2019 13:55:58.0085 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 8ae927fe-1255-47a7-a2af-5f3a069daaa2 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: mGSaxADpG91lP0+yzTihckwwbhoL/2mJ3/0F3eWBecAJ9RaiX2czcPDuRmzHQNrx X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR15MB3207 X-OriginatorOrg: fb.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-08-20_05:,, signatures=0 X-Proofpoint-Spam-Details: rule=fb_default_notspam policy=fb_default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=708 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1906280000 definitions=main-1908200142 X-FB-Internal: deliver Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gVHVlLCAyMDE5LTA4LTIwIGF0IDA5OjIxIC0wNDAwLCBTb25nIExpdSB3cm90ZToNCj4gPiBP biBBdWcgMjAsIDIwMTksIGF0IDQ6MTYgQU0sIFRob21hcyBHbGVpeG5lciA8dGdseE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