git: f6911b941f14 - main - sys: Renumber MTE SEGV codes

From: Andrew Turner <andrew_at_FreeBSD.org>
Date: Fri, 29 May 2026 16:06:28 UTC
The branch main has been updated by andrew:

URL: https://cgit.FreeBSD.org/src/commit/?id=f6911b941f142aef47479d7ec631724bff138f5c

commit f6911b941f142aef47479d7ec631724bff138f5c
Author:     Andrew Turner <andrew@FreeBSD.org>
AuthorDate: 2026-05-29 15:22:29 +0000
Commit:     Andrew Turner <andrew@FreeBSD.org>
CommitDate: 2026-05-29 16:06:14 +0000

    sys: Renumber MTE SEGV codes
    
    Some third party software expects these to not conflict. As the MTE
    support isn't fully in the tree, and these values aren't in a release
    we can renumber them without any backwards compatibility issues.
    
    Sponsored by:   Arm Ltd
---
 sys/sys/signal.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys/sys/signal.h b/sys/sys/signal.h
index 863b981c2b7a..792087f735a1 100644
--- a/sys/sys/signal.h
+++ b/sys/sys/signal.h
@@ -307,8 +307,8 @@ struct __siginfo32 {
 #define SEGV_ACCERR	2	/* Invalid permissions for mapped	*/
 				/* object.				*/
 #define	SEGV_PKUERR	100	/* x86: PKU violation			*/
-#define	SEGV_MTEAERR	100	/* arm64: Asynchronous Arm MTE error	*/
-#define	SEGV_MTESERR	101	/* arm64: Synchronous Arm MTE error	*/
+#define	SEGV_MTEAERR	200	/* arm64: Asynchronous Arm MTE error	*/
+#define	SEGV_MTESERR	201	/* arm64: Synchronous Arm MTE error	*/
 
 /* codes for SIGFPE */
 #define FPE_INTOVF	1	/* Integer overflow.			*/