Bug 13561 - [devel-5.10] Intel: Backport some SGX fixes to 5.10 - part1
Summary: [devel-5.10] Intel: Backport some SGX fixes to 5.10 - part1
Status: NEW
Alias: None
Product: ANCK 5.10 Dev
Classification: ANCK
Component: X86 (show other bugs) X86
Version: unspecified
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: Guanjun
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-01-16 09:26 UTC by zhiquan1-li
Modified: 2025-01-16 16:39 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description zhiquan1-li intel_group 2025-01-16 09:26:12 UTC
When SGX EDECCSSA support was added to KVM in commit 16a7fe3728a8 ("KVM/VMX: Allow exposing EDECCSSA user leaf function to KVM guest"), it forgot to clear the X86_FEATURE_SGX_EDECCSSA bit in KVM CPU caps when KVM SGX is disabled. Fix it.

Fixes: 16a7fe3728a8 ("KVM/VMX: Allow exposing EDECCSSA user leaf function to KVM guest")

This is backport the commit from upstream:

7efb4d8a392a KVM: VMX: Also clear SGX EDECCSSA in KVM CPU caps when SGX is disabled

Reference
- Link: https://lore.kernel.org/r/20240905120837.579102-1-kai.huang@intel.com
Comment 1 zhiquan1-li intel_group 2025-01-16 15:45:48 UTC
This PR includes incremental backporting patches which mainly covers some SGX bugfix.
The total patch number is 9:

7efb4d8a392a KVM: VMX: Also clear SGX EDECCSSA in KVM CPU caps when SGX is disabled
2e52ac6b8e2e x86/sgx: Add overflow check in sgx_validate_offset_length()
16a7fe3728a8 KVM/VMX: Allow exposing EDECCSSA user leaf function to KVM guest
370839c241f7 x86/sgx: Allow enclaves to use Asynchrounous Exit Notification
7b72c823ddf8 x86/sgx: Reduce delay and interference of enclave release
ee56a283988d x86/sgx: Improve comments for sgx_encl_lookup/alloc_backing()
81fa6fd13b5c x86/sgx: Handle VA page allocation failure for EAUG on PF.
133e049a3f8c x86/sgx: Do not fail on incomplete sanitization on premature stop of ksgxd
5f4d1fd5b5d3 selftests/sgx: Ignore OpenSSL 3.0 deprecated functions warning
Comment 2 小龙 admin 2025-01-16 16:39:38 UTC
The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/4509