0132-tools-headers-Sync-objtool-UAPI-header.patch 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. From 6723159121227f7f8d32c09ea4c2237a40266880 Mon Sep 17 00:00:00 2001
  2. From: Ingo Molnar <[email protected]>
  3. Date: Tue, 14 Nov 2017 07:24:22 +0100
  4. Subject: [PATCH 132/232] tools/headers: Sync objtool UAPI header
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. CVE-2017-5754
  9. objtool grew this new warning:
  10. Warning: synced file at 'tools/objtool/arch/x86/include/asm/inat.h' differs from latest kernel version at 'arch/x86/include/asm/inat.h'
  11. which upstream header grew new INAT_SEG_* definitions.
  12. Sync up the tooling version of the header.
  13. Reported-by: Linus Torvalds <[email protected]>
  14. Cc: Josh Poimboeuf <[email protected]>
  15. Cc: Peter Zijlstra <[email protected]>
  16. Cc: Thomas Gleixner <[email protected]>
  17. Cc: [email protected]
  18. Signed-off-by: Ingo Molnar <[email protected]>
  19. (cherry picked from commit 1ca1d1e5618960574fb01507dbab07e5337049a1)
  20. Signed-off-by: Andy Whitcroft <[email protected]>
  21. Signed-off-by: Kleber Sacilotto de Souza <[email protected]>
  22. (cherry picked from commit 3dd05d51e337e9d780fb0e7c46d7216a79380d7b)
  23. Signed-off-by: Fabian Grünbichler <[email protected]>
  24. ---
  25. tools/objtool/arch/x86/include/asm/inat.h | 10 ++++++++++
  26. 1 file changed, 10 insertions(+)
  27. diff --git a/tools/objtool/arch/x86/include/asm/inat.h b/tools/objtool/arch/x86/include/asm/inat.h
  28. index 02aff0867211..1c78580e58be 100644
  29. --- a/tools/objtool/arch/x86/include/asm/inat.h
  30. +++ b/tools/objtool/arch/x86/include/asm/inat.h
  31. @@ -97,6 +97,16 @@
  32. #define INAT_MAKE_GROUP(grp) ((grp << INAT_GRP_OFFS) | INAT_MODRM)
  33. #define INAT_MAKE_IMM(imm) (imm << INAT_IMM_OFFS)
  34. +/* Identifiers for segment registers */
  35. +#define INAT_SEG_REG_IGNORE 0
  36. +#define INAT_SEG_REG_DEFAULT 1
  37. +#define INAT_SEG_REG_CS 2
  38. +#define INAT_SEG_REG_SS 3
  39. +#define INAT_SEG_REG_DS 4
  40. +#define INAT_SEG_REG_ES 5
  41. +#define INAT_SEG_REG_FS 6
  42. +#define INAT_SEG_REG_GS 7
  43. +
  44. /* Attribute search APIs */
  45. extern insn_attr_t inat_get_opcode_attribute(insn_byte_t opcode);
  46. extern int inat_get_last_prefix_id(insn_byte_t last_pfx);
  47. --
  48. 2.14.2