From 580549812a503413843c391bcd8a1f33a47078b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Lesimple?= Date: Thu, 17 Mar 2022 19:14:32 +0100 Subject: [PATCH] fix: retpoline: detection on 5.15.28+ (#420) --- spectre-meltdown-checker.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/spectre-meltdown-checker.sh b/spectre-meltdown-checker.sh index b4b8fb0..7cf9b3c 100755 --- a/spectre-meltdown-checker.sh +++ b/spectre-meltdown-checker.sh @@ -3769,8 +3769,11 @@ check_CVE_2017_5715_linux() # # if there is "retpoline" in the file and NOT "minimal", then it's full retpoline # (works for vanilla and Red Hat variants) + # + # since 5.15.28, this is now "Retpolines" as the implementation was switched to a generic one, + # so we look for both "retpoline" and "retpolines" if [ "$opt_live" = 1 ] && [ -n "$fullmsg" ]; then - if echo "$fullmsg" | grep -qwi retpoline; then + if echo "$fullmsg" | grep -qwi -e retpoline -e retpolines; then if echo "$fullmsg" | grep -qwi minimal; then retpoline_compiler=0 retpoline_compiler_reason="kernel reports minimal retpoline compilation"