Hardware Tag-Based KASAN

modulename: hw_tags.ko

configname: CONFIG_KASAN_HW_TAGS

KASAN mode
└─>Hardware Tag-Based KASAN
In linux kernel since version 4.14.326 (release Date: 2023-09-23)  
Enables Hardware Tag-Based KASAN.

Requires GCC 10+ or Clang 12+.

Supported only on arm64 CPUs starting from ARMv8.5 and relies on
Memory Tagging Extension and Top Byte Ignore.

Consumes about 1/32nd of available memory.

May potentially introduce problems related to pointer casting and
comparison, as it embeds a tag into the top byte of each pointer.

source code: