Commit a823911
fix: Add check for known vulnerabilities in guest
There is a REPTAR exception reported on m6i.metal for
guest kernel versions 4.14/5.10/6.1 when spectre-meltdown-checker.sh
script is run inside the guest from below the tests:
test_spectre_meltdown_checker_on_guest and
test_spectre_meltdown_checker_on_restored_guest
The same script when run on host doesn't report the
exception which means the instances are actually not vulnerable to
REPTAR.
The only reason why the script cannot determine if the guest
is vulnerable or not is because Firecracker does not expose
the microcode version to the guest.
The check is check_CVE_2023_23583_linux in spectre-meltdown-checker.sh
Since we have a test on host and the exception in guest is not valid,
we add a check to ignore this exception.
There could be more such exceptions added to
check_vulnerabilities_on_guest() in the future but generalising this
function based on instance kernel versions etc. without more data
looked like overkill right now so,
the function handles the exception only for REPTAR and m6i.
Signed-off-by: Sudan Landge <sudanl@amazon.com>1 parent 76c9028 commit a823911
1 file changed
+35
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
188 | 215 | | |
189 | 216 | | |
190 | 217 | | |
| |||
232 | 259 | | |
233 | 260 | | |
234 | 261 | | |
235 | | - | |
| 262 | + | |
236 | 263 | | |
237 | 264 | | |
238 | 265 | | |
239 | 266 | | |
240 | 267 | | |
| 268 | + | |
241 | 269 | | |
| 270 | + | |
| 271 | + | |
242 | 272 | | |
243 | 273 | | |
244 | 274 | | |
| |||
251 | 281 | | |
252 | 282 | | |
253 | 283 | | |
254 | | - | |
| 284 | + | |
255 | 285 | | |
256 | 286 | | |
257 | 287 | | |
258 | 288 | | |
259 | 289 | | |
260 | 290 | | |
261 | 291 | | |
| 292 | + | |
262 | 293 | | |
| 294 | + | |
| 295 | + | |
263 | 296 | | |
264 | 297 | | |
265 | 298 | | |
| |||
0 commit comments