systemtap 4.4 not compatible with linux kernel 5.11

Bug #1945324 reported by Paweł Bylica
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
systemtap (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

systemtap builds some module depending on linux kernel. The version 4.4 is not compatible with kernel 5.11.

This has been fixed upstream in https://sourceware.org/git/?p=systemtap.git;a=commit;h=ea81249b90b92a589d304c051efbc5bbad7ce073 and by comparing dates should be part of the 4.5 release.

Test command:
sudo stap -e 'probe begin { printf("Hello, World!\n"); exit() }'

Result:
In file included from ./arch/x86/include/asm/preempt.h:7,
                 from ./include/linux/preempt.h:78,
                 from ./include/linux/spinlock.h:51,
                 from ./include/linux/mmzone.h:8,
                 from ./include/linux/gfp.h:6,
                 from /usr/share/systemtap/runtime/linux/runtime_defines.h:20,
                 from /usr/share/systemtap/runtime/runtime_defines.h:8,
                 from /tmp/stappKZdVm/stap_bdfc337d9faad1126717b8a39875985f_992_src.c:12:
/usr/share/systemtap/runtime/compatdefs.h: In function ‘_stp_is_compat_task’:
/usr/share/systemtap/runtime/compatdefs.h:18:21: error: ‘TIF_IA32’ undeclared (first use in this function)
   18 | #define TIF_32BIT TIF_IA32
      | ^~~~~~~~

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in systemtap (Ubuntu):
status: New → Confirmed
Revision history for this message
indro (mukherjee-indraneel) wrote (last edit ):

Same problem in Ubuntu 21.10 on kernel 5.13.0-22. Basic Hello World program doesn't work.

root@indro-linux:~/ebpf_scripts# stap hello.stp
In file included from ./arch/x86/include/asm/preempt.h:7,
                 from ./include/linux/preempt.h:78,
                 from ./include/linux/spinlock.h:51,
                 from ./include/linux/mmzone.h:8,
                 from ./include/linux/gfp.h:6,
                 from /usr/share/systemtap/runtime/linux/runtime_defines.h:20,
                 from /usr/share/systemtap/runtime/runtime_defines.h:8,
                 from /tmp/stapR7HREm/stap_3db261cacc321d17514ed3cae41da457_988_src.c:12:
/usr/share/systemtap/runtime/compatdefs.h: In function ‘_stp_is_compat_task’:
/usr/share/systemtap/runtime/compatdefs.h:18:21: error: ‘TIF_IA32’ undeclared (first use in this function)

root@indro-linux:~/ebpf_scripts# uname -r
5.13.0-22-generic

root@indro-linux:~/ebpf_scripts# stap -V
Systemtap translator/driver (version 4.4/0.185/0.182, Debian version 4.4-2)
Copyright (C) 2005-2020 Red Hat, Inc. and others
This is free software; see the source for copying conditions.
tested kernel versions: 2.6.32 ... 5.10.0-rc
enabled features: AVAHI BPF LIBSQLITE3 NLS NSS

Revision history for this message
indro (mukherjee-indraneel) wrote :

Glad to provide any other info to help debug and fix this issue.

Revision history for this message
Dan Streetman (ddstreet) wrote :

@chfast @mukherjee-indraneel i think it's *extremely* unlikely - at least in the short term - that systemtap will become/remain usable in stable releases, especially when using HWE kernels; can I suggest that you try to use the backports process to provide a later (and hopefully working) version of systemtap to existing LTS release(s)?

https://wiki.ubuntu.com/UbuntuBackports

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.