diff options
author | Joerg Roedel <jroedel@suse.de> | 2018-04-17 15:27:16 +0200 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2018-04-17 15:43:01 +0200 |
commit | d6ef1f194b7569af8b8397876dc9ab07649d63cb (patch) | |
tree | 9d7bd7b181f1d7f32abb559812163b8eba076d8b /arch/x86/power | |
parent | x86,sched: Allow topologies where NUMA nodes share an LLC (diff) | |
download | linux-d6ef1f194b7569af8b8397876dc9ab07649d63cb.tar.xz linux-d6ef1f194b7569af8b8397876dc9ab07649d63cb.zip |
x86/mm: Prevent kernel Oops in PTDUMP code with HIGHPTE=y
The walk_pte_level() function just uses __va to get the virtual address of
the PTE page, but that breaks when the PTE page is not in the direct
mapping with HIGHPTE=y.
The result is an unhandled kernel paging request at some random address
when accessing the current_kernel or current_user file.
Use the correct API to access PTE pages.
Fixes: fe770bf0310d ('x86: clean up the page table dumper and add 32-bit support')
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: stable@vger.kernel.org
Cc: jgross@suse.com
Cc: JBeulich@suse.com
Cc: hpa@zytor.com
Cc: aryabinin@virtuozzo.com
Cc: kirill.shutemov@linux.intel.com
Link: https://lkml.kernel.org/r/1523971636-4137-1-git-send-email-joro@8bytes.org
Diffstat (limited to 'arch/x86/power')
0 files changed, 0 insertions, 0 deletions