]> git.baikalelectronics.ru Git - kernel.git/commit
kasan, arm64: implement HW_TAGS runtime
authorAndrey Konovalov <andreyknvl@google.com>
Tue, 22 Dec 2020 20:02:10 +0000 (12:02 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 22 Dec 2020 20:55:08 +0000 (12:55 -0800)
commit2e903b91479782b7dedd869603423d77e079d3de
tree439c3543ca4d436d80fa5839f27b2aa9057572ef
parent0fea6e9af889f1a4e072f5de999e07fe6859fc88
kasan, arm64: implement HW_TAGS runtime

Provide implementation of KASAN functions required for the hardware
tag-based mode.  Those include core functions for memory and pointer
tagging (tags_hw.c) and bug reporting (report_tags_hw.c).  Also adapt
common KASAN code to support the new mode.

Link: https://lkml.kernel.org/r/cfd0fbede579a6b66755c98c88c108e54f9c56bf.1606161801.git.andreyknvl@google.com
Signed-off-by: Andrey Konovalov <andreyknvl@google.com>
Signed-off-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Reviewed-by: Alexander Potapenko <glider@google.com>
Tested-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
Cc: Andrey Ryabinin <aryabinin@virtuozzo.com>
Cc: Branislav Rankov <Branislav.Rankov@arm.com>
Cc: Dmitry Vyukov <dvyukov@google.com>
Cc: Evgenii Stepanov <eugenis@google.com>
Cc: Kevin Brodsky <kevin.brodsky@arm.com>
Cc: Marco Elver <elver@google.com>
Cc: Vasily Gorbik <gor@linux.ibm.com>
Cc: Will Deacon <will.deacon@arm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
14 files changed:
arch/arm64/include/asm/memory.h
arch/arm64/kernel/cpufeature.c
arch/arm64/kernel/smp.c
include/linux/kasan.h
include/linux/mm.h
include/linux/page-flags-layout.h
mm/kasan/Makefile
mm/kasan/common.c
mm/kasan/hw_tags.c [new file with mode: 0644]
mm/kasan/kasan.h
mm/kasan/report_hw_tags.c [new file with mode: 0644]
mm/kasan/report_sw_tags.c
mm/kasan/shadow.c
mm/kasan/sw_tags.c