diff options
| author | Alexander Potapenko <[email protected]> | 2019-07-16 23:27:27 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2019-07-17 02:23:22 +0000 |
| commit | 5015a300a522c8fb542dc993140e4c360cf4cf5f (patch) | |
| tree | dbad49fce32d12ce9c68a81656963cb1803992a0 /lib/string_helpers.c | |
| parent | lib/test_overflow.c: avoid tainting the kernel and fix wrap size (diff) | |
| download | kernel-5015a300a522c8fb542dc993140e4c360cf4cf5f.tar.gz kernel-5015a300a522c8fb542dc993140e4c360cf4cf5f.zip | |
lib: introduce test_meminit module
Add tests for heap and pagealloc initialization. These can be used to
check init_on_alloc and init_on_free implementations as well as other
approaches to initialization.
Expected test output in the case the kernel provides heap initialization
(e.g. when running with either init_on_alloc=1 or init_on_free=1):
test_meminit: all 10 tests in test_pages passed
test_meminit: all 40 tests in test_kvmalloc passed
test_meminit: all 60 tests in test_kmemcache passed
test_meminit: all 10 tests in test_rcu_persistent passed
test_meminit: all 120 tests passed!
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Alexander Potapenko <[email protected]>
Acked-by: Kees Cook <[email protected]>
Cc: Christoph Lameter <[email protected]>
Cc: Nick Desaulniers <[email protected]>
Cc: Kostya Serebryany <[email protected]>
Cc: Dmitry Vyukov <[email protected]>
Cc: Sandeep Patil <[email protected]>
Cc: Laura Abbott <[email protected]>
Cc: Jann Horn <[email protected]>
Cc: Marco Elver <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions
