summaryrefslogtreecommitdiffstats
path: root/mm/cma_debug.c
diff options
context:
space:
mode:
authorLiam Howlett <liam.howlett@oracle.com>2022-10-11 22:36:51 +0200
committerAndrew Morton <akpm@linux-foundation.org>2022-10-13 00:56:46 +0200
commit92b7399695a5cc961c44fc6e4624d3bc3c699ee7 (patch)
tree451e22c02a85744496fb4f755979693f2955d89f /mm/cma_debug.c
parentmm/compaction: fix set skip in fast_find_migrateblock (diff)
downloadlinux-92b7399695a5cc961c44fc6e4624d3bc3c699ee7.tar.xz
linux-92b7399695a5cc961c44fc6e4624d3bc3c699ee7.zip
mmap: fix copy_vma() failure path
The anon vma was not unlinked and the file was not closed in the failure path when the machine runs out of memory during the maple tree modification. This caused a memory leak of the anon vma chain and vma since neither would be freed. Link: https://lkml.kernel.org/r/20221011203621.1446507-1-Liam.Howlett@oracle.com Fixes: 524e00b36e8c ("mm: remove rb tree") Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com> Reported-by: Lukas Bulwahn <lukas.bulwahn@gmail.com> Tested-by: Lukas Bulwahn <lukas.bulwahn@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/cma_debug.c')
0 files changed, 0 insertions, 0 deletions