From ec2824e824fac75e06812f12031a97b551e65389 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Lesimple?= Date: Tue, 25 May 2021 08:14:22 +0200 Subject: [PATCH] fix: has_vmm false positive with pcp Fix by matching the full procname with pgrep (-x), so that the 'pmdakvm' process doesn't match. Closes #394 --- spectre-meltdown-checker.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spectre-meltdown-checker.sh b/spectre-meltdown-checker.sh index 3ada94f..76f3494 100755 --- a/spectre-meltdown-checker.sh +++ b/spectre-meltdown-checker.sh @@ -3193,7 +3193,7 @@ check_has_vmm() # for each binary we want to grep, get the pids for _binary in qemu kvm xenstored xenconsoled do - for _pid in $(pgrep $_binary) + for _pid in $(pgrep -x $_binary) do # resolve the exe symlink, if it doesn't resolve with -m, # which doesn't even need the dest to exist, it means the symlink