aboutsummaryrefslogtreecommitdiffstats
path: root/fs/exec.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2010-08-12 15:38:56 -0400
committerIngo Molnar <mingo@elte.hu>2010-08-12 15:39:04 -0400
commitf46a6804135795f77d096ab0128f27531c7d051c (patch)
tree7cd33f69e3661327739ae4c96e5a8389e7fc912e /fs/exec.c
parentb3e84ffa21f916e3354a12a7f19169c9febe96d0 (diff)
parentad41a1e0cab07c5125456e8d38e5b1ab148d04aa (diff)
Merge branch 'linus' into perf/urgent
Merge reason: Fix upstream breakage introduced by: de5d9bf: Move list types from <linux/list.h> to <linux/types.h>. Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'fs/exec.c')
-rw-r--r--fs/exec.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/fs/exec.c b/fs/exec.c
index 97d91a03fb13..7761837e4500 100644
--- a/fs/exec.c
+++ b/fs/exec.c
@@ -28,7 +28,6 @@
28#include <linux/mm.h> 28#include <linux/mm.h>
29#include <linux/stat.h> 29#include <linux/stat.h>
30#include <linux/fcntl.h> 30#include <linux/fcntl.h>
31#include <linux/smp_lock.h>
32#include <linux/swap.h> 31#include <linux/swap.h>
33#include <linux/string.h> 32#include <linux/string.h>
34#include <linux/init.h> 33#include <linux/init.h>
@@ -129,7 +128,7 @@ SYSCALL_DEFINE1(uselib, const char __user *, library)
129 if (file->f_path.mnt->mnt_flags & MNT_NOEXEC) 128 if (file->f_path.mnt->mnt_flags & MNT_NOEXEC)
130 goto exit; 129 goto exit;
131 130
132 fsnotify_open(file->f_path.dentry); 131 fsnotify_open(file);
133 132
134 error = -ENOEXEC; 133 error = -ENOEXEC;
135 if(file->f_op) { 134 if(file->f_op) {
@@ -684,7 +683,7 @@ struct file *open_exec(const char *name)
684 if (file->f_path.mnt->mnt_flags & MNT_NOEXEC) 683 if (file->f_path.mnt->mnt_flags & MNT_NOEXEC)
685 goto exit; 684 goto exit;
686 685
687 fsnotify_open(file->f_path.dentry); 686 fsnotify_open(file);
688 687
689 err = deny_write_access(file); 688 err = deny_write_access(file);
690 if (err) 689 if (err)
@@ -1892,13 +1891,7 @@ void do_coredump(long signr, int exit_code, struct pt_regs *regs)
1892 */ 1891 */
1893 clear_thread_flag(TIF_SIGPENDING); 1892 clear_thread_flag(TIF_SIGPENDING);
1894 1893
1895 /*
1896 * lock_kernel() because format_corename() is controlled by sysctl, which
1897 * uses lock_kernel()
1898 */
1899 lock_kernel();
1900 ispipe = format_corename(corename, signr); 1894 ispipe = format_corename(corename, signr);
1901 unlock_kernel();
1902 1895
1903 if (ispipe) { 1896 if (ispipe) {
1904 int dump_count; 1897 int dump_count;