We compile a number of kernel modules on OpenSUSE Leap 15.6 and different Tumbleweed versions. The genksyms in 6.4.0-150600.23.42-default when called during the module build has run-away memory usage crashing the system. This also occures in teh newer 6.4.0-150600.23.47-default. This does not happen on 6.4.0-150600.23.33-default, the same module build works fine. Similarily the build worked on Tumbleweed before the recent releases.
Looking at the source code for genksyms there are less than 10 lines of code changes.
Has anyone experienced a problem like this? It looks to us there has been a bug introduced. Could this issue be related to some memory leaks in genksyms, including a double-free, as discussed in the January 2025 thread on kernel .org [1/6] genksyms: fix memory leak when the same symbol is added from source - Patchwork
We have used the kernel build system in OpenSUSE for years without any problems without having to delve into its inner workings.