All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mm : Avoid candidate task is equal to current task
@ 2014-04-16  3:02 Peter Chiang
  2014-04-16 12:31 ` Peter Chiang
  0 siblings, 1 reply; 26+ messages in thread
From: Peter Chiang @ 2014-04-16  3:02 UTC (permalink / raw)
  To: ccross, pchiang, lizefan, akpm, oleg, tj, pavel, ebiederm, guillaume
  Cc: linux-kernel

From: pchiang <pchiang@nvidia.com>

Fix kernel panic when finding a new owner for the mm
and the new owner is equal to current onwer

Signed-off-by: pchiang <pchiang@nvidia.com>
---
 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/exit.c
+++ b/kernel/exit.c
@@ -399,7 +399,7 @@ retry:
 	 * here often
 	 */
 	do_each_thread(g, c) {
-		if (c->mm == mm)
+		if ((c != p) && (c->mm == mm))
 			goto assign_new_owner;
 	} while_each_thread(g, c);
 
-- 
1.8.1.5


^ permalink raw reply related	[flat|nested] 26+ messages in thread

end of thread, other threads:[~2014-04-23  7:04 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-16  3:02 [PATCH] mm : Avoid candidate task is equal to current task Peter Chiang
2014-04-16 12:31 ` Peter Chiang
2014-04-16 12:52   ` Peter Chiang
2014-04-16 13:57     ` Oleg Nesterov
2014-04-17  6:48       ` Peter Chiang
2014-04-18 16:23         ` Oleg Nesterov
2014-04-18 17:26           ` [PATCH 0/2] memcg: mm_update_next_owner() should skip kthreads Oleg Nesterov
2014-04-18 17:26             ` [PATCH 1/2] " Oleg Nesterov
2014-04-18 17:27             ` [PATCH 2/2] memcg: optimize the "Search everything else" loop in mm_update_next_owner() Oleg Nesterov
2014-04-18 18:24             ` [PATCH 0/2] memcg: mm_update_next_owner() should skip kthreads Michal Hocko
2014-04-18 18:44               ` Oleg Nesterov
2014-04-18 19:12                 ` [PATCH 0/1] memcg: kill start_kernel()->mm_init_owner(init_mm) Oleg Nesterov
2014-04-18 19:13                   ` [PATCH 1/1] " Oleg Nesterov
2014-04-22 13:34                     ` Michal Hocko
2014-04-22 13:23                   ` [PATCH 0/1] " Michal Hocko
2014-04-22 16:15                     ` [PATCH 0/1] memcg: kill CONFIG_MM_OWNER Oleg Nesterov
2014-04-22 16:15                       ` [PATCH 1/1] " Oleg Nesterov
2014-04-22 16:39                         ` Johannes Weiner
2014-04-22 16:59                       ` [PATCH 0/1] " Michal Hocko
2014-04-22 10:52                 ` [PATCH 0/2] memcg: mm_update_next_owner() should skip kthreads Michal Hocko
2014-04-22 13:21                   ` Michal Hocko
2014-04-22 21:35                     ` Hugh Dickins
2014-04-23  7:04                       ` Michal Hocko
2014-04-19  8:34             ` Pavel Machek
2014-04-19 18:14               ` Oleg Nesterov
2014-04-19 21:23                 ` Hugh Dickins

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.