the ptrace.h change is probably not ok (glibc added struct __ptrace_seccomp_metadata instead of the kernel struct seccomp_metadata, but the same is true for ptrace_peeksiginfo_args where musl currently follows linux instead of glibc, maybe that should be fixed?). the last patch is an unfinished proposal to add some new syscalls glibc already has, but i ran into some issues so comments are welcome. i ran the patch set through compile testing. Szabolcs Nagy (9): siginfo struct change following linux v4.16 elf.h: add NT_PPC_PKEY from linux v4.16 sys/epoll.h: add EPOLLNVAL from linux v4.16 netinet/if_ether.h: add ETH_P_ERSPAN2 from linux v4.16 netinet/if_ether.h: add ETH_TLEN from linux v4.16 sys/ptrace.h: add PTRACE_SECCOMP_GET_METADATA from linux v4.16 aarch64: add HWCAP_ASIMDFHM from linux v4.16 powerpc: add pkey syscall numbers from linux v4.16 [RFC] add new memory mapping related apis arch/aarch64/bits/hwcap.h | 1 + arch/powerpc/bits/mman.h | 4 ++++ arch/powerpc/bits/syscall.h.in | 3 +++ arch/powerpc64/bits/mman.h | 4 ++++ arch/powerpc64/bits/syscall.h.in | 3 +++ include/elf.h | 1 + include/netinet/if_ether.h | 2 ++ include/signal.h | 12 ++++++++---- include/sys/epoll.h | 1 + include/sys/mman.h | 24 +++++++++++++++++++++--- include/sys/ptrace.h | 6 ++++++ src/linux/memfd_create.c | 10 ++++++++++ src/linux/mlock2.c | 15 +++++++++++++++ src/linux/pkey_alloc.c | 15 +++++++++++++++ src/linux/pkey_get.c | 9 +++++++++ src/linux/pkey_mprotect.c | 15 +++++++++++++++ src/linux/pkey_set.c | 9 +++++++++ 17 files changed, 127 insertions(+), 7 deletions(-) create mode 100644 src/linux/memfd_create.c create mode 100644 src/linux/mlock2.c create mode 100644 src/linux/pkey_alloc.c create mode 100644 src/linux/pkey_get.c create mode 100644 src/linux/pkey_mprotect.c create mode 100644 src/linux/pkey_set.c -- 2.16.3