Skip to content

x86/umip: Fix UMIP insn decoder false positives

Sean Christopherson lkml stable 1 version Applied

Status from this message: The following commit has been merged into the x86/cpu branch of tip:

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 7 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3x86/umip: Check that the instruction opcode is at least two bytesarch/x86/kernel/umip.c+2 -24 replies
2/3x86/umip: Fix decoding of register forms of 0F 01 (SGDT and SIDT aliases)arch/x86/kernel/umip.c+11 -01 reply
3/3*** DO NOT MERGE *** x86/umip: Lazy person's KUnit test for UMIP emulationarch/x86/kernel/umip.c+56 -00 replies

Reviews trailers per patch

2 of 3 patches have a Reviewed-by or Acked-by.

PatchPeter Zijlstra (Intel)
1/3A-b
2/3A-b
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] x86/umip: Fix UMIP insn decoder false positives

Fix two false positives scenarios where the UMIP #GP logic will incorrectly trigger emulation, e.g. due to a partially decoded instruction, or on instructions like VMLAUNCH that usurp the register form of '0f 01'.

Tested with the hack-a-test patch at the end, but I haven't done any testing using a real userspace (neither positive nor negative testing).

Sean Christopherson (3):
x86/umip: Check that the instruction opcode is at least two bytes x86/umip: Fix decoding of register forms of 0F 01 (SGDT and SIDT
aliases)
*** DO NOT MERGE *** x86/umip: Lazy person's KUnit test for UMIP
emulation

 arch/x86/kernel/umip.c | 71 ++++++++++++++++++++++++++++++++++++++++--
 1 file changed, 69 insertions(+), 2 deletions(-)

base-commit: ce0b5eedcb753697d43f61dd2e27d68eb5d3150f

Signature · 1 line
2.50.1.703.g449372360f-goog