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>
Showing
- arch/arm64/include/asm/memory.h 2 additions, 2 deletionsarch/arm64/include/asm/memory.h
- arch/arm64/kernel/cpufeature.c 3 additions, 0 deletionsarch/arm64/kernel/cpufeature.c
- arch/arm64/kernel/smp.c 2 additions, 0 deletionsarch/arm64/kernel/smp.c
- include/linux/kasan.h 17 additions, 7 deletionsinclude/linux/kasan.h
- include/linux/mm.h 1 addition, 1 deletioninclude/linux/mm.h
- include/linux/page-flags-layout.h 1 addition, 1 deletioninclude/linux/page-flags-layout.h
- mm/kasan/Makefile 5 additions, 0 deletionsmm/kasan/Makefile
- mm/kasan/common.c 7 additions, 8 deletionsmm/kasan/common.c
- mm/kasan/hw_tags.c 80 additions, 0 deletionsmm/kasan/hw_tags.c
- mm/kasan/kasan.h 15 additions, 4 deletionsmm/kasan/kasan.h
- mm/kasan/report_hw_tags.c 42 additions, 0 deletionsmm/kasan/report_hw_tags.c
- mm/kasan/report_sw_tags.c 1 addition, 1 deletionmm/kasan/report_sw_tags.c
- mm/kasan/shadow.c 1 addition, 1 deletionmm/kasan/shadow.c
- mm/kasan/sw_tags.c 1 addition, 1 deletionmm/kasan/sw_tags.c
Please register or sign in to comment