Detecting illegal memory access

From: Jan Engelhardt
Date: Tue Apr 11 2006 - 06:35:23 EST


Hello,


I am looking for a way to check from userspace if a given address can be
dereferenced. One way would be to examine /proc/self/maps if there is
something mapped and 'r' at the address, but this seems a little time
consuming. Is there another way? Kernelspace does have it I think, as
access_ok().


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