[PATCH 3/3] x86/vm86/32: Fix POPF emulation

2018-03-13 Thread Andy Lutomirski
POPF would trap if VIP was set regardless of whether IF was set. Fix it. Reported-by: Bart Oldeman Suggested-by: Stas Sergeev Cc: sta...@vger.kernel.org Fixes: 5ed92a8ab71f ("x86/vm86: Use the normal pt_regs area for vm86") Signed-off-by: Andy Lutomirski

[PATCH 3/3] x86/vm86/32: Fix POPF emulation

2018-03-13 Thread Andy Lutomirski
POPF would trap if VIP was set regardless of whether IF was set. Fix it. Reported-by: Bart Oldeman Suggested-by: Stas Sergeev Cc: sta...@vger.kernel.org Fixes: 5ed92a8ab71f ("x86/vm86: Use the normal pt_regs area for vm86") Signed-off-by: Andy Lutomirski --- arch/x86/kernel/vm86_32.c | 3 ++-