From a9e7cae9980eef681f419a6e746fc91b834c3eda Mon Sep 17 00:00:00 2001 From: Michal Suchanek Date: Apr 11 2024 17:56:54 +0000 Subject: Merge branch 'users/mhocko/scripts/for-next' into scripts --- diff --git a/scripts/check-kernel-fix b/scripts/check-kernel-fix index 6429f27..cfa9577 100755 --- a/scripts/check-kernel-fix +++ b/scripts/check-kernel-fix @@ -375,7 +375,8 @@ if [ -n "$cve" ] then bsc=$(cve2bugzilla $cve $refresh) [ -z "$cvss" ] && cvss=$(cve2cvss $cve $refresh) - echo "Security fix for $cve $bsc with CVSS ${cvss:-unknown (assuming high impact), re-check later with -r}" + echo "Security fix for $cve $bsc with CVSS ${cvss:-unknown, re-check with -r or use -s score if the score is in bugzilla whiteboard}" + [ -z "$cvss" ] && exit 1 else # emulate no CVE fix as CVSS==0. This will typically happen # for upstream commit with Fixes: which we want to target to diff --git a/scripts/common-functions b/scripts/common-functions index 161007f..f5b8aee 100644 --- a/scripts/common-functions +++ b/scripts/common-functions @@ -68,7 +68,7 @@ cve2sha() { local arg=$1 local REFRESH=$2 - sha="$(cd $VULNS_GIT; [ -n "$REFRESH" ] && git pull >/dev/null 2>&1; scripts/cve_search $arg 2>/dev/null | cut -d" " -f7)" + sha="$(cd $VULNS_GIT; [ -n "$REFRESH" ] && git pull >/dev/null 2>&1; scripts/cve_search $arg 2>/dev/null | head -n1 | cut -d" " -f7)" if [ $(echo $sha | wc -c) -eq 41 ] then