Resolves: RHEL-78998
Upstream dropped usage of lldb for parsing DWARF and replaced it by
using libdw (from elfutils).
We can drop one of the patches as it's already present.
Finally, drop an old usage of `USE_SYSTEM_BPF_BCC=ON` as it's no longer
used by the project.
Signed-off-by: Viktor Malik <vmalik@redhat.com>
The tool attaches to kprobes (__)?blk_account_io_(start|done) neither of
which exists in RHEL 9. In addition, the biolatency.bt tool does the
same thing (just with tracepoints introduced for that purpose) so it is
perfectly fine if we exclude it.
Signed-off-by: Viktor Malik <vmalik@redhat.com>
Historically, bpftrace binary could not be stripped as its symbols were
needed for the BEGIN and END probes. However, these probes are now
implemented as BPF_PROG_TYPE_RAW_TRACEPOINT and executed via
BPF_PROG_RUN. Therefore, binaries can be stripped now.
Signed-off-by: Viktor Malik <vmalik@redhat.com>
Resolves: RHEL-78918
Resolves: RHEL-81775
This version comes with LLVM 20 support.
Also needs two extra patches:
- GCC in c9s is throwing some errors while compiling
src/container/cstring_view.h. Since the file is dropped in a later
version, just apply that patch.
- RHEL 9 kernel doesn't have 736c55a02c47 ("sched/fair: Rename
cfs_rq.nr_running into nr_queued") so we need to use the older version
of runqlen.bt.
Signed-off-by: Viktor Malik <vmalik@redhat.com>
This patch release contains a proper fix for CVE-2024-2313, allowing
unprivileged users loading of compromised linux headers.
Resolves: RHEL-28765
CVE: CVE-2024-2313
Signed-off-by: Viktor Malik <vmalik@redhat.com>
Also fixes a couple of issues:
- fix bpftrace creating BPF programs with truncated names,
- fix CVE allowing unprivileged users loading of compromised linux headers.
Resolves: RHEL-30779
Resolves: RHEL-8502
Resolves: RHEL-28765
CVE: CVE-2024-2313
Signed-off-by: Viktor Malik <vmalik@redhat.com>
In addition, fix runqlat.bt, tcpdrop.bt, and undump.bt on aarch64.
Resolves: RHEL-286
Resolves: rhbz#2170838
Signed-off-by: Viktor Malik <vmalik@redhat.com>
Resolves: rhbz#2121920
Resolves: rhbz#2118995
Resolves: rhbz#1975148
Resolves: rhbz#2088577
Resolves: rhbz#2128208
Resolves: rhbz#2073675
Resolves: rhbz#2073770
Resolves: rhbz#2075076
The new release and few added patches fix bugs in the shipped tools.
Also some RHEL-specific patches can be removed.
bpftrace 0.16.0 requires the cereal serialization library which is not
packaged into RHEL9. To overcome this problem, we download it manually,
which is ok to do as the library is only necessary during build.
Signed-off-by: Viktor Malik <vmalik@redhat.com>
Two bugfixes were backported:
- Fix for wildcard listing bug
Resolves: rhbz#2055550
- Changes to bio* tools required by new kernels
Resolves: rhbz#2039661
Signed-off-by: Viktor Malik <vmalik@redhat.com>
Update the minimal bcc version so it can't be installed with an
incompatible bcc (i.e.) build against LLVM 12. This should help with
gating.
Related: rhbz#2001127
A few fixes needed to pass gating. Some failures were also fixed in
the testsuite.
- Threadsnoop need to points to libpthread.so.0 instead of
libpthread.so
- aarch64 specific fixes: some syscall are not present on all arches.
Related: rhbz#1967567
Signed-off-by: Jerome Marchand <jmarchan@redhat.com>
Since kernel commit 309dca309fc ("block: store a block_device pointer
in struct bio") struct bio points again to a block_device and not to a
gendisk directly.
Resolves: rhbz#1967567
This should have already done by an automatic build, but for some
reason it failed. LLVM has been rebuild in the mean time and the
scratch build didn't fail, so let's rebuilt it.
Resolves: rhbz#1925146