Received: by 10.223.164.202 with SMTP id h10csp10989wrb; Mon, 6 Nov 2017 01:31:09 -0800 (PST) X-Google-Smtp-Source: ABhQp+Qpo6h70u8p0kI7tSudC58pUMNM7tyVtz7lUdxx8KKAlUjNyTJU2+90Ia53yYfu6C+MGsQZ X-Received: by 10.159.253.144 with SMTP id q16mr14117757pls.25.1509960669581; Mon, 06 Nov 2017 01:31:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1509960669; cv=none; d=google.com; s=arc-20160816; b=C2ieNCLKluCPTsUEuQZEuHl2EAUnX1ANij4sFpUMsDEu3yhLKrggBwY2aqN7fw1Wi2 w9GG/O8d4O0ZiSikrnJz17D9zh0D4ChqvQJJW0oFUMrtxIX47XjmrcqiC3WuJv8TfDAN 7v5+q/8oaWEPZ7cHQNvbe+c3xtjR9Y70jCW8A4buGKUDvXRuMS1OMsl2+AokT5zULYNu IRuEtvhewK8gI/vnFqcWnvF2C0IomzMWVklRc225IHAPOqkbOF1o+kcj+YjPIyzC2nnk Yd9/CYuwsdWDH8tXdELNIpyrvmF2gTHujCViNb1Qur1+4iwDljpZFL/Sk6C7aBVVbZu6 rXpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=/W5fZe1Lzou2RUcPygYK5RmlYPlRdaxz3SFBGvQuopw=; b=KSE0j2Fv3s+TxHgmEwGwrpa8rL3ejyLphJ148IdCn6kLOa+fmYhh3yL6m6KH1bXrkP aZg2SOA0zySkli8RwTpFgqWZBPITR8ncRfap22WvbQWHOBs3D5wQ9F9irc1h8xvFYynr jQqL9wHGXpJq2JGDDvVHQF9vzmXgEchOqCEHeYoG+WWZlYsdZWCOaNOuJuIHYJOJqbzW m4daZHC1jga2rQweDXe84Sb9fKjhR6OgTRonrImDjMIHWghKysWKUiSYYBlxICpn6r2o h2GDxs1Ie1JPbK6gsbUa/n5jU5lpfP9x/xq7mXAx1bnsQ1XRfhkp8OZgIkN2cwAThz7+ 0t5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=ukS2X7bc; 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=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e77si11978138pfm.110.2017.11.06.01.30.55; Mon, 06 Nov 2017 01:31:09 -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=fail header.i=@gmail.com header.s=20161025 header.b=ukS2X7bc; 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=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752464AbdKFJ3m (ORCPT + 98 others); Mon, 6 Nov 2017 04:29:42 -0500 Received: from mail-qk0-f193.google.com ([209.85.220.193]:55094 "EHLO mail-qk0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752402AbdKFI7b (ORCPT ); Mon, 6 Nov 2017 03:59:31 -0500 Received: by mail-qk0-f193.google.com with SMTP id n5so9990397qke.11; Mon, 06 Nov 2017 00:59:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=/W5fZe1Lzou2RUcPygYK5RmlYPlRdaxz3SFBGvQuopw=; b=ukS2X7bcADdLcqHn7XfWr3rEKvXskwAxdP9alW0WzEE9ftFbdHCUJEDvdRWNvxrG47 n8pNNeptSRZ9TjgEgPcCLY0Y4W1+bHgEUQEJOZdSbWdtRHeFjlkP4cHkxlSrcDhc1vji 3b8UlD/f0wFBAJ+/4z6MuYx7irNiK42TqdtYLD9+U/dLwOzub+Pu/A21YoLDLGubtsjB /JfGBJtPc50QvkkkT0e1zeFxKO+w3tX2lANeo+ngGLz+ZZD/1WdEnyC9BsJw0V9S4jDS XG6MqE0CY5aYTfqtJod63gK36GA2mYmIP2OEIJzlvBEmc1v7jbOkeqFUYw8bqxMxIxQZ V/zg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=/W5fZe1Lzou2RUcPygYK5RmlYPlRdaxz3SFBGvQuopw=; b=eDQZmRkEubzVrA/159RWan2B10ZffhjiHHZ6J3W46kLc2wl77F4NIeCYCamZrodTg4 p14ZjR5LiS99K+eKWMUDYnxel1c+ZxuBBsx7sWIRt4aUs5CD+OCDqxmkcZhnHA2MTKGQ THSWU4NRc/3xvFRcfIHDuCjxvRL0NXwx4ciTwB8ftcyftaMFQYnlsEdFQoV1fvl9WOh+ Cp6GQ9qV442wcx/RxAzthorbDpeUVoZpEWKYk3704XVSE9nJZRY2JPEV8IqmW7eegsEn XrFIgESd4c51z4vWeSefvIX2iv6D6OrHnhZXUf3O55u4Soy/cnXSNugFBpyujq00Nlef 0bqg== X-Gm-Message-State: AMCzsaWbnY1eIfaoA99yjE/ohb+ap0F3YVM+gQ0KE/Ffj/UTn9yi0mHM INDWHnxgm9E9ezzl97AvMr0= X-Received: by 10.55.116.197 with SMTP id p188mr20474370qkc.125.1509958769908; Mon, 06 Nov 2017 00:59:29 -0800 (PST) Received: from localhost.localdomain (50-39-103-96.bvtn.or.frontiernet.net. [50.39.103.96]) by smtp.gmail.com with ESMTPSA id r26sm8001094qki.42.2017.11.06.00.59.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 06 Nov 2017 00:59:29 -0800 (PST) From: Ram Pai To: mpe@ellerman.id.au, mingo@redhat.com, akpm@linux-foundation.org, corbet@lwn.net, arnd@arndb.de Cc: linuxppc-dev@lists.ozlabs.org, linux-mm@kvack.org, x86@kernel.org, linux-arch@vger.kernel.org, linux-doc@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, dave.hansen@intel.com, benh@kernel.crashing.org, paulus@samba.org, khandual@linux.vnet.ibm.com, aneesh.kumar@linux.vnet.ibm.com, bsingharora@gmail.com, hbabu@us.ibm.com, mhocko@kernel.org, bauerman@linux.vnet.ibm.com, ebiederm@xmission.com, linuxram@us.ibm.com Subject: [PATCH v9 25/51] powerpc: sys_pkey_mprotect() system call Date: Mon, 6 Nov 2017 00:57:17 -0800 Message-Id: <1509958663-18737-26-git-send-email-linuxram@us.ibm.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1509958663-18737-1-git-send-email-linuxram@us.ibm.com> References: <1509958663-18737-1-git-send-email-linuxram@us.ibm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Patch provides the ability for a process to associate a pkey with a address range. Signed-off-by: Ram Pai --- arch/powerpc/include/asm/systbl.h | 1 + arch/powerpc/include/asm/unistd.h | 4 +--- arch/powerpc/include/uapi/asm/unistd.h | 1 + 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/include/asm/systbl.h b/arch/powerpc/include/asm/systbl.h index dea4a95..d61f9c9 100644 --- a/arch/powerpc/include/asm/systbl.h +++ b/arch/powerpc/include/asm/systbl.h @@ -391,3 +391,4 @@ SYSCALL(statx) SYSCALL(pkey_alloc) SYSCALL(pkey_free) +SYSCALL(pkey_mprotect) diff --git a/arch/powerpc/include/asm/unistd.h b/arch/powerpc/include/asm/unistd.h index e0273bc..daf1ba9 100644 --- a/arch/powerpc/include/asm/unistd.h +++ b/arch/powerpc/include/asm/unistd.h @@ -12,12 +12,10 @@ #include -#define NR_syscalls 386 +#define NR_syscalls 387 #define __NR__exit __NR_exit -#define __IGNORE_pkey_mprotect - #ifndef __ASSEMBLY__ #include diff --git a/arch/powerpc/include/uapi/asm/unistd.h b/arch/powerpc/include/uapi/asm/unistd.h index 5db4385..389c36f 100644 --- a/arch/powerpc/include/uapi/asm/unistd.h +++ b/arch/powerpc/include/uapi/asm/unistd.h @@ -397,5 +397,6 @@ #define __NR_statx 383 #define __NR_pkey_alloc 384 #define __NR_pkey_free 385 +#define __NR_pkey_mprotect 386 #endif /* _UAPI_ASM_POWERPC_UNISTD_H_ */ -- 1.7.1 From 1582977673485579310@xxx Thu Nov 02 17:52:30 +0000 2017 X-GM-THRID: 1582942473161349065 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread