3 ms·
Great article! The only thing I wish was explained a bit better was the 2 TiB CFG memory reservation. What's that for, again?
by rocky1138 8y ago
Great article! The only thing I wish was explained a bit better was the 2 TiB CFG memory reservation. What's that for, again?
- brucedawson 8y agoBasically, one byte of CFG memory "controls access" to 64-bytes of executable memory - indicating which addresses are valid indirect branch targets. With appropriate compiler and OS support this can help stop some exploits. Unfortunately it quickly gets really complicated so a bit of hand waving is necessary.
- TickleSteve 8y agoCFG == function pointer checks prior to calling them. The sparse/virtual bit mask is an optimisation technique so the validation of the target address is quick.