[bootlin/training-materials updates] master: kgdb: add kaslr note to avoid messing up with gdb (30265bee)

Clément Léger clement.leger at bootlin.com
Tue Oct 25 10:52:23 CEST 2022


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

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

commit 30265bee1890f0a4c1fd585b343c57723b5a4677
Author: Clément Léger <clement.leger at bootlin.com>
Date:   Wed Oct 12 17:53:58 2022 +0200

    kgdb: add kaslr note to avoid messing up with gdb
    
    Signed-off-by: Clément Léger <clement.leger at bootlin.com>


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

30265bee1890f0a4c1fd585b343c57723b5a4677
 common/kgdb.tex | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/common/kgdb.tex b/common/kgdb.tex
index 93d94dde..571784a6 100644
--- a/common/kgdb.tex
+++ b/common/kgdb.tex
@@ -10,8 +10,11 @@
   \item Feature supported for the most popular CPU architectures
   \item \kconfig{CONFIG_GDB_SCRIPTS} allows to build GDB python scripts that are
     provided by the kernel.
+  \item {\em Note: to avoid confusing gdb with randomized kernel addresses, make
+        sure \em{kaslr} is disabled using \code{nokaslr} command line
+        parameter.}
   \begin{itemize}
-    \item See \kdochtml{dev-tools/gdb-kernel-debugging} for mor informations
+    \item See \kdochtml{dev-tools/gdb-kernel-debugging} for more information
   \end{itemize}
   \end{itemize}
 \end{frame}




More information about the training-materials-updates mailing list