aboutsummaryrefslogtreecommitdiffstats
path: root/mm/vmalloc.c
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <[email protected]>2023-09-20 04:09:58 +0000
committerAndrew Morton <[email protected]>2023-09-30 00:20:46 +0000
commitce60f27bb62dfeb1bf827350520f34abc84e0933 (patch)
treeba2bb32d49a6ed1df73a1f1e62392929b12c5e1f /mm/vmalloc.c
parentmm: report success more often from filemap_map_folio_range() (diff)
downloadkernel-ce60f27bb62dfeb1bf827350520f34abc84e0933.tar.gz
kernel-ce60f27bb62dfeb1bf827350520f34abc84e0933.zip
mm: abstract moving to the next PFN
In order to fix the L1TF vulnerability, x86 can invert the PTE bits for PROT_NONE VMAs, which means we cannot move from one PTE to the next by adding 1 to the PFN field of the PTE. This results in the BUG reported at [1]. Abstract advancing the PTE to the next PFN through a pte_next_pfn() function/macro. Link: https://lkml.kernel.org/r/[email protected] Fixes: bcc6cc832573 ("mm: add default definition of set_ptes()") Signed-off-by: Matthew Wilcox (Oracle) <[email protected]> Reported-by: [email protected] Closes: https://lkml.kernel.org/r/[email protected] [1] Reviewed-by: Yin Fengwei <[email protected]> Cc: Dave Hansen <[email protected]> Cc: David Hildenbrand <[email protected]> Cc: Thomas Gleixner <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'mm/vmalloc.c')
0 files changed, 0 insertions, 0 deletions