Messages in this thread | | | Date | Tue, 11 Apr 2006 12:35:06 +0200 (MEST) | From | Jan Engelhardt <> | Subject | Detecting illegal memory access |
| |
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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |