Skip to content

Commit 0d6efa2

Browse files
t-8chkees
authored andcommitted
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: 4c5d7bc ("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>
1 parent b8e1479 commit 0d6efa2

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/tests/usercopy_kunit.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
!defined(CONFIG_MICROBLAZE) && \
2828
!defined(CONFIG_NIOS2) && \
2929
!defined(CONFIG_PPC32) && \
30+
!defined(CONFIG_SPARC32) && \
3031
!defined(CONFIG_SUPERH))
3132
# define TEST_U64
3233
#endif

0 commit comments

Comments
 (0)