* How can I verify a memory address exist?
@ 2002-11-13 0:07 Rusty Lynch
2002-11-13 8:13 ` Vamsi Krishna S .
2002-11-13 18:48 ` george anzinger
0 siblings, 2 replies; 3+ messages in thread
From: Rusty Lynch @ 2002-11-13 0:07 UTC (permalink / raw)
To: linux-kernel
Is there a kernel function to find out if a given memory address exist?
-rustyl
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How can I verify a memory address exist?
2002-11-13 0:07 How can I verify a memory address exist? Rusty Lynch
@ 2002-11-13 8:13 ` Vamsi Krishna S .
2002-11-13 18:48 ` george anzinger
1 sibling, 0 replies; 3+ messages in thread
From: Vamsi Krishna S . @ 2002-11-13 8:13 UTC (permalink / raw)
To: Rusty Lynch; +Cc: linux-kernel, richard, tom
On Wed, Nov 13, 2002 at 12:48:44AM +0000, Rusty Lynch wrote:
> Is there a kernel function to find out if a given memory address exist?
>
I think you are trying to validate addresses to be passed into kprobes.
In that context, you need to check if the given address is a kernel
space code address.
Take a look at kernel_text_address() functions in
arch/i386/kernel/traps.c which do this. Unfortunately, they are defined
static inline, so, they can't be used outside of traps.c. You may
want to export that function from kernel and use it in your driver.
Cheers,
Vamsi.
--
Vamsi Krishna S.
Linux Technology Center,
IBM Software Lab, Bangalore.
Ph: +91 80 5044959
Internet: vamsi@in.ibm.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How can I verify a memory address exist?
2002-11-13 0:07 How can I verify a memory address exist? Rusty Lynch
2002-11-13 8:13 ` Vamsi Krishna S .
@ 2002-11-13 18:48 ` george anzinger
1 sibling, 0 replies; 3+ messages in thread
From: george anzinger @ 2002-11-13 18:48 UTC (permalink / raw)
To: Rusty Lynch; +Cc: linux-kernel
Rusty Lynch wrote:
>
> Is there a kernel function to find out if a given memory address exist?
>
> -rustyl
Here is a related question. Is there a way to verify that
an address is a valid slab sub space address? I.e. that it
was allocated by slab for a particular usage and is still
valid (i.e. has not been returned).
--
George Anzinger george@mvista.com
High-res-timers:
http://sourceforge.net/projects/high-res-timers/
Preemption patch:
http://www.kernel.org/pub/linux/kernel/people/rml
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-11-13 18:42 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-13 0:07 How can I verify a memory address exist? Rusty Lynch
2002-11-13 8:13 ` Vamsi Krishna S .
2002-11-13 18:48 ` george anzinger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).