Files
android_kernel_motorola_sm6225/mm
Suren Baghdasaryan 2e2ca5a627 ANDROID: mm: skip pte_alloc during speculative page fault
Speculative page fault checks pmd to be valid before starting to handle
the page fault and pte_alloc() should do nothing if pmd stays valid.
If pmd gets changed during speculative page fault, we will detect the
change later and retry with mmap_lock. Therefore pte_alloc() can be
safely skipped and this prevents the racy pmd_lock() call which can
access pmd->ptl after pmd was cleared.

Bug: 257443051
Change-Id: Iec57df5530dba6e0e0bdf9f7500f910851c3d3fd
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Git-commit: 1169f70f8f15ea4378ecadb9baba8791824c8b2a
Git-repo: https://android.googlesource.com/kernel/common/
Signed-off-by: Srinivasarao Pathipati <quic_c_spathi@quicinc.com>
2023-03-14 17:52:37 +05:30
..
…
2021-03-02 18:45:12 +08:00
…
…
…
…
…
…
…
…
…
…
…
…
2020-03-25 08:06:13 +01:00
…
…
…
…
…
2020-06-22 10:50:54 +02:00
…
…
…
…