Skip to content
Commit 59a12205 authored by Christophe Leroy's avatar Christophe Leroy Committed by Kees Cook
Browse files

lkdtm: Add tests for NULL pointer dereference



Introduce lkdtm tests for NULL pointer dereference: check access or exec
at NULL address, since these errors tend to be reported differently from
the general fault error text. For example from x86:

    pr_alert("BUG: unable to handle kernel %s at %px\n",
        address < PAGE_SIZE ? "NULL pointer dereference" : "paging request",
        (void *)address);

Signed-off-by: default avatarChristophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: default avatarKees Cook <keescook@chromium.org>
parent 4c411157
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment