Re: 2.6.12-rc1 breaks dosemu

From: Arnd Bergmann
Date: Fri Mar 25 2005 - 13:57:33 EST


On Sünndag 20 März 2005 03:11, Adrian Bunk wrote:
> xdosemu 1.2.2 runs fine under 2.6.11.5, but fails under 2.6.12-rc1 with
> the following error:
>
> <-- snip -->
>
> $ xdosemu
> ERROR: cpu exception in dosemu code outside of VM86()!
> trapno: 0x0e errorcode: 0x00000005 cr2: 0xffffff8e
> eip: 0x000069ee esp: 0xbfdbffcc eflags: 0x00010246
> cs: 0x0073 ds: 0x007b es: 0x007b ss: 0x007b
> Page fault: read instruction to linear address: 0xffffff8e
> CPU was in user mode
> Exception was caused by insufficient privilege

I had the same problem and found out that disabling
address space randomization (echo 0 >
/proc/sys/kernel/randomize_va_space) solves this
reliably. With randomization enabled, I can start up
dosemu maybe 1 out of 100 times.

I guess the randomization patches changed the mapping
in a way that dosemu did not expect.

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