diff options
author | Kees Cook <keescook@chromium.org> | 2019-08-19 10:24:52 -0700 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2019-08-19 11:13:21 -0700 |
commit | 1ee170ea3f0dcf3a4b34f7e7c36559e84bb0d3d6 (patch) | |
tree | 103a354bd200370888a73fe1ebdb2e1ad517f735 /drivers/misc/lkdtm/lkdtm.h | |
parent | b0eb93cfd516201ccf0e4d36e226cfe1b16cc1fe (diff) |
lkdtm: Split WARNING into separate tests
There are three paths through the kernel code exception logging:
- BUG (no configurable printk message)
- WARN_ON (no configurable printk message)
- WARN (configurable printk message)
LKDTM was not testing WARN_ON(). This is needed to evaluate the placement
of the "cut here" line, which needs special handling in each of the
three exceptions (and between architectures that implement instruction
exceptions to implement the code exceptions).
Signed-off-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'drivers/misc/lkdtm/lkdtm.h')
-rw-r--r-- | drivers/misc/lkdtm/lkdtm.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/misc/lkdtm/lkdtm.h b/drivers/misc/lkdtm/lkdtm.h index 8a25afbdf954..ab446e0bde97 100644 --- a/drivers/misc/lkdtm/lkdtm.h +++ b/drivers/misc/lkdtm/lkdtm.h @@ -11,6 +11,7 @@ void __init lkdtm_bugs_init(int *recur_param); void lkdtm_PANIC(void); void lkdtm_BUG(void); void lkdtm_WARNING(void); +void lkdtm_WARNING_MESSAGE(void); void lkdtm_EXCEPTION(void); void lkdtm_LOOP(void); void lkdtm_EXHAUST_STACK(void); |