Skip to content

Fix RFLAGS handling of kernel platforms#842

Merged
sangho2 merged 4 commits into
mainfrom
sanghle/lvbs/fix-flag-mask
May 19, 2026
Merged

Fix RFLAGS handling of kernel platforms#842
sangho2 merged 4 commits into
mainfrom
sanghle/lvbs/fix-flag-mask

Conversation

@sangho2
Copy link
Copy Markdown
Contributor

@sangho2 sangho2 commented May 8, 2026

This PR fixes RFLAGS handling of the LVBS and SNP platforms to prevent critical ring-3 RFLAGS (i.e., AC, DF, TF, NT, and IOPL) from affecting ring-0 behaviors. Note that the SNP platform doesn't use SFMASK and doesn't enable SMAP.

@sangho2 sangho2 marked this pull request as ready for review May 8, 2026 17:43
@sangho2 sangho2 changed the title Fix RFLAGS handling of LVBS Platform Fix RFLAGS handling of kernel platforms May 8, 2026
@sangho2 sangho2 force-pushed the sanghle/lvbs/fix-flag-mask branch 3 times, most recently from 652f9df to e64b93e Compare May 14, 2026 13:52
Comment thread litebox_platform_lvbs/src/lib.rs Outdated
Copy link
Copy Markdown
Member

@wdcui wdcui left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks.

@sangho2 sangho2 force-pushed the sanghle/lvbs/fix-flag-mask branch from 8a5a248 to 41b3426 Compare May 19, 2026 18:07
@github-actions
Copy link
Copy Markdown

🤖 SemverChecks 🤖 No breaking API changes detected

Note: this does not mean API is unchanged, or even that there are no breaking changes; simply, none of the detections triggered.

@sangho2 sangho2 added this pull request to the merge queue May 19, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks May 19, 2026
@sangho2 sangho2 added this pull request to the merge queue May 19, 2026
Merged via the queue into main with commit 637412a May 19, 2026
13 checks passed
@sangho2 sangho2 deleted the sanghle/lvbs/fix-flag-mask branch May 19, 2026 21:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants