On Wed, May 11, 2022 at 10:45 AM Kees Cook <[email protected]> wrote:
>
> There shouldn't be a reason to not build the 64-bit test cases on 32-bit
> systems; the types exist there too. Remove the #ifdefs.
>
> Reported-by: kernel test robot <[email protected]>
> Link: https://lore.kernel.org/lkml/[email protected]
> Fixes: 455a35a6cdb6 ("lib: add runtime test of check_*_overflow functions")
> Cc: Rasmus Villemoes <[email protected]>
> Cc: Vitor Massaru Iha <[email protected]>
> Cc: "Gustavo A. R. Silva" <[email protected]>
> Cc: Daniel Latypov <[email protected]>
> Signed-off-by: Kees Cook <[email protected]>
Tested-by: Daniel Latypov <[email protected]>
Makes sense and looks good to me, I was able to run it via
$ ./tools/testing/kunit/kunit.py run --arch=i386
--build_dir=kunit_i386/ overflow
Raw output was:
# u64_overflow_test: 17 u64 arithmetic tests finished
ok 7 - u64_overflow_test
# s64_overflow_test: 21 s64 arithmetic tests finished
ok 8 - s64_overflow_test