|
|
Log in / Subscribe / Register

kasan: add memory corruption identification support for hw tag-based kasan

From:  Kuan-Ying Lee <Kuan-Ying.Lee-AT-mediatek.com>
To:  Andrey Ryabinin <ryabinin.a.a-AT-gmail.com>, Alexander Potapenko <glider-AT-google.com>, Andrey Konovalov <andreyknvl-AT-gmail.com>, Marco Elver <elver-AT-google.com>, Dmitry Vyukov <dvyukov-AT-google.com>, Andrew Morton <akpm-AT-linux-foundation.org>, Matthias Brugger <matthias.bgg-AT-gmail.com>
Subject:  [PATCH v4 0/3] kasan: add memory corruption identification support for hw tag-based kasan
Date:  Sat, 26 Jun 2021 18:09:28 +0800
Message-ID:  <20210626100931.22794-1-Kuan-Ying.Lee@mediatek.com>
Cc:  <kasan-dev-AT-googlegroups.com>, <linux-kernel-AT-vger.kernel.org>, <linux-mm-AT-kvack.org>, <linux-arm-kernel-AT-lists.infradead.org>, <linux-mediatek-AT-lists.infradead.org>, <wsd_upstream-AT-mediatek.com>, <chinwen.chang-AT-mediatek.com>, <nicholas.tang-AT-mediatek.com>, Kuan-Ying Lee <Kuan-Ying.Lee-AT-mediatek.com>
Archive-link:  Article

Add memory corruption identification for hardware tag-based KASAN mode.

Changes since v4:
 - Change report_tags.h to report_tags.c
 - Refine the commit message
 - Test lib/test_kasan module with SW_TAGS mode
 - Test lib/test_kasan module with HW_TAGS mode
 - Rebase to latest linux-next

Changes since v3:
 - Preserve Copyright from hw_tags.c/sw_tags.c and
   report_sw_tags.c/report_hw_tags.c
 - Make non-trivial change in kasan sw tag-based mode

Changes since v2:
 - Thanks for Marco's Suggestion
 - Rename the CONFIG_KASAN_SW_TAGS_IDENTIFY
 - Integrate tag-based kasan common part
 - Rebase to latest linux-next

Kuan-Ying Lee (3):
  kasan: rename CONFIG_KASAN_SW_TAGS_IDENTIFY to
    CONFIG_KASAN_TAGS_IDENTIFY
  kasan: integrate the common part of two KASAN tag-based modes
  kasan: add memory corruption identification support for hardware
    tag-based mode

 lib/Kconfig.kasan         |  4 +--
 mm/kasan/Makefile         |  4 +--
 mm/kasan/hw_tags.c        | 22 ---------------
 mm/kasan/kasan.h          |  4 +--
 mm/kasan/report_hw_tags.c |  5 ----
 mm/kasan/report_sw_tags.c | 43 ----------------------------
 mm/kasan/report_tags.c    | 51 +++++++++++++++++++++++++++++++++
 mm/kasan/sw_tags.c        | 41 ---------------------------
 mm/kasan/tags.c           | 59 +++++++++++++++++++++++++++++++++++++++
 9 files changed, 116 insertions(+), 117 deletions(-)
 create mode 100644 mm/kasan/report_tags.c
 create mode 100644 mm/kasan/tags.c

-- 
2.18.0



Copyright © 2021, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds