diff mbox series

Add SEGV_MTEAERR and SEGV_MTESERR from Linux 5.10

Message ID alpine.DEB.2.22.394.2101061733480.117969@digraph.polyomino.org.uk
State Committed
Commit 3016596a819aeedfdc7d658435016be413a1fca7
Headers show
Series Add SEGV_MTEAERR and SEGV_MTESERR from Linux 5.10 | expand

Commit Message

Joseph Myers Jan. 6, 2021, 5:34 p.m. UTC
Linux 5.10 adds constants SEGV_MTEAERR and SEGV_MTESERR to
asm-generic/siginfo.h.  Add these to glibc's bits/siginfo-consts.h.

Tested for x86_64.

Comments

Szabolcs Nagy Jan. 6, 2021, 6:22 p.m. UTC | #1
The 01/06/2021 17:34, Joseph Myers wrote:
> Linux 5.10 adds constants SEGV_MTEAERR and SEGV_MTESERR to
> asm-generic/siginfo.h.  Add these to glibc's bits/siginfo-consts.h.
> 
> Tested for x86_64.

thanks, this looks good to me.

> 
> diff --git a/sysdeps/unix/sysv/linux/bits/siginfo-consts.h b/sysdeps/unix/sysv/linux/bits/siginfo-consts.h
> index 3bbe04b941..48033278b3 100644
> --- a/sysdeps/unix/sysv/linux/bits/siginfo-consts.h
> +++ b/sysdeps/unix/sysv/linux/bits/siginfo-consts.h
> @@ -130,8 +130,12 @@ enum
>  #  define SEGV_ACCADI	SEGV_ACCADI
>    SEGV_ADIDERR,			/* Disrupting MCD error.  */
>  #  define SEGV_ADIDERR	SEGV_ADIDERR
> -  SEGV_ADIPERR			/* Precise MCD exception.  */
> +  SEGV_ADIPERR,			/* Precise MCD exception.  */
>  #  define SEGV_ADIPERR	SEGV_ADIPERR
> +  SEGV_MTEAERR,			/* Asynchronous ARM MTE error.  */
> +#  define SEGV_MTEAERR	SEGV_MTEAERR
> +  SEGV_MTESERR			/* Synchronous ARM MTE exception.  */
> +#  define SEGV_MTESERR	SEGV_MTESERR
>  };
>  
>  /* `si_code' values for SIGBUS signal.  */
> 
> -- 
> Joseph S. Myers
> joseph@codesourcery.com
diff mbox series

Patch

diff --git a/sysdeps/unix/sysv/linux/bits/siginfo-consts.h b/sysdeps/unix/sysv/linux/bits/siginfo-consts.h
index 3bbe04b941..48033278b3 100644
--- a/sysdeps/unix/sysv/linux/bits/siginfo-consts.h
+++ b/sysdeps/unix/sysv/linux/bits/siginfo-consts.h
@@ -130,8 +130,12 @@  enum
 #  define SEGV_ACCADI	SEGV_ACCADI
   SEGV_ADIDERR,			/* Disrupting MCD error.  */
 #  define SEGV_ADIDERR	SEGV_ADIDERR
-  SEGV_ADIPERR			/* Precise MCD exception.  */
+  SEGV_ADIPERR,			/* Precise MCD exception.  */
 #  define SEGV_ADIPERR	SEGV_ADIPERR
+  SEGV_MTEAERR,			/* Asynchronous ARM MTE error.  */
+#  define SEGV_MTEAERR	SEGV_MTEAERR
+  SEGV_MTESERR			/* Synchronous ARM MTE exception.  */
+#  define SEGV_MTESERR	SEGV_MTESERR
 };
 
 /* `si_code' values for SIGBUS signal.  */