lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:   Wed, 16 Dec 2020 14:56:16 +0100
From:   Johannes Berg <>
Cc:     Jan Kiszka <>,
        Kieran Bingham <>,
        Johannes Berg <>
Subject: [PATCH] gdb: lx-symbols: store the abspath()

From: Johannes Berg <>

If we store the relative path, the user might later cd to a
different directory, and that would break the automatic symbol
resolving that happens when a module is loaded into the target
kernel. Fix this by storing the abspath() of each path given,
just like we already do for the cwd (os.getcwd() is absolute.)

Signed-off-by: Johannes Berg <>
 scripts/gdb/linux/ | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/gdb/linux/ b/scripts/gdb/linux/
index 1be9763cf8bb..e651c335deb6 100644
--- a/scripts/gdb/linux/
+++ b/scripts/gdb/linux/
@@ -164,7 +164,7 @@ lx-symbols command."""
             saved_state['breakpoint'].enabled = saved_state['enabled']
     def invoke(self, arg, from_tty):
-        self.module_paths = [os.path.expanduser(p) for p in arg.split()]
+        self.module_paths = [os.path.abspath(os.path.expanduser(p)) for p in arg.split()]
         # enforce update

Powered by blists - more mailing lists