linux/mm/kfence
Marco Elver c40c6e593b kfence: test: fail fast if disabled at boot
Fail kfence_test fast if KFENCE was disabled at boot, instead of each test
case trying several seconds to allocate from KFENCE and failing.  KUnit
will fail all test cases if kunit_suite::init returns an error.

Even if KFENCE was disabled, we still want the test to fail, so that CI
systems that parse KUnit output will alert on KFENCE being disabled
(accidentally or otherwise).

Link: https://lkml.kernel.org/r/20210825105533.1247922-1-elver@google.com
Signed-off-by: Marco Elver <elver@google.com>
Reported-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Tested-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Acked-by: Alexander Potapenko <glider@google.com>
Cc: Dmitry Vyukov <dvyukov@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2021-09-08 11:50:24 -07:00
..
core.c kfence: show cpu and timestamp in alloc/free info 2021-09-08 11:50:24 -07:00
kfence_test.c kfence: test: fail fast if disabled at boot 2021-09-08 11:50:24 -07:00
kfence.h kfence: show cpu and timestamp in alloc/free info 2021-09-08 11:50:24 -07:00
Makefile kfence: add test suite 2021-02-26 09:41:02 -08:00
report.c kfence: show cpu and timestamp in alloc/free info 2021-09-08 11:50:24 -07:00