Skip to content

cpuid: Disable FSGSBASE feature for guest workloads - #14487

Open
copybara-service[bot] wants to merge 1 commit into
masterfrom
test/cl972832746
Open

copybara-service[bot] wants to merge 1 commit into
masterfrom
test/cl972832746

Conversation

@copybara-service

@copybara-service copybara-service Bot commented Aug 29, 2026

Copy link
Copy Markdown

cpuid: Disable FSGSBASE feature for guest workloads

Systrap allows apps to modify the GS register to use for their own purposes.
However, because it initially reserves the register to use for syscall
patching , the sentry must be alerted when the app attempts to set it
so that it can unpatch all patched syscall areas before
allowing the guest to use the register.

Thus, we disable the FSGSBASE feature on Systrap so workloads are informed
that they cannot use wrgsbase instruction to make a userspace write
to the register (which would bypass the sentry).

@copybara-service copybara-service Bot added the exported Issue was exported automatically label Aug 29, 2026
@copybara-service
copybara-service Bot force-pushed the test/cl972832746 branch 2 times, most recently from 3fe4fb9 to f24e5eb Compare September 17, 2026 03:12
Systrap allows apps to modify the GS register to use for their own purposes.
However, because it initially reserves the register to use for syscall
patching , the sentry must be alerted when the app attempts to set it
so that it can unpatch all patched syscall areas before
allowing the guest to use the register.

Thus, we disable the FSGSBASE feature on Systrap so workloads are informed
that they cannot use `wrgsbase` instruction to make a userspace write
to the register (which would bypass the sentry).

PiperOrigin-RevId: 972832746
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

exported Issue was exported automatically

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant