Skip to content

Fix resource leaks for exec related stuffs

WANG Cong lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 21 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9fs/exec.c: export free_arg_pagesfs/exec.c include/linux/binfmts.h+5 -22 replies
2/9fs/exec.c: fix resource leaks and wrong goto'sfs/exec.c+6 -31 reply
3/9fs/compat.c: fix resource leaks and wrong goto'sfs/compat.c+7 -34 replies
4/9fs/binfmt_script.c: fix resource leaksfs/binfmt_script.c+20 -61 reply
5/9fs/binfmt_em86.c: fix resource leaksfs/binfmt_em86.c+19 -62 replies
6/9fs/binfmt_misc.c: fix resource leaksfs/binfmt_misc.c+12 -41 reply
7/9fs/exec.c: fix wrong return value of prepare_binprm()fs/exec.c+6 -16 replies
8/9fs/binfmt_elf.c: fix wrong return valuesfs/binfmt_elf.c+2 -20 replies
9/9fs/exec.c: fix a wrong goto pathfs/exec.c+1 -13 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Patch 0/9] Fix resource leaks for exec related stuffs

This patchset contains various fixes for fs/binfmt_*.c, fs/{exec, compat}.c. Most of them are aimed to fix resource leaks in failure path. Others are bug fixes in failure path.

All patches are tested on UML, except [5/9] and [6/9], since I don't have the desired environment to test them. It should be OK since [4/9] is the similar fix.