]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: ssbd: Add prctl interface for per-thread mitigation
authorMarc Zyngier <marc.zyngier@arm.com>
Tue, 29 May 2018 12:11:14 +0000 (13:11 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Thu, 31 May 2018 17:00:52 +0000 (18:00 +0100)
commitb94b7b9318cf5136825cc01e804ca9798ce75e5c
tree1fccf0876af0391feb8b53de26f31b1892fb3208
parentb3c5275e746adc82c3faaa874fe5b4e7c5b2f7c8
arm64: ssbd: Add prctl interface for per-thread mitigation

If running on a system that performs dynamic SSBD mitigation, allow
userspace to request the mitigation for itself. This is implemented
as a prctl call, allowing the mitigation to be enabled or disabled at
will for this particular thread.

Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/Makefile
arch/arm64/kernel/ssbd.c [new file with mode: 0644]