From: Chris Wright <chrisw@osdl.org>
To: ramos_fabiano@yahoo.com.br
Cc: LKML <linux-kernel@vger.kernel.org>
Subject: Re: help with access_process_vm
Date: Tue, 14 Dec 2004 12:31:24 -0800 [thread overview]
Message-ID: <20041214123124.R469@build.pdx.osdl.net> (raw)
In-Reply-To: <5afb2c65041214112577ff4a18@mail.gmail.com>; from fabiano.ramos@gmail.com on Tue, Dec 14, 2004 at 05:25:23PM -0200
* Fabiano Ramos (fabiano.ramos@gmail.com) wrote:
> But the first time a call access_process_vm, dmesg shows me:
>
> Debug: sleeping function called from invalid context at include/linux/rwsem.h:43
> in_atomic():0, irqs_disabled():1
> [<c01145ac>] __might_sleep+0x8c/0xa0
> [<c011c69b>] access_process_vm+0x4b/0x1d0
> [<c010c830>] do_debug_new+0xd0/0x190
> [<c038c755>] schedule+0x275/0x460
> [<c0105c2d>] error_code+0x2d/0x40
>
> What I am missing?
The access_process_vm() call is doing down_read(), which could sleep,
with irqs disabled. That's what's wrong.
thanks,
-chris
next prev parent reply other threads:[~2004-12-14 20:31 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-14 19:25 help with access_process_vm Fabiano Ramos
2004-12-14 20:31 ` Chris Wright [this message]
2004-12-14 20:52 ` Fabiano Ramos
2004-12-15 10:52 ` Jirka Kosina
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=20041214123124.R469@build.pdx.osdl.net \
--to=chrisw@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=ramos_fabiano@yahoo.com.br \
/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.