Re: [PATCH 3/3] lkdtm: Check for SMEP clearing protections

From: Kees Cook
Date: Tue Feb 26 2019 - 18:40:51 EST


On Tue, Feb 26, 2019 at 3:37 PM Kees Cook <keescook@xxxxxxxxxxxx> wrote:
> + for (i = 0; i < 64; i++) {
> ...
> + }
> + if (i >= 256) {
> + pr_info("ok: cannot locate cr4 writing call gadget\n");
> + return;
> + }

*brown paper bag*
Argh. I changed the depth of that search at the last moment and now
it's mismatched. *sigh* I will send a v2 for this with it fixed.

--
Kees Cook