For the record I still think it's better to just look it up in the kernel page tables, which already maintain that information. This is a much simpler, much less risky patch. It works on all architectures that use page tables for the kernel, and have a X bit in them. The rest are likely obscure and won't have a lot of modules.
My patch implementing this for x86 is here: http://lkml.iu.edu/hypermail/linux/kernel/1410.1/01879.html -Andi -- a...@linux.intel.com -- Speaking for myself only. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/