vmt / udis86

Disassembler Library for x86 and x86-64
http://udis86.sourceforge.net
BSD 2-Clause "Simplified" License
1.02k stars 299 forks source link

Add clac/stac instructions for SMAP #108

Open vegard opened 8 years ago

vegard commented 8 years ago

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