All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Chinner <dgc@sgi.com>
To: lkml <linux-kernel@vger.kernel.org>
Subject: BUG: sleeping function called from invalid context at kernel/fork.c:385
Date: Wed, 23 May 2007 16:31:54 +1000	[thread overview]
Message-ID: <20070523063154.GR85884050@sgi.com> (raw)

Saw this when running strace -f on a script on 2.6.21 on ia64:

BUG: sleeping function called from invalid context at kernel/fork.c:385
in_atomic():1, irqs_disabled():0

Call Trace:
 [<a000000100014700>] show_stack+0x80/0xa0
                                sp=e00000306e6f7a00 bsp=e00000306e6f0ef8
 [<a000000100014750>] dump_stack+0x30/0x60
                                sp=e00000306e6f7bd0 bsp=e00000306e6f0ee0
 [<a0000001000acaf0>] __might_sleep+0x1f0/0x260
                                sp=e00000306e6f7bd0 bsp=e00000306e6f0eb8
 [<a0000001000bd2e0>] mmput+0x20/0x220
                                sp=e00000306e6f7bd0 bsp=e00000306e6f0e90
 [<a0000001000321e0>] sys_ptrace+0x460/0x1600
                                sp=e00000306e6f7bd0 bsp=e00000306e6f0d80
 [<a00000010000bc40>] ia64_ret_from_syscall+0x0/0x20
                                sp=e00000306e6f7e30 bsp=e00000306e6f0d80
 [<a000000000010620>] __kernel_syscall_via_break+0x0/0x20
                                sp=e00000306e6f8000 bsp=e00000306e6f0d80
BUG: sleeping function called from invalid context at kernel/fork.c:385
in_atomic():1, irqs_disabled():0

Call Trace:
 [<a000000100014700>] show_stack+0x80/0xa0
                                sp=e00000306e6f7a00 bsp=e00000306e6f0ef8
 [<a000000100014750>] dump_stack+0x30/0x60
                                sp=e00000306e6f7bd0 bsp=e00000306e6f0ee0
 [<a0000001000acaf0>] __might_sleep+0x1f0/0x260
                                sp=e00000306e6f7bd0 bsp=e00000306e6f0eb8
 [<a0000001000bd2e0>] mmput+0x20/0x220
                                sp=e00000306e6f7bd0 bsp=e00000306e6f0e90
 [<a0000001000321e0>] sys_ptrace+0x460/0x1600
                                sp=e00000306e6f7bd0 bsp=e00000306e6f0d80
 [<a00000010000bc40>] ia64_ret_from_syscall+0x0/0x20
                                sp=e00000306e6f7e30 bsp=e00000306e6f0d80
 [<a000000000010620>] __kernel_syscall_via_break+0x0/0x20
                                sp=e00000306e6f8000 bsp=e00000306e6f0d80

I could reproduce it via 'strace -f sleep 1'

Cheers,

Dave.
-- 
Dave Chinner
Principal Engineer
SGI Australian Software Group

             reply	other threads:[~2007-05-23  6:32 UTC|newest]

