Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp5761279ybx; Sun, 10 Nov 2019 21:04:29 -0800 (PST) X-Google-Smtp-Source: APXvYqwWnoIeyv2ckREG5gZqPJiCY4IJ/BR+Nexi+7N6OXs4q8w3mhafuFWiJrLMWAT/Cr0Rmi95 X-Received: by 2002:a17:906:73d5:: with SMTP id n21mr21074752ejl.228.1573448669384; Sun, 10 Nov 2019 21:04:29 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1573448669; cv=pass; d=google.com; s=arc-20160816; b=B5joLMRSIGBgPAWkAujzJlkn4rKh7o8XeYM7aXaH75SE+LRTotjxijBfQdDYj1hSY3 I2fNa+6MdzvbpUj6VNYtfcdcIpLUd2kyOXoBzVjr7aZnjn74C40kl4vgKL2nYa6jgnF3 uzJ1dpf9q0vdCsN1Byrex8Te/1MmFvztvrgSfsZf3jRYAEgts3PnwDryF1lZUO1uyN4s fHj8vLpJIdZSIUB7ZjGfwpYcvIqu1lLBFNwOLUluzm+azqz9FFHQEmEoC2IvHcP30K5T a3U4cT7Sc9MBH4ug0msVvV5KUQgap/4pSrUnXlxFzGME8Zm0Yiyjr+XsvWO/mJVgESk4 mIHw== 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=6zpk6RxWm1NOVU5k56xgyXPQa//LIW9EkPJQ91L5hg4=; b=qnb7BpfWKb6heP0OURTZi7zXS15RJ8RD/HLw626VnMZR51oTuvgWJ+0SeQ5M2wENXq 8/XxbwHu3/cTp3zEAmBfPOVRMh5YZwcW9/LzydHScXubUDY2Ud77xSMsaygJqzFSY5fD L/e4EUAKA+8czxZ5aQITFI2CWxqzD+Bio06oQqnbwYchy81ViucwE+odAFpMerdewi31 ZAsIKi37LMmqZ8S6uIMst5nOlVtCHTNls1kjXkyFAuS8y5J+ZdafXmwfQEEXigF1McfR FUhIntcI1HdFKsGgot6vqYiAJyVs0F5zOhVQRhRTPExMBQwRarPEe+gz4ylVhUG0y7s4 01eA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vmware.com header.s=selector2 header.b=iqEPS+He; 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 u11si11598536edi.385.2019.11.10.21.04.06; Sun, 10 Nov 2019 21:04:29 -0800 (PST) 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=iqEPS+He; 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 S1726360AbfKKFAe (ORCPT + 99 others); Mon, 11 Nov 2019 00:00:34 -0500 Received: from mail-eopbgr740047.outbound.protection.outlook.com ([40.107.74.47]:36483 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725796AbfKKFAe (ORCPT ); Mon, 11 Nov 2019 00:00:34 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=loa3sM6WqXPqCh8R5fyRycnSwE0nrOrzvoeqcRIW/iu4+9ZO59WNYaD0qGWr5eSWewTaUJS8/skhzRrH0oT3fYzGW4bBR72rDuKItQ5s7aebiG4J7hoOfgmYBREBRU1pffaik/YCr058EikLNoJgHNVEXWqOrfKaakVqBl8FMB8HKqpvyoZaJPcEA7CjVFk4AH4r9tp8x7HqTOBUAtDbe28wlEWgOpykhyvjTqsBSURygUfWuCq6bUa+mV5qeW08knHumMkoQV/GfdUUKs7ehENbojVUM9QanvmnpdqDJgPEpw+LMsAfdoYsJ7yPfasKfzBCDMdfLllXXvh5vZuOXQ== 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=6zpk6RxWm1NOVU5k56xgyXPQa//LIW9EkPJQ91L5hg4=; b=BSsGGJ1GStzHR/WssE1IHOSTI858v5LDH8pkKmZzbNxjnotY6coThTWH5aidCC+MFAhuPGBSEFnFdCVZb93vgleyizn6+KS5NFHUi5PdzETohaPoSHicZEzO3YmCWuKj9RWSa8608o/B5YC50bp5YOlL/edSeaZm043x5o3dbVav/MAtmfMqIA5ZTspfdzwwJwHUKlYKeokEJpgiueDFZgCVyVsjrmjLqjh0Yjl0T8kkrWT3fId8kRN0NJi+5HeIGYJE0dlbrOYX+CWwbZTsaogUsfUJrb32FTEEGvOvtHK83bcB2/cTGwT4BXkGcxLifyCUbXsKdTsFGiff1RjmWQ== 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=6zpk6RxWm1NOVU5k56xgyXPQa//LIW9EkPJQ91L5hg4=; b=iqEPS+HestkzW47z8bKkXx8V5ilzHZjBaYXW3M7Uiztrv5nu0Nz+dbsHVNbB9URA7gq37TM9Zc+/OR9j6PGO2sY6baxVUE7ZCxfhvi5cjTKikiCcl9OMWS+6LkjwceskhYerA7LxqfzwqwyN4yQdGDU7sEUU/MaTyl71Z5A5gt8= Received: from MN2PR05MB6208.namprd05.prod.outlook.com (20.178.241.91) by MN2PR05MB6814.namprd05.prod.outlook.com (52.132.172.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2451.16; Mon, 11 Nov 2019 05:00:30 +0000 Received: from MN2PR05MB6208.namprd05.prod.outlook.com ([fe80::f0a2:e9fe:d312:7470]) by MN2PR05MB6208.namprd05.prod.outlook.com ([fe80::f0a2:e9fe:d312:7470%4]) with mapi id 15.20.2451.018; Mon, 11 Nov 2019 05:00:30 +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+hNgIASq5UAgAf2KoA= Date: Mon, 11 Nov 2019 05:00:29 +0000 Message-ID: <88E8A78A-6CA3-46C1-A2AA-DFE7A3A52586@vmware.com> References: <1570581863-12090-1-git-send-email-akaher@vmware.com> <1570581863-12090-7-git-send-email-akaher@vmware.com> <0E5175FB-7058-4211-9AA4-9D5E2F6A30B9@vmware.com> <35d74931-2c18-00ff-7622-522a79be9103@suse.cz> In-Reply-To: <35d74931-2c18-00ff-7622-522a79be9103@suse.cz> 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: [2409:4071:220e:3934:3c2a:8f63:a44f:9055] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: bc85f22b-e9b6-4b57-d853-08d766641366 x-ms-traffictypediagnostic: MN2PR05MB6814:|MN2PR05MB6814:|MN2PR05MB6814: 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:5516; x-forefront-prvs: 0218A015FA x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(376002)(136003)(366004)(39860400002)(396003)(346002)(199004)(189003)(76176011)(33656002)(54906003)(110136005)(102836004)(99286004)(478600001)(66476007)(66556008)(64756008)(66446008)(6116002)(36756003)(6436002)(91956017)(76116006)(66946007)(305945005)(229853002)(7736002)(5660300002)(25786009)(6506007)(7416002)(6486002)(86362001)(4744005)(316002)(71200400001)(71190400001)(53546011)(14454004)(186003)(256004)(46003)(446003)(11346002)(2906002)(81166006)(81156014)(8676002)(6512007)(8936002)(4326008)(6246003)(476003)(2616005)(486006)(2501003);DIR:OUT;SFP:1101;SCL:1;SRVR:MN2PR05MB6814;H:MN2PR05MB6208.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: kA8ESF8+dEws6fJizvSKRDn5/ju4We9vuzfhtmf/kdiN8RoAsAmWvdbhiFsWmVmFaltUl68WyJW9a97Mbg2lIYBucOEcvxESmM8UuSukevSTsksoVCxHPdaTtLC7rQaAJTxT9D4Mt3x8cCv3AqoI5Rf3V6RV0tEXhT8eaoDrfcuws0veAmCGRSkg7YJoz7GUKaMELjy2uCVZH9ImvCK6Xr+2VLpFHLglODjGsXLh4UzQVr/3YvJVaSIaiVXp/7W2GNpj5TFzpFBiibXSMhX1dtfJfz/AWy2hXFF5BpCj9QIYVlTZBmQ+pEvzU84/FsqnoicEm1zgPyZa6WStIOyTg6VQG+6GWQc1s9ZHWxlzObl5O9hZ99Gd7jPjdpUvqfg1SmKe7K5Q7+lBSV/Gbe5PLohqUl8pEm4ck045vzbUYpmeNVEg8tWRJGgiiUasCZxb Content-Type: text/plain; charset="utf-8" Content-ID: <219FFBD87736E845A639BFC215EF7855@namprd05.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: vmware.com X-MS-Exchange-CrossTenant-Network-Message-Id: bc85f22b-e9b6-4b57-d853-08d766641366 X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Nov 2019 05:00:30.2135 (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: i+vsoXlm6h9qxD5hhirEgIRMDjb8xqOf7cjXF4ovWUtCwZAgeujdiCTsTuaeSoC2O867jo8ZLEca6nTGgsIQgw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR05MB6814 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DQrvu79PbiAwNi8xMS8xOSwgMjoyNSBQTSwgIlZsYXN0aW1pbCBCYWJrYSIgPHZiYWJrYUBzdXNl LmN6PiB3cm90ZToNCg0KPiBPbiAxMC8yNS8xOSA4OjE4IEFNLCBB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