RE: [PATCH] mm : Avoid candidate task is equal to current task

2014-04-16 Thread Peter Chiang
/0x57c [38261.677409] [] do_signal+0x534/0x550 [38261.682608] [] do_notify_resume+0x20/0x58 -Original Message- From: Oleg Nesterov [mailto:o...@redhat.com] Sent: Wednesday, April 16, 2014 9:58 PM To: Peter Chiang Cc: ccr...@android.com; lize...@huawei.com; a...@linux-foundation.org; t

RE: [PATCH] mm : Avoid candidate task is equal to current task

2014-04-16 Thread Peter Chiang
Is it possible before exit_mm() set tsk->mm to NULL, tsk->mm has already been NULL ? -Original Message- From: Peter Chiang Sent: Wednesday, April 16, 2014 8:31 PM To: Peter Chiang; ccr...@android.com; lize...@huawei.com; a...@linux-foundation.org; o...@redhat.com; t...@kernel.o

RE: [PATCH] mm : Avoid candidate task is equal to current task

2014-04-16 Thread Peter Chiang
mm_update_next_owner() call from exit_mm() , and exit_mm() change tsk->mm to NULL If p==c , It seems to be impossible that mm == c->mm (tsk->mm) . Because mm is non-NULL and c->mm is NULL . -Original Message- From: Peter Chiang [mailto:pchi...@nvidia.com] Sent: Wedn

[PATCH] mm : Avoid candidate task is equal to current task

2014-04-15 Thread Peter Chiang
From: pchiang Fix kernel panic when finding a new owner for the mm and the new owner is equal to current onwer Signed-off-by: pchiang --- kernel/exit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/exit.c b/kernel/exit.c index 6ed6a1d..aa98422 100644 --- a/kernel/e