Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
x86/speculation/l1tf: Fix up pte->pfn conversion for PAE
commit e14d7df upstream Jan has noticed that pte_pfn and co. resp. pfn_pte are incorrect for CONFIG_PAE because phys_addr_t is wider than unsigned long and so the pte_val reps. shift left would get truncated. Fix this up by using proper types. Fixes: 6b28bac ("x86/speculation/l1tf: Protect PROT_NONE PTEs against speculation") Reported-by: Jan Beulich <[email protected]> Signed-off-by: Michal Hocko <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Acked-by: Vlastimil Babka <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
- Loading branch information