From: Christoph Lameter on
On Wed, 7 Apr 2010, Pekka Enberg wrote:

> +int kern_ptr_validate(const void *ptr, unsigned long size)
> +{
> + unsigned long addr = (unsigned long)ptr;
> + unsigned long min_addr = PAGE_OFFSET;

Use the min_addr from the security subsystem?

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo(a)vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/