Skip to content

Commit d3460c7

Browse files
georgepisaltugbionescu
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 9e6e3d1 commit d3460c7

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

docs/prod-host-setup.md

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

142-
It can be enabled by adding the following Linux kernel boot parameter:
142+
On x86_64 systems, it can be enabled by adding the following Linux kernel boot
143+
parameter:
143144

144145
```
145146
spec_store_bypass_disable=seccomp
146147
```
147148

148149
which will apply SSB if seccomp is enabled by Firecracker.
149150

151+
On aarch64 systems, it is enabled by Firecracker
152+
[using the `prctl` interface][1]. However, this is only availabe on host
153+
kernels Linux >=4.17 and also Amazon Linux 4.14. Alternatively, a global
154+
mitigation can be enabled by adding the following Linux kernel boot parameter:
155+
156+
```console
157+
ssbd=force-on
158+
```
159+
150160
Verification can be done by running:
151161

152162
```bash
@@ -235,3 +245,5 @@ The fix was integrated in the mainline kernel and in 4.19.103, 5.4.19, 5.5.3
235245
stable kernel releases. Please follow [kernel.org](https://www.kernel.org/) and
236246
once the fix is available in your stable release please update the host kernel.
237247
If you are not using a vanilla kernel, please check with Linux distro provider.
248+
249+
[1]: https://elixir.bootlin.com/linux/v4.17/source/include/uapi/linux/prctl.h#L212

0 commit comments

Comments
 (0)