Add SEGV_CPERR from Linux 6.6 to bits/siginfo-consts.h
Checks
Context |
Check |
Description |
redhat-pt-bot/TryBot-apply_patch |
success
|
Patch applied to master at the time it was sent
|
linaro-tcwg-bot/tcwg_glibc_build--master-aarch64 |
warning
|
Patch is already merged
|
redhat-pt-bot/TryBot-32bit |
success
|
Build for i686
|
linaro-tcwg-bot/tcwg_glibc_check--master-aarch64 |
warning
|
Patch is already merged
|
linaro-tcwg-bot/tcwg_glibc_build--master-arm |
warning
|
Patch is already merged
|
linaro-tcwg-bot/tcwg_glibc_check--master-arm |
warning
|
Patch is already merged
|
Commit Message
Linux 6.6 adds the constant SEGV_CPERR. Add it to glibc's
bits/siginfo-consts.h.
Tested for x86_64.
Comments
On 03/11/23 13:21, Joseph Myers wrote:
> Linux 6.6 adds the constant SEGV_CPERR. Add it to glibc's
> bits/siginfo-consts.h.
>
> Tested for x86_64.
>
LGTM, thanks.
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
> 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. */
>
@@ -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. */