From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1105) id BA8CE385840A; Fri, 3 Nov 2023 16:36:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BA8CE385840A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1699029417; bh=JscGtJ8r0dyqhc37x/b2BiJkSkhHc/zS9AEsDbGTGQg=; h=From:To:Subject:Date:From; b=i7yq5oz7qj7ratiQH+HBswIE7Inlxy4iHgwnb9t81bFt4lqjsVilSEtSK3gZ++g5C 1Onv5rOl0+Y7CFkaZ0PWzC36J2r5Ov/dsyuvxhAVj6Loneil0BqUWdqk0d84W4csB7 56v9TCGOmuk64f61fkRFPY10JKUq6jWhoMEkMWSQ= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Joseph Myers To: glibc-cvs@sourceware.org Subject: [glibc] Add SEGV_CPERR from Linux 6.6 to bits/siginfo-consts.h X-Act-Checkin: glibc X-Git-Author: Joseph Myers X-Git-Refname: refs/heads/master X-Git-Oldrev: d3476c20b29782453aa5d432a62eed4dde7d6269 X-Git-Newrev: ac79930498d1fa8a85f367c8e21cd2abbfa5bebb Message-Id: <20231103163657.BA8CE385840A@sourceware.org> Date: Fri, 3 Nov 2023 16:36:57 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=ac79930498d1fa8a85f367c8e21cd2abbfa5bebb commit ac79930498d1fa8a85f367c8e21cd2abbfa5bebb Author: Joseph Myers Date: Fri Nov 3 16:36:35 2023 +0000 Add SEGV_CPERR from Linux 6.6 to bits/siginfo-consts.h Linux 6.6 adds the constant SEGV_CPERR. Add it to glibc's bits/siginfo-consts.h. Tested for x86_64. Diff: --- sysdeps/unix/sysv/linux/bits/siginfo-consts.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sysdeps/unix/sysv/linux/bits/siginfo-consts.h b/sysdeps/unix/sysv/linux/bits/siginfo-consts.h index 49f7744739..2236def72c 100644 --- a/sysdeps/unix/sysv/linux/bits/siginfo-consts.h +++ b/sysdeps/unix/sysv/linux/bits/siginfo-consts.h @@ -134,8 +134,10 @@ enum # define SEGV_ADIPERR SEGV_ADIPERR SEGV_MTEAERR, /* Asynchronous ARM MTE error. */ # define SEGV_MTEAERR SEGV_MTEAERR - SEGV_MTESERR /* Synchronous ARM MTE exception. */ + SEGV_MTESERR, /* Synchronous ARM MTE exception. */ # define SEGV_MTESERR SEGV_MTESERR + SEGV_CPERR /* Control protection fault. */ +# define SEGV_CPERR SEGV_CPERR }; /* `si_code' values for SIGBUS signal. */