Skip to content

VMM: HM - toggle CR4.CET around toggling CR0.WP if needed#565

Open
minipli-oss wants to merge 1 commit intoVirtualBox:mainfrom
minipli-oss:ro_gdt_cet
Open

VMM: HM - toggle CR4.CET around toggling CR0.WP if needed#565
minipli-oss wants to merge 1 commit intoVirtualBox:mainfrom
minipli-oss:ro_gdt_cet

Conversation

@minipli-oss
Copy link

CET enabled systems need to disable CR4.CET prior to attempting to toggle CR0.WP to avoid triggering a #GP(0). This is needed in VMMR0.r0 for PaX's r/o GDT handling.

Enhance the r/o GDT handling to toggle CR4.CET as well in case it's enabled.

This patch was proposed on the vbox-dev mailing list in 2024 already but never got any feedback. This is yet another attempt to get it merged.

Thanks,
Mathias

CET enabled systems need to disable CR4.CET prior to attempting to toggle
CR0.WP to avoid triggering a #GP(0). This is needed in VMMR0.r0 for PaX's
r/o GDT handling.

Enhance the r/o GDT handling to toggle CR4.CET as well in case it's enabled.

Signed-off-by: Mathias Krause <minipli@grsecurity.net>
@oracle-contributor-agreement
Copy link

Thank you for your pull request and welcome to our community! To contribute, please sign the Oracle Contributor Agreement (OCA).
The following contributors of this PR have not signed the OCA:

To sign the OCA, please create an Oracle account and sign the OCA in Oracle's Contributor Agreement Application.

When signing the OCA, please provide your GitHub username. After signing the OCA and getting an OCA approval from Oracle, this PR will be automatically updated.

If you are an Oracle employee, please make sure that you are a member of the main Oracle GitHub organization, and your membership in this organization is public.

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Required At least one contributor does not have an approved Oracle Contributor Agreement. label Feb 25, 2026
@oracle-contributor-agreement
Copy link

Thank you for signing the OCA.

@oracle-contributor-agreement oracle-contributor-agreement bot added OCA Verified All contributors have signed the Oracle Contributor Agreement. and removed OCA Required At least one contributor does not have an approved Oracle Contributor Agreement. labels Feb 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OCA Verified All contributors have signed the Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant