0171-x86-mm-64-Improve-the-memory-map-documentation.patch 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. From fd143ce57a7cfaf015f1c0274b9f071f4046696a Mon Sep 17 00:00:00 2001
  2. From: Andy Lutomirski <[email protected]>
  3. Date: Tue, 12 Dec 2017 07:56:43 -0800
  4. Subject: [PATCH 171/232] x86/mm/64: Improve the memory map documentation
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. CVE-2017-5754
  9. The old docs had the vsyscall range wrong and were missing the fixmap.
  10. Fix both.
  11. There used to be 8 MB reserved for future vsyscalls, but that's long gone.
  12. Signed-off-by: Andy Lutomirski <[email protected]>
  13. Signed-off-by: Thomas Gleixner <[email protected]>
  14. Cc: Borislav Petkov <[email protected]>
  15. Cc: Brian Gerst <[email protected]>
  16. Cc: Dave Hansen <[email protected]>
  17. Cc: Dave Hansen <[email protected]>
  18. Cc: David Laight <[email protected]>
  19. Cc: H. Peter Anvin <[email protected]>
  20. Cc: Josh Poimboeuf <[email protected]>
  21. Cc: Juergen Gross <[email protected]>
  22. Cc: Kees Cook <[email protected]>
  23. Cc: Kirill A. Shutemov <[email protected]>
  24. Cc: Linus Torvalds <[email protected]>
  25. Cc: Peter Zijlstra <[email protected]>
  26. Signed-off-by: Ingo Molnar <[email protected]>
  27. (cherry picked from commit 5a7ccf4754fb3660569a6de52ba7f7fc3dfaf280)
  28. Signed-off-by: Andy Whitcroft <[email protected]>
  29. Signed-off-by: Kleber Sacilotto de Souza <[email protected]>
  30. (cherry picked from commit d694898656126d8a04e86f681c8fe34ea57f1b85)
  31. Signed-off-by: Fabian Grünbichler <[email protected]>
  32. ---
  33. Documentation/x86/x86_64/mm.txt | 10 ++++++----
  34. 1 file changed, 6 insertions(+), 4 deletions(-)
  35. diff --git a/Documentation/x86/x86_64/mm.txt b/Documentation/x86/x86_64/mm.txt
  36. index 3448e675b462..83ca5a3b90ac 100644
  37. --- a/Documentation/x86/x86_64/mm.txt
  38. +++ b/Documentation/x86/x86_64/mm.txt
  39. @@ -19,8 +19,9 @@ ffffff0000000000 - ffffff7fffffffff (=39 bits) %esp fixup stacks
  40. ffffffef00000000 - fffffffeffffffff (=64 GB) EFI region mapping space
  41. ... unused hole ...
  42. ffffffff80000000 - ffffffff9fffffff (=512 MB) kernel text mapping, from phys 0
  43. -ffffffffa0000000 - ffffffffff5fffff (=1526 MB) module mapping space (variable)
  44. -ffffffffff600000 - ffffffffffdfffff (=8 MB) vsyscalls
  45. +ffffffffa0000000 - [fixmap start] (~1526 MB) module mapping space (variable)
  46. +[fixmap start] - ffffffffff5fffff kernel-internal fixmap range
  47. +ffffffffff600000 - ffffffffff600fff (=4 kB) legacy vsyscall ABI
  48. ffffffffffe00000 - ffffffffffffffff (=2 MB) unused hole
  49. Virtual memory map with 5 level page tables:
  50. @@ -41,8 +42,9 @@ ffffff0000000000 - ffffff7fffffffff (=39 bits) %esp fixup stacks
  51. ffffffef00000000 - fffffffeffffffff (=64 GB) EFI region mapping space
  52. ... unused hole ...
  53. ffffffff80000000 - ffffffff9fffffff (=512 MB) kernel text mapping, from phys 0
  54. -ffffffffa0000000 - ffffffffff5fffff (=1526 MB) module mapping space
  55. -ffffffffff600000 - ffffffffffdfffff (=8 MB) vsyscalls
  56. +ffffffffa0000000 - [fixmap start] (~1526 MB) module mapping space
  57. +[fixmap start] - ffffffffff5fffff kernel-internal fixmap range
  58. +ffffffffff600000 - ffffffffff600fff (=4 kB) legacy vsyscall ABI
  59. ffffffffffe00000 - ffffffffffffffff (=2 MB) unused hole
  60. Architecture defines a 64-bit virtual address. Implementations can support
  61. --
  62. 2.14.2