diff options
author | Eugene Syromyatnikov <evgsyr@gmail.com> | 2019-01-03 16:07:42 +0100 |
---|---|---|
committer | Eugene Syromyatnikov <evgsyr@gmail.com> | 2019-01-03 16:07:42 +0100 |
commit | 4043bcb335a17b4d840bad6575ab254723edb913 (patch) | |
tree | 81118e28c7ad457a3bd900d01c34a9ccad018024 | |
parent | 9122663e31df47cba4c503aba5a250b6d0751b23 (diff) | |
download | strace-4043bcb335a17b4d840bad6575ab254723edb913.tar.gz |
prctl: decode PR_PAC_RESET_KEYS option
Introduced by Linux commit v4.20-rc3-121-gba8308856564.
* xlat/prctl_options.in (PR_PAC_RESET_KEYS): New constant.
* xlat/pr_pac_reset_keys_flags.in: New file.
* prctl.c: Include "xlat/pr_pac_reset_keys_flags.h".
(SYS_FUNC(prctl)): Decode PR_PAC_RESET_KEYS.
-rw-r--r-- | prctl.c | 7 | ||||
-rw-r--r-- | xlat/pr_pac_reset_keys_flags.in | 5 | ||||
-rw-r--r-- | xlat/prctl_options.in | 1 |
3 files changed, 13 insertions, 0 deletions
@@ -41,6 +41,7 @@ #include "xlat/pr_fp_mode.h" #include "xlat/pr_mce_kill.h" #include "xlat/pr_mce_kill_policy.h" +#include "xlat/pr_pac_reset_keys_flags.h" #include "xlat/pr_set_mm.h" #include "xlat/pr_spec_cmds.h" #include "xlat/pr_spec_get_store_bypass_flags.h" @@ -428,6 +429,12 @@ SYS_FUNC(prctl) return RVAL_DECODED; + case PR_PAC_RESET_KEYS: + tprints(", "); + printflags(pr_pac_reset_keys_flags, arg2, "PR_PAC_???"); + print_prctl_args(tcp, 2); + return RVAL_DECODED; + case PR_GET_NO_NEW_PRIVS: case PR_GET_THP_DISABLE: case PR_MPX_DISABLE_MANAGEMENT: diff --git a/xlat/pr_pac_reset_keys_flags.in b/xlat/pr_pac_reset_keys_flags.in new file mode 100644 index 000000000..86c71b78e --- /dev/null +++ b/xlat/pr_pac_reset_keys_flags.in @@ -0,0 +1,5 @@ +PR_PAC_APIAKEY (1 << 0) +PR_PAC_APIBKEY (1 << 1) +PR_PAC_APDAKEY (1 << 2) +PR_PAC_APDBKEY (1 << 3) +PR_PAC_APGAKEY (1 << 4) diff --git a/xlat/prctl_options.in b/xlat/prctl_options.in index 82787e339..22706faf0 100644 --- a/xlat/prctl_options.in +++ b/xlat/prctl_options.in @@ -48,4 +48,5 @@ PR_SVE_SET_VL 50 PR_SVE_GET_VL 51 PR_GET_SPECULATION_CTRL 52 PR_SET_SPECULATION_CTRL 53 +PR_PAC_RESET_KEYS 54 PR_SET_VMA 0x53564d41 |