linux-kernel-module-cheat icon indicating copy to clipboard operation
linux-kernel-module-cheat copied to clipboard

vmlinux-gdb.py GDB helper fails to load with Unknown page level on kernel v6.8.12

Open cirosantilli opened this issue 8 months ago • 0 comments

Same repro as https://github.com/cirosantilli/linux-kernel-module-cheat/issues/318

I now have debug symbols and source shows, but it is a shame that the vmlinux helper doesn't work.

Trace is:

warning: Source file is more recent than executable.
883     {
loading vmlinux
Traceback (most recent call last):
  File "/root/lkmc/out.docker/linux/v6.8/x86_64/vmlinux-gdb.py", line 44, in <module>
    import linux.pgtable
  File "/root/lkmc/out.docker/linux/v6.8/x86_64/scripts/gdb/linux/pgtable.py", line 29
    raise Exception(f'Unknown page level: {level}')
                                                 ^
SyntaxError: invalid syntax

Maybe this is an issue with the Python version which does not support f strings? Doing:

python3 --version

is at 3.8.10. But f-strings are in 3.6: https://docs.python.org/3/reference/lexical_analysis.html#f-strings

cirosantilli avatar Apr 29 '25 12:04 cirosantilli