ANDROID: Make file-backed vma teardown synchronous
When a file-backed vma is being released, the userspace can have an expectation that the vma and the file it's pinning will be released synchronously. This does not happen when SPF is enabled because vma and associated file are released asynchronously after RCU grace period. This is done to prevent pagefault handler from stepping on a deleted object. Fix this issue by synchronously waiting for RCU grace period during file-backed vma tear-down. Fixes: 48e35d05 "FROMLIST: mm: rcu safe vma->vm_file freeing" Bug: 231394031 Signed-off-by:Suren Baghdasaryan <surenb@google.com> Change-Id: I9f672d5bd947763c7d180a8c1b1f964600d407f3
Loading
Please sign in to comment