Commit 4cadbfbb authored by Lokesh Gidra's avatar Lokesh Gidra
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
Signed-off-by: default avatarLokesh Gidra <lokeshgidra@google.com>
(cherry picked from https://android-review.googlesource.com/q/commit:70d648657b1e26cf030406c6afd33c72f442a45d)
Merged-In: I867aa9c85fdba111bdecb303614438312038d2fe
Change-Id: I867aa9c85fdba111bdecb303614438312038d2fe
Bug: 413503675
parent 8aca024b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment