Skip to content
Commit 86ee4a53 authored by Peter Zijlstra's avatar Peter Zijlstra Committed by Suren Baghdasaryan
Browse files

FROMLIST: x86/mm: add speculative pagefault handling



Try a speculative fault before acquiring mmap_sem, if it returns with
VM_FAULT_RETRY continue with the mmap_sem acquisition and do the
traditional fault.

Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>

[Clearing of FAULT_FLAG_ALLOW_RETRY is now done in
 handle_speculative_fault()]
[Retry with usual fault path in the case VM_ERROR is returned by
 handle_speculative_fault(). This allows signal to be delivered]
[Don't build SPF call if !CONFIG_SPECULATIVE_PAGE_FAULT]
[Handle memory protection key fault]
Signed-off-by: default avatarLaurent Dufour <ldufour@linux.ibm.com>

Link: https://lore.kernel.org/patchwork/patch/1062684/


Bug: 161210518
Signed-off-by: default avatarSuren Baghdasaryan <surenb@google.com>
Change-Id: If994d027e8602d8d647dfe560c7ac68b49baf2f5
parent 08c1a309
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment