Commit b8391722 authored by Anton Blanchard's avatar Anton Blanchard Committed by Linus Torvalds

[PATCH] TLB shootdown infrastructure in 2.5

It looks like a race betwen exec_mmap and access_process_vm in
proc_pid_cmdline (or any other procfs functions that uses
access_process_vm).
parent 454c37c0
......@@ -396,11 +396,14 @@ static int exec_mmap(void)
struct mm_struct * mm, * old_mm;
old_mm = current->mm;
task_lock(current);
if (old_mm && atomic_read(&old_mm->mm_users) == 1) {
mm_release();
exit_mmap(old_mm);
task_unlock(current);
return 0;
}
task_unlock(current);
mm = mm_alloc();
if (mm) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment