lkml.org 
[lkml]   [2004]   [Dec]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: help with access_process_vm
* 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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:08    [W:0.056 / U:0.704 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site