Skip to content
Commit 14624d3d authored by Laurent Dufour's avatar Laurent Dufour Committed by Suren Baghdasaryan
Browse files

FROMLIST: mm: don't do swap readahead during speculative page fault



Vinayak Menon faced a panic because one thread was page faulting a page in
swap, while another one was mprotecting a part of the VMA leading to a VMA
split.
This raise a panic in swap_vma_readahead() because the VMA's boundaries
were not more matching the faulting address.

To avoid this, if the page is not found in the swap, the speculative page
fault is aborted to retry a regular page fault.

Change-Id: Ia9d99fb5fde7bd89f38966838d115b6c8c15c9db
Signed-off-by: default avatarLaurent Dufour <ldufour@linux.vnet.ibm.com>
Link: https://lore.kernel.org/patchwork/patch/1062665/


Bug: 161210518
Signed-off-by: default avatarVinayak Menon <vinmenon@codeaurora.org>
parent 5eca9e12
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