Bug 1222249

Summary: Systemtap fails to run on v6.8 kernel
Product: [openSUSE] openSUSE Tumbleweed Reporter: Tony Jones <tonyj>
Component: KernelAssignee: Tony Jones <tonyj>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

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