Thread overview: 81+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-23  6:31 David Chinner [this message]
2007-05-23  6:43 ` BUG: sleeping function called from invalid context at Andrew Morton
2007-05-23  6:43   ` BUG: sleeping function called from invalid context at kernel/fork.c:385 Andrew Morton
2007-05-23 17:44   ` Luck, Tony
2007-05-23 17:44     ` Luck, Tony
2007-05-30  3:30     ` David Chinner
2007-05-30  3:30       ` David Chinner
2007-05-30  4:44       ` David Chinner
2007-05-30  4:44         ` David Chinner
2007-05-30 20:11   ` Luck, Tony
2007-05-30 20:11     ` Luck, Tony
2007-05-30 22:39     ` BUG: sleeping function called from invalid context at Christoph Lameter
2007-05-30 22:39       ` BUG: sleeping function called from invalid context at kernel/fork.c:385 Christoph Lameter
2007-05-31  0:53     ` David Chinner
2007-05-31  0:53       ` David Chinner
2007-06-04  5:14       ` Peter Chubb
2007-06-04  5:14         ` Peter Chubb
2007-05-30 23:19   ` Luck, Tony
2007-05-30 23:19     ` Luck, Tony
2007-05-30 23:31     ` BUG: sleeping function called from invalid context at Christoph Lameter
2007-05-30 23:31       ` BUG: sleeping function called from invalid context at kernel/fork.c:385 Christoph Lameter
2007-05-30 23:34       ` BUG: sleeping function called from invalid context at Randy Dunlap
2007-05-30 23:34         ` BUG: sleeping function called from invalid context at kernel/fork.c:385 Randy Dunlap
2007-05-30 23:53         ` BUG: sleeping function called from invalid context at Christoph Lameter
2007-05-30 23:53           ` BUG: sleeping function called from invalid context at kernel/fork.c:385 Christoph Lameter
2007-05-30 23:55           ` Randy Dunlap
2007-05-30 23:55             ` Randy Dunlap
2007-05-31  0:09             ` BUG: sleeping function called from invalid context at Christoph Lameter
2007-05-31  0:09               ` BUG: sleeping function called from invalid context at kernel/fork.c:385 Christoph Lameter
2007-05-31  6:12               ` BUG: sleeping function called from invalid context at Randy Dunlap
2007-05-31  6:12                 ` BUG: sleeping function called from invalid context at kernel/fork.c:385 Randy Dunlap
2007-05-31  4:43       ` Sam Ravnborg
2007-05-31  4:43         ` Sam Ravnborg
2007-05-30 23:56   ` Yu, Fenghua
2007-05-30 23:56     ` Yu, Fenghua
2007-05-31  2:37   ` Luck, Tony
2007-05-31  2:37     ` Luck, Tony
2007-05-31  3:19     ` BUG: sleeping function called from invalid context at Christoph Lameter
2007-05-31  3:19       ` BUG: sleeping function called from invalid context at kernel/fork.c:385 Christoph Lameter
2007-05-31 15:20       ` Prarit Bhargava
2007-05-31 15:20         ` Prarit Bhargava
2007-05-31 19:54         ` Sam Ravnborg
2007-05-31 19:54           ` Sam Ravnborg
2007-05-31 20:04         ` Sam Ravnborg
2007-05-31 20:04           ` Sam Ravnborg
2007-05-31 20:08           ` [PATCH] net/hp100: fix section mismatch warning Sam Ravnborg
2007-05-31 20:08             ` Sam Ravnborg
2007-05-31 20:17           ` [PATCH] kvm: fix section mismatch warning in kvm-intel.o Sam Ravnborg
2007-05-31 20:17             ` Sam Ravnborg
2007-05-31 20:24           ` [PATCH] acpi: fix section mismatch warning in asus_acpi.o Sam Ravnborg
2007-05-31 20:24             ` Sam Ravnborg
2007-05-31 20:29             ` [PATCH] acpi: fix section mismatch warning in asus + toshiba Sam Ravnborg
2007-05-31 20:29               ` Sam Ravnborg
2007-05-31 20:46           ` [PATCH] isdn: fix section mismatch warnings Sam Ravnborg
2007-05-31 20:46             ` Sam Ravnborg
2007-05-31 20:51           ` [PATCH] microcode: fix section mismatch warning Sam Ravnborg
2007-05-31 20:51             ` Sam Ravnborg
2007-05-31 20:42         ` BUG: sleeping function called from invalid context at Christoph Lameter
2007-05-31 20:42           ` BUG: sleeping function called from invalid context at kernel/fork.c:385 Christoph Lameter
2007-06-01  3:18   ` Luck, Tony
2007-06-01  3:18     ` Luck, Tony
2007-06-01  3:31     ` Prarit Bhargava
2007-06-01  3:31       ` Prarit Bhargava
2007-06-01  4:05       ` BUG: sleeping function called from invalid context at Christoph Lameter
2007-06-01  4:05         ` BUG: sleeping function called from invalid context at kernel/fork.c:385 Christoph Lameter
2007-06-01  4:17         ` Sam Ravnborg
2007-06-01  4:17           ` Sam Ravnborg
2007-06-01  4:45           ` BUG: sleeping function called from invalid context at Christoph Lameter
2007-06-01  4:45             ` BUG: sleeping function called from invalid context at kernel/fork.c:385 Christoph Lameter
2007-06-01  6:42             ` Sam Ravnborg
2007-06-01  6:42               ` Sam Ravnborg
2007-06-01  8:00   ` Luck, Tony
2007-06-01  8:00     ` Luck, Tony
2007-06-01 10:30     ` Prarit Bhargava
2007-06-01 10:30       ` Prarit Bhargava
2007-06-05 14:55     ` linux-ia64 build warning messages Russ Anderson
2007-06-05 14:55       ` Russ Anderson
2007-06-07  5:00       ` Peter Chubb
2007-06-07  5:00         ` Peter Chubb
2007-06-01 10:37   ` BUG: sleeping function called from invalid context at kernel/fork.c:385 Luck, Tony
2007-06-01 10:37     ` Luck, Tony

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=20070523063154.GR85884050@sgi.com \
    --to=dgc@sgi.com \
    --cc=linux-kernel@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.