Open martinclauss opened 1 year ago
Being an Arch user myself, I don't mind having a look. Although I would need the mentioned "dbg" package, since I don't see myself rebuilding a whole kernel for this ;-)
Plus the package also contains the version of all tools installed - gcc/binutils/kmod/etc.
Hey @evelikov!
Thanks for your reply and sorry for the long delay. I finally uploaded the files here: https://uni-bonn.sciebo.de/s/yPC7A31lk3H5Rnd Fingers crossed that you find the problem :nerd_face:
Thanks a lot! :heart:
Welcome back o/ I'm quite busy in the upcoming week or two, although I might find some time just before Xmas.
Had a quick play with this over the weekend. The problem isn't limited to depmod. Running "modinfo" on such module, lists lots of arbitrary sections and data.
At a glance it looks like our elf section parsing code (in libkmod), is getting pointers/offsets where it expects strings. I am pleasantly surprised that valgrind does not report any issues (overflows, invalid access etc).
If should be a matter of detecting the elf (section) type and returning from the kmod functions. @lucasdemarchi if you have any pointers off the top of your head that will be appreciated.
Hi :)
I first reported the bug here: https://bugs.archlinux.org/task/77868 but since it is an upstream issue, I want to report it here as well.
I built a custom Linux kernel with debugging information. If I'm correct the bug occurs when keeping the debug information in the modules. Excerpt from the PKGBUILD file (Arch Linux):
INSTALL_MOD_STRIP="--only-keep-debug"
wasINSTALL_MOD_STRIP=1
before the modification.While running
sudo pacman -U linux-dbg-6.2.6.arch1-1-x86_64.pkg.tar.zst
and with(in
/usr/lib/initcpio/functions
and similar in/usr/share/libalpm/scripts/depmod
) I get the following crash information:and
I could upload the
linux-dbg-6.2.6.arch1-1-x86_64.pkg.tar.zst
package somewhere if necessary.Thanks!
Best Martin