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: 322411509 Bug: 325969149 Change-Id: If5bf61c7d94268700f2c4f096d946201b68abdb8 Signed-off-by:Kalesh Singh <kaleshsingh@google.com> (cherry picked from commit 44817294)
Loading
Please sign in to comment