Re: vm86 segfaults with NX bit

From: H. Peter Anvin
Date: Thu Nov 20 2008 - 16:28:21 EST


Takashi Iwai wrote:

did the code that mapped this memory setup use PROT_EXEC ?
A good question...
Luc, Egbert, how does VESA driver handle it?

Just looking through the vesa directory of xorg-server code, PROT_EXEC
is passed for all mappings, at least.

Please correct me if I'm looking at a wrong place...


Please do an strace of the X server startup up to the point of the crash.

I am betting that PROT_EXEC is missing from an mmap(), or that it needs an additional mprotect().

-hpa

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