kdb
[Top] [All Lists]

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

To: Keith Owens <kaos@xxxxxxx>
Subject: Re: [PATCH] access user space addresses/switch process context
From: "Vamsi Krishna S ." <vamsi@xxxxxxxxxx>
Date: Wed, 16 Apr 2003 19:37:35 +0530
Cc: kdb <kdb@xxxxxxxxxxx>
In-reply-to: <29493.1050498685@xxxxxxxxxxxxxxxxxxxxx>; from kaos@xxxxxxx on Wed, Apr 16, 2003 at 11:11:25PM +1000
References: <28953.1050498079@xxxxxxxxxxxxxxxxxxxxx> <29493.1050498685@xxxxxxxxxxxxxxxxxxxxx>
Reply-to: vamsi@xxxxxxxxxx
Sender: kdb-bounce@xxxxxxxxxxx
User-agent: Mutt/1.2.5i
On Wed, Apr 16, 2003 at 11:11:25PM +1000, Keith Owens wrote:
> On Wed, 16 Apr 2003 23:01:19 +1000, 
> Keith Owens <kaos@xxxxxxx> wrote:
> >On Wed, 16 Apr 2003 17:31:33 +0530, 
> >"Vamsi Krishna S ." <vamsi@xxxxxxxxxx> wrote:
> >>diff -urN -X /home/vamsi/.dontdiff 2420-kdb4.1-pure/kdb/kdbsupport.c 
> >>2420-kdb4.1/kdb/kdbsupport.c
> >>--- 2420-kdb4.1-pure/kdb/kdbsupport.c       2003-04-16 11:38:14.000000000 
> >>+0530
> >>+++ 2420-kdb4.1/kdb/kdbsupport.c    2003-04-16 12:56:42.000000000 +0530
> >>+/*
> >>+ * from mm/memory.c, adapted to run without any locks to work within kdb
> >>+ */
> >>+static struct page * kdb_follow_page(struct mm_struct *mm, unsigned long 
> >>address, int write) 
> >
> >AFAICT this function is identical to follow_page().  Instead of
> >duplicating that code and possibly getting out of sync with the real
> >follow_page(), change follow_page() so it is extern for CONFIG_KDB=y,
> >otherwise it is static.
> 
> Sorry for the scattered mails, things are a bit hectic at the moment.
> 
No problems. Thanks for taking the time to look into it :-)

> Forget about making follow_page() extern.  Instead add
> kdb_get_one_user_page to the end of mm/memory.c so it can access the
> private mm data and functions.
> 
Ok.. will do.

> Also kdb_getuserarea_size() needs to be exported, any module that does
> kdb_getarea() will end up with a call to kdb_getuserarea_size().
> 
Right. I will export it.

-- 
Vamsi Krishna S.
Linux Technology Center,
IBM Software Lab, Bangalore.
Ph: +91 80 5044959
Internet: vamsi@xxxxxxxxxx

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