kasan: simplify kasan_complete_mode_report_info for tag-based modes
authorAndrey Konovalov <andreyknvl@google.com>
Thu, 21 Dec 2023 18:35:40 +0000 (19:35 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 29 Dec 2023 19:58:47 +0000 (11:58 -0800)
commita3fbe303ec9db45dbabc923ea9c5323900176079
tree93a2aa76436263c5b33159c7ea246f13d890358f
parentfd4064f69708bc84d960b666896715fe86882c85
kasan: simplify kasan_complete_mode_report_info for tag-based modes

memcpy the alloc/free tracks when collecting the information about a bad
access instead of copying fields one by one.

Link: https://lkml.kernel.org/r/20231221183540.168428-4-andrey.konovalov@linux.dev
Fixes: 5d4c6ac94694 ("kasan: record and report more information")
Signed-off-by: Andrey Konovalov <andreyknvl@google.com>
Reviewed-by: Marco Elver <elver@google.com>
Cc: Alexander Potapenko <glider@google.com>
Cc: Andrey Ryabinin <ryabinin.a.a@gmail.com>
Cc: Dmitry Vyukov <dvyukov@google.com>
Cc: Juntong Deng <juntong.deng@outlook.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/kasan/report_tags.c