[BUG] 2.6.26-rc8-mm1 - sleeping function called from invalid context at include/linux/pagemap.h:291

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Andrew Morton <akpm@...>
Cc: <linux-kernel@...>, <linux-mm@...>, <kernel-testers@...>, Ingo Molnar <mingo@...>, Andy Whitcroft <apw@...>, Balbir Singh <balbir@...>
Date: Tuesday, July 8, 2008 - 10:42 am

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.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
2.6.26-rc8-mm1, Andrew Morton, (Thu Jul 3, 5:02 am)
Re: 2.6.26-rc8-mm1 - Missing AC97 power save Kconfig?, Randy Dunlap, (Wed Jul 9, 6:05 pm)
[BUG] 2.6.26-rc8-mm1 - sleeping function called from invalid..., Kamalesh Babulal, (Tue Jul 8, 10:42 am)
Re: 2.6.26-rc8-mm1: unable to mount nfs shares, Mariusz Kozlowski, (Fri Jul 4, 6:49 pm)
Re: 2.6.26-rc8-mm1: unable to mount nfs shares, Andrew Morton, (Fri Jul 4, 7:07 pm)
[PATCH] memcg: handle shmem's swap cache (Was 2.6.26-rc8-mm1, KAMEZAWA Hiroyuki, (Fri Jul 4, 5:09 am)
memcg: lru scan fix (Was: 2.6.26-rc8-mm1, KAMEZAWA Hiroyuki, (Fri Jul 4, 5:02 am)
Re: memcg: lru scan fix (Was: 2.6.26-rc8-mm1, Rik van Riel, (Fri Jul 4, 3:16 pm)
Re: memcg: lru scan fix (Was: 2.6.26-rc8-mm1, Andrew Morton, (Fri Jul 4, 3:24 pm)
Re: memcg: lru scan fix (Was: 2.6.26-rc8-mm1, KAMEZAWA Hiroyuki, (Fri Jul 4, 11:59 pm)
Question: split-lur // Re: 2.6.26-rc8-mm1, KAMEZAWA Hiroyuki, (Thu Jul 3, 10:48 pm)
Re: [BUILD-FAILURE] 2.6.26-rc8-mm1 - x86 - __ptep_modify_pro..., Jeremy Fitzhardinge, (Thu Jul 3, 2:00 pm)
[bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin", KOSAKI Motohiro, (Thu Jul 3, 7:59 am)
Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin", David Woodhouse, (Fri Jul 4, 10:13 am)
Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin", Arjan van de Ven, (Fri Jul 4, 4:42 pm)
Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin", Arjan van de Ven, (Fri Jul 4, 4:59 pm)
Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin", David Woodhouse, (Fri Jul 4, 10:31 am)
Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin", maximilian attems, (Fri Jul 4, 10:24 am)
Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin", maximilian attems, (Sat Jul 5, 6:26 am)
Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin", Hannes Reinecke, (Fri Jul 4, 10:39 am)
Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin", David Woodhouse, (Fri Jul 4, 10:42 am)
Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin", Olivier Galibert, (Fri Jul 4, 7:13 pm)
Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin", Olivier Galibert, (Sat Jul 5, 6:53 am)
Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin", Olivier Galibert, (Sat Jul 5, 8:02 am)
Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin", Christoph Hellwig, (Sat Jul 5, 1:13 pm)
Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin", Christoph Hellwig, (Sun Jul 6, 6:02 am)
Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin", Olivier Galibert, (Sat Jul 5, 10:44 am)
Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin", David Woodhouse, (Sat Jul 5, 11:10 am)
Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin", Henrique de Moraes Holschuh..., (Fri Jul 4, 7:58 pm)
Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin", Henrique de Moraes Holschuh..., (Fri Jul 4, 11:52 pm)
Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin", Henrique de Moraes Holschuh..., (Sat Jul 5, 9:08 am)
Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin", David Woodhouse, (Fri Jul 4, 10:37 am)
Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin", Mikael Pettersson, (Thu Jul 3, 10:31 pm)
Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin", Rafael J. Wysocki, (Thu Jul 3, 5:42 pm)
Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin", Rafael J. Wysocki, (Thu Jul 3, 5:52 pm)
Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin", Rafael J. Wysocki, (Thu Jul 3, 6:27 pm)
Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin", Rafael J. Wysocki, (Thu Jul 3, 4:52 pm)