diff options
| author | Kees Cook <[email protected]> | 2025-04-27 00:21:01 +0000 |
|---|---|---|
| committer | Kees Cook <[email protected]> | 2025-05-08 16:42:40 +0000 |
| commit | b370f7eacdcfe1dd17bee00506296aa3fdc773cb (patch) | |
| tree | f1ef8051b43d1eed8b0d215175040e1708f2265b /drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c | |
| parent | randstruct: gcc-plugin: Remove bogus void member (diff) | |
| download | kernel-b370f7eacdcfe1dd17bee00506296aa3fdc773cb.tar.gz kernel-b370f7eacdcfe1dd17bee00506296aa3fdc773cb.zip | |
lib/tests: Add randstruct KUnit test
Perform basic validation about layout randomization and initialization
tracking when using CONFIG_RANDSTRUCT=y. Tested using:
$ ./tools/testing/kunit/kunit.py run \
--kconfig_add CONFIG_RANDSTRUCT_FULL=y \
randstruct
[17:22:30] ================= randstruct (2 subtests) ==================
[17:22:30] [PASSED] randstruct_layout
[17:22:30] [PASSED] randstruct_initializers
[17:22:30] =================== [PASSED] randstruct ====================
[17:22:30] ============================================================
[17:22:30] Testing complete. Ran 2 tests: passed: 2
[17:22:30] Elapsed time: 5.091s total, 0.001s configuring, 4.974s building, 0.086s running
Adding "--make_option LLVM=1" can be used to test Clang, which also
passes.
Acked-by: David Gow <[email protected]>
Signed-off-by: Kees Cook <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c')
0 files changed, 0 insertions, 0 deletions
