x86/vm86/32: Fix POPF emulation
authorAndy Lutomirski <[email protected]>
Wed, 14 Mar 2018 05:03:12 +0000 (22:03 -0700)
committerIngo Molnar <[email protected]>
Wed, 14 Mar 2018 08:21:01 +0000 (09:21 +0100)
commitb5069782453459f6ec1fdeb495d9901a4545fcb5
treeb7078170c6ca6d205dab92973f5d41a0d848d57d
parent78393fdde2a456cafa414b171c90f26a3df98b20
x86/vm86/32: Fix POPF emulation

POPF would trap if VIP was set regardless of whether IF was set.  Fix it.

Suggested-by: Stas Sergeev <[email protected]>
Reported-by: Bart Oldeman <[email protected]>
Signed-off-by: Andy Lutomirski <[email protected]>
Cc: Borislav Petkov <[email protected]>
Cc: Brian Gerst <[email protected]>
Cc: Denys Vlasenko <[email protected]>
Cc: H. Peter Anvin <[email protected]>
Cc: Josh Poimboeuf <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: [email protected]
Fixes: 5ed92a8ab71f ("x86/vm86: Use the normal pt_regs area for vm86")
Link: http://lkml.kernel.org/r/ce95f40556e7b2178b6bc06ee9557827ff94bd28.1521003603.git.luto@kernel.org
Signed-off-by: Ingo Molnar <[email protected]>
arch/x86/kernel/vm86_32.c