Bug 1226019 - [sle15sp6] stap -v -e 'probe vfs.read reports error "ERROR: modpost: "module_kallsyms_on_each_symbol" [/tmp/stap*.ko] undefined!"
Summary: [sle15sp6] stap -v -e 'probe vfs.read reports error "ERROR: modpost: "module_...
Status: NEW
Alias: None
Product: PUBLIC SUSE Linux Enterprise Server 15 SP6
Classification: openSUSE
Component: Kernel (show other bugs)
Version: unspecified
Hardware: x86-64 SLES 15
: P5 - None : Normal
Target Milestone: ---
Assignee: Tony Jones
QA Contact:
URL: https://openqa.suse.de/tests/14125987...
Whiteboard:
Keywords:
Depends on: 1223327
Blocks:
  Show dependency treegraph
 
Reported: 2024-06-06 02:22 UTC by Richard Fan
Modified: 2024-07-02 16:30 UTC (History)
4 users (show)

See Also:
Found By: openQA
Services Priority:
Business Priority:
Blocker: Yes
Marketing QA Status: ---
IT Deployment: ---


Attachments
Full serial terminal logs (1.55 MB, text/plain)
2024-06-06 02:22 UTC, Richard Fan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Fan 2024-06-06 02:22:44 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.
Comment 1 Richard Fan 2024-06-06 02:24:20 UTC
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
Comment 2 Tony Jones 2024-06-17 21:47:35 UTC
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.
Comment 3 Tony Jones 2024-06-18 00:47:40 UTC
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.
Comment 4 Tony Jones 2024-06-18 14:19:10 UTC
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
Comment 6 Maintenance Automation 2024-07-02 16:30:03 UTC
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.