]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: mm: reset address tag set by kasan sw tagging
authorShyam Thombre <sthombre@codeaurora.org>
Wed, 10 Jun 2020 11:09:44 +0000 (16:39 +0530)
committerWill Deacon <will@kernel.org>
Mon, 15 Jun 2020 15:58:13 +0000 (16:58 +0100)
commit514b5a803ad92f9428bee9f19c0eefdf7d090f35
tree940b7e1e853326ce5c4bda070c79c52634f009de
parent0e38d1c757ba0ebe879cb0ecfc119d643fa47ef5
arm64: mm: reset address tag set by kasan sw tagging

KASAN sw tagging sets a random tag of 8 bits in the top byte of the pointer
returned by the memory allocating functions. So for the functions unaware
of this change, the top 8 bits of the address must be reset which is done
by the function arch_kasan_reset_tag().

Signed-off-by: Shyam Thombre <sthombre@codeaurora.org>
Link: https://lore.kernel.org/r/1591787384-5823-1-git-send-email-sthombre@codeaurora.org
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/mm/mmu.c