Skip to content

Improve CET tests

Chao Gao kvm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8x86: cet: Pass virtual addresses to invlpgx86/cet.c+1 -10 replies
2/8x86: cet: Remove unnecessary memory zeroing for shadow stackx86/cet.c+1 -80 replies
3/8x86: cet: Directly check for #CP exception in run_in_user()x86/cet.c+4 -190 replies
4/8x86: cet: Validate #CP error codelib/x86/usermode.c x86/cet.c+6 -20 replies
5/8x86: cet: Use report_skip()x86/cet.c+2 -20 replies
6/8x86: cet: Drop unnecessary castingx86/cet.c+2 -20 replies
7/8x86: cet: Validate writing unaligned values to SSP MSR causes #GPx86/cet.c+5 -00 replies
8/8x86: cet: Validate CET states during VMX transitionslib/x86/msr.h x86/unittests.cfg x86/vmx.h +1 more+95 -20 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [kvm-unit-tests PATCH v1 0/8] Improve CET tests

Fix a bug in the current CET tests (the first patch) and do some cleanups and add more tests for CET nested support.

New CET tests reveal that consistency checks are missing for CET states during nested VM-entry [*]

*: https://lore.kernel.org/kvm/[email protected]/

Chao Gao (7):
x86: cet: Remove unnecessary memory zeroing for shadow stack
x86: cet: Directly check for #CP exception in run_in_user()
x86: cet: Validate #CP error code
x86: cet: Use report_skip()
x86: cet: Drop unnecessary casting
x86: cet: Validate writing unaligned values to SSP MSR causes #GP
x86: cet: Validate CET states during VMX transitions

Yang Weijiang (1):
x86: cet: Fix parameter issue when flush TLBs for shadow stack

 lib/x86/msr.h      |  1 +
 lib/x86/usermode.c |  4 +++
 x86/cet.c          | 43 ++++++++----------------
 x86/unittests.cfg  |  7 ++++
 x86/vmx.h          |  8 +++--
 x86/vmx_tests.c    | 81 ++++++++++++++++++++++++++++++++++++++++++++++
 6 files changed, 112 insertions(+), 32 deletions(-)

base-commit: 695740795adee59b48599e2f1a6bf19866a77779

Signature · 1 line
2.47.1