Skip to content
Commit 3d0cca0b authored by Evgenii Stepanov's avatar Evgenii Stepanov Committed by Will Deacon
Browse files

kasan: speed up mte_set_mem_tag_range



Use DC GVA / DC GZVA to speed up KASan memory tagging in HW tags mode.

The first cacheline is always tagged using STG/STZG even if the address is
cacheline-aligned, as benchmarks show it is faster than a conditional
branch.

Signed-off-by: default avatarEvgenii Stepanov <eugenis@google.com>
Co-developed-by: default avatarPeter Collingbourne <pcc@google.com>
Signed-off-by: default avatarPeter Collingbourne <pcc@google.com>
Reviewed-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
Link: https://lore.kernel.org/r/20210521010023.3244784-1-eugenis@google.com
Signed-off-by: default avatarWill Deacon <will@kernel.org>
parent c4681547
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment