fix(objdump): prefer -d instead of -D, some kernels crash objdump otherwise

This commit is contained in:
Stéphane Lesimple 2018-01-11 12:15:31 +01:00
parent f7dd6f2f6b
commit 0786116719
1 changed files with 1 additions and 1 deletions

View File

@ -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