From: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org,
kernel-testers@vger.kernel.org, Ingo Molnar <mingo@elte.hu>,
Andy Whitcroft <apw@shadowen.org>,
Balbir Singh <balbir@linux.vnet.ibm.com>
Subject: [BUG] 2.6.26-rc8-mm1 - sleeping function called from invalid context at include/linux/pagemap.h:291
Date: Tue, 08 Jul 2008 20:12:06 +0530 [thread overview]
Message-ID: <48737CBE.4010301@linux.vnet.ibm.com> (raw)
In-Reply-To: <20080703020236.adaa51fa.akpm@linux-foundation.org>
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: [<c046f393>] sys_munmap+0x23/0x3f
[ 34.649978] Pid: 2163, comm: iscsid Not tainted 2.6.26-rc8-mm1-autotest #1
[ 34.670212] [<c041fdbb>] __might_sleep+0xb5/0xba
[ 34.684660] [<c046cbe9>] __munlock_pte_handler+0x44/0xf8
[ 34.701053] [<c0472007>] walk_page_range+0x15b/0x1b4
[ 34.716574] [<c046cb87>] __munlock_vma_pages_range+0x91/0x9e
[ 34.734022] [<c046ca08>] ? __munlock_pmd_handler+0x0/0x10
[ 34.750860] [<c046cba5>] ? __munlock_pte_handler+0x0/0xf8
[ 34.767654] [<c046cba3>] munlock_vma_pages_range+0xf/0x11
[ 34.784328] [<c046e42d>] do_munmap+0xe4/0x1d9
[ 34.797857] [<c046f3a0>] sys_munmap+0x30/0x3f
[ 34.811451] [<c04038c9>] 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] [<c041fdbb>] __might_sleep+0xb5/0xba
[ 77.074205] [<c046cbe9>] __munlock_pte_handler+0x44/0xf8
[ 77.098841] [<c0472007>] walk_page_range+0x15b/0x1b4
[ 77.115703] [<c046cb87>] __munlock_vma_pages_range+0x91/0x9e
[ 77.133117] [<c046ca08>] ? __munlock_pmd_handler+0x0/0x10
[ 77.149880] [<c046cba5>] ? __munlock_pte_handler+0x0/0xf8
[ 77.166634] [<c046cba3>] munlock_vma_pages_range+0xf/0x11
[ 77.183268] [<c046db3d>] exit_mmap+0x32/0xf2
[ 77.196525] [<c0427cdc>] ? exit_mm+0xc7/0xd3
[ 77.209911] [<c0424782>] mmput+0x50/0xba
[ 77.222130] [<c0427ce3>] exit_mm+0xce/0xd3
[ 77.234872] [<c0428fe2>] do_exit+0x20b/0x617
[ 77.248128] [<c04410d6>] ? trace_hardirqs_on+0xb/0xd
[ 77.263601] [<c042944d>] do_group_exit+0x5f/0x88
[ 77.277994] [<c0430ebd>] get_signal_to_deliver+0x2eb/0x32a
[ 77.294997] [<c0402fe9>] do_notify_resume+0x93/0x74e
[ 77.310437] [<c0442042>] ? __lock_acquire+0xbb7/0xbfb
[ 77.327268] [<c04081ad>] ? native_sched_clock+0x84/0x96
[ 77.342650] [<c043f314>] ? trace_hardirqs_off+0xb/0xd
[ 77.358450] [<c04081ad>] ? native_sched_clock+0x84/0x96
[ 77.374827] [<c0403a1a>] 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: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2008-07-08 14:41 UTC|newest]
Thread overview: 166+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-03 9:02 2.6.26-rc8-mm1 Andrew Morton
2008-07-03 11:22 ` [BUILD-FAILURE] 2.6.26-rc8-mm1 - build failure at drivers/char/hvc_rtas.c Kamalesh Babulal
2008-07-03 11:59 ` [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin" KOSAKI Motohiro
2008-07-03 12:21 ` Jeff Garzik
2008-07-03 13:04 ` Hugh Dickins
2008-07-03 13:11 ` Jeff Garzik
2008-07-03 13:33 ` David Woodhouse
2008-07-03 13:38 ` Jeff Garzik
2008-07-03 13:52 ` David Woodhouse
2008-07-03 17:30 ` Theodore Tso
2008-07-03 18:56 ` David Woodhouse
2008-07-03 19:31 ` Valdis.Kletnieks
2008-07-03 19:49 ` David Woodhouse
2008-07-03 20:52 ` Rafael J. Wysocki
2008-07-03 21:03 ` Jeff Garzik
2008-07-03 21:33 ` David Woodhouse
2008-07-03 21:42 ` Rafael J. Wysocki
2008-07-03 21:43 ` David Woodhouse
2008-07-03 21:52 ` Rafael J. Wysocki
2008-07-03 21:54 ` David Woodhouse
2008-07-03 22:27 ` Rafael J. Wysocki
2008-07-03 22:22 ` Jeff Garzik
2008-07-03 22:25 ` Alan Cox
2008-07-03 23:14 ` Jeff Garzik
2008-07-03 23:02 ` Alan Cox
2008-07-04 2:31 ` Mikael Pettersson
2008-07-03 23:21 ` David Miller, David Woodhouse
2008-07-04 0:18 ` Theodore Tso
2008-07-04 1:09 ` David Woodhouse
2008-07-04 1:47 ` Theodore Tso
2008-07-04 0:24 ` David Woodhouse
2008-07-04 1:28 ` Grant Coady
2008-07-04 2:42 ` david
2008-07-04 10:07 ` David Woodhouse
2008-07-04 10:09 ` Andi Kleen
2008-07-04 13:10 ` David Woodhouse
2008-07-04 13:15 ` Jeff Garzik
2008-07-04 13:27 ` David Woodhouse
2008-07-04 13:39 ` Jeff Garzik
2008-07-04 13:27 ` Alan Cox
2008-07-04 13:48 ` David Woodhouse
2008-07-04 14:06 ` Jeff Garzik
2008-07-04 20:43 ` David Miller, Alan Cox
2008-07-04 21:04 ` Alan Cox
2008-07-06 20:17 ` david
2008-07-06 20:27 ` David Woodhouse
2008-07-06 20:51 ` Jeff Garzik
2008-07-06 20:52 ` david
2008-07-06 20:56 ` David Woodhouse
2008-07-06 21:03 ` david
2008-07-06 21:38 ` Jeff Garzik
2008-07-06 22:10 ` David Woodhouse
2008-07-06 23:22 ` Jeff Garzik
2008-07-05 6:05 ` Jeff Garzik
2008-07-07 17:52 ` Rick Jones
2008-07-04 13:46 ` David Woodhouse
2008-07-04 14:07 ` Jeff Garzik
2008-07-04 14:38 ` Alan Cox
2008-07-06 23:40 ` Jeff Garzik
2008-07-07 15:53 ` Alan Cox
2008-07-07 17:24 ` Jeff Garzik
2008-07-07 18:13 ` Alan Cox
2008-07-07 18:57 ` Jeff Garzik
2008-07-07 18:30 ` Alan Cox
2008-07-07 19:16 ` Jeff Garzik
2008-07-07 18:45 ` Alan Cox
2008-07-07 19:48 ` Jeff Garzik
2008-07-07 20:48 ` David Miller, Alan Cox
2008-07-07 20:42 ` Alan Cox
2008-07-07 21:45 ` David Miller, Alan Cox
2008-07-07 21:14 ` Alan Cox
2008-07-07 21:58 ` David Miller, Alan Cox
2008-07-08 6:36 ` Alan Cox
2008-07-08 8:57 ` David Miller, Alan Cox
2008-07-04 14:30 ` Theodore Tso
2008-07-04 14:37 ` David Woodhouse
2008-07-04 18:01 ` David Woodhouse
2008-07-04 20:28 ` Sam Ravnborg
2008-07-05 4:35 ` Jeff Garzik
2008-07-04 20:39 ` David Miller, Jeff Garzik
2008-07-04 14:10 ` Theodore Tso
2008-07-04 14:23 ` Takashi Iwai
2008-07-04 14:39 ` Hannes Reinecke
2008-07-04 14:42 ` David Woodhouse
2008-07-04 21:34 ` Grant Coady
2008-07-04 22:08 ` David Woodhouse
2008-07-04 23:13 ` Olivier Galibert
2008-07-04 23:58 ` Henrique de Moraes Holschuh
2008-07-05 0:51 ` Trent Piepho
2008-07-05 3:52 ` Henrique de Moraes Holschuh
2008-07-05 6:01 ` Bill Fink
2008-07-05 13:08 ` Henrique de Moraes Holschuh
2008-07-05 4:10 ` Jeff Garzik
2008-07-05 7:41 ` Takashi Iwai
2008-07-05 8:50 ` David Woodhouse
2008-07-05 10:53 ` Olivier Galibert
2008-07-05 11:22 ` Andi Kleen
2008-07-05 12:02 ` Olivier Galibert
2008-07-05 12:09 ` Andi Kleen
2008-07-05 12:16 ` David Woodhouse
2008-07-05 12:23 ` Andi Kleen
2008-07-05 12:42 ` David Woodhouse
2008-07-05 13:57 ` Andi Kleen
2008-07-05 14:44 ` Olivier Galibert
2008-07-05 15:10 ` David Woodhouse
2008-07-05 17:13 ` Christoph Hellwig
2008-07-05 20:55 ` David Woodhouse
2008-07-06 10:02 ` Christoph Hellwig
2008-07-06 10:55 ` David Woodhouse
2008-07-06 11:50 ` Andi Kleen
2008-07-06 12:22 ` David Woodhouse
2008-07-04 14:44 ` Takashi Iwai
2008-07-04 14:24 ` maximilian attems
2008-07-04 14:36 ` Theodore Tso
2008-07-05 10:26 ` maximilian attems
2008-07-04 14:31 ` David Woodhouse
2008-07-04 20:37 ` David Miller, David Woodhouse
2008-07-04 20:42 ` Arjan van de Ven
2008-07-04 20:43 ` David Woodhouse
2008-07-04 20:52 ` David Miller, David Woodhouse
2008-07-04 21:05 ` David Woodhouse
2008-07-05 4:05 ` Valdis.Kletnieks
2008-07-04 20:51 ` David Miller, Arjan van de Ven
2008-07-04 20:59 ` Arjan van de Ven
2008-07-04 21:12 ` David Woodhouse
2008-07-04 21:10 ` Alan Cox
2008-07-04 20:53 ` David Woodhouse
2008-07-05 4:04 ` Jeff Garzik
2008-07-04 13:42 ` Andi Kleen
2008-07-03 20:34 ` David Miller, Jeff Garzik
2008-07-03 20:54 ` David Woodhouse
2008-07-09 20:43 ` Alexandre Oliva
2008-07-04 11:06 ` Takashi Iwai
2008-07-04 13:17 ` David Woodhouse
2008-07-04 13:26 ` Takashi Iwai
2008-07-04 13:28 ` David Woodhouse
2008-07-04 13:42 ` Jeff Garzik
2008-07-04 13:45 ` David Woodhouse
2008-07-04 14:10 ` Jeff Garzik
2008-07-04 14:13 ` David Woodhouse
2008-07-05 6:14 ` Jeff Garzik
2008-07-04 13:28 ` Jeff Garzik
2008-07-03 16:10 ` Chuck Lever
2008-07-03 14:26 ` WARNING at acpi/.../utmisc.c:1043 [Was: 2.6.26-rc8-mm1] Jiri Slaby
2008-07-03 14:38 ` Andi Kleen
2008-07-03 15:24 ` Jiri Slaby
2008-07-03 23:35 ` 2.6.26-rc8-mm1--No e100 :( logs say missing formware Grant Coady
2008-07-04 0:40 ` Andrew Morton
2008-07-03 23:42 ` 2.6.26-rc8-mm1--No e100 :( logs say missing firmware Grant Coady
2008-07-04 2:48 ` Question: split-lur // Re: 2.6.26-rc8-mm1 KAMEZAWA Hiroyuki
2008-07-04 9:02 ` memcg: lru scan fix (Was: 2.6.26-rc8-mm1 KAMEZAWA Hiroyuki
2008-07-04 19:16 ` Rik van Riel
2008-07-04 19:24 ` Andrew Morton
2008-07-05 3:59 ` KAMEZAWA Hiroyuki
2008-07-04 9:09 ` [PATCH] memcg: handle shmem's swap cache (Was 2.6.26-rc8-mm1 KAMEZAWA Hiroyuki
2008-07-05 5:41 ` Balbir Singh
2008-07-05 6:11 ` KAMEZAWA Hiroyuki
2008-07-05 6:49 ` Balbir Singh
2008-07-05 8:16 ` kamezawa.hiroyu
2008-07-04 22:49 ` 2.6.26-rc8-mm1: unable to mount nfs shares Mariusz Kozlowski
2008-07-04 23:07 ` Andrew Morton
2008-07-08 14:42 ` Kamalesh Babulal [this message]
2008-07-12 7:15 ` [BUG] 2.6.26-rc8-mm1 - sleeping function called from invalid context at include/linux/pagemap.h:291 KOSAKI Motohiro
2008-07-09 21:33 ` 2.6.26-rc8-mm1 - Missing AC97 power save Kconfig? Zan Lynx
2008-07-09 22:05 ` Randy Dunlap
2008-07-09 22:34 ` Zan Lynx
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=48737CBE.4010301@linux.vnet.ibm.com \
--to=kamalesh@linux.vnet.ibm.com \
--cc=akpm@linux-foundation.org \
--cc=apw@shadowen.org \
--cc=balbir@linux.vnet.ibm.com \
--cc=kernel-testers@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=mingo@elte.hu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox