From ce317f2d0f0095087f8a6c83073f3aeb447cd738 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Mon, 15 Apr 2019 00:39:53 +0000 Subject: [PATCH] Wire up pkey_* and rseq syscalls on remaining architectures * linux/alpha/syscallent.h [524..527]: Wire up pkey_mprotect, pkey_alloc, pkey_free, and rseq syscalls introduced on this architecture by linux commit v5.1-rc1~160^2~3^2~3. * linux/hppa/syscallent.h [351..354]: Likewise. * linux/ia64/syscallent.h [1024 + 330..333]: Likewise. * linux/m68k/syscallent.h [381..384]: Likewise. * linux/sh/syscallent.h [384..387]: Likewise. * linux/sparc/syscallent.h [362..365]: Likewise. * linux/sparc64/syscallent.h: Likewise. * linux/s390/syscallent.h [384..386]: Wire up pkey_mprotect, pkey_alloc, and pkey_free syscalls introduced on this architecture by linux commit v5.1-rc1~160^2~3^2~3. * linux/s390x/syscallent.h: Likewise. * linux/xtensa/syscallent.h [352]: Wire up rseq syscall introduced on this architecture by linux commit v5.1-rc1~160^2~3^2~3. * NEWS: Mention this. --- NEWS | 4 ++++ linux/alpha/syscallent.h | 4 ++++ linux/hppa/syscallent.h | 4 ++++ linux/ia64/syscallent.h | 4 ++++ linux/m68k/syscallent.h | 4 ++++ linux/s390/syscallent.h | 3 +++ linux/s390x/syscallent.h | 3 +++ linux/sh/syscallent.h | 4 ++++ linux/sparc/syscallent.h | 4 ++++ linux/sparc64/syscallent.h | 4 ++++ linux/xtensa/syscallent.h | 1 + 11 files changed, 39 insertions(+) diff --git a/NEWS b/NEWS index 0ea37198..79d77b64 100644 --- a/NEWS +++ b/NEWS @@ -12,6 +12,10 @@ Noteworthy changes in release ?.? (????-??-??) on ia64. * Wired up seccomp syscall on m68k. * Wired up statx syscall on sh. + * Wired up pkey_mprotect, pkey_alloc, and pkey_free syscalls on alpha, hppa, + ia64, m68k, s390, s390x, sh, sparc, and sparc64. + * Wired up rseq syscall on alpha, hppa, ia64, m68k, sh, sparc, sparc64, + and xtensa. * Wired up direct ipc syscalls on m68k, mips o32, powerpc, powerpc64, s390, s390x, sh, sparc, sparc64, and x86. diff --git a/linux/alpha/syscallent.h b/linux/alpha/syscallent.h index 513633d1..f00b869b 100644 --- a/linux/alpha/syscallent.h +++ b/linux/alpha/syscallent.h @@ -467,3 +467,7 @@ [521] = { 6, TD, SEN(pwritev2), "pwritev2" }, [522] = { 5, TD|TF|TSTA, SEN(statx), "statx" }, [523] = { 6, 0, SEN(io_pgetevents), "io_pgetevents" }, +[524] = { 4, TM|SI, SEN(pkey_mprotect), "pkey_mprotect" }, +[525] = { 2, 0, SEN(pkey_alloc), "pkey_alloc" }, +[526] = { 1, 0, SEN(pkey_free), "pkey_free" }, +[527] = { 4, 0, SEN(rseq), "rseq" }, diff --git a/linux/hppa/syscallent.h b/linux/hppa/syscallent.h index acf34830..af171208 100644 --- a/linux/hppa/syscallent.h +++ b/linux/hppa/syscallent.h @@ -354,3 +354,7 @@ [348] = { 6, TD, SEN(pwritev2), "pwritev2" }, [349] = { 5, TD|TF|TSTA, SEN(statx), "statx" }, [350] = { 6, 0, SEN(io_pgetevents), "io_pgetevents" }, +[351] = { 4, TM|SI, SEN(pkey_mprotect), "pkey_mprotect" }, +[352] = { 2, 0, SEN(pkey_alloc), "pkey_alloc" }, +[353] = { 1, 0, SEN(pkey_free), "pkey_free" }, +[354] = { 4, 0, SEN(rseq), "rseq" }, diff --git a/linux/ia64/syscallent.h b/linux/ia64/syscallent.h index f588e7a1..fa63824e 100644 --- a/linux/ia64/syscallent.h +++ b/linux/ia64/syscallent.h @@ -337,3 +337,7 @@ [1024 + 327] = { 6, 0, SEN(io_pgetevents), "io_pgetevents" }, [1024 + 328] = { 5, TD, SEN(perf_event_open), "perf_event_open" }, [1024 + 329] = { 3, 0, SEN(seccomp), "seccomp" }, +[1024 + 330] = { 4, TM|SI, SEN(pkey_mprotect), "pkey_mprotect" }, +[1024 + 331] = { 2, 0, SEN(pkey_alloc), "pkey_alloc" }, +[1024 + 332] = { 1, 0, SEN(pkey_free), "pkey_free" }, +[1024 + 333] = { 4, 0, SEN(rseq), "rseq" }, diff --git a/linux/m68k/syscallent.h b/linux/m68k/syscallent.h index 63df71de..bf27442f 100644 --- a/linux/m68k/syscallent.h +++ b/linux/m68k/syscallent.h @@ -387,6 +387,10 @@ [378] = { 6, TD, SEN(pwritev2), "pwritev2" }, [379] = { 5, TD|TF|TSTA, SEN(statx), "statx" }, [380] = { 3, 0, SEN(seccomp), "seccomp" }, +[381] = { 4, TM|SI, SEN(pkey_mprotect), "pkey_mprotect" }, +[382] = { 2, 0, SEN(pkey_alloc), "pkey_alloc" }, +[383] = { 1, 0, SEN(pkey_free), "pkey_free" }, +[384] = { 4, 0, SEN(rseq), "rseq" }, /* room for arch specific calls */ [393] = { 3, TI, SEN(semget), "semget" }, [394] = { 4, TI, SEN(semctl), "semctl" }, diff --git a/linux/s390/syscallent.h b/linux/s390/syscallent.h index 1aaed93c..5baf00cb 100644 --- a/linux/s390/syscallent.h +++ b/linux/s390/syscallent.h @@ -393,6 +393,9 @@ [381] = { 5, TD, SEN(kexec_file_load), "kexec_file_load" }, [382] = { 6, 0, SEN(io_pgetevents), "io_pgetevents" }, [383] = { 4, 0, SEN(rseq), "rseq" }, +[384] = { 4, TM|SI, SEN(pkey_mprotect), "pkey_mprotect" }, +[385] = { 2, 0, SEN(pkey_alloc), "pkey_alloc" }, +[386] = { 1, 0, SEN(pkey_free), "pkey_free" }, /* room for arch specific calls */ [393] = { 3, TI, SEN(semget), "semget" }, [394] = { 4, TI, SEN(semctl), "semctl" }, diff --git a/linux/s390x/syscallent.h b/linux/s390x/syscallent.h index 0d89360f..379c0e29 100644 --- a/linux/s390x/syscallent.h +++ b/linux/s390x/syscallent.h @@ -377,6 +377,9 @@ [381] = { 5, TD, SEN(kexec_file_load), "kexec_file_load" }, [382] = { 6, 0, SEN(io_pgetevents), "io_pgetevents" }, [383] = { 4, 0, SEN(rseq), "rseq" }, +[384] = { 4, TM|SI, SEN(pkey_mprotect), "pkey_mprotect" }, +[385] = { 2, 0, SEN(pkey_alloc), "pkey_alloc" }, +[386] = { 1, 0, SEN(pkey_free), "pkey_free" }, /* room for arch specific calls */ [392] = { 4, TI, SEN(semtimedop), "semtimedop" }, [393] = { 3, TI, SEN(semget), "semget" }, diff --git a/linux/sh/syscallent.h b/linux/sh/syscallent.h index 268ff5df..f7104d12 100644 --- a/linux/sh/syscallent.h +++ b/linux/sh/syscallent.h @@ -390,6 +390,10 @@ [381] = { 6, TD, SEN(preadv2), "preadv2" }, [382] = { 6, TD, SEN(pwritev2), "pwritev2" }, [383] = { 5, TD|TF|TSTA, SEN(statx), "statx" }, +[384] = { 4, TM|SI, SEN(pkey_mprotect), "pkey_mprotect" }, +[385] = { 2, 0, SEN(pkey_alloc), "pkey_alloc" }, +[386] = { 1, 0, SEN(pkey_free), "pkey_free" }, +[387] = { 4, 0, SEN(rseq), "rseq" }, /* room for arch specific calls */ [393] = { 3, TI, SEN(semget), "semget" }, [394] = { 4, TI, SEN(semctl), "semctl" }, diff --git a/linux/sparc/syscallent.h b/linux/sparc/syscallent.h index 6e6ccd1c..4debb45b 100644 --- a/linux/sparc/syscallent.h +++ b/linux/sparc/syscallent.h @@ -367,6 +367,10 @@ [359] = { 6, TD, SEN(pwritev2), "pwritev2" }, [360] = { 5, TD|TF|TSTA, SEN(statx), "statx" }, [361] = { 6, 0, SEN(io_pgetevents), "io_pgetevents" }, +[362] = { 4, TM|SI, SEN(pkey_mprotect), "pkey_mprotect" }, +[363] = { 2, 0, SEN(pkey_alloc), "pkey_alloc" }, +[364] = { 1, 0, SEN(pkey_free), "pkey_free" }, +[365] = { 4, 0, SEN(rseq), "rseq" }, /* room for arch specific calls */ [393] = { 3, TI, SEN(semget), "semget" }, [394] = { 4, TI, SEN(semctl), "semctl" }, diff --git a/linux/sparc64/syscallent.h b/linux/sparc64/syscallent.h index 85e753aa..e079d388 100644 --- a/linux/sparc64/syscallent.h +++ b/linux/sparc64/syscallent.h @@ -365,6 +365,10 @@ [359] = { 6, TD, SEN(pwritev2), "pwritev2" }, [360] = { 5, TD|TF|TSTA, SEN(statx), "statx" }, [361] = { 6, 0, SEN(io_pgetevents), "io_pgetevents" }, +[362] = { 4, TM|SI, SEN(pkey_mprotect), "pkey_mprotect" }, +[363] = { 2, 0, SEN(pkey_alloc), "pkey_alloc" }, +[364] = { 1, 0, SEN(pkey_free), "pkey_free" }, +[365] = { 4, 0, SEN(rseq), "rseq" }, /* room for arch specific calls */ [392] = { 4, TI, SEN(semtimedop), "semtimedop" }, [393] = { 3, TI, SEN(semget), "semget" }, diff --git a/linux/xtensa/syscallent.h b/linux/xtensa/syscallent.h index 190071e1..4ed95753 100644 --- a/linux/xtensa/syscallent.h +++ b/linux/xtensa/syscallent.h @@ -347,3 +347,4 @@ [349] = { 2, 0, SEN(pkey_alloc), "pkey_alloc" }, [350] = { 1, 0, SEN(pkey_free), "pkey_free" }, [351] = { 5, TD|TF|TSTA, SEN(statx), "statx" }, +[352] = { 4, 0, SEN(rseq), "rseq" }, -- 2.40.0