Bug 42754 - BUG: sleeping function called from invalid context at mm/memory.c:3924
Summary: BUG: sleeping function called from invalid context at mm/memory.c:3924
Status: RESOLVED INVALID
Alias: None
Product: Memory Management
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All Linux
: P1 high
Assignee: Andrew Morton
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-10 02:24 UTC by Witold Baryluk
Modified: 2012-07-02 13:36 UTC (History)
1 user (show)

See Also:
Kernel Version: 3.3.0-rc2+
Subsystem:
Regression: Yes
Bisected commit-id:


Attachments
Konfig file (93.75 KB, application/octet-stream)
2012-02-10 02:24 UTC, Witold Baryluk
Details

Description Witold Baryluk 2012-02-10 02:24:09 UTC
Created attachment 72350 [details]
Konfig file

[    0.000000] Linux version 3.3.0-rc2-t43-devel-smp-00172-g23783f8 (baryluk@sredniczarny) (gcc version 4.6.2 (Debian 4.6.2-12) ) #13 SMP Sun Feb 5 15:37:06 CET 2012


[ 1203.050623] BUG: sleeping function called from invalid context at mm/memory.c:3924
[ 1203.054259] in_atomic(): 1, irqs_disabled(): 0, pid: 4446, name: NetworkManager
[ 1203.057932] INFO: lockdep is turned off.
[ 1203.061685] Pid: 4446, comm: NetworkManager Tainted: G        W  O 3.3.0-rc2-t43-devel-smp-00172-g23783f8 #13
[ 1203.065606] Call Trace:
[ 1203.069502]  [<c107e182>] __might_sleep+0x122/0x1d0
[ 1203.073506]  [<c1140b4e>] might_fault+0x2e/0xb0
[ 1203.077501]  [<c131c67b>] copy_to_user+0x3b/0x60
[ 1203.081561]  [<c158a102>] put_cmsg+0x52/0xd0
[ 1203.085624]  [<c15bc7d7>] netlink_recvmsg+0x287/0x340
[ 1203.089740]  [<c1579b43>] sock_recvmsg+0xd3/0x110
[ 1203.093902]  [<c1140b74>] ? might_fault+0x54/0xb0
[ 1203.098093]  [<c158834c>] ? verify_iovec+0x4c/0xc0
[ 1203.102336]  [<c1579a70>] ? sock_sendmsg_nosec+0x100/0x100
[ 1203.106611]  [<c157a994>] __sys_recvmsg+0x114/0x1e0
[ 1203.110942]  [<c1081dc7>] ? finish_task_switch+0x77/0x200
[ 1203.115315]  [<c11784b5>] ? fget_light+0xc5/0x410
[ 1203.119722]  [<c1081dc7>] ? finish_task_switch+0x77/0x200
[ 1203.124167]  [<c11784c9>] ? fget_light+0xd9/0x410
[ 1203.128618]  [<c1178435>] ? fget_light+0x45/0x410
[ 1203.133102]  [<c157c659>] sys_recvmsg+0x39/0x60
[ 1203.137590]  [<c157cbb3>] sys_socketcall+0x2e3/0x330
[ 1203.142147]  [<c17cf58d>] ? sysenter_exit+0xf/0x1a
[ 1203.146707]  [<c131be78>] ? trace_hardirqs_on_thunk+0xc/0x10
[ 1203.151358]  [<c17cf558>] sysenter_do_call+0x12/0x38
[ 1203.155980] BUG: scheduling while atomic: NetworkManager/4446/0x10000002
[ 1203.160714] INFO: lockdep is turned off.
[ 1203.165429] Modules linked in: vfat fat pci_stub vboxpci(O) vboxnetadp(O) vboxnetflt(O) vboxdrv(O) pktcdvd ebtable_nat ebtables acpi_cpufreq mperf xt_CHECKSUM irtty_sir sir_dev irda crc_ccitt dummy ppdev lp bnep rfcomm bluetooth lib80211_crypt_ccmp uinput nfsd pcmcia yenta_socket i2c_i801 radeon ipw2200 libipw pcmcia_rsrc pcmcia_core ttm drm_kms_helper parport_pc parport cfbfillrect cfbcopyarea cfbimgblt raid10 raid456 async_memcpy async_pq async_xor xor async_raid6_recov async_tx raid6_pq sr_mod cdrom floppy [last unloaded: scsi_wait_scan]
[ 1203.187423] Pid: 4446, comm: NetworkManager Tainted: G        W  O 3.3.0-rc2-t43-devel-smp-00172-g23783f8 #13
[ 1203.193214] Call Trace:
[ 1203.198870]  [<c17b188f>] __schedule_bug+0x7d/0x84
[ 1203.204566]  [<c17c59ca>] __schedule+0x6ca/0x780
[ 1203.210206]  [<c101995c>] ? show_trace_log_lvl+0x4c/0x60
[ 1203.215813]  [<c17af78a>] ? dump_stack+0x73/0x7a
[ 1203.221397]  [<c107e182>] ? __might_sleep+0x122/0x1d0
[ 1203.227023]  [<c10836bb>] __cond_resched+0x1b/0x30
[ 1203.232623]  [<c17c5af9>] _cond_resched+0x29/0x30
[ 1203.238169]  [<c1140b53>] might_fault+0x33/0xb0
[ 1203.243757]  [<c131c67b>] copy_to_user+0x3b/0x60
[ 1203.249278]  [<c158a102>] put_cmsg+0x52/0xd0
[ 1203.254773]  [<c15bc7d7>] netlink_recvmsg+0x287/0x340
[ 1203.260237]  [<c1579b43>] sock_recvmsg+0xd3/0x110
[ 1203.265652]  [<c1140b74>] ? might_fault+0x54/0xb0
[ 1203.271046]  [<c158834c>] ? verify_iovec+0x4c/0xc0
[ 1203.276381]  [<c1579a70>] ? sock_sendmsg_nosec+0x100/0x100
[ 1203.281724]  [<c157a994>] __sys_recvmsg+0x114/0x1e0
[ 1203.287092]  [<c1081dc7>] ? finish_task_switch+0x77/0x200
[ 1203.292430]  [<c11784b5>] ? fget_light+0xc5/0x410
[ 1203.297783]  [<c1081dc7>] ? finish_task_switch+0x77/0x200
[ 1203.303218]  [<c11784c9>] ? fget_light+0xd9/0x410
[ 1203.308672]  [<c1178435>] ? fget_light+0x45/0x410
[ 1203.314072]  [<c157c659>] sys_recvmsg+0x39/0x60
[ 1203.319408]  [<c157cbb3>] sys_socketcall+0x2e3/0x330
[ 1203.324728]  [<c17cf58d>] ? sysenter_exit+0xf/0x1a
[ 1203.330091]  [<c131be78>] ? trace_hardirqs_on_thunk+0xc/0x10
[ 1203.335415]  [<c17cf558>] sysenter_do_call+0x12/0x38
[ 1203.345950] BUG: scheduling while atomic: NetworkManager/4446/0x10000002
[ 1203.348841] INFO: lockdep is turned off.
[ 1203.351905] Modules linked in: vfat fat pci_stub vboxpci(O) vboxnetadp(O) vboxnetflt(O) vboxdrv(O) pktcdvd ebtable_nat ebtables acpi_cpufreq mperf xt_CHECKSUM irtty_sir sir_dev irda crc_ccitt dummy ppdev lp bnep rfcomm bluetooth lib80211_crypt_ccmp uinput nfsd pcmcia yenta_socket i2c_i801 radeon ipw2200 libipw pcmcia_rsrc pcmcia_core ttm drm_kms_helper parport_pc parport cfbfillrect cfbcopyarea cfbimgblt raid10 raid456 async_memcpy async_pq async_xor xor async_raid6_recov async_tx raid6_pq sr_mod cdrom floppy [last unloaded: scsi_wait_scan]
[ 1203.364763] Pid: 4446, comm: NetworkManager Tainted: G        W  O 3.3.0-rc2-t43-devel-smp-00172-g23783f8 #13
[ 1203.367988] Call Trace:
[ 1203.371184]  [<c17b188f>] __schedule_bug+0x7d/0x84
[ 1203.374355]  [<c17c59ca>] __schedule+0x6ca/0x780
[ 1203.377469]  [<c1083e72>] ? try_to_wake_up+0x152/0x1d0
[ 1203.380596]  [<c10b3301>] ? __lock_acquired+0x2e1/0x330
[ 1203.383703]  [<c10d1b58>] ? audit_buffer_free+0x28/0x70
[ 1203.386814]  [<c107e095>] ? __might_sleep+0x35/0x1d0
[ 1203.389935]  [<c10836bb>] __cond_resched+0x1b/0x30
[ 1203.393074]  [<c17c5af9>] _cond_resched+0x29/0x30
[ 1203.396192]  [<c1163bf3>] kmem_cache_alloc+0x43/0x2b0
[ 1203.399315]  [<c10b1fbb>] ? trace_hardirqs_on+0xb/0x10
[ 1203.402468]  [<c1079cfa>] ? prepare_creds+0x2a/0x100
[ 1203.405597]  [<c1079cfa>] prepare_creds+0x2a/0x100
[ 1203.408714]  [<c117f625>] do_coredump+0x85/0x440
[ 1203.411842]  [<c11638ad>] ? kmem_cache_free+0x12d/0x1e0
[ 1203.414961]  [<c105d252>] ? __sigqueue_free+0x32/0x40
[ 1203.418071]  [<c105d252>] ? __sigqueue_free+0x32/0x40
[ 1203.421178]  [<c105d252>] ? __sigqueue_free+0x32/0x40
[ 1203.424265]  [<c105d312>] ? collect_signal+0xb2/0x190
[ 1203.427341]  [<c1061625>] ? get_signal_to_deliver+0x185/0x470
[ 1203.430445]  [<c17c6fe7>] ? _raw_spin_unlock_irq+0x27/0x40
[ 1203.433551]  [<c10b1fbb>] ? trace_hardirqs_on+0xb/0x10
[ 1203.436646]  [<c17cadc0>] ? vmalloc_fault+0x190/0x190
[ 1203.439735]  [<c106165c>] get_signal_to_deliver+0x1bc/0x470
[ 1203.442819]  [<c17cadc0>] ? vmalloc_fault+0x190/0x190
[ 1203.445869]  [<c10169df>] do_signal+0x3f/0xd0
[ 1203.448814]  [<c17b0ba4>] ? bad_area_nosemaphore+0x17/0x19
[ 1203.451701]  [<c17cb1bc>] ? do_page_fault+0x3fc/0x4f0
[ 1203.454484]  [<c132c6ee>] ? do_raw_spin_unlock+0x4e/0x90
[ 1203.457170]  [<c1140b53>] ? might_fault+0x33/0xb0
[ 1203.459800]  [<c17c7836>] ? work_notifysig+0x11/0x2b
[ 1203.462405]  [<c17cadc0>] ? vmalloc_fault+0x190/0x190
[ 1203.464988]  [<c10b1ea8>] ? trace_hardirqs_on_caller+0x18/0x120
[ 1203.467591]  [<c1016ccd>] do_notify_resume+0x5d/0x80
[ 1203.470208]  [<c17c784a>] work_notifysig+0x25/0x2b
[ 1203.472807]  [<c17cadc0>] ? vmalloc_fault+0x190/0x190
[ 1203.477219] BUG: scheduling while atomic: NetworkManager/4446/0x10000002
[ 1203.479842] INFO: lockdep is turned off.
[ 1203.482488] Modules linked in: vfat fat pci_stub vboxpci(O) vboxnetadp(O) vboxnetflt(O) vboxdrv(O) pktcdvd ebtable_nat ebtables acpi_cpufreq mperf xt_CHECKSUM irtty_sir sir_dev irda crc_ccitt dummy ppdev lp bnep rfcomm bluetooth lib80211_crypt_ccmp uinput nfsd pcmcia yenta_socket i2c_i801 radeon ipw2200 libipw pcmcia_rsrc pcmcia_core ttm drm_kms_helper parport_pc parport cfbfillrect cfbcopyarea cfbimgblt raid10 raid456 async_memcpy async_pq async_xor xor async_raid6_recov async_tx raid6_pq sr_mod cdrom floppy [last unloaded: scsi_wait_scan]
[ 1203.494591] Pid: 4446, comm: NetworkManager Tainted: G        W  O 3.3.0-rc2-t43-devel-smp-00172-g23783f8 #13
[ 1203.497701] Call Trace:
[ 1203.500809]  [<c17b188f>] __schedule_bug+0x7d/0x84
[ 1203.503940]  [<c17c59ca>] __schedule+0x6ca/0x780
[ 1203.507055]  [<c1083e72>] ? try_to_wake_up+0x152/0x1d0
[ 1203.510183]  [<c17c7065>] ? _raw_spin_unlock_irqrestore+0x65/0x70
[ 1203.513301]  [<c10ae8ff>] ? trace_hardirqs_off_caller+0x1f/0x130
[ 1203.516425]  [<c107e095>] ? __might_sleep+0x35/0x1d0
[ 1203.519547]  [<c17c7065>] ? _raw_spin_unlock_irqrestore+0x65/0x70
[ 1203.522687]  [<c10836bb>] __cond_resched+0x1b/0x30
[ 1203.525834]  [<c17c5af9>] _cond_resched+0x29/0x30
[ 1203.528977]  [<c17c5b2e>] wait_for_common+0x2e/0x120
[ 1203.532147]  [<c117e1a0>] ? coredump_wait+0x2d0/0x350
[ 1203.535298]  [<c17c5cf7>] wait_for_completion+0x17/0x20
[ 1203.538451]  [<c117e183>] coredump_wait+0x2b3/0x350
[ 1203.541611]  [<c1079cfa>] ? prepare_creds+0x2a/0x100
[ 1203.544745]  [<c1079cfa>] ? prepare_creds+0x2a/0x100
[ 1203.547823]  [<c117f658>] do_coredump+0xb8/0x440
[ 1203.550820]  [<c11638ad>] ? kmem_cache_free+0x12d/0x1e0
[ 1203.553718]  [<c105d252>] ? __sigqueue_free+0x32/0x40
[ 1203.556514]  [<c105d252>] ? __sigqueue_free+0x32/0x40
[ 1203.559184]  [<c1061625>] ? get_signal_to_deliver+0x185/0x470
[ 1203.561831]  [<c10b1fbb>] ? trace_hardirqs_on+0xb/0x10
[ 1203.564424]  [<c17cadc0>] ? vmalloc_fault+0x190/0x190
[ 1203.567016]  [<c106165c>] get_signal_to_deliver+0x1bc/0x470
[ 1203.569615]  [<c17cadc0>] ? vmalloc_fault+0x190/0x190
[ 1203.572222]  [<c10169df>] do_signal+0x3f/0xd0
[ 1203.574819]  [<c17b0ba4>] ? bad_area_nosemaphore+0x17/0x19
[ 1203.577430]  [<c17cb1bc>] ? do_page_fault+0x3fc/0x4f0
[ 1203.580052]  [<c132c6ee>] ? do_raw_spin_unlock+0x4e/0x90
[ 1203.582667]  [<c1140b53>] ? might_fault+0x33/0xb0
[ 1203.585272]  [<c17c7836>] ? work_notifysig+0x11/0x2b
[ 1203.587884]  [<c17cadc0>] ? vmalloc_fault+0x190/0x190
[ 1203.590504]  [<c10b1ea8>] ? trace_hardirqs_on_caller+0x18/0x120
[ 1203.593115]  [<c1016ccd>] do_notify_resume+0x5d/0x80
[ 1203.595723]  [<c17c784a>] work_notifysig+0x25/0x2b
[ 1203.598332]  [<c17cadc0>] ? vmalloc_fault+0x190/0x190
[ 1203.601209] BUG: scheduling while atomic: NetworkManager/4446/0x10000002
[ 1203.603852] INFO: lockdep is turned off.
[ 1203.606523] Modules linked in: vfat fat pci_stub vboxpci(O) vboxnetadp(O) vboxnetflt(O) vboxdrv(O) pktcdvd ebtable_nat ebtables acpi_cpufreq mperf xt_CHECKSUM irtty_sir sir_dev irda crc_ccitt dummy ppdev lp bnep rfcomm bluetooth lib80211_crypt_ccmp uinput nfsd pcmcia yenta_socket i2c_i801 radeon ipw2200 libipw pcmcia_rsrc pcmcia_core ttm drm_kms_helper parport_pc parport cfbfillrect cfbcopyarea cfbimgblt raid10 raid456 async_memcpy async_pq async_xor xor async_raid6_recov async_tx raid6_pq sr_mod cdrom floppy [last unloaded: scsi_wait_scan]
[ 1203.618869] Pid: 4446, comm: NetworkManager Tainted: G        W  O 3.3.0-rc2-t43-devel-smp-00172-g23783f8 #13
[ 1203.622033] Call Trace:
[ 1203.625173]  [<c17b188f>] __schedule_bug+0x7d/0x84
[ 1203.628324]  [<c17c59ca>] __schedule+0x6ca/0x780
[ 1203.631485]  [<c10e69a9>] ? __call_rcu+0xd9/0x3a0
[ 1203.634628]  [<c10b1ea8>] ? trace_hardirqs_on_caller+0x18/0x120
[ 1203.637788]  [<c10b1fbb>] ? trace_hardirqs_on+0xb/0x10
[ 1203.640942]  [<c10b1fbb>] ? trace_hardirqs_on+0xb/0x10
[ 1203.644058]  [<c1079e00>] ? release_tgcred.isra.10+0x30/0x30
[ 1203.647182]  [<c107e095>] ? __might_sleep+0x35/0x1d0
[ 1203.650323]  [<c1079eb4>] ? __put_cred+0x34/0x40
[ 1203.653443]  [<c10836bb>] __cond_resched+0x1b/0x30
[ 1203.656558]  [<c17c5af9>] _cond_resched+0x29/0x30
[ 1203.659661]  [<c17c5028>] down_read+0x28/0x8a
[ 1203.662772]  [<c106192e>] exit_signals+0x1e/0x110
[ 1203.665876]  [<c104f0d2>] do_exit+0x92/0x450
[ 1203.668954]  [<c1061625>] ? get_signal_to_deliver+0x185/0x470
[ 1203.672044]  [<c104f5d8>] do_group_exit+0x38/0xa0
[ 1203.675013]  [<c17cadc0>] ? vmalloc_fault+0x190/0x190
[ 1203.677897]  [<c1061666>] get_signal_to_deliver+0x1c6/0x470
[ 1203.680705]  [<c17cadc0>] ? vmalloc_fault+0x190/0x190
[ 1203.683393]  [<c10169df>] do_signal+0x3f/0xd0
[ 1203.686031]  [<c17b0ba4>] ? bad_area_nosemaphore+0x17/0x19
[ 1203.688645]  [<c17cb1bc>] ? do_page_fault+0x3fc/0x4f0
[ 1203.691268]  [<c132c6ee>] ? do_raw_spin_unlock+0x4e/0x90
[ 1203.693893]  [<c1140b53>] ? might_fault+0x33/0xb0
[ 1203.696507]  [<c17c7836>] ? work_notifysig+0x11/0x2b
[ 1203.699116]  [<c17cadc0>] ? vmalloc_fault+0x190/0x190
[ 1203.701728]  [<c10b1ea8>] ? trace_hardirqs_on_caller+0x18/0x120
[ 1203.704332]  [<c1016ccd>] do_notify_resume+0x5d/0x80
[ 1203.706941]  [<c17c784a>] work_notifysig+0x25/0x2b
[ 1203.709538]  [<c17cadc0>] ? vmalloc_fault+0x190/0x190
[ 1203.712306] note: NetworkManager[4446] exited with preempt_count 1


compiled with gcc-4.6 on IA-32 Debian/GNU Linux unstable.

Config file attached.
Comment 1 Alan 2012-05-12 02:21:55 UTC
Please re-open if you can duplicate this without virtualbox loaded

Note You need to log in before you can comment on or make changes to this bug.