{"id":811872,"url":"http://patchwork.ozlabs.org/api/patches/811872/?format=json","web_url":"http://patchwork.ozlabs.org/project/linuxppc-dev/patch/1504910713-7094-17-git-send-email-linuxram@us.ibm.com/","project":{"id":2,"url":"http://patchwork.ozlabs.org/api/projects/2/?format=json","name":"Linux PPC development","link_name":"linuxppc-dev","list_id":"linuxppc-dev.lists.ozlabs.org","list_email":"linuxppc-dev@lists.ozlabs.org","web_url":"https://github.com/linuxppc/wiki/wiki","scm_url":"https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git","webscm_url":"https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/","list_archive_url":"https://lore.kernel.org/linuxppc-dev/","list_archive_url_format":"https://lore.kernel.org/linuxppc-dev/{}/","commit_url_format":"https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/commit/?id={}"},"msgid":"<1504910713-7094-17-git-send-email-linuxram@us.ibm.com>","list_archive_url":"https://lore.kernel.org/linuxppc-dev/1504910713-7094-17-git-send-email-linuxram@us.ibm.com/","date":"2017-09-08T22:44:56","name":"[08/25] powerpc: sys_pkey_alloc() and sys_pkey_free() system calls","commit_ref":null,"pull_url":null,"state":"changes-requested","archived":false,"hash":"ec8edefb616c845b44706c898d298df620e06414","submitter":{"id":2667,"url":"http://patchwork.ozlabs.org/api/people/2667/?format=json","name":"Ram Pai","email":"linuxram@us.ibm.com"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/linuxppc-dev/patch/1504910713-7094-17-git-send-email-linuxram@us.ibm.com/mbox/","series":[{"id":2303,"url":"http://patchwork.ozlabs.org/api/series/2303/?format=json","web_url":"http://patchwork.ozlabs.org/project/linuxppc-dev/list/?series=2303","date":"2017-09-08T22:44:40","name":"powerpc: Free up RPAGE_RSV bits","version":1,"mbox":"http://patchwork.ozlabs.org/series/2303/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/811872/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/811872/checks/","tags":{},"related":[],"headers":{"Return-Path":"<linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org>","X-Original-To":["patchwork-incoming@ozlabs.org","linuxppc-dev@lists.ozlabs.org"],"Delivered-To":["patchwork-incoming@ozlabs.org","linuxppc-dev@lists.ozlabs.org"],"Received":["from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68])\n\t(using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xptYC5VxZz9s7h\n\tfor <patchwork-incoming@ozlabs.org>;\n\tSat,  9 Sep 2017 09:18:39 +1000 (AEST)","from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 3xptYC4N7yzDrKj\n\tfor <patchwork-incoming@ozlabs.org>;\n\tSat,  9 Sep 2017 09:18:39 +1000 (AEST)","from mail-qk0-x242.google.com (mail-qk0-x242.google.com\n\t[IPv6:2607:f8b0:400d:c09::242])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128\n\tbits)) (No client certificate requested)\n\tby lists.ozlabs.org (Postfix) with ESMTPS id 3xpsrc3D5lzDrWB\n\tfor <linuxppc-dev@lists.ozlabs.org>;\n\tSat,  9 Sep 2017 08:46:56 +1000 (AEST)","by mail-qk0-x242.google.com with SMTP id r66so2159920qke.4\n\tfor <linuxppc-dev@lists.ozlabs.org>;\n\tFri, 08 Sep 2017 15:46:56 -0700 (PDT)","from localhost.localdomain (50-39-103-96.bvtn.or.frontiernet.net.\n\t[50.39.103.96]) by smtp.gmail.com with ESMTPSA id\n\tx124sm2033726qka.85.2017.09.08.15.46.52\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tFri, 08 Sep 2017 15:46:54 -0700 (PDT)"],"Authentication-Results":["ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"MOmmXFpq\"; dkim-atps=neutral","lists.ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"MOmmXFpq\"; dkim-atps=neutral","ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=gmail.com\n\t(client-ip=2607:f8b0:400d:c09::242; helo=mail-qk0-x242.google.com;\n\tenvelope-from=ram.n.pai@gmail.com; receiver=<UNKNOWN>)","lists.ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"MOmmXFpq\"; dkim-atps=neutral"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=sender:from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=XrgNc1KwjzWcd/AOYRRQRgZ5OaV2AtI32CneQwSbNdo=;\n\tb=MOmmXFpqvK2tUCIuXHKe3zwqD661pvjhBmUGsBV9OxE6R5YCWwjSPpHJ/KmYoZN7x8\n\tNmHxt2bWUEL2oeSqe9+EIQLIuFYhkhZVHCegnahC+C01gUY4In314zSyB87ZNLK6y1XK\n\tpf3oGc9vdfE3ASGPjj4N9qGl5ltlJevc7LQA+LENiXbXVL+fZvs/25yIWf5T2CT7TJoZ\n\tFR9dkvA9nypH2biJPm23er1M+Tx0EIIck+S1iFjgqNIN/4RzmGo9xYqe418RuAUfz/Me\n\tPkQOZpHiWp92bojBJHhodJV3kEV6ujNnLkfdfNuFEFsVnx6IIHyhacj/UnRBfDZnK7MW\n\tolBQ==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:sender:from:to:cc:subject:date:message-id\n\t:in-reply-to:references;\n\tbh=XrgNc1KwjzWcd/AOYRRQRgZ5OaV2AtI32CneQwSbNdo=;\n\tb=OVOEgG4CItrr237Uiw/HIm2+awIABWWISy1BkHg12oy4nE7oho6Jc/Gq60llkyZYc5\n\t+Md6rrZ2vUvtC67B5wPf/v7cuZcXIeA9n38DwbWK/tZiBcDgYVzCawK6Y5U5bpbX0wlt\n\t98SNujHupkc3QhAMYTp0hRJKXoeSjlDjKoRfOCKBKv/PKzEjex1zdBebUWTOYvfLmYvi\n\tdIj1AiDeZn8HP5/4WEnLH21n6qPwxYUiRek/gVx09v5Z1uHy7x+EXUNFDFspSq033is1\n\t60JBShkc6dk09estXIQ/c/hX02itz70T5oz9eV+rC0X3ujYmSvQuoSdsEqUrEAM/Q7ZG\n\tom9Q==","X-Gm-Message-State":"AHPjjUhyngiGHLh/wPwnydJT8luYz8Xs3t7J3lF7U9NBqN0ZRUNYASEU\n\t/KWCJ9ECds0Pmg==","X-Google-Smtp-Source":"AOwi7QB+N8Y19R6rn+K2oGS3lptk4s+viBFnMN+5oh1w6ezveoduAXNINKEi1jrkEsMr6t/CLEUsNg==","X-Received":"by 10.55.98.18 with SMTP id w18mr6178566qkb.163.1504910814589;\n\tFri, 08 Sep 2017 15:46:54 -0700 (PDT)","From":"Ram Pai <linuxram@us.ibm.com>","To":"mpe@ellerman.id.au,\n\tlinuxppc-dev@lists.ozlabs.org","Subject":"[PATCH 08/25] powerpc: sys_pkey_alloc() and sys_pkey_free() system\n\tcalls","Date":"Fri,  8 Sep 2017 15:44:56 -0700","Message-Id":"<1504910713-7094-17-git-send-email-linuxram@us.ibm.com>","X-Mailer":"git-send-email 1.7.1","In-Reply-To":"<1504910713-7094-1-git-send-email-linuxram@us.ibm.com>","References":"<1504910713-7094-1-git-send-email-linuxram@us.ibm.com>","X-BeenThere":"linuxppc-dev@lists.ozlabs.org","X-Mailman-Version":"2.1.23","Precedence":"list","List-Id":"Linux on PowerPC Developers Mail List\n\t<linuxppc-dev.lists.ozlabs.org>","List-Unsubscribe":"<https://lists.ozlabs.org/options/linuxppc-dev>,\n\t<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=unsubscribe>","List-Archive":"<http://lists.ozlabs.org/pipermail/linuxppc-dev/>","List-Post":"<mailto:linuxppc-dev@lists.ozlabs.org>","List-Help":"<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=help>","List-Subscribe":"<https://lists.ozlabs.org/listinfo/linuxppc-dev>,\n\t<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=subscribe>","Cc":"ebiederm@xmission.com, linuxram@us.ibm.com, mhocko@kernel.org,\n\tpaulus@samba.org, aneesh.kumar@linux.vnet.ibm.com,\n\tbauerman@linux.vnet.ibm.com, khandual@linux.vnet.ibm.com","Errors-To":"linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org","Sender":"\"Linuxppc-dev\"\n\t<linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org>"},"content":"Finally this patch provides the ability for a process to\nallocate and free a protection key.\n\nSigned-off-by: Ram Pai <linuxram@us.ibm.com>\n---\n arch/powerpc/include/asm/systbl.h      |    2 ++\n arch/powerpc/include/asm/unistd.h      |    4 +---\n arch/powerpc/include/uapi/asm/unistd.h |    2 ++\n 3 files changed, 5 insertions(+), 3 deletions(-)","diff":"diff --git a/arch/powerpc/include/asm/systbl.h b/arch/powerpc/include/asm/systbl.h\nindex 1c94708..22dd776 100644\n--- a/arch/powerpc/include/asm/systbl.h\n+++ b/arch/powerpc/include/asm/systbl.h\n@@ -388,3 +388,5 @@\n COMPAT_SYS_SPU(pwritev2)\n SYSCALL(kexec_file_load)\n SYSCALL(statx)\n+SYSCALL(pkey_alloc)\n+SYSCALL(pkey_free)\ndiff --git a/arch/powerpc/include/asm/unistd.h b/arch/powerpc/include/asm/unistd.h\nindex 9ba11db..e0273bc 100644\n--- a/arch/powerpc/include/asm/unistd.h\n+++ b/arch/powerpc/include/asm/unistd.h\n@@ -12,13 +12,11 @@\n #include <uapi/asm/unistd.h>\n \n \n-#define NR_syscalls\t\t384\n+#define NR_syscalls\t\t386\n \n #define __NR__exit __NR_exit\n \n #define __IGNORE_pkey_mprotect\n-#define __IGNORE_pkey_alloc\n-#define __IGNORE_pkey_free\n \n #ifndef __ASSEMBLY__\n \ndiff --git a/arch/powerpc/include/uapi/asm/unistd.h b/arch/powerpc/include/uapi/asm/unistd.h\nindex b85f142..7993a07 100644\n--- a/arch/powerpc/include/uapi/asm/unistd.h\n+++ b/arch/powerpc/include/uapi/asm/unistd.h\n@@ -394,5 +394,7 @@\n #define __NR_pwritev2\t\t381\n #define __NR_kexec_file_load\t382\n #define __NR_statx\t\t383\n+#define __NR_pkey_alloc\t\t384\n+#define __NR_pkey_free\t\t385\n \n #endif /* _UAPI_ASM_POWERPC_UNISTD_H_ */\n","prefixes":["08/25"]}