Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add clac/stac instructions for SMAP #108

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

vegard
Copy link
Contributor

@vegard vegard commented Jan 1, 2016

See https://lwn.net/Articles/517475/ for more information about Supervisor
Mode Access Prevention (SMAP):

"Intel has defined a separate "AC" flag that controls the SMAP feature. If
the AC flag is set, SMAP protection is in force; otherwise access to user-
space memory is allowed. Two new instructions (STAC and CLAC) are provided
to manipulate that flag relatively quickly."

This adds support for those two instructions.

http://www.felixcloutier.com/x86/STAC.html

See https://lwn.net/Articles/517475/ for more information about Supervisor
Mode Access Prevention (SMAP):

"Intel has defined a separate "AC" flag that controls the SMAP feature. If
the AC flag is set, SMAP protection is in force; otherwise access to user-
space memory is allowed. Two new instructions (STAC and CLAC) are provided
to manipulate that flag relatively quickly."

This adds support for those two instructions.
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.

1 participant