Re: [PATCH v5] RO/NX protection for loadable kernel modules

From: Andi Kleen
Date: Sun Jul 12 2009 - 05:25:56 EST


Arjan van de Ven <arjan@xxxxxxxxxxxxx> writes:
>
> or using a non-power-of-two get_free_pages() thing...

alloc_pages_exact(). Was developed for exactly this purpose originally.

But it doesn't work on x86-64 again for modules.

-Andi
--
ak@xxxxxxxxxxxxxxx -- Speaking for myself only.
--
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/