mirror of
https://github.com/GrapheneOS/hardened_malloc.git
synced 2024-12-18 04:14:23 -05:00
mte: update comment about skipped tag array update in deallocate_small()
This commit is contained in:
parent
25f0fe9c69
commit
be08eeee2d
@ -807,8 +807,7 @@ static inline void deallocate_small(void *p, const size_t *expected_size) {
|
|||||||
#ifdef HAS_ARM_MTE
|
#ifdef HAS_ARM_MTE
|
||||||
if (likely(is_memtag_enabled())) {
|
if (likely(is_memtag_enabled())) {
|
||||||
arm_mte_tag_and_clear_mem(set_pointer_tag(p, RESERVED_TAG), size);
|
arm_mte_tag_and_clear_mem(set_pointer_tag(p, RESERVED_TAG), size);
|
||||||
// metadata->arm_mte_tags is intentionally not updated, it should keep the previous slot
|
// metadata->arm_mte_tags is intentionally not updated, see tag_and_clear_slab_slot()
|
||||||
// tag after slot is freed
|
|
||||||
skip_zero = true;
|
skip_zero = true;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user