ANDROID: mm: disable speculative page faults for CONFIG_NUMA

do_numa_page() uses pte_offset_map() directly and needs to implement
additional mechanisms to ensure the mempolicy object used in
numa_migrate_prep() is not destroyed from under it when speculating.
Rather than fixing this, just disable speculation for CONFIG_NUMA
for now and fix it if it's ever needed in Android.

Bug: 257443051
Change-Id: Ib5750b9809979a69a42ebfa6c130e123f416f1aa
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
This commit is contained in:
Suren Baghdasaryan
2022-11-21 17:27:41 -08:00
parent 5fcb50b055
commit cf5cad44fd

View File

@@ -950,7 +950,7 @@ config ARCH_SUPPORTS_SPECULATIVE_PAGE_FAULT
config SPECULATIVE_PAGE_FAULT
bool "Speculative page faults"
default y
depends on ARCH_SUPPORTS_SPECULATIVE_PAGE_FAULT && MMU && SMP
depends on ARCH_SUPPORTS_SPECULATIVE_PAGE_FAULT && MMU && SMP && !NUMA
# split ptl lock can result in PTL destruction under RCU
depends on !ALLOC_SPLIT_PTLOCKS
help