From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail138.messagelabs.com (mail138.messagelabs.com [216.82.249.35]) by kanga.kvack.org (Postfix) with ESMTP id 367A69000BD for ; Tue, 27 Sep 2011 14:10:58 -0400 (EDT) Message-Id: From: Michal Hocko Date: Tue, 27 Sep 2011 10:09:08 +0200 Subject: [PATCH 0/2] oom: fix livelock when frozen task is selected Sender: owner-linux-mm@kvack.org List-ID: To: Andrew Morton Cc: David Rientjes , Konstantin Khlebnikov , Oleg Nesterov , KOSAKI Motohiro , KAMEZAWA Hiroyuki , "Rafael J. Wysocki" , Rusty Russell , Tejun Heo , linux-kernel@vger.kernel.org, linux-mm@kvack.org Hi Andrew, this small patchset addresses a possible livelock when OOM killer tries to kill a frozen task. The issue has been reported by Konstantin Khlebnikov at https://lkml.org/lkml/2011/8/23/45. The first patch addresses a possible issue in lguest which calls try_to_freeze with user context and then continues with other work after it returns from the fridge. The second patch addresses the issue by thawing the frozen task in the oom kill path. Michal Hocko (2): lguest: move process freezing before pending signals check oom: do not live lock on frozen tasks drivers/lguest/core.c | 14 +++++++------- mm/oom_kill.c | 6 ++++++ 2 files changed, 13 insertions(+), 7 deletions(-) -- 1.7.5.4 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: email@kvack.org