lists.openwall.net   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  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20250619-fix-gdb-lx-mnt-v1-1-ad2ba742048a@samsung.com>
Date: Thu, 19 Jun 2025 13:04:48 +0200
From: Daniel Gomez <da.gomez@...nel.org>
To: Jan Kiszka <jan.kiszka@...mens.com>, 
 Kieran Bingham <kbingham@...nel.org>, 
 Stephen Brennan <stephen.s.brennan@...cle.com>, 
 Christian Brauner <brauner@...nel.org>
Cc: linux-kernel@...r.kernel.org, Daniel Gomez <da.gomez@...nel.org>, 
 Daniel Gomez <da.gomez@...sung.com>
Subject: [PATCH] scripts/gdb: fix mount flags for lx-symbols

From: Daniel Gomez <da.gomez@...sung.com>

mount flags have been converted to enum making lx-symbols not able to
find them when debugging. Use the appropriate LX_GDBPARSED macro for the
new enum.

Error:
Reading symbols from vmlinux...
Python Exception <class 'NameError'>: name 'MNT_NOSUID' is not defined

Fixes: 101f2bbab541 ("fs: convert mount flags to enum")

Signed-off-by: Daniel Gomez <da.gomez@...sung.com>
---
 scripts/gdb/linux/constants.py.in | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/scripts/gdb/linux/constants.py.in b/scripts/gdb/linux/constants.py.in
index fd6bd69c5096ac540efb93979d5eb03cb410deb5..d5e3069f42a7c0e07c4a79eeee5ca1842e6ebf86 100644
--- a/scripts/gdb/linux/constants.py.in
+++ b/scripts/gdb/linux/constants.py.in
@@ -73,12 +73,12 @@ if IS_BUILTIN(CONFIG_MODULES):
     LX_GDBPARSED(MOD_RO_AFTER_INIT)
 
 /* linux/mount.h */
-LX_VALUE(MNT_NOSUID)
-LX_VALUE(MNT_NODEV)
-LX_VALUE(MNT_NOEXEC)
-LX_VALUE(MNT_NOATIME)
-LX_VALUE(MNT_NODIRATIME)
-LX_VALUE(MNT_RELATIME)
+LX_GDBPARSED(MNT_NOSUID)
+LX_GDBPARSED(MNT_NODEV)
+LX_GDBPARSED(MNT_NOEXEC)
+LX_GDBPARSED(MNT_NOATIME)
+LX_GDBPARSED(MNT_NODIRATIME)
+LX_GDBPARSED(MNT_RELATIME)
 
 /* linux/threads.h */
 LX_VALUE(NR_CPUS)

---
base-commit: 6e5ab6fee68df8c40b338baeae6e269fa25a7e25
change-id: 20250617-fix-gdb-lx-mnt-d6d5dfe76828

Best regards,
-- 
Daniel Gomez <da.gomez@...sung.com>


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