Files
android_kernel_xiaomi_sm8450/mm
Lokesh Gidra a905086c85 ANDROID: userfaultfd: allow SPF for UFFD_FEATURE_SIGBUS on private+anon
Currently we bail out of speculative page fault when we detect that the
fault address is in a userfaultfd registered vma. However, if userfaultfd
is being used with UFFD_FEATURE_SIGBUS feature, then handle_userfault()
doesn't do much and is easiest to handle with SPF. This patch lets
MISSING userfaultfs on private anonymous mappings be allowed with SPF if
UFFD_FEATURE_SIGBUS is used.

With this patch we get >99% success rate for userfaults caused during
userfaultfd GC's compaction phase. This translates into eliminating
uninterruptible sleep time in do_page_fault() due to userfaults.

Bug: 320478828
Signed-off-by: Lokesh Gidra <lokeshgidra@google.com>
Change-Id: Ic7fde0fde03602b35179bc0cf891ddbbc434190f
(cherry picked from commit 582c6d188ec138d8ed9c6ef235bf5698d80d7d6b)
2024-03-05 19:08:29 +00:00
..
2023-12-08 16:26:36 +00:00
2021-06-04 11:15:16 -07:00
2021-04-30 09:13:34 -07:00
2023-02-17 15:23:41 +00:00
2021-04-15 14:23:41 +02:00
2023-09-19 11:32:32 +00:00
2021-11-26 15:37:44 +01:00
2022-09-29 17:06:30 +02:00