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

Thomas Petazzoni thomas.petazzoni at bootlin.com
Fri Oct 29 10:46:39 CEST 2021

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


commit 99db1d0d1c72c42db431194b14e221f063eac1af
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>


 .../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);
     \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.
+  \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}
     \item Dynamic checker for memory leaks
@@ -371,7 +376,7 @@ kfree(work);
     \item See \kdochtml{dev-tools/kmemleak} for details.
-  Both have a significant overhead. Only use them in development!
+  KASAN and Kmemleak have a significant overhead. Only use them in development!

More information about the training-materials-updates mailing list