diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2011-07-04 09:48:40 +0200 |
---|---|---|
committer | Clark Williams <williams@redhat.com> | 2012-04-04 09:14:51 -0500 |
commit | b575b27a1c8084365ce97834334c9b51605fa0b0 (patch) | |
tree | 84aa68167d7f1cd2239e454ddc5171fe0c503eb2 /fs | |
parent | 312b6cd827c24f50583d3254564b37a904917603 (diff) |
mm-protect-activate-switch-mm.patch
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/exec.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/exec.c b/fs/exec.c index 36254645b7cc..aabd97d8babf 100644 --- a/fs/exec.c +++ b/fs/exec.c @@ -837,10 +837,12 @@ static int exec_mmap(struct mm_struct *mm) } } task_lock(tsk); + local_irq_disable_rt(); active_mm = tsk->active_mm; tsk->mm = mm; tsk->active_mm = mm; activate_mm(active_mm, mm); + local_irq_enable_rt(); task_unlock(tsk); arch_pick_mmap_layout(mm); if (old_mm) { |