]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - debian/scripts/retpoline-extract
mm/tlb: Remove tlb_remove_table() non-concurrent condition
[mirror_ubuntu-bionic-kernel.git] / debian / scripts / retpoline-extract
CommitLineData
0fa05ca6
AW
1#!/bin/bash
2
3cd "$1" || exit 1
4
1e390209
AW
5# Find all valid retpoline information, collate the detected and
6# safe information together. Join the result to find the detected
7# but non-safe elements. These are our concern.
8tmp="/tmp/retpoline-check.$$"
9find "." -path './drivers/firmware/efi/libstub' -prune -o \
10 -path './arch/x86/boot' -prune -o \
11 -path './arch/x86/purgatory' -prune -o \
12 -name \*.ur-detected | xargs cat | \
13 sed -e "s@^$1@@" -e "s@ $2/@ @" -e "s@^/@@" | \
14 sort -k 1b,1 >"$tmp.ur-detected"
15find "." -name \*.ur-safe | xargs cat | \
16 sed -e "s@^$1@@" -e "s@^/@@" | \
17 sort -k 1b,1 >"$tmp.ur-safe"
18
19join -v 1 -j 1 "$tmp.ur-detected" "$tmp.ur-safe" | sed -s 's/[^ ]* *//'
20
21rm -f "$tmp".*