Skip to content

x86/vm86/32: A bugfix and a matching test improvement

Andy Lutomirski lkml stable 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3selftests/x86/entry_from_vm86: Exit with 1 if we failtools/testing/selftests/x86/entry_from_vm86.c+1 -10 replies
2/3selftests/x86/entry_from_vm86: Add test cases for POPFtools/testing/selftests/x86/entry_from_vm86.c+27 -30 replies
3/3x86/vm86/32: Fix POPF emulationarch/x86/kernel/vm86_32.c+2 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] x86/vm86/32: A bugfix and a matching test improvement

A patch in 4.2 broke vm86's POPF emulation in a way that was somehow subtle enough that no one noticed until now. Fix it and improve the test case to exercise the code.

(The improved test case also exercises some code paths that were *not*
broken but that would have become broken if Stas' original suggested patch were applied. Go testing!)

Andy Lutomirski (3):
selftests/x86/entry_from_vm86: Exit with 1 if we fail selftests/x86/entry_from_vm86: Add test cases for POPF x86/vm86/32: Fix POPF emulation

 arch/x86/kernel/vm86_32.c                     |  3 ++-
 tools/testing/selftests/x86/entry_from_vm86.c | 32 +++++++++++++++++++++++----
 2 files changed, 30 insertions(+), 5 deletions(-)
Signature · 1 line
2.14.3