[PATCH] Enable interrupts in faults from VM86 mode
vm86 mode does a copy_to_user from the general protection fault handler to update the process' vm86 state. The problem is that the full GFP handler runs with interrupts off currently and that trips the might_sleep() test in copy_to_user(). This happens very often in dosemu and once in a while while the X server does its vm86 magic with the VGA bios. See http://bugzilla.kernel.org/show_bug.cgi?id=1339 for details This patch fixes this by enabling interrupts when the original code ran with interrupts on or ran in vm86 mode (vm86 can clear the IF flag)
Showing
Please register or sign in to comment