coredump-fix-memleak-in-dump_vma_snapshot.patch removed from -mm tree
The patch titled
Subject: coredump: fix memleak in dump_vma_snapshot()
has been removed from the -mm tree. Its filename was
coredump-fix-memleak-in-dump_vma_snapshot.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: QiuXi <[email protected]>
Subject: coredump: fix memleak in dump_vma_snapshot()
dump_vma_snapshot() allocs memory for *vma_meta, when dump_vma_snapshot() returns -EFAULT, the memory will be leaked, so we free it correctly.
Fixes a07279c9a8cd7 ("binfmt_elf, binfmt_elf_fdpic: use a VMA list snapshot")
Signed-off-by QiuXi <[email protected]>
Cc Al Viro <[email protected]>
Cc Jann Horn <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
fs/coredump.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
fs/coredump.c renamed from fs/coredump.c~coredump-fix-memleak-in-dump_vma_snapshot +3 -1
@@ -1134,8 +1134,10 @@ int dump_vma_snapshot(struct coredump_pammap_write_unlock (mm); -if (WARN_ON (i != *vma_count)) +if (WARN_ON (i != *vma_count)) { +kvfree (*vma_meta);return -EFAULT ; + } *vma_data_size_ptr = vma_data_size;return 0 ;
_
Patches currently in -mm which might be from [email protected] are