diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2015-04-17 09:04:38 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-04-17 09:04:38 -0400 |
| commit | 54e514b91b95d6441c12a7955addfb9f9d2afc65 (patch) | |
| tree | 8b73d901bd2a6ec5a31f34a8954e5ea92216dd6c /fs/exec.c | |
| parent | 4fc8adcfec3da639da76e8314c9ccefe5bf9a045 (diff) | |
| parent | 6c8c90319c0bb1c9e0b68e721359b89ae4f28465 (diff) | |
Merge branch 'akpm' (patches from Andrew)
Merge third patchbomb from Andrew Morton:
- various misc things
- a couple of lib/ optimisations
- provide DIV_ROUND_CLOSEST_ULL()
- checkpatch updates
- rtc tree
- befs, nilfs2, hfs, hfsplus, fatfs, adfs, affs, bfs
- ptrace fixes
- fork() fixes
- seccomp cleanups
- more mmap_sem hold time reductions from Davidlohr
* emailed patches from Andrew Morton <akpm@linux-foundation.org>: (138 commits)
proc: show locks in /proc/pid/fdinfo/X
docs: add missing and new /proc/PID/status file entries, fix typos
drivers/rtc/rtc-at91rm9200.c: make IO endian agnostic
Documentation/spi/spidev_test.c: fix warning
drivers/rtc/rtc-s5m.c: allow usage on device type different than main MFD type
.gitignore: ignore *.tar
MAINTAINERS: add Mediatek SoC mailing list
tomoyo: reduce mmap_sem hold for mm->exe_file
powerpc/oprofile: reduce mmap_sem hold for exe_file
oprofile: reduce mmap_sem hold for mm->exe_file
mips: ip32: add platform data hooks to use DS1685 driver
lib/Kconfig: fix up HAVE_ARCH_BITREVERSE help text
x86: switch to using asm-generic for seccomp.h
sparc: switch to using asm-generic for seccomp.h
powerpc: switch to using asm-generic for seccomp.h
parisc: switch to using asm-generic for seccomp.h
mips: switch to using asm-generic for seccomp.h
microblaze: use asm-generic for seccomp.h
arm: use asm-generic for seccomp.h
seccomp: allow COMPAT sigreturn overrides
...
Diffstat (limited to 'fs/exec.c')
| -rw-r--r-- | fs/exec.c | 12 |
1 files changed, 11 insertions, 1 deletions
| @@ -926,10 +926,14 @@ static int de_thread(struct task_struct *tsk) | |||
| 926 | if (!thread_group_leader(tsk)) { | 926 | if (!thread_group_leader(tsk)) { |
| 927 | struct task_struct *leader = tsk->group_leader; | 927 | struct task_struct *leader = tsk->group_leader; |
| 928 | 928 | ||
| 929 | sig->notify_count = -1; /* for exit_notify() */ | ||
| 930 | for (;;) { | 929 | for (;;) { |
| 931 | threadgroup_change_begin(tsk); | 930 | threadgroup_change_begin(tsk); |
| 932 | write_lock_irq(&tasklist_lock); | 931 | write_lock_irq(&tasklist_lock); |
| 932 | /* | ||
| 933 | * Do this under tasklist_lock to ensure that | ||
| 934 | * exit_notify() can't miss ->group_exit_task | ||
| 935 | */ | ||
| 936 | sig->notify_count = -1; | ||
| 933 | if (likely(leader->exit_state)) | 937 | if (likely(leader->exit_state)) |
| 934 | break; | 938 | break; |
| 935 | __set_current_state(TASK_KILLABLE); | 939 | __set_current_state(TASK_KILLABLE); |
| @@ -1078,7 +1082,13 @@ int flush_old_exec(struct linux_binprm * bprm) | |||
| 1078 | if (retval) | 1082 | if (retval) |
| 1079 | goto out; | 1083 | goto out; |
| 1080 | 1084 | ||
| 1085 | /* | ||
| 1086 | * Must be called _before_ exec_mmap() as bprm->mm is | ||
| 1087 | * not visibile until then. This also enables the update | ||
| 1088 | * to be lockless. | ||
| 1089 | */ | ||
| 1081 | set_mm_exe_file(bprm->mm, bprm->file); | 1090 | set_mm_exe_file(bprm->mm, bprm->file); |
| 1091 | |||
| 1082 | /* | 1092 | /* |
| 1083 | * Release all of the old mmap stuff | 1093 | * Release all of the old mmap stuff |
| 1084 | */ | 1094 | */ |
