Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752182Ab0HSQGR (ORCPT ); Thu, 19 Aug 2010 12:06:17 -0400 Received: from mail-iw0-f174.google.com ([209.85.214.174]:38114 "EHLO mail-iw0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751236Ab0HSQGQ (ORCPT ); Thu, 19 Aug 2010 12:06:16 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=VBZpa53aSTYqHTBw+dXk03pBBtA6GlIW0O0FoUSuq+/HU+59pcnN/15OY7kX48kL0t tr43y7pkeZz94gSaUh3pS9wLscpfxJR/oJ/B6HGjaGc5egN3HReLBkdHbpItPMBIWG9F LsXqpdoEMFNpV6pWbhXBPTjTzF002/zCuUjVk= Date: Fri, 20 Aug 2010 01:05:42 +0900 From: Minchan Kim To: KOSAKI Motohiro Cc: LKML , linux-mm , Andrew Morton , David Rientjes , Linus Torvalds , KAMEZAWA Hiroyuki Subject: Re: [PATCH 2/2] oom: fix tasklist_lock leak Message-ID: <20100819160542.GH6805@barrios-desktop> References: <20100819194707.5FC4.A69D9226@jp.fujitsu.com> <20100819195346.5FCA.A69D9226@jp.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100819195346.5FCA.A69D9226@jp.fujitsu.com> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1099 Lines: 27 On Thu, Aug 19, 2010 at 07:54:06PM +0900, KOSAKI Motohiro wrote: > commit 0aad4b3124 (oom: fold __out_of_memory into out_of_memory) > introduced tasklist_lock leak. Then it caused following obvious > danger warings and panic. > > ================================================ > [ BUG: lock held when returning to user space! ] > ------------------------------------------------ > rsyslogd/1422 is leaving the kernel with locks still held! > 1 lock held by rsyslogd/1422: > #0: (tasklist_lock){.+.+.+}, at: [] out_of_memory+0x164/0x3f0 > BUG: scheduling while atomic: rsyslogd/1422/0x00000002 > INFO: lockdep is turned off. > > This patch fixes it. > > Signed-off-by: KOSAKI Motohiro Reviewed-by: Minchan Kim -- Kind regards, Minchan Kim -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/