[bootlin/training-materials updates] master: Kernel slides: update memory debugging frameworks (53e8492a)

Michael Opdenacker michael.opdenacker at bootlin.com
Thu Jun 10 09:07:46 CEST 2021


Repository : https://github.com/bootlin/training-materials
On branch  : master
Link       : https://github.com/bootlin/training-materials/commit/53e8492a1dad18471e70598551050ccf5375923b

>---------------------------------------------------------------

commit 53e8492a1dad18471e70598551050ccf5375923b
Author: Michael Opdenacker <michael.opdenacker at bootlin.com>
Date:   Thu Jun 10 09:07:46 2021 +0200

    Kernel slides: update memory debugging frameworks
    
    Signed-off-by: Michael Opdenacker <michael.opdenacker at bootlin.com>


>---------------------------------------------------------------

53e8492a1dad18471e70598551050ccf5375923b
 .../kernel-driver-development-memory.tex                  | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)

diff --git a/slides/kernel-driver-development-memory/kernel-driver-development-memory.tex b/slides/kernel-driver-development-memory/kernel-driver-development-memory.tex
index 0b7950b7..b2cb24ed 100644
--- a/slides/kernel-driver-development-memory/kernel-driver-development-memory.tex
+++ b/slides/kernel-driver-development-memory/kernel-driver-development-memory.tex
@@ -358,12 +358,17 @@ kfree(work);
     \begin{itemize}
     \item Dynamic memory error detector, to find use-after-free and
       out-of-bounds bugs.
-    \item Only available on \code{x86} (64 bit), \code{arm64}, \code{riscv}
-      (64 bit), \code{powerpc} (32 bit), \code{s390} and \code{xtensa} so far
-      (Linux 5.11 status), but will help to improve architecture independent
-      code anyway.
+    \item Available on most archictures
     \item See \kdochtml{dev-tools/kasan} for details.
     \end{itemize}
+  \item \code{KFENCE} ({\em Kernel Electric Fence})
+    \begin{itemize}
+    \item A low overhead alternative to KASAN, trading performance
+	  for precision. Meant to be used in production systems.
+    \item Only available on \code{x86}, \code{arm64} and \code{powerpc}
+          (Linux 5.13 status)
+    \item See \kdochtml{dev-tools/kfence} for details.
+    \end{itemize}
   \item \code{Kmemleak}
     \begin{itemize}
     \item Dynamic checker for memory leaks
@@ -371,7 +376,7 @@ kfree(work);
     \item See \kdochtml{dev-tools/kmemleak} for details.
     \end{itemize}
   \end{itemize}
-  Both have a significant overhead. Only use them in development!
+  KASAN and Kmemleak have a significant overhead. Only use them in development!
 \end{frame}
 
 \begin{frame}




More information about the training-materials-updates mailing list