Re: [PATCH 1/7] x86/boot/compressed/64: Fix trampoline page table address calculation
From: Thomas Gleixner
Date: Sat May 19 2018 - 03:48:27 EST
On Fri, 18 May 2018, Kirill A. Shutemov wrote:
> Hugh noticied that I calculate address of trampoline page table wrongly
> in cleanup_trampoline(). TRAMPOLINE_32BIT_PGTABLE_OFFSET has to be
> divided by sizeof(unsigned long) since trampoline_32bit is unsigned long
> pointer.
>
> TRAMPOLINE_32BIT_PGTABLE_OFFSET is zero so the bug doesn't have a
> visible effect.
>
> Signed-off-by: Kirill A. Shutemov <kirill.shutemov@xxxxxxxxxxxxxxx>
> Reported-by: Hugh Dickins <hughd@xxxxxxxxxx>
> Fixes: e9d0e6330eb8 ("x86/boot/compressed/64: Prepare new top-level page table for trampoline")
Reviewed-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx>