]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
UBUNTU: [Packaging] retpoline -- elide %rip relative indirections
authorAndy Whitcroft <apw@canonical.com>
Sun, 25 Mar 2018 10:05:54 +0000 (11:05 +0100)
committerSeth Forshee <seth.forshee@canonical.com>
Wed, 28 Mar 2018 15:04:28 +0000 (10:04 -0500)
BugLink: http://bugs.launchpad.net/bugs/1758856
These are always safe because there is no way rip can be an unknown.

Signed-off-by: Andy Whitcroft <apw@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
debian/scripts/retpoline-extract-one

index 09d7585a16ebb0d32e5d793049c216f2dbe0e657..e8c450a6eb25c7373815f771c3f4ca48afb0a788 100755 (executable)
@@ -223,6 +223,9 @@ disassemble()
                BEGIN                           { file="'"$object"'"; src="'"$src"'"; }
                /Disassembly of section/        { segment=$4; sub(":", "", segment); }
                /^[0-9a-f][0-9a-f]* <.*>:/      { tag=$0; sub(".*<", "", tag); sub(">.*", "", tag); }
+               $0 ~ /(call|jmp)q?  *\*0x[0-9a-f]*\(%rip\)/ {
+                       next
+               }
                $0 ~ /(call|jmp)q?  *\*.*%/ {
                        sub(":", "", $1);
                        if ('"$selector"') {