kmsan: merge test_memcpy_aligned_to_unaligned{,2}() together
authorAlexander Potapenko <glider@google.com>
Mon, 11 Sep 2023 14:57:01 +0000 (16:57 +0200)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 4 Oct 2023 17:32:22 +0000 (10:32 -0700)
commitc3ab4873c8d3620493042123471e65b5e2c37b2c
tree9b97a23bef48102b51880deb344932ceab4c2137
parent0be7b2c232cfb1621660c78b0fd7260361c75e27
kmsan: merge test_memcpy_aligned_to_unaligned{,2}() together

Introduce report_reset() that allows checking for more than one KMSAN
report per testcase.

Fold test_memcpy_aligned_to_unaligned2() into
test_memcpy_aligned_to_unaligned(), so that they share the setup phase and
check the behavior of a single memcpy() call.

Link: https://lkml.kernel.org/r/20230911145702.2663753-3-glider@google.com
Signed-off-by: Alexander Potapenko <glider@google.com>
Acked-by: Marco Elver <elver@google.com>
Cc: Dmitry Vyukov <dvyukov@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/kmsan/kmsan_test.c