mte: note alignment requirements of arm_mte_tag_and_clear_mem()

pull/226/head
Dmitry Muhomor 2023-10-30 12:30:28 +02:00 committed by Daniel Micay
parent 03883eb2ce
commit 009f2dad76
1 changed files with 2 additions and 0 deletions

View File

@ -12,6 +12,8 @@ static inline void *arm_mte_create_random_tag(void *p, u64 exclusion_mask) {
// Tag the memory region with the tag specified in tag bits of tagged_ptr. Memory region itself is
// zeroed.
// tagged_ptr has to be aligned by 16, and len has to be a multiple of 16 (tag granule size).
//
// Arm's software optimization guide says:
// "it is recommended to use STZGM (or DCZGVA) to set tag if data is not a concern." (STZGM and
// DCGZVA are zeroing variants of tagging instructions).