linux/Documentation/x86
Andrey Ryabinin 12a8cc7fcf x86/kasan: Use the same shadow offset for 4- and 5-level paging
We are going to support boot-time switching between 4- and 5-level
paging. For KASAN it means we cannot have different KASAN_SHADOW_OFFSET
for different paging modes: the constant is passed to gcc to generate
code and cannot be changed at runtime.

This patch changes KASAN code to use 0xdffffc0000000000 as shadow offset
for both 4- and 5-level paging.

For 5-level paging it means that shadow memory region is not aligned to
PGD boundary anymore and we have to handle unaligned parts of the region
properly.

In addition, we have to exclude paravirt code from KASAN instrumentation
as we now use set_pgd() before KASAN is fully ready.

[kirill.shutemov@linux.intel.com: clenaup, changelog message]
Signed-off-by: Andrey Ryabinin <aryabinin@virtuozzo.com>
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Andy Lutomirski <luto@amacapital.net>
Cc: Borislav Petkov <bp@suse.de>
Cc: Cyrill Gorcunov <gorcunov@openvz.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-mm@kvack.org
Link: http://lkml.kernel.org/r/20170929140821.37654-4-kirill.shutemov@linux.intel.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
2017-10-20 13:07:09 +02:00
..
i386
x86_64 x86/kasan: Use the same shadow offset for 4- and 5-level paging 2017-10-20 13:07:09 +02:00
00-INDEX
amd-memory-encryption.txt x86/cpu/AMD: Document AMD Secure Memory Encryption (SME) 2017-07-18 11:37:58 +02:00
boot.txt
earlyprintk.txt
entry_64.txt
exception-tables.txt
intel_mpx.txt
intel_rdt_ui.txt x86/intel_rdt: Show bitmask of shareable resource with other executing units 2017-08-01 22:41:30 +02:00
kernel-stacks
microcode.txt x86/microcode: Document the three loading methods 2017-07-25 11:26:24 +02:00
mtrr.txt
orc-unwinder.txt x86/unwind: Add the ORC unwinder 2017-07-26 13:18:20 +02:00
pat.txt
protection-keys.txt x86/mm/pkeys: Fix typo in Documentation/x86/protection-keys.txt 2017-07-25 11:28:13 +02:00
tlb.txt
topology.txt x86/topology: Document cpu_llc_id 2016-12-20 09:36:29 +01:00
usb-legacy-support.txt
zero-page.txt Merge branch 'linus' into WIP.x86/boot, to fix up conflicts and to pick up updates 2017-03-01 09:02:26 +01:00