Memory Detection Tool KASAN in the Linux Kernel (7) – Implementation Based on Slab

Technical experience sharing, welcome to follow and provide guidance. In the previous article, we detailed the layout of KASAN shadow memory. This article analyzes the implementation principles of KASAN under slab. kmem_cache Layout For the slab layout with KASAN enabled, the structure has undergone some changes, as shown below: struct kmem_cache { …… #ifdef CONFIG_KASAN … Read more

Linux Memory Management

Linux Memory Management

(Click the public account above to quickly follow) Source:WsztRush Link: http://wsztrush.github.io/%E7%BC%96%E7%A8%8B%E6%8A%80%E6%9C%AF/2015/05/13/Linux-Memory.html Most servers today run on Linux, so as a programmer, it is necessary to have a basic understanding of how the system operates. Regarding memory, you need to know: Address Mapping Memory Management Methods Page Faults First, let’s look at some basic knowledge. From … Read more

Understanding Embedded Operating System Memory Management

Understanding Embedded Operating System Memory Management

Article word count: 5000, Content value index: ☆ ☆ ☆ ☆ ☆ Key content: ☆ Linux memory organization structure and page layout, causes of memory fragmentation and optimization algorithms. ☆ Several memory management methods in the Linux kernel, memory usage scenarios, and pitfalls in memory usage. ☆ Explore the mechanisms and mysteries of memory management … Read more