Skip to content
Commit e14d7dfb authored by Michal Hocko's avatar Michal Hocko Committed by Thomas Gleixner
Browse files

x86/speculation/l1tf: Fix up pte->pfn conversion for PAE

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: 6b28baca

 ("x86/speculation/l1tf: Protect PROT_NONE PTEs against speculation")
Reported-by: default avatarJan Beulich <JBeulich@suse.com>
Signed-off-by: default avatarMichal Hocko <mhocko@suse.com>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Acked-by: default avatarVlastimil Babka <vbabka@suse.cz>
parent 0d0f6249
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment