Skip to content

Commit 2ff1c12

Browse files
georgepisaltuacatangiu
authored andcommitted
docs: update prod-host-setup with ssbd for arm
In our guide, we recommend enabling the SSBD mitiagtion through the kernel command line with `spec_store_bypass_disable=seccomp`. However, this only works for x86_64. Updated the guide with the addition of the mitigation in the Firecracker through `prctl` and the alternative through the `ssbd=force-on` kernel command line parameter. Signed-off-by: George Pisaltu <[email protected]>
1 parent 2aec785 commit 2ff1c12

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

docs/prod-host-setup.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,14 +220,24 @@ See more details [here](https://www.kernel.org/doc/html/latest/admin-guide/hw-vu
220220
This will mitigate variants of Spectre side-channel issues such as
221221
Speculative Store Bypass and SpectreNG.
222222

223-
It can be enabled by adding the following Linux kernel boot parameter:
223+
On x86_64 systems, it can be enabled by adding the following Linux kernel boot
224+
parameter:
224225

225226
```
226227
spec_store_bypass_disable=seccomp
227228
```
228229

229230
which will apply SSB if seccomp is enabled by Firecracker.
230231

232+
On aarch64 systems, it is enabled by Firecracker
233+
[using the `prctl` interface][3]. However, this is only availabe on host
234+
kernels Linux >=4.17 and also Amazon Linux 4.14. Alternatively, a global
235+
mitigation can be enabled by adding the following Linux kernel boot parameter:
236+
237+
```console
238+
ssbd=force-on
239+
```
240+
231241
Verification can be done by running:
232242

233243
```bash
@@ -327,3 +337,4 @@ to trap and control this in the hypervisor.
327337

328338
[1]: https://elixir.free-electrons.com/linux/v4.14.203/source/virt/kvm/arm/hyp/timer-sr.c#L63
329339
[2]: https://lists.cs.columbia.edu/pipermail/kvmarm/2017-January/023323.html
340+
[3]: https://elixir.bootlin.com/linux/v4.17/source/include/uapi/linux/prctl.h#L212

0 commit comments

Comments
 (0)