Skip to content
Snippets Groups Projects
Commit 11d7e4f5 authored by Kalesh Singh's avatar Kalesh Singh
Browse files

ANDROID: mm: Fix VMA ref count after fast-mremap


Since the cmpxchg() to unlock the VMA (reset ref count from -1), is
enclosed in VM_BUG_ON_VMA() it gets compiled out in non-debug builds
(CONFIG_DEBUG_VM=n). This means that any VMA that underwent a fast-remap
will have it's refcount stuck at -1, making it not be eligible for
future speculative faults, and preventing freeing of the VMA.

Bug: 323371343
Bug: 322411509
Change-Id: If5bf61c7d94268700f2c4f096d946201b68abdb8
Signed-off-by: default avatarKalesh Singh <kaleshsingh@google.com>
parent 0b84d89c
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment