Re: [PATCH][2.5.47]Add exported valid_kernel_address()

From: Rusty Lynch (
Date: Wed Nov 13 2002 - 16:24:32 EST

I had a need for it in a sample kprobes driver where I wanted to verify that
some address
was a valid kernel space address before I handed a probe to kprobes.

So I would do something like:

if (!valid_kernel_address(probe->addr)) {
    ret = -EINVAL;
    goto out;


and then kpboes will go and attempt to set *(probe->addr) = BREAK_POINT;

----- Original Message -----
From: "Andi Kleen" <>
To: "Arjan van de Ven" <>
Cc: <>; <>
Sent: Wednesday, November 13, 2002 1:14 PM
Subject: Re: [PATCH][2.5.47]Add exported valid_kernel_address()

> Arjan van de Ven <> writes:
> > it is customary that people who ask for an export explain why they need
> > it.... would you mind explaining that ?
> For modular lkcd I guess. Make a lot of sense to do it modular.
> -Andi

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Fri Nov 15 2002 - 22:00:30 EST