Bug 1222249 - Systemtap fails to run on v6.8 kernel
Summary: Systemtap fails to run on v6.8 kernel
Status: RESOLVED FIXED
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Kernel (show other bugs)
Version: Current
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Tony Jones
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-02 17:30 UTC by Tony Jones
Modified: 2024-04-02 19:55 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tony Jones 2024-04-02 17:30:38 UTC
While testing fixes for bsc#1221706 I noticed that systemtap was not functioning correctly on v6.8 based kernels.

# stap -e 'probe oneshot { println("hello world") }'
In file included from /usr/share/systemtap/runtime/linux/access_process_vm.h:6,
                 from /usr/share/systemtap/runtime/linux/runtime.h:315,
                 from /usr/share/systemtap/runtime/runtime.h:26,
                 from /tmp/stapQfrt4d/stap_12c74092879671ed4cd208bf7321d2eb_983_src.c:21:
/usr/share/systemtap/runtime/linux/access_process_vm.h: In function ‘__access_process_vm_’:
/usr/share/systemtap/runtime/linux/stap_mmap_lock.h:10:43: error: ‘struct mm_struct’ has no member named ‘mmap_sem’; did you mean ‘mmap_base’?
   10 | #define mmap_read_lock(mm) down_read(&mm->mmap_sem)
      |                                           ^~~~~~~~
/usr/share/systemtap/runtime/linux/access_process_vm.h:33:3: note: in expansion of macro ‘mmap_read_lock’
   33 |   mmap_read_lock (mm);
      |   ^~~~~~~~~~~~~~
/usr/share/systemtap/runtime/linux/access_process_vm.h:63:36: error: passing argument 1 of ‘get_user_pages_remote’ from incompatible pointer type [-Werror=incompatible-pointer-types]
...
...
Comment 1 Tony Jones 2024-04-02 19:23:19 UTC
Resolved
Comment 2 OBSbugzilla Bot 2024-04-02 19:55:08 UTC
This is an autogenerated message for OBS integration:
This bug (1222249) was mentioned in
https://build.opensuse.org/request/show/1164227 Factory / systemtap