]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
kasan: integrate the common part of two KASAN tag-based modes
authorKuan-Ying Lee <Kuan-Ying.Lee@mediatek.com>
Tue, 29 Jun 2021 02:40:55 +0000 (19:40 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 29 Jun 2021 17:53:53 +0000 (10:53 -0700)
commita0503b8a0b3c8ef1be55744a248bffb8f533d227
tree26caaca60f9ce6d835ef206b775f76e8ca9fe053
parentf06f78ab48fb90cfbef5289e5556704b74c46b7a
kasan: integrate the common part of two KASAN tag-based modes

1. Move kasan_get_free_track() and kasan_set_free_info() into tags.c
   and combine these two functions for SW_TAGS and HW_TAGS kasan mode.

2. Move kasan_get_bug_type() to report_tags.c and make this function
   compatible for SW_TAGS and HW_TAGS kasan mode.

Link: https://lkml.kernel.org/r/20210626100931.22794-3-Kuan-Ying.Lee@mediatek.com
Signed-off-by: Kuan-Ying Lee <Kuan-Ying.Lee@mediatek.com>
Suggested-by: Marco Elver <elver@google.com>
Suggested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Andrey Konovalov <andreyknvl@gmail.com>
Reviewed-by: Marco Elver <elver@google.com>
Cc: Andrey Ryabinin <ryabinin.a.a@gmail.com>
Cc: Alexander Potapenko <glider@google.com>
Cc: Dmitry Vyukov <dvyukov@google.com>
Cc: Chinwen Chang <chinwen.chang@mediatek.com>
Cc: Matthias Brugger <matthias.bgg@gmail.com>
Cc: Nicholas Tang <nicholas.tang@mediatek.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/kasan/Makefile
mm/kasan/hw_tags.c
mm/kasan/report_hw_tags.c
mm/kasan/report_sw_tags.c
mm/kasan/report_tags.c [new file with mode: 0644]
mm/kasan/sw_tags.c
mm/kasan/tags.c [new file with mode: 0644]