]> git.ipfire.org Git - thirdparty/linux.git/commit
kasan: speed up match_all_mem_tag test for SW_TAGS
authorAndrey Konovalov <andreyknvl@google.com>
Thu, 21 Dec 2023 20:04:53 +0000 (21:04 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 29 Dec 2023 19:58:46 +0000 (11:58 -0800)
commit4e397274e10beb385cee1a04c7850c1c46ae5d3e
treec3fd1f097f037e9505e41517b4b17388ad396908
parent3ab9304db6ab13a8d4b5f99ef0bbd9302f26c741
kasan: speed up match_all_mem_tag test for SW_TAGS

Checking all 256 possible tag values in the match_all_mem_tag KASAN test
is slow and produces 256 reports.  Instead, just check the first 8 and the
last 8.

Link: https://lkml.kernel.org/r/6fe51262defd80cdc1150c42404977aafd1b6167.1703188911.git.andreyknvl@google.com
Signed-off-by: Andrey Konovalov <andreyknvl@google.com>
Cc: Alexander Potapenko <glider@google.com>
Cc: Andrey Ryabinin <ryabinin.a.a@gmail.com>
Cc: Dmitry Vyukov <dvyukov@google.com>
Cc: Marco Elver <elver@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/kasan/kasan_test.c