Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4037287ybg; Fri, 25 Oct 2019 12:24:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqwiP59DydDL0fIgCaUvS0x53wEF5Jtn8b5wOQ6svgow2u6QTwgq7CMhBrR8kqVjUTHmpwr5 X-Received: by 2002:a05:6402:891:: with SMTP id e17mr5575363edy.236.1572031491770; Fri, 25 Oct 2019 12:24:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1572031491; cv=pass; d=google.com; s=arc-20160816; b=Gy9P4L/dpxZWXl3hReQRjSMYXbNHQ5VpC5SoE+JI7ooHtJY0EJyD5f73cO/N97Q5Ye PTM+Zlve+fx7ond3g4vrhDd9cJ1O4oaM1BqJo9fT+++QARUnk1b6JFKIYKgTFPNiTHkh oe6YFd8GTbl5l6X4hgV6oQg9N/hD9lNsVig9W8V1mfAvOUhSQYMivfJMquky2JXj9/y8 v1gLIQ59xlIpEVTiyMJTy18j+G6NnsRJCO381bAv6Kokya9i0eA9vHgWvAhVIOScHHVA Xl5WcMPy128Qtbau2z6PLvl9MHQPUaWe4mP3bZJzc7TfUNliy2EdpOkueXmgeejs5/Oz A82g== 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; bh=mJzlKuRkehvksagqzdzePl2l3ehTLgtsvIYUxFq173A=; b=fWp4011QxNs75edy5FQiNvSUJV7B2blwk5j17nlLB9/WwpSVrao5kHw/Zni2TnCJZs bjZjMBzl6Kx83OW3mMjs/Ns2doQ+RmDfCzo4ihTcKxgYaz2f2tiZu0RslUd4p+ol3OEW QMxqPojqISHObM/Kds3vNwXT0HgltcHxmRxDNTNVzV3qGOlZejA+DMV2ryIQu9OrE1yy lemaMJfa2H0k5zLHZ9h9LlUj9Te/dRhJ7LAfOAx/BpmsfU7FpZPpv+yttzXvlmcL44gq LQCGCtJFrmgfTrQuZY6n9ezqJsa+14BWIAXDBMv7CNRPmOX2HLb/cmyxmjeOx8CtINqg 723A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vmware.com header.s=selector2 header.b=a0YitRH1; arc=pass (i=1 spf=pass spfdomain=vmware.com dkim=pass dkdomain=vmware.com dmarc=pass fromdomain=vmware.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=QUARANTINE sp=NONE dis=NONE) header.from=vmware.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h4si2033091edd.189.2019.10.25.12.24.27; Fri, 25 Oct 2019 12:24:51 -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=@vmware.com header.s=selector2 header.b=a0YitRH1; arc=pass (i=1 spf=pass spfdomain=vmware.com dkim=pass dkdomain=vmware.com dmarc=pass fromdomain=vmware.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=QUARANTINE sp=NONE dis=NONE) header.from=vmware.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2394271AbfJYGTB (ORCPT + 99 others); Fri, 25 Oct 2019 02:19:01 -0400 Received: from mail-eopbgr750085.outbound.protection.outlook.com ([40.107.75.85]:60125 "EHLO NAM02-BL2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726636AbfJYGTB (ORCPT ); Fri, 25 Oct 2019 02:19:01 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AXwwF9Z4/QwGHEMo//WlCkMv9i9zLUnYW0zPaPAVCwmdPdyG4P9llCb+P+C5VhfZn9PhF8xGLSq9Evzq/lUqSVP9hXE5TSbPpXlv+ZSQgODU2K1ewNalrWEZ8EckClK9D0Q3zmpAW8DnkQ+KvwniI3z3AYp8hM2J0J0Kpcgm0biT6fVE1V5q+kaQDacOxfe4g+qfTY9bHpSdyAkXmqydc6iRK2hT4U26CcfD49P+a1cYqAlXtnXDyrYxLwS1ycy6LcCXG+h4O6hu+llzKPNimSN4KzBZCe4JA3hBuYbsoEVIGYFYJ94As7p07bog5qOy3VfmjAF5Yam3AgK/jrc5VA== 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=mJzlKuRkehvksagqzdzePl2l3ehTLgtsvIYUxFq173A=; b=EmsllY7fJMcV1Crs9t88j3imQOneOVRBmEMVVzPMVgqvo1NTwGVjhlpPzGIWWkNJr9rBl4gzMwDJpNU2e1Cr/L3GNl+3hVfHV+1lTUPhjtJD8CHO1anGQR4yNM8kMsU0k2qnyTfi3S5FwAmIVxryDTedHUGyMEUwRFBPr9cMy4YlGWq1c+39RuqJC7ik8MemF2dAUr4aDypSKPfoaxXDRc2rEcHtFCaHSRE+Jz/iUDqWiYfhvPbobk+xoy5uJFTjY1Hh5Ai2z/WgqEGACAP8GEBpADVqqsazg3vmuP0KMPAlps5ko0lkproYaSAauYn3fPTDj65+ggP5AFE7euL1ng== 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=mJzlKuRkehvksagqzdzePl2l3ehTLgtsvIYUxFq173A=; b=a0YitRH10UBvLl3xprhkcafKU6AI+79DSX3p8DV4GMImHccZB5x/c7eVY1EdnShumzreSoIvZghwA7KD/5tCUSlTGrovD8HEBSv9PcjD3K34VPRYYpmF+rFw2QIzGApP8C6wDyZ04BG199TpteRYKv2p/dptjDRCeFwEBwx0eU4= Received: from BN8PR05MB6193.namprd05.prod.outlook.com (20.178.210.214) by BN8PR05MB6050.namprd05.prod.outlook.com (20.178.209.202) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2387.18; Fri, 25 Oct 2019 06:18:58 +0000 Received: from BN8PR05MB6193.namprd05.prod.outlook.com ([fe80::9c5d:367e:9e87:b0d7]) by BN8PR05MB6193.namprd05.prod.outlook.com ([fe80::9c5d:367e:9e87:b0d7%6]) with mapi id 15.20.2387.025; Fri, 25 Oct 2019 06:18:57 +0000 From: Ajay Kaher To: Vlastimil Babka , "gregkh@linuxfoundation.org" CC: "torvalds@linux-foundation.org" , "punit.agrawal@arm.com" , "akpm@linux-foundation.org" , "kirill.shutemov@linux.intel.com" , "willy@infradead.org" , "will.deacon@arm.com" , "mszeredi@redhat.com" , "stable@vger.kernel.org" , "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , Srivatsa Bhat , "srivatsa@csail.mit.edu" , Alexey Makhalov , Srinidhi Rao , Vikash Bansal , Anish Swaminathan , Vasavi Sirnapalli , Steven Rostedt , "stable@kernel.org" , Ben Hutchings Subject: Re: [PATCH v2 6/8] mm: prevent get_user_pages() from overflowing page refcount Thread-Topic: [PATCH v2 6/8] mm: prevent get_user_pages() from overflowing page refcount Thread-Index: AQHVfffGKc9CRR2dekieWi7B72DxaadSSqyAgA0lZICAC+hNgA== Date: Fri, 25 Oct 2019 06:18:57 +0000 Message-ID: <0E5175FB-7058-4211-9AA4-9D5E2F6A30B9@vmware.com> References: <1570581863-12090-1-git-send-email-akaher@vmware.com> <1570581863-12090-7-git-send-email-akaher@vmware.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=akaher@vmware.com; x-originating-ip: [103.19.212.1] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: c1ce706d-31f9-4102-3ffe-08d75913383c x-ms-traffictypediagnostic: BN8PR05MB6050:|BN8PR05MB6050:|BN8PR05MB6050: x-ms-exchange-purlcount: 2 x-ld-processed: b39138ca-3cee-4b4a-a4d6-cd83d9dd62f0,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-forefront-prvs: 02015246A9 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(136003)(366004)(346002)(376002)(39860400002)(396003)(199004)(189003)(14444005)(6506007)(66476007)(486006)(6436002)(66446008)(99286004)(76176011)(476003)(66066001)(64756008)(66946007)(6486002)(229853002)(66556008)(54906003)(110136005)(76116006)(71200400001)(316002)(91956017)(5660300002)(2906002)(71190400001)(102836004)(81156014)(81166006)(7736002)(2616005)(966005)(11346002)(26005)(256004)(6512007)(86362001)(3846002)(36756003)(6116002)(6246003)(305945005)(7416002)(8936002)(6306002)(25786009)(186003)(33656002)(478600001)(446003)(4326008)(2501003)(14454004)(8676002);DIR:OUT;SFP:1101;SCL:1;SRVR:BN8PR05MB6050;H:BN8PR05MB6193.namprd05.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: vmware.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: U9UmCfeEePulMQRQNRNE5ehd+l6GRrTJra1FWQhsHHEdZbQAxGfaLG2wAEw0YBg5UYuzARBE3zLzBjzz53XNb1ZBXLpPgpomHa9K1FrIev/BmH5DMsVONi4LDJARyjq2afGlazVM+aL9HIZIbWxtkBgoujt3LM6/fjU2M/Bz/yTQccT7Y2V7FIoM/nqDJBVi7ayca+pY1qhnxdnLejbGAGmutfFMxDf0v9pJC3CtqL9DTEbLdnXrFSv8V6/Yt7hsfX+vzNE4inxEnpd3nxXpogyaB3V1BIUBZQr9PXDIK/vFpeDWkR41QAR/JqnJx7l73lDpNn+pgMFOUjDV2UtbJqaVP/93d11OpBQOEaRt+CXi1mbU9e4gjIw0lCum5JtB4//QfwuhgLMiWYxCYGysik0a866aUO8QUIgFM6p5O/t0NtWBixhI4HIoHcX5ZlZqxrxkREbFx7Ye4pCrKS6qyrupzqmx3y0uApyi+hIEATE= 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-Network-Message-Id: c1ce706d-31f9-4102-3ffe-08d75913383c X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Oct 2019 06:18:57.5629 (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: oZti2L57uUDzuWyEmJBZh59+fFJ0BEzNB5xLw4rjKPZiJl+8rYfmf3bpTHrGNgchodu8ScMpoOMr+5XkcSovdQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN8PR05MB6050 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DQoNCu+7v09uIDE3LzEwLzE5LCA5OjU4IFBNLCAiQWpheSBLYWhlciIgPGFrYWhlckB2bXdhcmUu Y29tPiB3cm90ZToNCiAgICANCj4gPiBUaGlzIHNlZW1zIHRvIGhhdmUgdGhlIHNhbWUgaXNzdWUg YXMgdGhlIDQuOSBzdGFibGUgdmVyc2lvbiBbMV0sIGluIG5vdA0KPiA+IHRvdWNoaW5nIHRoZSBh cmNoL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