2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2025-01-10 06:34:17 +08:00
linux-next/arch
Andrey Konovalov 2cb3427642 arm64: kasan: simplify and inline MTE functions
This change provides a simpler implementation of mte_get_mem_tag(),
mte_get_random_tag(), and mte_set_mem_tag_range().

Simplifications include removing system_supports_mte() checks as these
functions are onlye called from KASAN runtime that had already checked
system_supports_mte().  Besides that, size and address alignment checks
are removed from mte_set_mem_tag_range(), as KASAN now does those.

This change also moves these functions into the asm/mte-kasan.h header and
implements mte_set_mem_tag_range() via inline assembly to avoid
unnecessary functions calls.

[vincenzo.frascino@arm.com: fix warning in mte_get_random_tag()]
  Link: https://lkml.kernel.org/r/20210211152208.23811-1-vincenzo.frascino@arm.com

Link: https://lkml.kernel.org/r/a26121b294fdf76e369cb7a74351d1c03a908930.1612546384.git.andreyknvl@google.com
Co-developed-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
Signed-off-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
Signed-off-by: Andrey Konovalov <andreyknvl@google.com>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Cc: Alexander Potapenko <glider@google.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: Peter Collingbourne <pcc@google.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>
2021-02-26 09:41:03 -08:00
..
alpha Kbuild updates for v5.12 2021-02-25 10:17:31 -08:00
arc arch: arc: Remove CONFIG_OPROFILE support 2021-01-22 12:12:03 +05:30
arm Kbuild updates for v5.12 2021-02-25 10:17:31 -08:00
arm64 arm64: kasan: simplify and inline MTE functions 2021-02-26 09:41:03 -08:00
csky local64.h: make <asm/local64.h> mandatory 2020-12-29 15:36:49 -08:00
h8300 h8300: fix PREEMPTION build, TI_PRE_COUNT undefined 2021-02-13 11:42:40 -08:00
hexagon hexagon: remove CONFIG_EXPERIMENTAL from defconfigs 2021-02-24 13:38:26 -08:00
ia64 Kbuild updates for v5.12 2021-02-25 10:17:31 -08:00
m68k Kbuild updates for v5.12 2021-02-25 10:17:31 -08:00
microblaze Kbuild updates for v5.12 2021-02-25 10:17:31 -08:00
mips Kbuild updates for v5.12 2021-02-25 10:17:31 -08:00
nds32 nds32: Fix bogus reference to <asm/procinfo.h> 2021-02-25 14:31:49 +08:00
nios2 nios2: Don't use _end for calculating min_low_pfn 2021-02-19 15:02:09 +08:00
openrisc openrisc: io: Add missing __iomem annotation to iounmap() 2021-01-20 06:14:26 +09:00
parisc Kbuild updates for v5.12 2021-02-25 10:17:31 -08:00
powerpc Kbuild updates for v5.12 2021-02-25 10:17:31 -08:00
riscv Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next 2021-02-20 17:45:32 -08:00
s390 s390/mm: define arch_get_mappable_range() 2021-02-26 09:41:01 -08:00
sh Kbuild updates for v5.12 2021-02-25 10:17:31 -08:00
sparc Kbuild updates for v5.12 2021-02-25 10:17:31 -08:00
um Rework of the X86 irq stack handling: 2021-02-24 16:32:23 -08:00
x86 kfence: add test suite 2021-02-26 09:41:02 -08:00
xtensa Kbuild updates for v5.12 2021-02-25 10:17:31 -08:00
.gitignore
Kconfig Rework of the X86 irq stack handling: 2021-02-24 16:32:23 -08:00