summaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorAlexander Potapenko <glider@google.com>2023-09-11 16:57:02 +0200
committerAndrew Morton <akpm@linux-foundation.org>2023-10-04 19:32:22 +0200
commit46fa84a2b920f91780db3347de81d65efb668301 (patch)
tree7ffa95c3ad32ae59be324d6ab48292b205698800 /security
parentkmsan: merge test_memcpy_aligned_to_unaligned{,2}() together (diff)
downloadlinux-46fa84a2b920f91780db3347de81d65efb668301.tar.xz
linux-46fa84a2b920f91780db3347de81d65efb668301.zip
kmsan: introduce test_memcpy_initialized_gap()
Add a regression test for the special case where memcpy() previously failed to correctly set the origins: if upon memcpy() four aligned initialized bytes with a zero origin value ended up split between two aligned four-byte chunks, one of those chunks could've received the zero origin value even despite it contained uninitialized bytes from other writes. Link: https://lkml.kernel.org/r/20230911145702.2663753-4-glider@google.com Signed-off-by: Alexander Potapenko <glider@google.com> Suggested-by: Marco Elver <elver@google.com> Acked-by: Marco Elver <elver@google.com> Cc: Dmitry Vyukov <dvyukov@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions