Re: help with access_process_vm
From: Chris Wright
Date: Tue Dec 14 2004 - 15:32:17 EST
* Fabiano Ramos (fabiano.ramos@xxxxxxxxx) 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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/