summaryrefslogtreecommitdiff
path: root/%3fh%3dv3.5-rc2&id%3d1dbbfe254d2360993e79a10ca42aeec407e13b34?h=v3.5-rc2&id=6...
diff options
context:
space:
mode:
authorLiam R. Howlett <Liam.Howlett@oracle.com>2023-06-17 20:47:08 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2023-06-18 09:32:17 -0700
commit606c812eb1d5b5fb0dd9e330ca94b52d7c227830 (patch)
tree2458e45ab6a53c3d9b1424c9227fbf38898a6a23 /%3fh%3dv3.5-rc2&id%3d1dbbfe254d2360993e79a10ca42aeec407e13b34?h=v3.5-rc2&id=606c812eb1d5b5fb0dd9e330ca94b52d7c227830
parent1b29d271614abd97cc39782daa9d6dd70e98609f (diff)
mm/mmap: Fix error path in do_vmi_align_munmap()
The error unrolling was leaving the VMAs detached in many cases and leaving the locked_vm statistic altered, and skipping the unrolling entirely in the case of the vma tree write failing. Fix the error path by re-attaching the detached VMAs and adding the necessary goto for the failed vma tree write, and fix the locked_vm statistic by only updating after the vma tree write succeeds. Fixes: 763ecb035029 ("mm: remove the vma linked list") Reported-by: Vegard Nossum <vegard.nossum@oracle.com> Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to '%3fh%3dv3.5-rc2&id%3d1dbbfe254d2360993e79a10ca42aeec407e13b34?h=v3.5-rc2&id=606c812eb1d5b5fb0dd9e330ca94b52d7c227830')
0 files changed, 0 insertions, 0 deletions