]> git.proxmox.com Git - pve-kernel.git/blame - patches/kernel/0132-tools-headers-Sync-objtool-UAPI-header.patch
revert buggy SCSI error handler commit
[pve-kernel.git] / patches / kernel / 0132-tools-headers-Sync-objtool-UAPI-header.patch
CommitLineData
321d628a
FG
1From 6723159121227f7f8d32c09ea4c2237a40266880 Mon Sep 17 00:00:00 2001
2From: Ingo Molnar <mingo@kernel.org>
3Date: Tue, 14 Nov 2017 07:24:22 +0100
633c5ed1 4Subject: [PATCH 132/242] tools/headers: Sync objtool UAPI header
321d628a
FG
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9CVE-2017-5754
10
11objtool grew this new warning:
12
13 Warning: synced file at 'tools/objtool/arch/x86/include/asm/inat.h' differs from latest kernel version at 'arch/x86/include/asm/inat.h'
14
15which upstream header grew new INAT_SEG_* definitions.
16
17Sync up the tooling version of the header.
18
19Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
20Cc: Josh Poimboeuf <jpoimboe@redhat.com>
21Cc: Peter Zijlstra <peterz@infradead.org>
22Cc: Thomas Gleixner <tglx@linutronix.de>
23Cc: linux-kernel@vger.kernel.org
24Signed-off-by: Ingo Molnar <mingo@kernel.org>
25(cherry picked from commit 1ca1d1e5618960574fb01507dbab07e5337049a1)
26Signed-off-by: Andy Whitcroft <apw@canonical.com>
27Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
28(cherry picked from commit 3dd05d51e337e9d780fb0e7c46d7216a79380d7b)
29Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
30---
31 tools/objtool/arch/x86/include/asm/inat.h | 10 ++++++++++
32 1 file changed, 10 insertions(+)
33
34diff --git a/tools/objtool/arch/x86/include/asm/inat.h b/tools/objtool/arch/x86/include/asm/inat.h
35index 02aff0867211..1c78580e58be 100644
36--- a/tools/objtool/arch/x86/include/asm/inat.h
37+++ b/tools/objtool/arch/x86/include/asm/inat.h
38@@ -97,6 +97,16 @@
39 #define INAT_MAKE_GROUP(grp) ((grp << INAT_GRP_OFFS) | INAT_MODRM)
40 #define INAT_MAKE_IMM(imm) (imm << INAT_IMM_OFFS)
41
42+/* Identifiers for segment registers */
43+#define INAT_SEG_REG_IGNORE 0
44+#define INAT_SEG_REG_DEFAULT 1
45+#define INAT_SEG_REG_CS 2
46+#define INAT_SEG_REG_SS 3
47+#define INAT_SEG_REG_DS 4
48+#define INAT_SEG_REG_ES 5
49+#define INAT_SEG_REG_FS 6
50+#define INAT_SEG_REG_GS 7
51+
52 /* Attribute search APIs */
53 extern insn_attr_t inat_get_opcode_attribute(insn_byte_t opcode);
54 extern int inat_get_last_prefix_id(insn_byte_t last_pfx);
55--
562.14.2
57