From 07861167197ad26df8d2d37210f05884eccd18fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Lesimple?= Date: Thu, 11 Jan 2018 12:15:31 +0100 Subject: [PATCH] fix(objdump): prefer -d instead of -D, some kernels crash objdump otherwise --- 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 0464425..e8e4c79 100755 --- a/spectre-meltdown-checker.sh +++ b/spectre-meltdown-checker.sh @@ -607,7 +607,7 @@ check_variant1() # in patched kernels, this is more around 70-80, sometimes way higher (100+) # v0.13: 68 found in a 3.10.23-xxxx-std-ipv6-64 (with lots of modules compiled-in directly), which doesn't have the LFENCE patches, # so let's push the threshold to 70. - nb_lfence=$(objdump -D "$vmlinux" | grep -wc lfence) + nb_lfence=$(objdump -d "$vmlinux" | grep -wc lfence) if [ "$nb_lfence" -lt 70 ]; then msg="only $nb_lfence opcodes found, should be >= 70, heuristic to be improved when official patches become available" status=VULN