vm86 segfaults with NX bit

From: Takashi Iwai
Date: Thu Nov 20 2008 - 10:39:20 EST


Hi,

X guys reported that VESA driver segfaults in vm86 mode with a kernel
with CONFIG_X86_PAE, and it turned to be the NX bit. See Novell
bugzilla #443440:
https://bugzilla.novell.com/show_bug.cgi?id=443440

I can confirm that the latest 2.6.28-rc still causes the same problem,
and it disappears when booted with noexec=off option.

Also, when NX bit is reset for the first 1MB (or smaller) in
do_sys_vm86(), it also works as expected. But I have little clue
where to restore the bit again.

Any good suggestions / solutions?


thanks,

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