From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from d23relay03.au.ibm.com (d23relay03.au.ibm.com [202.81.18.234]) by e23smtp05.au.ibm.com (8.13.1/8.13.1) with ESMTP id m68EfVnt017341 for ; Wed, 9 Jul 2008 00:41:31 +1000 Received: from d23av02.au.ibm.com (d23av02.au.ibm.com [9.190.235.138]) by d23relay03.au.ibm.com (8.13.8/8.13.8/NCO v9.0) with ESMTP id m68EfhK34423706 for ; Wed, 9 Jul 2008 00:41:45 +1000 Received: from d23av02.au.ibm.com (loopback [127.0.0.1]) by d23av02.au.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id m68EgAmI019789 for ; Wed, 9 Jul 2008 00:42:10 +1000 Message-ID: <48737CBE.4010301@linux.vnet.ibm.com> Date: Tue, 08 Jul 2008 20:12:06 +0530 From: Kamalesh Babulal MIME-Version: 1.0 Subject: [BUG] 2.6.26-rc8-mm1 - sleeping function called from invalid context at include/linux/pagemap.h:291 References: <20080703020236.adaa51fa.akpm@linux-foundation.org> In-Reply-To: <20080703020236.adaa51fa.akpm@linux-foundation.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org Return-Path: To: Andrew Morton Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, kernel-testers@vger.kernel.org, Ingo Molnar , Andy Whitcroft , Balbir Singh List-ID: Hi Andrew, While booting up and shutting down, x86 machine with 2.6.26-rc8-mm1 kernel, kernel bug call trace is shows up in the logs iscsid (pid 2163 2162) is running... Setting up iSCSI targets: [ 34.577226] BUG: sleeping function called from invalid context at include/linux/pagemap.h:291 [ 34.602939] in_atomic():1, irqs_disabled():0 [ 34.615866] 1 lock held by iscsid/2163: [ 34.627120] #0: (&mm->mmap_sem){----}, at: [] sys_munmap+0x23/0x3f [ 34.649978] Pid: 2163, comm: iscsid Not tainted 2.6.26-rc8-mm1-autotest #1 [ 34.670212] [] __might_sleep+0xb5/0xba [ 34.684660] [] __munlock_pte_handler+0x44/0xf8 [ 34.701053] [] walk_page_range+0x15b/0x1b4 [ 34.716574] [] __munlock_vma_pages_range+0x91/0x9e [ 34.734022] [] ? __munlock_pmd_handler+0x0/0x10 [ 34.750860] [] ? __munlock_pte_handler+0x0/0xf8 [ 34.767654] [] munlock_vma_pages_range+0xf/0x11 [ 34.784328] [] do_munmap+0xe4/0x1d9 [ 34.797857] [] sys_munmap+0x30/0x3f [ 34.811451] [] sysenter_past_esp+0x6a/0xa5 [ 34.826806] ======================= [ OK ] [ OK ] While shutting down Stopping Bluetooth services:[ OK ] Starting killall: [ OK ] Sending all processes the TERM signal... Sending all processes the KILL signal... [ 76.982147] BUG: sleeping function called from invalid context at include/linux/pagemap.h:291 [ 77.007777] in_atomic():1, irqs_disabled():0 [ 77.020679] no locks held by iscsid/2163. [ 77.033260] Pid: 2163, comm: iscsid Not tainted 2.6.26-rc8-mm1-autotest #1 [ 77.053985] [] __might_sleep+0xb5/0xba [ 77.074205] [] __munlock_pte_handler+0x44/0xf8 [ 77.098841] [] walk_page_range+0x15b/0x1b4 [ 77.115703] [] __munlock_vma_pages_range+0x91/0x9e [ 77.133117] [] ? __munlock_pmd_handler+0x0/0x10 [ 77.149880] [] ? __munlock_pte_handler+0x0/0xf8 [ 77.166634] [] munlock_vma_pages_range+0xf/0x11 [ 77.183268] [] exit_mmap+0x32/0xf2 [ 77.196525] [] ? exit_mm+0xc7/0xd3 [ 77.209911] [] mmput+0x50/0xba [ 77.222130] [] exit_mm+0xce/0xd3 [ 77.234872] [] do_exit+0x20b/0x617 [ 77.248128] [] ? trace_hardirqs_on+0xb/0xd [ 77.263601] [] do_group_exit+0x5f/0x88 [ 77.277994] [] get_signal_to_deliver+0x2eb/0x32a [ 77.294997] [] do_notify_resume+0x93/0x74e [ 77.310437] [] ? __lock_acquire+0xbb7/0xbfb [ 77.327268] [] ? native_sched_clock+0x84/0x96 [ 77.342650] [] ? trace_hardirqs_off+0xb/0xd [ 77.358450] [] ? native_sched_clock+0x84/0x96 [ 77.374827] [] work_notifysig+0x13/0x19 [ 77.389505] ======================= [ 77.632224] type=1111 audit(1215512324.000:11): user pid=3484 uid=0 auid=4294967295 ses=4294967295 msg='changing system time: exe="/sbin/hwclock" (hostname=?, addr=?, terminal=console res=success)' Turning off swap: Turning off quotas: Unmounting pipe file systems: Please stand by while rebooting the system... [ 82.377079] md: stopping all md devices. [ 83.930821] Restarting system. [ 83.940099] machine restart 0xc046f393 is in sys_munmap (mm/mmap.c:1968). 1963 struct mm_struct *mm = current->mm; 1964 1965 profile_munmap(addr); 1966 1967 down_write(&mm->mmap_sem); 1968 ret = do_munmap(mm, addr, len); 1969 up_write(&mm->mmap_sem); 1970 return ret; 1971 } 1972 0xc046cbe9 is in __munlock_pte_handler (include/linux/pagemap.h:291). 286 /* 287 * lock_page may only be called if we have the page's inode pinned. 288 */ 289 static inline void lock_page(struct page *page) 290 { 291 might_sleep(); 292 if (TestSetPageLocked(page)) 293 __lock_page(page); 294 } 295 -- Thanks & Regards, Kamalesh Babulal, Linux Technology Center, IBM, ISTL. -- 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/ . Don't email: email@kvack.org