Improved KASAN with ARM MTE patch for Linux Kernel 6.16

View profile for Guilherme Giácomo Simões

Linux Kernel & Systems Software Engineer | Rust-for-Linux Contributor | PCI & Memory Management | lore.kernel.org/all/?q=Guilherme+Giacomo+Simoes

Contributing to Linux Kernel 6.16! Recently I has a opportunity to send a patch that improve the way how the KASAN handle the hardware tags (HW_TAGS) on the ARM MTE. Until now, each HW_TAGS and SW_TAGS was use 8 bits for store tags. But, due to the design of MTE (Memory Tagging Extension), we only need 4 bits for HW_TAGS. This change optimize the use of bits in the flags pages, improving the efficiente of code. This patch born from suggestion of Andrey Konovalov, and was a great opportunity to learn more about internal details of KASAN and memory management in the Kernel. I Writed on my blog the technical background of this contributing, explaning the change and the though behind this. #Linux #Kernel #OpenSource #C #Rust #LowLevelEngineering https://lnkd.in/dQYTgtWK

To view or add a comment, sign in

Explore content categories