aboutsummaryrefslogtreecommitdiff
path: root/lib/test_overflow.c
diff options
context:
space:
mode:
authorQiuXi <[email protected]>2021-09-07 20:00:32 -0700
committerLinus Torvalds <[email protected]>2021-09-08 11:50:27 -0700
commit6fcac87e1f9e5b27805a2a404f4849194bb51de8 (patch)
tree04cfd6e934914b8f58f1f04da4c1f92b36e9fab7 /lib/test_overflow.c
parentdbd9d6f8fa9c3e676e491ac65c7fa10a1af8321f (diff)
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. Link: https://lkml.kernel.org/r/[email protected] 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]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions