From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 References: <20190226233647.28547-1-keescook@chromium.org> <20190226233647.28547-4-keescook@chromium.org> In-Reply-To: <20190226233647.28547-4-keescook@chromium.org> From: Kees Cook Date: Tue, 26 Feb 2019 15:40:34 -0800 Message-ID: Subject: Re: [PATCH 3/3] lkdtm: Check for SMEP clearing protections Content-Type: text/plain; charset="UTF-8" To: Thomas Gleixner Cc: Peter Zijlstra , Jann Horn , Sean Christopherson , Dominik Brodowski , Kernel Hardening , LKML List-ID: On Tue, Feb 26, 2019 at 3:37 PM Kees Cook 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