[bootlin/training-materials updates] master: debugging: labs: add hint about module loading address (15f893e2)

Alexis Lothoré alexis.lothore at bootlin.com
Fri Jul 7 16:20:13 CEST 2023


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

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

commit 15f893e22d9e46288dc6968bbc5729555e7f9031
Author: Alexis Lothoré <alexis.lothore at bootlin.com>
Date:   Fri Jul 7 16:20:13 2023 +0200

    debugging: labs: add hint about module loading address
    
    Fixes #198
    
    Signed-off-by: Alexis Lothoré <alexis.lothore at bootlin.com>


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

15f893e22d9e46288dc6968bbc5729555e7f9031
 labs/debugging-kernel-debugging/debugging-kernel-debugging.tex | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/labs/debugging-kernel-debugging/debugging-kernel-debugging.tex b/labs/debugging-kernel-debugging/debugging-kernel-debugging.tex
index 1bc37327..45a13bdd 100644
--- a/labs/debugging-kernel-debugging/debugging-kernel-debugging.tex
+++ b/labs/debugging-kernel-debugging/debugging-kernel-debugging.tex
@@ -87,8 +87,12 @@ pointer addresses. To do so, use the following command on the target:
 \end{bashinput}
 
 You can use \code{addr2line} to identify the location in source code of the
-lines that did cause the reports. You will also notice other memory leaks that
-are actually some real memory leaks that did exist in the 5.13 kernel version!
+lines that did cause the reports. You may need to substract module loading address:
+you can guess the address by taking a look at \code{/proc/modules} while the module
+is loaded.
+
+You will also notice other memory leaks that are actually some real memory leaks
+that did exist in the 5.13 kernel version!
 
 \section{OOPS analysis}
 We noticed that the watchdog command generated a crash on the kernel. In order




More information about the training-materials-updates mailing list