forked from torvalds/linux
Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
kfence: add test suite
Add KFENCE test suite, testing various error detection scenarios. Makes use of KUnit for test organization. Since KFENCE's interface to obtain error reports is via the console, the test verifies that KFENCE outputs expected reports to the console. Co-developed-by: Alexander Potapenko <glider@google.com> Signed-off-by: Alexander Potapenko <glider@google.com> Signed-off-by: Marco Elver <elver@google.com>
- Loading branch information
1 parent
edfc744
commit e52f64e8d3cbfe2423913871780cf012b2abeb21
Showing
3 changed files
with
793 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,6 @@ | ||
| # SPDX-License-Identifier: GPL-2.0 | ||
|
|
||
| obj-$(CONFIG_KFENCE) := core.o report.o | ||
|
|
||
| CFLAGS_kfence_test.o := -g -fno-omit-frame-pointer -fno-optimize-sibling-calls | ||
| obj-$(CONFIG_KFENCE_KUNIT_TEST) += kfence_test.o |
Oops, something went wrong.