]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: proton-pack: Include unprivileged eBPF status in Spectre v2 mitigation reporting
authorJames Morse <james.morse@arm.com>
Thu, 3 Mar 2022 16:53:56 +0000 (16:53 +0000)
committerJames Morse <james.morse@arm.com>
Mon, 7 Mar 2022 17:25:52 +0000 (17:25 +0000)
commit1e68766430a45b01ef9bae685796718730aa6208
tree85b2116c1f354ba0195aefa668b72ac598721436
parentcc2a4ef682bfe85cf22ca4462858ebf93fc41604
arm64: proton-pack: Include unprivileged eBPF status in Spectre v2 mitigation reporting

The mitigations for Spectre-BHB are only applied when an exception is
taken from user-space. The mitigation status is reported via the spectre_v2
sysfs vulnerabilities file.

When unprivileged eBPF is enabled the mitigation in the exception vectors
can be avoided by an eBPF program.

When unprivileged eBPF is enabled, print a warning and report vulnerable
via the sysfs vulnerabilities file.

Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: James Morse <james.morse@arm.com>
arch/arm64/kernel/proton-pack.c