diff options
| author | Matthew Maurer <[email protected]> | 2024-08-20 19:48:59 +0000 |
|---|---|---|
| committer | Miguel Ojeda <[email protected]> | 2024-09-16 16:04:37 +0000 |
| commit | a2f11547052001bd448ccec81dd1e68409078fbb (patch) | |
| tree | 8b877782043c1e767f6ecf12fe429ebe138d8ca6 /rust/helpers/mutex.c | |
| parent | kbuild: rust: Enable KASAN support (diff) | |
| download | kernel-a2f11547052001bd448ccec81dd1e68409078fbb.tar.gz kernel-a2f11547052001bd448ccec81dd1e68409078fbb.zip | |
kasan: rust: Add KASAN smoke test via UAF
Adds a smoke test to ensure that KASAN in Rust is actually detecting a
Rust-native UAF. There is significant room to expand this test suite,
but this will at least ensure that flags are having the intended effect.
The rename from kasan_test.c to kasan_test_c.c is in order to allow the
single kasan_test.ko test suite to contain both a .o file produced
by the C compiler and one produced by rustc.
Signed-off-by: Matthew Maurer <[email protected]>
Reviewed-by: Andrey Konovalov <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
[ Applied empty line nit, removed double empty line,
applied `rustfmt` and formatted crate comment. - Miguel ]
Signed-off-by: Miguel Ojeda <[email protected]>
Diffstat (limited to 'rust/helpers/mutex.c')
0 files changed, 0 insertions, 0 deletions
