patch-2.3.50 linux/fs/binfmt_elf.c

Next file: linux/fs/binfmt_em86.c
Previous file: linux/fs/autofs/root.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.49/linux/fs/binfmt_elf.c linux/fs/binfmt_elf.c
@@ -707,7 +707,9 @@
 		__MOD_INC_USE_COUNT(current->binfmt->module);
 
 #ifndef VM_STACK_FLAGS
+	lock_kernel();
 	current->executable = dget(bprm->dentry);
+	unlock_kernel();
 #endif
 	compute_creds(bprm);
 	current->flags &= ~PF_FORKNOEXEC;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)