aboutsummaryrefslogtreecommitdiffstats
path: root/fs/exec.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/exec.c')
-rw-r--r--fs/exec.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/fs/exec.c b/fs/exec.c
index d49be6bc1793..c0c636e34f60 100644
--- a/fs/exec.c
+++ b/fs/exec.c
@@ -46,7 +46,6 @@
46#include <linux/proc_fs.h> 46#include <linux/proc_fs.h>
47#include <linux/mount.h> 47#include <linux/mount.h>
48#include <linux/security.h> 48#include <linux/security.h>
49#include <linux/ima.h>
50#include <linux/syscalls.h> 49#include <linux/syscalls.h>
51#include <linux/tsacct_kern.h> 50#include <linux/tsacct_kern.h>
52#include <linux/cn_proc.h> 51#include <linux/cn_proc.h>
@@ -624,10 +623,8 @@ int setup_arg_pages(struct linux_binprm *bprm,
624 /* Move stack pages down in memory. */ 623 /* Move stack pages down in memory. */
625 if (stack_shift) { 624 if (stack_shift) {
626 ret = shift_arg_pages(vma, stack_shift); 625 ret = shift_arg_pages(vma, stack_shift);
627 if (ret) { 626 if (ret)
628 up_write(&mm->mmap_sem); 627 goto out_unlock;
629 return ret;
630 }
631 } 628 }
632 629
633#ifdef CONFIG_STACK_GROWSUP 630#ifdef CONFIG_STACK_GROWSUP
@@ -641,7 +638,7 @@ int setup_arg_pages(struct linux_binprm *bprm,
641 638
642out_unlock: 639out_unlock:
643 up_write(&mm->mmap_sem); 640 up_write(&mm->mmap_sem);
644 return 0; 641 return ret;
645} 642}
646EXPORT_SYMBOL(setup_arg_pages); 643EXPORT_SYMBOL(setup_arg_pages);
647 644
@@ -1211,9 +1208,6 @@ int search_binary_handler(struct linux_binprm *bprm,struct pt_regs *regs)
1211 retval = security_bprm_check(bprm); 1208 retval = security_bprm_check(bprm);
1212 if (retval) 1209 if (retval)
1213 return retval; 1210 return retval;
1214 retval = ima_bprm_check(bprm);
1215 if (retval)
1216 return retval;
1217 1211
1218 /* kernel module loader fixup */ 1212 /* kernel module loader fixup */
1219 /* so we don't try to load run modprobe in kernel space. */ 1213 /* so we don't try to load run modprobe in kernel space. */