]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
binfmt_elf: Fix missing SIGKILL for empty PIE
authorBen Hutchings <ben@decadent.org.uk>
Thu, 25 Apr 2019 21:09:09 +0000 (22:09 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 2 May 2019 20:42:06 +0000 (21:42 +0100)
commitc54cc234b4732355629baccac945c863c8a8684e
tree6b7f71da6403cb06372644d2b89c9ac7573ef51f
parent52b1af5e74cc3f4d513eacf49f71d9855a9ccbec
binfmt_elf: Fix missing SIGKILL for empty PIE

Commit ea08dc5191d9 "fs/binfmt_elf.c: fix bug in loading of PIE
binaries", which was a backport of commit a87938b2e246 upstream,
added a new failure path to load_elf_binary().

Before commit 19d860a140be "handle suicide on late failure exits in
execve() in search_binary_handler()", load_elf_binary() wass
responsible for sending a fatal signal to the task in case of an error
after flushing the old executable.  Add that to the new failure path.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
fs/binfmt_elf.c