Compare commits

...
Sign in to create a new pull request.

10 commits

Author SHA1 Message Date
Frank Ch. Eigler
9788ad93d3 release 5.1 2024-04-26 18:19:16 -04:00
Frank Ch. Eigler
27ff838924 Merge branch 'rawhide' into f38
* rawhide:
  Align with modern FMF specs.
  testsuite: adapt to "egrep" deprecation
  Automated weekly systemtap rawhide release: 5.1~pre17062192g5fd8daba
  testsuite: adapt to "fgrep" deprecation
  Regression/PR16166/towers.c: gcc14 warning suppression
  restore SPDX %changelog blurb
  Automated weekly systemtap rawhide release: 5.1~pre17062114g2604d135
  Automated weekly systemtap rawhide release: 5.1~pre17060399gb6abf4bd
  Automated weekly systemtap rawhide release: 5.1~pre17059382g67086c54
  Automated weekly systemtap rawhide release: 5.1~pre17056139g6c0b92b3
  Automated weekly systemtap rawhide release: 5.1~pre17056120g2ccc0c4c
  Rebuilt for Boost 1.83
  CI Tests: Robustify Regression/RHEL6Feature-cpp-backtraces
2024-02-23 09:48:42 -05:00
Frank Ch. Eigler
9239eba319 restore SPDX license note 2024-02-23 09:48:14 -05:00
Martin Cermak
12008fc3c1 CI Tests: Robustify Regression/RHEL6Feature-cpp-backtraces 2023-11-24 15:13:38 +01:00
Frank Ch. Eigler
58d35e0967 Merge branch 'rawhide' into f38
* rawhide:
  Resolves: RHEL-16549, systemtap uprobe partial registration failure can cause crashes
2023-11-16 19:11:13 -05:00
Frank Ch. Eigler
5a8030b241 Merge branch 'rawhide' into f38
* rawhide: (24 commits)
  Upstream release 5.0
  Fix Regression/ipv6-tapset-support for modern Fedoras
  Automated weekly systemtap rawhide release: 5.0~pre16958465gca71442b
  Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
  Automated weekly systemtap rawhide release: 5.0~pre16891249ge891a37e
  Automated weekly systemtap rawhide release: 5.0~pre16890184ge891a37e
  Automated weekly systemtap rawhide release: 5.0~pre16885234gd98d6c2d
  Automated weekly systemtap rawhide release: 5.0~pre16885197g6b17715f
  Rebuilt for Python 3.12
  4.9-2 - rebuilt for f39-build-side-67564 target
  CI Tests: Set DEBUGINFOD_URLS based on test FMF context.
  CI Tests:  Instead of waiting for a random event/hit, trigger one via ping
  CI Tests: Regression/small-tests: Use debuginfod on Fedora
  CI Tests: Work around PR29765
  CI Tests: Multiple updates
  CI Tests: Relax check for RPMs (not applicable to rhel8 modules)
  upstream release
  CI Testing: Extend test coverage on Fedora
  rhbz2173032
  CI testing: Drop the Regression/testsuite-upstream-raw TC
  ...
2023-11-04 12:50:54 -04:00
Martin Cermak
f0850bec4e CI Tests: Update the Regression/python-probing testcase
Update the Regression/python-probing testcase to
it's newest version in Rawhide.
2023-10-16 11:08:43 +02:00
William Cohen
9bc6155692 Automated weekly systemtap rawhide release: 5.0~pre16958465gca71442b 2023-10-11 15:13:57 -04:00
William Cohen
e2c1466a4a Support for linux 6.4 kernels (rhbz2230079). 2023-08-10 11:43:11 -04:00
Frank Ch. Eigler
9a05bf8db6 upstream release 2023-04-28 17:53:04 -04:00
4 changed files with 17 additions and 97 deletions

1
.gitignore vendored
View file

@ -97,3 +97,4 @@
/systemtap-5.1~pre17060399gb6abf4bd.tar.gz
/systemtap-5.1~pre17062114g2604d135.tar.gz
/systemtap-5.1~pre17062192g5fd8daba.tar.gz
/systemtap-5.1.tar.gz

View file

@ -1,59 +0,0 @@
commit 0fef0bd60ff4b359a32da52262855dfe82fe51ae
gpg: Signature made Tue 14 Nov 2023 03:20:12 PM EST
gpg: using RSA key 4B35DCD2EA45C4E0783135BC8094BE9C9F4696A1
gpg: Can't check signature: No public key
Author: Yichun Zhang (agentzh) <yichun@openresty.com>
Date: Fri Nov 10 21:51:56 2023 -0800
PR31051: memory and uprobe leaks in early uprobe registraton code when errors happen
diff --git a/runtime/linux/uprobes-inode.c b/runtime/linux/uprobes-inode.c
index 997f4528d..289cce00b 100644
--- a/runtime/linux/uprobes-inode.c
+++ b/runtime/linux/uprobes-inode.c
@@ -529,6 +529,16 @@ stapiu_init(struct stapiu_consumer *consumers, size_t nconsumers)
}
if (unlikely(ret != 0)) {
+ for ( ;; ) {
+ struct stapiu_consumer *c = &consumers[i];
+ // protect against conceivable stapiu_refresh() at same time
+ mutex_lock(& c->consumer_lock);
+ stapiu_consumer_unreg(c);
+ mutex_unlock(& c->consumer_lock);
+ if (i == 0)
+ break;
+ i--;
+ }
return ret;
}
@@ -545,7 +555,27 @@ stapiu_init(struct stapiu_consumer *consumers, size_t nconsumers)
break;
}
}
- return ret;
+
+ if (unlikely(ret != 0)) {
+ int j;
+ for (j = 0; j < nconsumers; ++j) {
+ struct stapiu_consumer *c = &consumers[j];
+ // protect against conceivable stapiu_refresh() at same time
+ mutex_lock(& c->consumer_lock);
+ stapiu_consumer_unreg(c);
+ mutex_unlock(& c->consumer_lock);
+ }
+ for ( ;; ) {
+ struct stapiu_consumer *c = &consumers[i];
+ stap_cleanup_task_finder_target(&c->finder);
+ if (i == 0)
+ break;
+ i--;
+ }
+ return ret;
+ }
+
+ return 0;
}

