2018-01-15 14:26:15 +03:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
2018-01-06 17:13:39 +03:00
|
|
|
From: Ingo Molnar <mingo@kernel.org>
|
|
|
|
Date: Tue, 14 Nov 2017 07:24:22 +0100
|
2018-01-15 14:26:15 +03:00
|
|
|
Subject: [PATCH] tools/headers: Sync objtool UAPI header
|
2018-01-06 17:13:39 +03:00
|
|
|
MIME-Version: 1.0
|
|
|
|
Content-Type: text/plain; charset=UTF-8
|
|
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
|
|
|
|
CVE-2017-5754
|
|
|
|
|
|
|
|
objtool grew this new warning:
|
|
|
|
|
|
|
|
Warning: synced file at 'tools/objtool/arch/x86/include/asm/inat.h' differs from latest kernel version at 'arch/x86/include/asm/inat.h'
|
|
|
|
|
|
|
|
which upstream header grew new INAT_SEG_* definitions.
|
|
|
|
|
|
|
|
Sync up the tooling version of the header.
|
|
|
|
|
|
|
|
Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
|
|
|
|
Cc: Josh Poimboeuf <jpoimboe@redhat.com>
|
|
|
|
Cc: Peter Zijlstra <peterz@infradead.org>
|
|
|
|
Cc: Thomas Gleixner <tglx@linutronix.de>
|
|
|
|
Cc: linux-kernel@vger.kernel.org
|
|
|
|
Signed-off-by: Ingo Molnar <mingo@kernel.org>
|
|
|
|
(cherry picked from commit 1ca1d1e5618960574fb01507dbab07e5337049a1)
|
|
|
|
Signed-off-by: Andy Whitcroft <apw@canonical.com>
|
|
|
|
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
|
|
|
|
(cherry picked from commit 3dd05d51e337e9d780fb0e7c46d7216a79380d7b)
|
|
|
|
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
|
|
|
|
---
|
|
|
|
tools/objtool/arch/x86/include/asm/inat.h | 10 ++++++++++
|
|
|
|
1 file changed, 10 insertions(+)
|
|
|
|
|
|
|
|
diff --git a/tools/objtool/arch/x86/include/asm/inat.h b/tools/objtool/arch/x86/include/asm/inat.h
|
|
|
|
index 02aff0867211..1c78580e58be 100644
|
|
|
|
--- a/tools/objtool/arch/x86/include/asm/inat.h
|
|
|
|
+++ b/tools/objtool/arch/x86/include/asm/inat.h
|
|
|
|
@@ -97,6 +97,16 @@
|
|
|
|
#define INAT_MAKE_GROUP(grp) ((grp << INAT_GRP_OFFS) | INAT_MODRM)
|
|
|
|
#define INAT_MAKE_IMM(imm) (imm << INAT_IMM_OFFS)
|
|
|
|
|
|
|
|
+/* Identifiers for segment registers */
|
|
|
|
+#define INAT_SEG_REG_IGNORE 0
|
|
|
|
+#define INAT_SEG_REG_DEFAULT 1
|
|
|
|
+#define INAT_SEG_REG_CS 2
|
|
|
|
+#define INAT_SEG_REG_SS 3
|
|
|
|
+#define INAT_SEG_REG_DS 4
|
|
|
|
+#define INAT_SEG_REG_ES 5
|
|
|
|
+#define INAT_SEG_REG_FS 6
|
|
|
|
+#define INAT_SEG_REG_GS 7
|
|
|
|
+
|
|
|
|
/* Attribute search APIs */
|
|
|
|
extern insn_attr_t inat_get_opcode_attribute(insn_byte_t opcode);
|
|
|
|
extern int inat_get_last_prefix_id(insn_byte_t last_pfx);
|
|
|
|
--
|
|
|
|
2.14.2
|
|
|
|
|