Bugzilla – Bug 1226019
[sle15sp6] stap -v -e 'probe vfs.read reports error "ERROR: modpost: "module_kallsyms_on_each_symbol" [/tmp/stap*.ko] undefined!"
Last modified: 2024-07-02 16:30:03 UTC
Created attachment 875347 [details] Full serial terminal logs +++ This bug was initially created as a clone of Bug #1223327 +++ ## Description stap -v -e 'probe vfs.read {printf("read performed\n"); exit()}' fails as below: ># stap -v -e 'probe vfs.read {printf("read performed\n"); exit()}' >Pass 1: parsed user script and 487 library scripts using 133420virt/110208res/6912shr/103252data kb, in 210usr/10sys/233real ms. >Pass 2: analyzed script: 1 probe, 1 function, 5 embeds, 0 globals using 508080virt/486856res/8912shr/477912data kb, in 4860usr/260sys/5475real ms. >Pass 3: translated to C into "/tmp/stapz1gydR/stap_6ea17e6ef93c62ecb2e0f54371e79464_2583_src.c" using 508080virt/487048res/9104shr/477912data kb, in 10usr/0sys/9real ms. >ERROR: modpost: "module_kallsyms_on_each_symbol" [/tmp/stapz1gydR/stap_6ea17e6ef93c62ecb2e0f54371e79464_2583.ko] undefined! >make[1]: *** [/usr/src/linux-6.4.0-150600.23.3/scripts/Makefile.modpost:143: /tmp/stapz1gydR/Module.symvers] Error 1 >make: *** [../../../linux-6.4.0-150600.23.3/Makefile:2018: modpost] Error 2 >WARNING: kbuild exited with status: 2 >Pass 4: compiled C into "stap_6ea17e6ef93c62ecb2e0f54371e79464_2583.ko" in 1600usr/130sys/1822real ms. >Pass 4: compilation failed. [man error::pass4] >Kernel version 6.4.0 is within tested range 2.6.32 ... 6.6-rc1 Kernel: 6.4.0-150600.23.3-default systemtap: 5.0-150600.1.2 openQA test result.
Here comes the latest openQA test result. please let me know if you need to access my setup to debug. >https://openqa.suse.de/tests/14523525#step/systemtap/315
This is an odd bug. I do not understand why we're getting the modpost error. I've spent a day and a half looking at it now and have got nowhere. I'll have to ask for some help from the systemtap folks. It's not occurring on Tumbleweed.
Ok. I see the issue, the code which is supposed to handle https://sourceware.org/bugzilla/show_bug.cgi?id=26074 isn't being triggered. As a result it's trying to modpost what is no longer exported and failing. I'll have to setup a debugging environment in SP6 to determine why. Very odd.
ok I think I have a fix. Will post upstream for comment: # stap -V Systemtap translator/driver (version 5.0/0.185, non-git sources) Copyright (C) 2005-2023 Red Hat, Inc. and others This is free software; see the source for copying conditions. tested kernel versions: 2.6.32 ... 6.6-rc1 enabled features: AVAHI BPF LIBSQLITE3 NLS NSS JSON_C # stap -e 'probe vfs.read {printf("read performed\n"); exit()}' read performed
SUSE-RU-2024:2278-1: An update that has one fix can now be installed. Category: recommended (moderate) Bug References: 1226019 Maintenance Incident: [SUSE:Maintenance:34498](https://smelt.suse.de/incident/34498/) Sources used: openSUSE Leap 15.6 (src): systemtap-headers-5.0-150600.3.3.3, systemtap-docs-5.0-150600.3.3.3, systemtap-dtrace-5.0-150600.3.3.3, systemtap-5.0-150600.3.3.3 Development Tools Module 15-SP6 (src): systemtap-5.0-150600.3.3.3, systemtap-headers-5.0-150600.3.3.3, systemtap-docs-5.0-150600.3.3.3, systemtap-dtrace-5.0-150600.3.3.3 NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.