diff options
author | Christophe Leroy <christophe.leroy@c-s.fr> | 2018-12-14 15:26:20 +0000 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2019-01-09 12:00:31 -0800 |
commit | 59a12205d3c32aee4c13ca36889fdf7cfed31126 (patch) | |
tree | f2de1d775529e2e3b4e57edf669356f2cbec6303 /crypto/testmgr.h | |
parent | 4c411157a42f122051ae3469bee0b5cabe89e139 (diff) |
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: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'crypto/testmgr.h')
0 files changed, 0 insertions, 0 deletions