]> granicus.if.org Git - strace/commit
xlat: add PR_SPEC_INDIRECT_BRANCH to pr_spec_cmds
authorEugene Syromyatnikov <evgsyr@gmail.com>
Fri, 14 Dec 2018 16:25:24 +0000 (17:25 +0100)
committerDmitry V. Levin <ldv@altlinux.org>
Wed, 26 Dec 2018 01:59:38 +0000 (01:59 +0000)
commit38ea49ad111f8a622756e62bc99cab6ce515dc27
tree9fa01f5d1bcd6e969030607360a153322f0fdd96
parentc065838680620ec9def1acffe28e463b9e2e1718
xlat: add PR_SPEC_INDIRECT_BRANCH to pr_spec_cmds

* xlat/pr_spec_cmds.in (PR_SPEC_INDIRECT_BRANCH): New constant,
introduced by Linux commit v4.20-rc5~4^2~3.
* prctl.c (SYS_FUNC(prctl)) <case PR_GET_SPECULATION_CTRL, case
PR_SET_SPECULATION_CTRL>: Add PR_SPEC_INDIRECT_BRANCH handling.
* tests/prctl-spec-inject.c (main): Add PR_SPEC_INDIRECT_BRANCH decoding
checks, update expected output.
* NEWS: Mention this.

Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
NEWS
prctl.c
tests/prctl-spec-inject.c
xlat/pr_spec_cmds.in