WSL2-Linux-Kernel/scripts/gdb/linux
Florian Fainelli a89f73ed56 scripts/gdb: fix SB_* constants parsing
commit 6a59cb5158 upstream.

--0000000000009a0c9905fd9173ad
Content-Transfer-Encoding: 8bit

After f15afbd34d ("fs: fix undefined behavior in bit shift for
SB_NOUSER") the constants were changed from plain integers which
LX_VALUE() can parse to constants using the BIT() macro which causes the
following:

Reading symbols from build/linux-custom/vmlinux...done.
Traceback (most recent call last):
  File "/home/fainelli/work/buildroot/output/arm64/build/linux-custom/vmlinux-gdb.py", line 25, in <module>
    import linux.constants
  File "/home/fainelli/work/buildroot/output/arm64/build/linux-custom/scripts/gdb/linux/constants.py", line 5
    LX_SB_RDONLY = ((((1UL))) << (0))

Use LX_GDBPARSED() which does not suffer from that issue.

f15afbd34d ("fs: fix undefined behavior in bit shift for SB_NOUSER")
Link: https://lkml.kernel.org/r/20230607221337.2781730-1-florian.fainelli@broadcom.com
Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com>
Acked-by: Christian Brauner <brauner@kernel.org>
Cc: Hao Ge <gehao@kylinos.cn>
Cc: Jan Kiszka <jan.kiszka@siemens.com>
Cc: Kieran Bingham <kbingham@kernel.org>
Cc: Luis Chamberlain <mcgrof@kernel.org>
Cc: Pankaj Raghav <p.raghav@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-06-16 13:39:54 +02:00
..
.gitignore .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
Makefile kbuild: use always-y instead of extra-y 2021-02-16 12:01:45 +09:00
__init__.py scripts/gdb: add empty package initialization script 2015-02-28 09:57:51 -08:00
clk.py scripts/gdb: bail early if there are no clocks 2023-05-11 23:00:33 +09:00
config.py scripts/gdb: change kernel config dumping method 2022-06-14 18:36:24 +02:00
constants.py.in scripts/gdb: fix SB_* constants parsing 2024-06-16 13:39:54 +02:00
cpus.py scripts/gdb: add lx_current support for arm64 2021-05-07 00:26:33 -07:00
device.py scripts/gdb: add helpers to find and list devices 2019-07-16 19:23:24 -07:00
dmesg.py scripts/gdb: fix 'lx-dmesg' on 32 bits arch 2022-08-17 14:23:56 +02:00
genpd.py scripts/gdb: bail early if there are no generic PD 2023-05-11 23:00:33 +09:00
lists.py scripts/gdb: fix list_for_each 2021-02-26 09:41:05 -08:00
modules.py scripts/gdb: support !CONFIG_MODULES gracefully 2016-05-23 17:04:14 -07:00
proc.py scripts/gdb/proc: add struct mount & struct super_block addr in lx-mounts command 2020-10-16 11:11:22 -07:00
rbtree.py scripts/gdb: fix python 3.8 SyntaxWarning 2020-08-12 10:58:02 -07:00
symbols.py gdb: lx-symbols: store the abspath() 2021-05-07 00:26:32 -07:00
tasks.py scripts/gdb/tasks: add headers and improve spacing format 2020-10-16 11:11:22 -07:00
timerlist.py scripts/gdb: fix lx-timerlist for Python3 2023-05-11 23:00:39 +09:00
utils.py scripts/gdb: fix lx-timerlist for Python3 2023-05-11 23:00:39 +09:00