Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756933AbYHaBgs (ORCPT ); Sat, 30 Aug 2008 21:36:48 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754966AbYHaBgk (ORCPT ); Sat, 30 Aug 2008 21:36:40 -0400 Received: from wine.ocn.ne.jp ([122.1.235.145]:58660 "EHLO smtp.wine.ocn.ne.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754779AbYHaBgj (ORCPT ); Sat, 30 Aug 2008 21:36:39 -0400 X-Greylist: delayed 1334 seconds by postgrey-1.27 at vger.kernel.org; Sat, 30 Aug 2008 21:36:39 EDT To: tmb@mandriva.org, linux-kernel@vger.kernel.org Subject: Re: BUG: kernel-2.6.27-rc5: soft lockup - CPU#X stuck for 61s! From: Tetsuo Handa References: <48B94120.1010108@mandriva.org> In-Reply-To: <48B94120.1010108@mandriva.org> Message-Id: <200808311014.BCD13024.SOOtOMQVFFFJLH@I-love.SAKURA.ne.jp> X-Mailer: Winbiff [Version 2.50 PL2] X-Accept-Language: ja,en Date: Sun, 31 Aug 2008 10:14:21 +0900 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1860 Lines: 39 Hello. > Kernel: 2.6.27-rc5 + Mandriva patches Yes, it is caused by TOMOYO patches. > Call Trace: > [] ? _spin_lock+0x9/0x10 > [] ? ccs_realpath_from_dentry2+0x140/0x430 > [] ? ksize+0x16/0xc0 > [] ? ccs_realpath_from_dentry+0x3f/0x60 > [] ? ccs_realpath_nofollow+0x4f/0x60 > [] ? ccs_check_flags+0x1e/0x30 > [] ? find_next_domain+0x98/0x970 > [] ? handle_mm_fault+0x322/0x960 > [] ? follow_page+0x2f7/0x350 > [] ? get_user_pages+0x108/0x450 > [] ? ksize+0x16/0xc0 > [] ? search_binary_handler_with_transition+0x406/0x4d0 > [] ? do_execve+0x1fd/0x240 > [] ? sys_execve+0x49/0x70 > [] ? stub_execve+0x6a/0xc0 Inside ccs_realpath_from_dentry2(), it will take dcache_lock and vfsmount_lock lock. But, the order of calling spin_lock(&dcache_lock); and spin_lock(&vfsmount_lock); was reversed by AppArmor's patches. See __d_path() in fs/dcache.c in the patch http://svn.mandriva.com/cgi-bin/viewvc.cgi/packages/cooker/kernel/branches/rebase-to-2.6.27/PATCHES/patches/security-apparmor-2.6.27.patch?revision=276651&view=markup The solution is to reverse the order in TOMOYO's patches. It is solved in TOMOYO 1.6.4 . You can download it from http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi/trunk/1.6.x/ccs-patch/?root=tomoyo&rev=1499 I responded to Mandriva's kernel maintainers, so it will be solved shortly. 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/