From: Szabolcs Nagy <nsz@port70.net>
To: musl@lists.openwall.com
Subject: [PATCH 1/3] add pkey_{mprotect,alloc,free} syscalls from linux v4.9
Date: Sun, 25 Dec 2016 10:41:06 +0100 [thread overview]
Message-ID: <5a1760dbd694453365583ff6bdc13a61e3484f94.1482583912.git.nsz@port70.net> (raw)
In-Reply-To: <cover.1482583912.git.nsz@port70.net>
see linux commit e8c24d3a23a469f1f40d4de24d872ca7023ced0a
and linux Documentation/x86/protection-keys.txt
---
arch/aarch64/bits/syscall.h.in | 3 +++
arch/arm/bits/syscall.h.in | 3 +++
arch/i386/bits/syscall.h.in | 3 +++
arch/mips/bits/syscall.h.in | 3 +++
arch/mips64/bits/syscall.h.in | 3 +++
arch/mipsn32/bits/syscall.h.in | 3 +++
arch/or1k/bits/syscall.h.in | 3 +++
arch/x32/bits/syscall.h.in | 3 +++
arch/x86_64/bits/syscall.h.in | 3 +++
9 files changed, 27 insertions(+)
diff --git a/arch/aarch64/bits/syscall.h.in b/arch/aarch64/bits/syscall.h.in
index 332f437..fd388ee 100644
--- a/arch/aarch64/bits/syscall.h.in
+++ b/arch/aarch64/bits/syscall.h.in
@@ -271,4 +271,7 @@
#define __NR_copy_file_range 285
#define __NR_preadv2 286
#define __NR_pwritev2 287
+#define __NR_pkey_mprotect 288
+#define __NR_pkey_alloc 289
+#define __NR_pkey_free 290
diff --git a/arch/arm/bits/syscall.h.in b/arch/arm/bits/syscall.h.in
index 04c8b1c..9b129b2 100644
--- a/arch/arm/bits/syscall.h.in
+++ b/arch/arm/bits/syscall.h.in
@@ -347,6 +347,9 @@
#define __NR_copy_file_range 391
#define __NR_preadv2 392
#define __NR_pwritev2 393
+#define __NR_pkey_mprotect 394
+#define __NR_pkey_alloc 395
+#define __NR_pkey_free 396
#define __ARM_NR_breakpoint 0x0f0001
#define __ARM_NR_cacheflush 0x0f0002
diff --git a/arch/i386/bits/syscall.h.in b/arch/i386/bits/syscall.h.in
index 5fe9c5c..3a1d927 100644
--- a/arch/i386/bits/syscall.h.in
+++ b/arch/i386/bits/syscall.h.in
@@ -378,4 +378,7 @@
#define __NR_copy_file_range 377
#define __NR_preadv2 378
#define __NR_pwritev2 379
+#define __NR_pkey_mprotect 380
+#define __NR_pkey_alloc 381
+#define __NR_pkey_free 382
diff --git a/arch/mips/bits/syscall.h.in b/arch/mips/bits/syscall.h.in
index bcceaa2..6c9b3d8 100644
--- a/arch/mips/bits/syscall.h.in
+++ b/arch/mips/bits/syscall.h.in
@@ -360,4 +360,7 @@
#define __NR_copy_file_range 4360
#define __NR_preadv2 4361
#define __NR_pwritev2 4362
+#define __NR_pkey_mprotect 4363
+#define __NR_pkey_alloc 4364
+#define __NR_pkey_free 4365
diff --git a/arch/mips64/bits/syscall.h.in b/arch/mips64/bits/syscall.h.in
index eef8543..a207133 100644
--- a/arch/mips64/bits/syscall.h.in
+++ b/arch/mips64/bits/syscall.h.in
@@ -320,4 +320,7 @@
#define __NR_copy_file_range 5320
#define __NR_preadv2 5321
#define __NR_pwritev2 5322
+#define __NR_pkey_mprotect 5323
+#define __NR_pkey_alloc 5324
+#define __NR_pkey_free 5325
diff --git a/arch/mipsn32/bits/syscall.h.in b/arch/mipsn32/bits/syscall.h.in
index 5fda0b5..d6b24e8 100644
--- a/arch/mipsn32/bits/syscall.h.in
+++ b/arch/mipsn32/bits/syscall.h.in
@@ -324,4 +324,7 @@
#define __NR_copy_file_range 6324
#define __NR_preadv2 6325
#define __NR_pwritev2 6326
+#define __NR_pkey_mprotect 6327
+#define __NR_pkey_alloc 6328
+#define __NR_pkey_free 6329
diff --git a/arch/or1k/bits/syscall.h.in b/arch/or1k/bits/syscall.h.in
index c6b6cf2..89788a9 100644
--- a/arch/or1k/bits/syscall.h.in
+++ b/arch/or1k/bits/syscall.h.in
@@ -271,4 +271,7 @@
#define __NR_copy_file_range 285
#define __NR_preadv2 286
#define __NR_pwritev2 287
+#define __NR_pkey_mprotect 288
+#define __NR_pkey_alloc 289
+#define __NR_pkey_free 290
diff --git a/arch/x32/bits/syscall.h.in b/arch/x32/bits/syscall.h.in
index e94dcb2..de6cffe 100644
--- a/arch/x32/bits/syscall.h.in
+++ b/arch/x32/bits/syscall.h.in
@@ -280,6 +280,9 @@
#define __NR_membarrier (0x40000000 + 324)
#define __NR_mlock2 (0x40000000 + 325)
#define __NR_copy_file_range (0x40000000 + 326)
+#define __NR_pkey_mprotect (0x40000000 + 329)
+#define __NR_pkey_alloc (0x40000000 + 330)
+#define __NR_pkey_free (0x40000000 + 331)
#define __NR_rt_sigaction (0x40000000 + 512)
#define __NR_rt_sigreturn (0x40000000 + 513)
diff --git a/arch/x86_64/bits/syscall.h.in b/arch/x86_64/bits/syscall.h.in
index d0c5518..6e743df 100644
--- a/arch/x86_64/bits/syscall.h.in
+++ b/arch/x86_64/bits/syscall.h.in
@@ -327,4 +327,7 @@
#define __NR_copy_file_range 326
#define __NR_preadv2 327
#define __NR_pwritev2 328
+#define __NR_pkey_mprotect 329
+#define __NR_pkey_alloc 330
+#define __NR_pkey_free 331
--
2.10.2
next prev parent reply other threads:[~2016-12-25 9:41 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-25 9:40 [PATCH 0/3] update to " Szabolcs Nagy
2016-12-25 9:41 ` Szabolcs Nagy [this message]
2016-12-25 9:42 ` [PATCH 2/3] add MS_NOREMOTELOCK mount flag from " Szabolcs Nagy
2016-12-25 9:43 ` [PATCH 3/3] update tcp_info struct to " Szabolcs Nagy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5a1760dbd694453365583ff6bdc13a61e3484f94.1482583912.git.nsz@port70.net \
--to=nsz@port70.net \
--cc=musl@lists.openwall.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).