From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752007AbcBOQ3o (ORCPT ); Mon, 15 Feb 2016 11:29:44 -0500 Received: from www.sr71.net ([198.145.64.142]:60753 "EHLO blackbird.sr71.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751137AbcBOQ3n (ORCPT ); Mon, 15 Feb 2016 11:29:43 -0500 Subject: Re: [PATCH 01/33] mm: introduce get_user_pages_remote() To: Balbir Singh , linux-kernel@vger.kernel.org References: <20160212210152.9CAD15B0@viggo.jf.intel.com> <20160212210154.3F0E51EA@viggo.jf.intel.com> <1455516578.16012.27.camel@gmail.com> Cc: linux-mm@kvack.org, x86@kernel.org, torvalds@linux-foundation.org, dave.hansen@linux.intel.com, srikar@linux.vnet.ibm.com, vbabka@suse.cz, akpm@linux-foundation.org, kirill.shutemov@linux.intel.com, aarcange@redhat.com, n-horiguchi@ah.jp.nec.com, jack@suse.cz From: Dave Hansen Message-ID: <56C1FCF5.804@sr71.net> Date: Mon, 15 Feb 2016 08:29:41 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <1455516578.16012.27.camel@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/14/2016 10:09 PM, Balbir Singh wrote: >> > For protection keys, we need to understand whether protections >> > should be enforced in software or not. In general, we enforce >> > protections when working on our own task, but not when on others. >> > We call these "current" and "remote" operations. >> > >> > This patch introduces a new get_user_pages() variant: >> > >> > get_user_pages_remote() >> > >> > Which is a replacement for when get_user_pages() is called on >> > non-current tsk/mm. >> > > In summary then get_user_pages_remote() do not enforce protections? Yes, exactly.