mm, elf: handle vm_brk error
authorMichal Hocko <[email protected]>
Mon, 23 May 2016 23:25:39 +0000 (16:25 -0700)
committerLinus Torvalds <[email protected]>
Tue, 24 May 2016 00:04:14 +0000 (17:04 -0700)
commitecc2bc8ac03884266cf73f8a2a42b911465b2fbc
tree9a9edd23784c51e8863c0259900a62bce07ad765
parent864778b154233d3a673c520aa9606777589ecee7
mm, elf: handle vm_brk error

load_elf_library doesn't handle vm_brk failure although nothing really
indicates it cannot do that because the function is allowed to fail due
to vm_mmap failures already.  This might be not a problem now but later
patch will make vm_brk killable (resp.  mmap_sem for write waiting will
become killable) and so the failure will be more probable.

Signed-off-by: Michal Hocko <[email protected]>
Acked-by: Vlastimil Babka <[email protected]>
Cc: Alexander Viro <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
fs/binfmt_elf.c