Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751322AbVLaNYU (ORCPT ); Sat, 31 Dec 2005 08:24:20 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751329AbVLaNYU (ORCPT ); Sat, 31 Dec 2005 08:24:20 -0500 Received: from 7ka-campus-gw.mipt.ru ([194.85.83.97]:64222 "EHLO 7ka-campus-gw.mipt.ru") by vger.kernel.org with ESMTP id S1751322AbVLaNYU (ORCPT ); Sat, 31 Dec 2005 08:24:20 -0500 Message-ID: <43B6866F.9080701@sw.ru> Date: Sat, 31 Dec 2005 16:23:59 +0300 From: Kirill Korotaev User-Agent: Mozilla Thunderbird 1.0.6 (X11/20050715) X-Accept-Language: en-us, en MIME-Version: 1.0 To: KUROSAWA Takahiro CC: linux-kernel@vger.kernel.org Subject: Re: oom-killer causes lockups in cpuset_excl_nodes_overlap() References: <20051228004026.72F3474005@sv1.valinux.co.jp> In-Reply-To: <20051228004026.72F3474005@sv1.valinux.co.jp> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 974 Lines: 22 yes, we found the same problem while looking at the code. and this is not the only cpuset function which might sleep, but is called from atomic context... :( > The oom-killer causes lockups because it calls > cpuset_excl_nodes_overlap() with tasklist_lock read-locked. > cpuset_excl_nodes_overlap() gets cpuset_sem (or callback_sem in > later linux versions) semaphore, which might_sleep even if the > semaphore could be down without sleeping. If processes call > exit() or fork() when the oom-killer sleeps in the down(), they > lockup because they call write_lock_irq(&tasklist_lock). > > The lockup occurred on linux-2.6.14. The problem also seems to exist > in linux-2.6.15-rc5-mm3 and linux-2.6.15-rc7. > > Regards, > - 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/