View file

@ -1 +1 @@
SHA512 (systemtap-5.1~pre17062192g5fd8daba.tar.gz) = 423b09c001a2446d807be9fb8b66226545dddb15e7e57af01780966b17af5e2d8c16f44ce3f77d9a884c4e64a379604f9fb493b2a0f5e6ae50d65de19d9af992
SHA512 (systemtap-5.1.tar.gz) = da0fe237d2124031a5786d1221dbb420d90da5497376715fd43a7a9f61a354a229c1128e67ce6becbc012aa3796dc5d337149e239e3c1def0651b179e5bf199f

View file

@ -9,7 +9,8 @@
%ifarch ppc ppc64 %{sparc} %{mips} %{riscv}
%{!?with_crash: %global with_crash 0}
%else
%{!?with_crash: %global with_crash 1}
# rawhide crash-devel breakage rhbz2219728
%{!?with_crash: %global with_crash 0}
%endif
%{!?with_rpm: %global with_rpm 1}
%{!?elfutils_version: %global elfutils_version 0.179}
@ -92,7 +93,10 @@
\
g stapusr 156\
g stapsys 157\
g stapdev 158
g stapdev 158\
g stapunpriv 159\
u stapunpriv 159 "systemtap unprivileged user" /var/lib/stapunpriv /sbin/nologin\
m stapunpriv stapunpriv
%define _systemtap_server_preinstall \
# See systemd-sysusers(8) sysusers.d(5)\
@ -117,7 +121,7 @@ m stapdev stapdev
Name: systemtap
# PRERELEASE
Version: 5.1~pre17062192g5fd8daba
Version: 5.1
Release: 1%{?release_override}%{?dist}
# for version, see also configure.ac
@ -153,7 +157,7 @@ Release: 1%{?release_override}%{?dist}
Summary: Programmable system-wide instrumentation system
License: GPL-2.0-or-later
URL: http://sourceware.org/systemtap/
Source: %{name}-%{version}.tar.gz
Source: ftp://sourceware.org/pub/systemtap/releases/systemtap-%{version}.tar.gz
# Build*
BuildRequires: make
@ -842,6 +846,9 @@ echo '%_systemtap_runtime_preinstall' | systemd-sysusers --replace=%{_sysusersdi
getent group stapusr >/dev/null || groupadd -f -g 156 -r stapusr
getent group stapsys >/dev/null || groupadd -f -g 157 -r stapsys
getent group stapdev >/dev/null || groupadd -f -g 158 -r stapdev
getent passwd stapunpriv >/dev/null || \
useradd -c "Systemtap Unprivileged User" -u 159 -g stapunpriv -d %{_localstatedir}/lib/stapunpriv -r -s /sbin/nologin stapunpriv 2>/dev/null || \
useradd -c "Systemtap Unprivileged User" -g stapunpriv -d %{_localstatedir}/lib/stapunpriv -r -s /sbin/nologin stapunpriv
%endif
exit 0
@ -1304,44 +1311,15 @@ exit 0
# PRERELEASE
%changelog
* Thu Jan 25 2024 Frank Ch. Eigler <fche@redhat.com> - 5.1-17062192g5fd8daba
- Automated weekly rawhide release
- Applied spec changes from upstream git
* Thu Jan 25 2024 Frank Ch. Eigler <fche@redhat.com> - 5.1-17062114g2604d135
- Automated weekly rawhide release
- Applied spec changes from upstream git
* Tue Jan 23 2024 Frank Ch. Eigler <fche@redhat.com> - 5.1-17060399gb6abf4bd
- Automated weekly rawhide release
- Applied spec changes from upstream git
* Mon Jan 22 2024 Frank Ch. Eigler <fche@redhat.com> - 5.1-17059382g67086c54
- Automated weekly rawhide release
- Applied spec changes from upstream git
* Thu Jan 18 2024 Frank Ch. Eigler <fche@redhat.com> - 5.1-17056139g6c0b92b3
- Automated weekly rawhide release
- Applied spec changes from upstream git
* Thu Jan 18 2024 Frank Ch. Eigler <fche@redhat.com> - 5.1-17056120g2ccc0c4c
- Automated weekly rawhide release
- Applied spec changes from upstream git
* Thu Jan 18 2024 Jonathan Wakely <jwakely@redhat.com> - 5.0-4
- Rebuilt for Boost 1.83
* Tue Nov 14 2023 Frank Ch. Eigler <fche@redhat.com> - 5.0-3
- RHEL-16549
* Mon Nov 06 2023 Frank Ch. Eigler <fche@redhat.com> - 5.0-2
- License header tweak
* Fri Apr 26 2024 Frank Ch. Eigler <fche@redhat.com> - 5.1-1
- Upstream release, see wiki page below for detailed notes.
https://sourceware.org/systemtap/wiki/SystemTapReleases
* Sat Nov 04 2023 Frank Ch. Eigler <fche@redhat.com> - 5.0-1
- Upstream release, see wiki page below for detailed notes.
https://sourceware.org/systemtap/wiki/SystemTapReleases
- migrated to SPDX license
* Fri Apr 28 2023 Frank Ch. Eigler <fche@redhat.com> - 4.9-1
- Upstream release, see wiki page below for detailed notes.
https://sourceware.org/systemtap/wiki/SystemTapReleases