linux-rt-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Suspend: Mem leak and "sleeping function .. invalid context"
@ 2010-06-22 20:11 louis
  0 siblings, 0 replies; only message in thread
From: louis @ 2010-06-22 20:11 UTC (permalink / raw)
  To: linux-rt-users

Hi, I've come across a bug when using the RT patch in Fedora 8 (CCRMA
kernel derivative):  When I suspend, I get a "BUG: sleeping function
called from invalid context pm-suspend" message.  After resuming, I see a
memory leak that can rapidly eat memory just by doing this in BASH: 
"while /bin/true; do continue; done".  The system will slow and then
finally lock up with "free" reporting approx. 1 GB left (on a 2 GB
system).

This has been seen on both the Intel D510MO motherboard and the Intel
DQ35JOE board.  I have tried the CCRMA kernel
2.6.33.4-106.rt20.1.fc13.ccrma.i686.rtPAE  and a custom kernel based off
the 2.6.24.3-1 CCRMA kernel.  Versions of the kernel without the rt patch
do not fail (tried the stock FC8 kernel and stock FC11 kernel).

Here is a snippit of the backtrace I get:

kernel: BUG: sleeping function called from invalid context
pm-suspend(14941) at kernel/rtmutex.c:638
kernel: in_atomic():1 [00000001], irqs_disabled():1
kernel: Pid: 14941, comm: pm-suspend Not tainted
2.6.24.3-1.rec15.rt1.fc8rt #1
kernel:  [<c0699de1>] __rt_spin_lock+0x21/0x5e
kernel:  [<c04898ce>] kfree+0x29/0x88
kernel:  [<c0427be5>] rq_attach_root+0x5b/0xac
kernel:  [<c042a2df>] cpu_attach_domain+0x2af/0x2ef
kernel:  [<c0489929>] kfree+0x84/0x88
kernel:  [<c0489929>] kfree+0x84/0x88
kernel:  [<c042a33f>] detach_destroy_domains+0x20/0x33

The line number in question is:
        /* Temporary HACK! */
        if (!current->in_printk)
                might_sleep();    <--- line 638

I've found similar threads before, but did not see a resolution to this
problem on the x86 architecture (it looks like a similar problem might
have been solved on ARM..?).

Thanks for your help,
Louis



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-06-22 20:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-22 20:11 Suspend: Mem leak and "sleeping function .. invalid context" louis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).