Commit 30d792b2 authored by Lokesh Gidra's avatar Lokesh Gidra Committed by Will Deacon
Browse files

ANDROID: userfaultfd: adjust MOVE ioctl mode to confirm bug-fix

Kernel panic was observed in do_swap_page() when invoked on a previously
moved (via MOVE ioctl) page from swap-cache. This was because [1] was not
backported previously and therefore calling page_move_anon_rmap() would
set PG_anon_exclusive flag in the source folio, which shouldn't be done
for a swap-cache folio.

[1] https://lore.kernel.org/all/20231002142949.235104-3-david@redhat.com/T/#ma99279cb1eb9d5f8f23540f68ea1244de7294ca0



Bug: 413428616
Bug: 429084768
Change-Id: I867aa9c85fdba111bdecb303614438312038d2fe
Signed-off-by: default avatarLokesh Gidra <lokeshgidra@google.com>
(cherry picked from commit 70d64865)
Signed-off-by: default avatarliuqi <liuqi20328@gmail.com>
parent 45010e7a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment