Re: Verify Kernel Pointer

From: Arjan van de Ven
Date: Thu Apr 20 2006 - 04:42:06 EST


On Thu, 2006-04-20 at 03:33 +0000, Talib Alim wrote:
> A kernel virtual address is passed to my module.

that sounds like a design bug (if the "passed to" is from userspace)
> In order to avoid any
> chances of a crash, how can I verify this pointer is pointing to a mapped
> memory location.

given your design bug, I would suggest you post the URL to your code so
that we can help you fix your design instead...

-
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/