]> Git Repo - linux.git/commit - lib/test_meminit.c
lib: introduce test_meminit module
authorAlexander Potapenko <[email protected]>
Tue, 16 Jul 2019 23:27:27 +0000 (16:27 -0700)
committerLinus Torvalds <[email protected]>
Wed, 17 Jul 2019 02:23:22 +0000 (19:23 -0700)
commit5015a300a522c8fb542dc993140e4c360cf4cf5f
treedbad49fce32d12ce9c68a81656963cb1803992a0
parent8e060c21ae2c265a2b596e9e7f9f97ec274151a4
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]>
lib/Kconfig.debug
lib/Makefile
lib/test_meminit.c [new file with mode: 0644]
This page took 0.05203 seconds and 4 git commands to generate.