diff options
author | Kees Cook <keescook@chromium.org> | 2022-09-28 14:17:05 -0700 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2022-10-28 16:07:57 -0700 |
commit | 96fce387d58fa8eae6e8d9b1ecdfbc18292d7a68 (patch) | |
tree | de98db88e53664f58502ddd7871a0d46b1553101 /include/linux/string.h | |
parent | 03699f271de1f4df6369cd379506539cd7d590d3 (diff) |
kunit/memcpy: Add dynamic size and window tests
The "side effects" memmove() test accidentally found[1] a corner case in
the recent refactoring of the i386 assembly memmove(), but missed another
corner case. Instead of hoping to get lucky next time, implement much
more complete tests of memcpy() and memmove() -- especially the moving
window overlap for memmove() -- which catches all the issues encountered
and should catch anything new.
[1] https://lore.kernel.org/lkml/CAKwvOdkaKTa2aiA90VzFrChNQM6O_ro+b7VWs=op70jx-DKaXA@mail.gmail.com
Cc: Nick Desaulniers <ndesaulniers@google.com>
Tested-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'include/linux/string.h')
0 files changed, 0 insertions, 0 deletions