kdb
[Top] [All Lists]

Re: [PATCH-updated] access user space addresses/switch process context

To: vamsi@xxxxxxxxxx
Subject: Re: [PATCH-updated] access user space addresses/switch process context
From: Keith Owens <kaos@xxxxxxx>
Date: Thu, 17 Apr 2003 12:15:32 +1000
Cc: kdb <kdb@xxxxxxxxxxx>
In-reply-to: Your message of "Wed, 16 Apr 2003 20:54:13 +0530." <20030416205413.A25851@in.ibm.com>
Sender: kdb-bounce@xxxxxxxxxxx
On Wed, 16 Apr 2003 20:54:13 +0530, 
"Vamsi Krishna S ." <vamsi@xxxxxxxxxx> wrote:
>Here is the updated patch. Changes from the previous version:
>- implement kdb_follow_page in mm/memory.c itself to be able to
>  use follow_page() directly.
>- support for writing into ("mm") user space addresses
>- export kdb_get[put]userarea_size so that kdb modules will
>  be able to use kdb_get[put]word.
>- implement this for ia64 along with i386.

On ia64, PAGE_OFFSET is 0xe000000000000000, testing against that
excludes I/O space (0xc) and modules/vmalloc (0xa).  The correct test
for user regions on ia64 is

        if (address >> 61 <= 4)

Applied to my tree with that correction.  To be released as kdb v4.2
next week, after we finish moving offices :(


<Prev in Thread] Current Thread [Next in Thread>