]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: Add support for PR_SPEC_DISABLE_NOEXEC prctl() option
authorWill Deacon <will@kernel.org>
Mon, 28 Sep 2020 13:03:00 +0000 (14:03 +0100)
committerWill Deacon <will@kernel.org>
Tue, 29 Sep 2020 15:08:17 +0000 (16:08 +0100)
commit4f26006f5a69d3740c7f8564cd796d42c28ee68b
tree1af4d1abd14d9882e5ac4cced04406f9ee8a022c
parent5f15c2a725255cd65ba4eabc29b838e832afc0a9
arm64: Add support for PR_SPEC_DISABLE_NOEXEC prctl() option

The PR_SPEC_DISABLE_NOEXEC option to the PR_SPEC_STORE_BYPASS prctl()
allows the SSB mitigation to be enabled only until the next execve(),
at which point the state will revert back to PR_SPEC_ENABLE and the
mitigation will be disabled.

Add support for PR_SPEC_DISABLE_NOEXEC on arm64.

Reported-by: Anthony Steinhauser <asteinhauser@google.com>
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/process.c
arch/arm64/kernel/proton-pack.c