Skip to content

Add clac/stac instructions for SMAP#108

Open
vegard wants to merge 1 commit into
vmt:masterfrom
vegard:smap
Open

Add clac/stac instructions for SMAP#108
vegard wants to merge 1 commit into
vmt:masterfrom
vegard:smap

Conversation

@vegard

@vegard vegard commented Jan 1, 2016

Copy link
Copy Markdown
Contributor

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