[00/11] updates for linux v5.10

Submitted by Szabolcs Nagy on Dec. 23, 2020, 9:13 p.m.

Details

Message ID 20201223211323.GX1370092@port70.net
State New
Series "updates for linux v5.10"
Headers show

Patch hide | download patch | download mbox

From a59b294c583a899a4c16c7dc951e451e22b7dba3 Mon Sep 17 00:00:00 2001
From: Szabolcs Nagy <nsz@port70.net>
Date: Sat, 19 Dec 2020 22:29:19 +0000
Subject: [PATCH 11/11] aarch64/bits/mman.h: add PROT_MTE from linux v5.10

see

  linux commit 9f3419315f3cdc41a7318e4d50ba18a592b30c8c
  arm64: mte: Add PROT_MTE support to mmap() and mprotect()
---
 arch/aarch64/bits/mman.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/aarch64/bits/mman.h b/arch/aarch64/bits/mman.h
index 6d9d8850..8fad5ceb 100644
--- a/arch/aarch64/bits/mman.h
+++ b/arch/aarch64/bits/mman.h
@@ -1 +1,2 @@ 
 #define PROT_BTI 0x10
+#define PROT_MTE 0x20
-- 
2.28.0


Comments

Szabolcs Nagy Feb. 14, 2021, 7:02 p.m.
* Szabolcs Nagy <nsz@port70.net> [2020-12-23 22:13:23 +0100]:
> with some missed aarch64 v5.8 bits.
> 
> i noticed that v5.2 had new syscalls with new macros defined
> in linux/mount.h, but since those syscalls are undocumented
> (open_tree, move_mount, fsopen, fsconfig, fsmount and fspick)
> i think it's fine to leave those macros out but the new flag
> for mount is added.
> 
> Szabolcs Nagy (11):
>   bits/syscall.h: add process_madvise from linux v5.10
>   sys/membarrier.h: add new constants from linux v5.10
>   sys/mount.h: add MS_NOSYMFOLLOW from linux v5.10
>   sys/mman.h: add MAP_HUGE_16KB from linux v5.10
>   elf.h: add NT_ARM_TAGGED_ADDR_CTRL from linux v5.10
>   sys/prctl.h: add MTE related constants from linux v5.10
>   signal.h: add MTE specific SIGSEGV codes from linux v5.10
>   aarch64/bits/hwcap.h: add HWCAP2_BTI from linux v5.8
>   add aarch64/bits/mman.h with PROT_BTI from linux v5.8
>   aarch64/bits/hwcap.h: add HWCAP2_MTE from linux v5.10
>   aarch64/bits/mman.h: add PROT_MTE from linux v5.10

ping.

> 
>  arch/aarch64/bits/hwcap.h         | 2 ++
>  arch/aarch64/bits/mman.h          | 2 ++
>  arch/aarch64/bits/syscall.h.in    | 1 +
>  arch/arm/bits/syscall.h.in        | 1 +
>  arch/i386/bits/syscall.h.in       | 1 +
>  arch/m68k/bits/syscall.h.in       | 1 +
>  arch/microblaze/bits/syscall.h.in | 1 +
>  arch/mips/bits/syscall.h.in       | 1 +
>  arch/mips64/bits/syscall.h.in     | 1 +
>  arch/mipsn32/bits/syscall.h.in    | 1 +
>  arch/or1k/bits/syscall.h.in       | 1 +
>  arch/powerpc/bits/syscall.h.in    | 1 +
>  arch/powerpc64/bits/syscall.h.in  | 1 +
>  arch/riscv64/bits/syscall.h.in    | 1 +
>  arch/s390x/bits/syscall.h.in      | 1 +
>  arch/sh/bits/syscall.h.in         | 1 +
>  arch/x32/bits/syscall.h.in        | 1 +
>  arch/x86_64/bits/syscall.h.in     | 1 +
>  include/elf.h                     | 1 +
>  include/signal.h                  | 2 ++
>  include/sys/membarrier.h          | 4 ++++
>  include/sys/mman.h                | 1 +
>  include/sys/mount.h               | 1 +
>  include/sys/prctl.h               | 7 +++++++
>  24 files changed, 36 insertions(+)
>  create mode 100644 arch/aarch64/bits/mman.h
Rich Felker Feb. 15, 2021, 2:18 p.m.
On Sun, Feb 14, 2021 at 08:02:24PM +0100, Szabolcs Nagy wrote:
> * Szabolcs Nagy <nsz@port70.net> [2020-12-23 22:13:23 +0100]:
> > with some missed aarch64 v5.8 bits.
> > 
> > i noticed that v5.2 had new syscalls with new macros defined
> > in linux/mount.h, but since those syscalls are undocumented
> > (open_tree, move_mount, fsopen, fsconfig, fsmount and fspick)
> > i think it's fine to leave those macros out but the new flag
> > for mount is added.
> > 
> > Szabolcs Nagy (11):
> >   bits/syscall.h: add process_madvise from linux v5.10
> >   sys/membarrier.h: add new constants from linux v5.10
> >   sys/mount.h: add MS_NOSYMFOLLOW from linux v5.10
> >   sys/mman.h: add MAP_HUGE_16KB from linux v5.10
> >   elf.h: add NT_ARM_TAGGED_ADDR_CTRL from linux v5.10
> >   sys/prctl.h: add MTE related constants from linux v5.10
> >   signal.h: add MTE specific SIGSEGV codes from linux v5.10
> >   aarch64/bits/hwcap.h: add HWCAP2_BTI from linux v5.8
> >   add aarch64/bits/mman.h with PROT_BTI from linux v5.8
> >   aarch64/bits/hwcap.h: add HWCAP2_MTE from linux v5.10
> >   aarch64/bits/mman.h: add PROT_MTE from linux v5.10
> 
> ping.

Thanks, applying. BTW could you check that your editor settings for
musl commits wrap at 75 columns or fewer (making 79 with default git
log indent)? I reflowed one of these and another patch a few days ago.

Rich
Szabolcs Nagy Feb. 15, 2021, 6:36 p.m.
* Rich Felker <dalias@libc.org> [2021-02-15 09:18:20 -0500]:
> Thanks, applying. BTW could you check that your editor settings for
> musl commits wrap at 75 columns or fewer (making 79 with default git
> log indent)? I reflowed one of these and another patch a few days ago.

ok.