diff options
author | Thomas Weißschuh <thomas.weissschuh@linutronix.de> | 2025-04-16 14:44:19 +0200 |
---|---|---|
committer | Kees Cook <kees@kernel.org> | 2025-04-28 10:32:43 -0700 |
commit | 0d6efa20e384a41a7f4afdcd8a0aec442c19d33e (patch) | |
tree | a20b9d5f761e651c3469196da8d67a9b050c0da8 | |
parent | b8e147973eca7e07fa0845350d77c9970263fcd7 (diff) |
kunit/usercopy: Disable u64 test on 32-bit SPARC
usercopy of 64 bit values does not work on 32-bit SPARC:
# usercopy_test_valid: EXPECTATION FAILED at lib/tests/usercopy_kunit.c:209
Expected val_u64 == 0x5a5b5c5d6a6b6c6d, but
val_u64 == 1515936861 (0x5a5b5c5d)
0x5a5b5c5d6a6b6c6d == 6510899242581322861 (0x5a5b5c5d6a6b6c6d)
Disable the test.
Fixes: 4c5d7bc63775 ("usercopy: Add tests for all get_user() sizes")
Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Link: https://lore.kernel.org/r/20250416-kunit-sparc-usercopy-v1-1-a772054db3af@linutronix.de
Signed-off-by: Kees Cook <kees@kernel.org>
-rw-r--r-- | lib/tests/usercopy_kunit.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/tests/usercopy_kunit.c b/lib/tests/usercopy_kunit.c index 77fa00a13df7..80f8abe10968 100644 --- a/lib/tests/usercopy_kunit.c +++ b/lib/tests/usercopy_kunit.c @@ -27,6 +27,7 @@ !defined(CONFIG_MICROBLAZE) && \ !defined(CONFIG_NIOS2) && \ !defined(CONFIG_PPC32) && \ + !defined(CONFIG_SPARC32) && \ !defined(CONFIG_SUPERH)) # define TEST_U64 #endif |