From patchwork Mon Nov 6 08:57:17 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ram Pai X-Patchwork-Id: 834591 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3yVpWG3dyqz9s4s for ; Mon, 6 Nov 2017 21:21:30 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="ukS2X7bc"; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 3yVpWG2TSmzDrJv for ; Mon, 6 Nov 2017 21:21:30 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="ukS2X7bc"; dkim-atps=neutral X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gmail.com (client-ip=2607:f8b0:400d:c09::241; helo=mail-qk0-x241.google.com; envelope-from=ram.n.pai@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="ukS2X7bc"; dkim-atps=neutral Received: from mail-qk0-x241.google.com (mail-qk0-x241.google.com [IPv6:2607:f8b0:400d:c09::241]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3yVmhg5wDkzDrJr for ; Mon, 6 Nov 2017 19:59:31 +1100 (AEDT) Received: by mail-qk0-x241.google.com with SMTP id a142so1235254qkb.5 for ; Mon, 06 Nov 2017 00:59:31 -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=C+kpDmVSGh5FUuOibj7DLkhhmxQ1tfojXg1at85DOXK5unPKfbA4/bFmbq/VtsGCzC aNEUU7Lgy73vYOvPtzMXUDnKxUdGwmwD1br2QEmIz3Z8UXpaECdBwdI7r5XiPLMbv66F 3HvYpEN5BkldSqu/S1Xnm0hjTqbefKZD/OsKeF1UuJFeUQxMx9Lox1YVj9YXy+R8LFq6 D/x3uxhhmBiG9rv7iEM9LB0AoF/KcrJcfWyFgpZWPSmEpZ0TakrQXP05sgWh3v8JZ702 C/90fgc4k2AS5RVPSlv2lKLXXBikIXomyQEsA0s+yUweWfcShhxzhxOuAtqxcMpJkHPi v8Hw== X-Gm-Message-State: AMCzsaVeK32ptwX1bO3mgJBrnypv5kzth9AVM9HFuKfyiyZQeTsf1oTj IbmSHCEfQ8IcVa8Djop46RY= X-Google-Smtp-Source: ABhQp+SRQ+Km1l0ZQNxym9AuvBXFozWPxPmUJLS7dafjsNbn7l3D32tWciYmeOF/uQjLwW5Q45Y9aQ== 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 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> X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.24 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arch@vger.kernel.org, ebiederm@xmission.com, linux-doc@vger.kernel.org, x86@kernel.org, dave.hansen@intel.com, linux-kernel@vger.kernel.org, linuxram@us.ibm.com, mhocko@kernel.org, linux-mm@kvack.org, paulus@samba.org, aneesh.kumar@linux.vnet.ibm.com, linux-kselftest@vger.kernel.org, bauerman@linux.vnet.ibm.com, linuxppc-dev@lists.ozlabs.org, khandual@linux.vnet.ibm.com Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" 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_ */