From d8bf3805d12f64d408946e10d8dbf67a7d2330e0 Mon Sep 17 00:00:00 2001 From: Slava Bacherikov Date: Wed, 2 Feb 2022 13:39:46 +0200 Subject: printsiginfo: decode siginfo_t.si_pkey field This adds decoding of si_pkey field which is set on SIGSEGV in case of memory access violation on some modern CPUs (these have pku flag in /proc/cpuinfo). * NEWS: Mention this change. * configure.ac (AC_CHECK_MEMBERS): Check for siginfo_t.si_pkey. * src/printsiginfo.c (print_si_info) [HAVE_SIGINFO_T_SI_PKEY]: Decode si_pkey field. --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index d17ba04a7..27faa1a81 100644 --- a/configure.ac +++ b/configure.ac @@ -423,7 +423,8 @@ AC_CHECK_MEMBERS([struct utsname.domainname],,, [#include ]) AC_CHECK_MEMBERS(m4_normalize([ siginfo_t.si_syscall, siginfo_t.si_timerid, - siginfo_t.si_overrun + siginfo_t.si_overrun, + siginfo_t.si_pkey ]),,, [#include ]) AC_CHECK_HEADERS(m4_normalize([ -- cgit v1.2.1