There are 9 open security issues in bullseye.
commit 75b306e950f6f5ec4fae08d7d43a650e35f97d16
Author: Nathan Scott <nathans@redhat.com>
Date: Mon Nov 23 10:16:50 2026 +1100
selinux: allow pcp_import_t to create NSS datagram sockets
Runtime AVCs reported from pcp-atop in the pcp_import_t domain after
upgrading to Fedora 45:
avc: denied { create } for comm="pcp-atop"
scontext=system_u:system_r:pcp_import_t:s0
tcontext=system_u:system_r:pcp_import_t:s0 tclass=unix_dgram_socket
Name resolution goes through glibc NSS, and on a system without nscd
the systemd-resolved NSS module probes an AF_UNIX datagram socket
before falling back to its (stream) varlink socket. The probe socket
is created in the pcp_import_t domain and the probe fails harmlessly,
but every collection attempt fills the audit log.
Allow creating the datagram socket. The connect side is already
covered by the nsswitch_domain rules granted via auth_use_nsswitch(),
which include access to the avahi_t and systemd_resolved_t sockets.
Signed-off-by: Nathan Scott <nathans@redhat.com>
commit a97c1d0bf412c09f41132d964dd08acc3e2c7e14
Author: Nathan Scott <nathans@redhat.com>
Date: Mon Nov 23 09:02:45 2026 +1100
pmdalinux: fix a fd leak on calloc failure error path (covscan)
commit 17e3f1e9c5586a09c5bec866a89eb5237e86f5d2
Merge: edca5bbc 201420b5
Author: Ken McDonell <kenj@kenj.id.au>
Date: Sun Nov 22 22:06:41 2026 +1100
Merge branch 'main' of ../pcp
Conflicts:
qa/admin/package-lists/Fedora+45+aarch64
Take the changes from mac-fed.
commit 201420b504e0f38f45e744a1c276d50d062de1c6
Author: Ken McDonell <kenj@kenj.id.au>
Date: Sun Nov 22 21:59:22 2026 +1100
updates for Fedora 45 and aarch64
1. package list updates
2. filter expansion for qa/1741 ... lscpu(1) is still broken here
commit edca5bbc79a7ad32898c7819d71bf05ca3fa941a
Merge: b27df37f e79a1b0b
Author: Nathan Scott <natoscott@users.noreply.github.com>
Date: Sun Nov 22 14:21:00 2026 +1100
Merge pull request #2794 from natoscott/ci-fedora45-drop-fedora42
ci: add Fedora 45, drop EOL Fedora 42
commit b27df37f4d61e26619e29965b7a3af3eb855fc3d
Merge: 66955a27 19d8759a
Author: Nathan Scott <natoscott@users.noreply.github.com>
Date: Sun Nov 22 14:20:44 2026 +1100
Merge pull request #2793 from natoscott/fix/pmdalinux-nfs4-states-segfault
pmdalinux: fix nfsd client states parsing and PMDA segfault
commit e79a1b0baa40a7d206eef221f3bd9a351e2e6c7b
Author: Nathan Scott <nathans@redhat.com>
Date: Sun Nov 22 12:48:22 2026 +1100
ci: allow unsigned rpms to be installed on Fedora 45
rpm 6.1, as shipped in Fedora 45, changes the default package
verification level to "all", so installing the unsigned rpms built by
Makepkgs fails with "package ... does not verify: no signature". These
packages are local CI artifacts, not release packages, so skip the
signature check as the rawhide platform definition already does. The
package digests are still verified.
commit 19d8759ad1c1dd9a537f3da170d4e81df7f9c76f
Author: Nathan Scott <nathans@redhat.com>
Date: Sun Nov 22 10:23:06 2026 +1100
pmdalinux: fix nfsd client states parsing and PMDA segfault
The /proc/fs/nfsd/clients/<id>/states parser used one rigid sscanf
format that assumed the older kernel layout, including a hard-coded
"fc:" device major. Newer kernels add a "deny:" field between access
and superblock and print the device major/minor in hex, so the parse
stopped early and left the local filename buffer uninitialized.
strrchr(filename, '/') then returned NULL for an empty filename and
the following sscanf was handed (char *)1, crashing in strlen
(__strlen_avx2) while fetching the nfs4.server.open.* metrics.
Decode the fields individually with bounded conversions, handle
filenames with no path separator, and skip clients whose states or
info files have gone away. Kernel paths are printed without escaping
quote characters, so locate the filename's closing boundary from the
end and ignore filename text when looking for the access field. Also
harden the info parsing in refresh_nfs4_svr_client() against missing
files and unterminated fields, and normalise the new "r-"/"-w" access
placeholders back to the historical "r"/"w" values.
Add qa/1995 fixture nfs4client-root-002.tgz covering the new kernel
format, a non-fc device major, unescaped quotes and delimiter-like
text in filenames and a root-level filename, which reproduces the
original crash with the old PMDA.
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2580905
commit f9445d5901a9118dd2f2d195d60ef7af1b4589ba
Author: Nathan Scott <nathans@redhat.com>
Date: Sun Nov 22 12:28:23 2026 +1100
ci: derive RPM arch in Fedora build checks
The libuv dependency sanity check after Makepkgs rewrites the source RPM
name with a hard-coded x86_64. On a native aarch64 container Makepkgs
produces aarch64 binary RPMs, so the rewritten name does not exist and
the check fails even though the build succeeded.
Use the build architecture from rpm instead, as already done in the
Amazon Linux platform files, and apply the same fix to the Fedora 43,
44 and rawhide platform definitions which share the line.
Addresses a CodeRabbit review comment on PR #2794.
commit 998310ee77b8cf2f8b62f7f4c4c21c968a03a499
Author: Nathan Scott <nathans@redhat.com>
Date: Sun Nov 22 11:21:30 2026 +1100
ci: add Fedora 45, drop EOL Fedora 42
Add fedora45-container to the CI, nightly QA and release matrices, along
with a new platform definition and refreshed QA package lists.
The Fedora 45 package lists were generated when F45 was still rawhide and
had drifted from the Fedora 44 lists: the x86_64 header still said Fedora
44, many packages added to F44 since the fork were missing, and both
architectures still used the unversioned kubernetes packages that Fedora
45 no longer provides. Rebuild them from the Fedora 44 lists, verified
against the Fedora 45 x86_64 and aarch64 repositories, and use
kubernetes1.37. SoQt-devel is not available in F45, so record it in
other-packages/unavailable rather than asking dnf to install it.
Fedora 42 is end-of-life, so remove its container platform, QA package
lists, workflow entries and the remaining textual references.
commit 817ab9d9c1b2d6dc2ab300c7d0501cdb469ae535
Author: Ken McDonell <kenj@kenj.id.au>
Date: Sun Nov 22 10:46:51 2026 +1100
qa/src/GNUlocaldefs: only build fakeuname.so for Linux platforms
(a) is only used for linux PMDA tests, and
(b) build failed miserably on FreeBSD 15.1 where uname() is
declared as a static inline which really calls __xuname()
and so the whole LD_PRELOAD plan would collapse
commit 66955a27387a887112692540d10d960587a595ed
Merge: c41b3724 6267dfbf
Author: Nathan Scott <nathans@redhat.com>
Date: Sun Nov 22 10:17:39 2026 +1100
Merge branch 'pr-2784'
commit 6267dfbf0d9485d5f80c179bec715c5c4accd7ba
Author: Nathan Scott <nathans@redhat.com>
Date: Sun Nov 22 09:03:36 2026 +1100
qa: skip 2116 when pmproxy lacks libuv
Without libuv pmproxy silently disables time series mode and does not
register the /pmapi REST servlet this test exercises, so the test would
fail on an otherwise supported build. libuv also guards installation
of the pmseries binary, so use that as the capability check.
commit 4ec536eddd28ec8dfe181e65f14d48097015a2f1
Author: Nathan Scott <nathans@redhat.com>
Date: Sun Nov 22 09:03:36 2026 +1100
qa: tighten key server cluster port range checks
Widen the margin below the ephemeral range to cover the full 100 port
probe scan of _find_free_port, not just the three nodes. When there is
no room for the cluster bus ports below the range, choose client ports
from the unprivileged gap below it (or above the range) so the bus
ports still fall outside the ephemeral range and below 65536. Report
a clear error rather than returning a base that cannot be bound.
commit c41b3724afcc28ebf7909148ffbdc1e1a2f5edaf
Merge: 28b24600 9a7c0da9
Author: Ken McDonell <kenj@kenj.id.au>
Date: Sun Nov 22 07:56:16 2026 +1100
Merge pull request #2792 from kmcdonell/wip
Improve cpuinfo parsing for linux PMDA, add -Dindom_cache diagnostics for pmdaCache*() routines, QA fixups
commit 9a7c0da9900bc2467d213a28ffdc48422e13343f
Author: Ken McDonell <kenj@kenj.id.au>
Date: Sun Nov 22 07:43:24 2026 +1100
src/pmdas/linux/proc_cpuinfo.c: improved handling of EOF and long line truncation
commit 79eaa44340cb41755b600d6fd99203c4df7e284a
Author: Ken McDonell <kenj@kenj.id.au>
Date: Sun Nov 22 06:21:25 2026 +1100
src/pmdas/linux/proc_cpuinfo.c: small change in cpuinfo parser
@coderabbitai is getting picky.
Extend qa/885 to cover a raft of test cases for oddly formed
and malformed cpuinfo files.
commit 3b5230933bdf2dca2ced9ffb7f4f4c36d00feec0
Author: Nathan Scott <nathans@redhat.com>
Date: Sat Nov 21 18:32:00 2026 +1100
qa: keep key server cluster bus ports out of the ephemeral range
In cluster mode each key server listens for the cluster bus on its
client port plus 10000. _find_free_port now selects ports just below
the ephemeral range, so the derived bus port lands inside that range
and a transient outgoing connection can hold it. The node then fails
to start, the three node cluster never forms, and qa/1602 sees only a
single known node.
Choose a base port low enough that both the client ports and their
derived bus ports stay below the ephemeral range, falling back to the
previous default when there is no usable gap.
commit 151e9348237f2c504de6d67fcf7a913f857a1474
Author: Ken McDonell <kenj@kenj.id.au>
Date: Sat Nov 21 13:58:41 2026 +1100
qa fixups for tmpfs mounts
On bozo,
kenj@bozo:~/src/pcp/qa$ mount | grep snapd.ns
tmpfs on /run/snapd/ns type tmpfs (rw,nosuid,nodev,size=12469664k,nr_inodes=819200,mode=755,inode64)
nsfs on /run/snapd/ns/cups.mnt type nsfs (rw)
nsfs on /run/snapd/ns/prompting-client.mnt type nsfs (rw)
nsfs on /run/snapd/ns/snapd-desktop-integration.mnt type nsfs (rw)
nsfs on /run/snapd/ns/thunderbird.mnt type nsfs (rw)
nsfs on /run/snapd/ns/firmware-updater.mnt type nsfs (rw)
and any operations on /run/snapd/ns fail unless they are run as root.
Escalate command privileges in a couple of QA tests.
commit 2262043c867a522b7aa2845568e2703d06eb4deb
Author: Ken McDonell <kenj@kenj.id.au>
Date: Sat Nov 21 12:03:54 2026 +1100
linux PMDA /proc/cpuinfo and libpcp_pmda -Dindom_cache changes
Mostly @coderabbitai improvements from PR #2792.
commit cf02eb40ffc378954f6f1a3426c27ee9e639e5da
Author: Ken McDonell <kenj@kenj.id.au>
Date: Sat Nov 21 07:17:55 2026 +1100
libpcp_pmda: -Dindom_cache diagnostic small changes
- cull some experimental code to allow QA tests to relocate the indom cache
directory in isolation ... accidentally leaked into last commit and this
is not ready for general use (and may never escape as the problem this
was trying to fix proved to be elsewhere)
- refine some of the diagnostics added in the last commit
- tweaks to QA tests, mostly changing from -Dindom to -Dindom_cache for
those exercising pmdaCache*() routines and then a bunch of knock-on
remakes because there are additional lines now in the .out file from the
extra diagnostics in libpcp_pmda
commit e765512b0e40910ea90efd3c075967093b0d8b8f
Author: Ken McDonell <kenj@kenj.id.au>
Date: Sat Nov 21 06:25:51 2026 +1100
libpcp_pmda: add -Dindom_cache (new debug flag)
While trying to debug a problem that looked like an interaction between
QA tests and the persistent indom cache files (but in the end turned out
to be something else), I was frustrated because there are precious few
diagnostics in the pmdaCache*() routines, and the ones that are there use
a overloading of -Dindom to enable them.
With these changes every pmdaCache*() routine reports the parameters and
results (sort of in the style of -Dpmapi, but these routines are not part
of the PMAPI which strictly is defined by libpcp), and the previous
diagnostics are either no longer required or migrated to -Dindom_cache
control.
commit 37290f3eab774ee7d07192f7cc19cc0520dabee2
Author: Ken McDonell <kenj@kenj.id.au>
Date: Sat Nov 21 06:22:09 2026 +1100
src/pmdas/linux/proc_cpuinfo.c: improvements for refresh_proc_cpuinfo()
- handle lines like tag:\n or more generally tag<whitespace>:<whitespace>\n
i.e. when there is no value after the :
- additional -Dappl9,desperate diagnostics to report when cpuinfo
lines are skipped, and why
commit c1713c93324b511bac0ad12deed8f08361ec8632
Merge: dbeb1a14 28b24600
Author: Ken McDonell <kenj@kenj.id.au>
Date: Fri Nov 20 21:55:03 2026 +1100
Merge branch 'main' of https://github.com/performancecopilot/pcp
commit 7c99334f308c2d08c7585c4333c02a31a697d872
Merge: c11b6311 28b24600
Author: Nathan Scott <nathans@redhat.com>
Date: Fri Nov 20 17:34:34 2026 +1100
Merge branch 'main' into pr-2784
commit 28b246008bff702c9d0ffbd42f031489bd48cefb
Author: Nathan Scott <nathans@redhat.com>
Date: Fri Nov 20 17:34:17 2026 +1100
build: focus __u128 workaround for vendored libbpf/bpftool
commit c11b631163bfc7f80c5d7bf42bebd5da905c19f9
Merge: fc2c2c64 053a0a5f
Author: Nathan Scott <nathans@redhat.com>
Date: Fri Nov 20 16:39:36 2026 +1100
Merge branch 'main' into pr-2784
commit 053a0a5f4529b09907fab66029a792f04f9bfd5b
Merge: 98baa358 85bb238a
Author: Nathan Scott <nathans@redhat.com>
Date: Fri Nov 20 16:38:30 2026 +1100
Merge branches 'fix/pylint-persistent-cache' and 'libbpf-update'
commit 85bb238a873ffbace7db1311becae39f9064c938
Author: Nathan Scott <nathans@redhat.com>
Date: Fri Nov 20 11:57:18 2026 +1100
build: add __u128 workaround for vendored libbpf when needed
Linux 7.3 arm64 UAPI headers use __u128, which the vendored libbpf
linux/types.h predates, and this breaks the bpftool build of usdt.c
via its <linux/ptrace.h> include.
Rather than defining the macro for every vendored compile, probe the
include environment from configure and only supply the missing types
when the probe fails. The probe searches the vendored headers before
any caller-supplied CPPFLAGS, matching the vendored build, so its
result reflects the actual compile. The -fPIC requirement is
unchanged, with both flags now passed to the vendor build via
VENDOR_CFLAGS.
Once libbpf has been updated the probe succeeds and the workaround
self-disables.
commit dbeb1a14d0b9f028d7ab16e3bee536a35f7391ae
Author: Ken McDonell <kenj@kenj.id.au>
Date: Fri Nov 20 14:14:31 2026 +1100
qa/1741 and 1743: filter away some failings of some versions of lscpu(1)
commit ccbdd958e1d3eee3bec5d4ef65169fd55b524095
Author: Ken McDonell <kenj@kenj.id.au>
Date: Fri Nov 20 14:13:43 2026 +1100
qa/admin/pcp-daily: utmctl reported "stopping"
This is sort of half-running and half-stopped!
commit 32123ce4564a5177c9f78b2e52c7b47d5bf488e8
Merge: 33595723 0483911b
Author: Nathan Scott <nathans@redhat.com>
Date: Thu Nov 19 20:04:47 2026 +1100
Merge commit '0483911baed6f8c9027ef848e741de8ae7babe60' into libbpf-update
commit 0483911baed6f8c9027ef848e741de8ae7babe60
Author: Nathan Scott <nathans@redhat.com>
Date: Thu Nov 19 20:04:47 2026 +1100
Squashed 'vendor/github.com/libbpf/libbpf/' changes from f5dcbae736..85c0d575a4
85c0d575a4 sync: document automated sync in SYNC.md
c6a6fdb609 ci: add libbpf-sync workflow
30e2cb8936 ci: add script to run libbpf sync non-interactively
76ce128401 ci: add script to fetch kernel trees for libbpf sync
fbcd832e27 sync: sort .mailmap independently of the locale
e572e1cd08 sync: avoid brace expansion in the tree filter
6d0328e76b sync: latest libbpf changes from kernel
acc8d76666 sync: update .mailmap
4119efde76 sync: auto-generate latest BPF helpers
2f80074eff libbpf: Fix cleanup on invalid CO-RE relocation offsets
c097d75476 libbpf: Render decl_tags in btf_dump
04312c5dfc libbpf: Walk types in btf_dump_resize(), not in mark_referenced()
28826c4922 libbpf: Fix static linking of externs placed in allocated sections
f0b977cde9 libbpf: Add bpf_prog_stream_open()
b198f8b67b bpf: Add file descriptor interface for program streams
a81e7b1152 libbpf: Reject truncated ldimm64 CO-RE relocations
0e7e7713dc bpf: Restrict CO-RE poisoning to relocatable instructions
b91d4d22cc libbpf: Add support for BTF kinds LOC[_PARAM|_PROTO|SEC]
d09ea52795 btf: Extend UAPI to support BTF location (inline site) info
8608f22d05 libbpf: Support pointers to functions in read-only data in light skeleton
157d83120d libbpf: Treat .data.rel.ro as read-only data
76eeb9ca9c libbpf: Resolve pointers to functions in read-only data
3600abb979 libbpf: Support pointers to static functions in data when linking
9b828bca53 bpf: Add bpf_call_rcu() kfunc
6c8e5e7d98 libbpf: Validate ELF symbol table entry size
b68bed3090 bpftool: Compute map size of light skeletons at runtime
acc90a4bb1 libbpf: Support selective kernel module BTF loading via bpf_object_open_opts
ab48c6f1ba libbpf: Support attaching struct_ops to a cgroup
bc48d4e164 bpf: tcp: Support parse/len/write header option hooks in bpf_tcp_ops
a7ee927845 bpf: Add infrastructure to support attaching struct_ops to cgroups
a1460c8580 libbpf: Reject local struct_ops bitfields before data access
8afaa19944 libbpf: Fix program log buffer size validation
0f9c5a8d04 libbpf: Add bpf_program__add_flags() and bpf_program__clear_flags()
fa3579b3e8 libbpf: fix log level propagation for light skeleton loaders
4ea184df98 libbpf: Defer arena map size check to load time
b9c8ceca9c libbpf: Fix array comparison in BTF dedup
6de1eac4cd xsk: align TX metadata layout across ABIs
bb78d847a7 libbpf: Fix debian kernel version information parsing
0256cea002 libbpf: Move section-defined program flags to prog_flags
6598dcb3bf libbpf: Fix for the potential undefined behavior due to shifting
1aab5a98be libbpf: Fix usdt attach failure when nop10 crosses page boundary
82f51391fe libbpf: Avoid overflow in BTF.ext bounds check
7183e9519f net: devmem: allow rx-page-size > PAGE_SIZE per dmabuf binding
19e98d95e9 bpf: Add BPF_F_ADJ_ROOM_DECAP_* flags for tunnel decapsulation
aaafcbda3b bpf: Name the enum for BPF_FUNC_skb_adjust_room flags
a68c588fa8 libbpf: Fix ring buffer consumer loop on 32-bit position wrap
7832f8e857 libbpf: Avoid unnecessary mmap resize for percpu data maps
a98506ad02 bpftool: Generate skeleton for global percpu data
ef1ecc2725 libbpf: Add support for global percpu data
54fd646c55 libbpf: Probe percpu data feature
16bcff7098 libbpf: Export btf__find_by_name_kind_own()
5723b93383 libbpf: Search /lib64 and /lib in resolve_full_path()
cd08bc2420 docs: bpf: Document BPF_RB_OVERWRITE_POS in bpf_ringbuf_query
1810ef6cdb bpf: Add BPF_FIB_LOOKUP_VLAN_INPUT flag to bpf_fib_lookup() helper
a432251e60 bpf: Add BPF_FIB_LOOKUP_VLAN flag to bpf_fib_lookup() helper
f6bd35b274 libbpf: Detect uprobe syscall with new error
30d076b7e2 libbpf: Change has_nop_combo to work on top of nop10
d8b7bfc9f6 fs: support FD_FAILFS_ROOT in fchdir()
f90a9c487d include: add 128-bit integer types to linux/types.h
bae275ac54 ci: route source pull requests to mailing list
f7081a6baf Update LGPL 2.1 license text; switch to SPDX 3.0 identifier
2bbc4834e9 sync: latest libbpf changes from kernel
b99e1ad74c libbpf: Fix double-free of distilled base BTF on .BTF.ext parse error
debb5e82bf libbpf: Drop in-loader metadata check for load-time verification
77e9d2277d libbpf: Skip bpf_object__probe_loading() when BPF token is in use
d36d49e72c bpf: Add tracing_multi link info support
34e3ebf0f0 sync: latest libbpf changes from kernel
afda97acd0 sync: auto-generate latest BPF helpers
a205255dda libbpf: fix -Wformat warnings from format/argument type mismatches
8dae7836fb bpf: Support BPF_F_EGRESS with bpf_redirect_peer
7e4aaa5bae libbpf: Add path_fd to struct bpf_link_create_opts
82d3303c39 bpf: Add support to specify uprobe_multi target via file descriptor
b6c0d2c595 libbpf: Add support to create tracing multi link
85db899e70 libbpf: Add btf_type_is_traceable_func function
0adf8326d8 libbpf: Add bpf_link_create support for tracing_multi link
a7f4cd68de libbpf: Add bpf_object_cleanup_btf function
ed2a823a50 bpf: Add support for tracing_multi link session
1ba74665c7 bpf: Add support for tracing_multi link cookies
622bb934a9 bpf: Add support for tracing multi link
4e48554f9f bpf: Add multi tracing attach types
c25c836734 bpf: Check tail zero of bpf_prog_info
b8612dd587 bpf: Check tail zero of bpf_map_info
e2b5fa33b2 libbpf: Support resizable hashtable
1369dc002d bpf: Implement resizable hashmap basic functions
2dca79168a libbpf: Guard add_data() against size overflow
364ee32065 libbpf: Skip max_entries override on signed loaders
62fab2fc64 libbpf: Skip initial_value override on signed loaders
7e3bab2abf libbpf: Reject non-exclusive metadata maps in the signed loader
dfc8559e38 libbpf: Skip endianness swap when loader generation failed
89308c2810 libbpf: Also reset {insn,data}_cur on realloc failure
77ff09372e libbpf: Skip hash computation when loader generation failed
ec59141b0b libbpf: Drop redundant self-loop in emit_check_err
04e0c4cdbf netdev: expose io_uring rx_page_order order via netlink
1c1b4bdf74 bonding: 3ad: add lacp_strict configuration knob
494ba2a44d geneve: Introduce IFLA_GENEVE_LOCAL and IFLA_GENEVE_LOCAL6.
cc1ee3742d bridge: uapi: Add neigh_forward_grat netlink attributes
1729da885e net/sched: netem: add per-impairment extended statistics
b03713be6f openat2: new OPENAT2_REGULAR flag support
22470c0e8f sync: detect missing git filter-branch and allow git override
caa25e0b72 ci/diffs: Add a fix for the flaky file_reader test
dcaac95035 sync: latest libbpf changes from kernel
81c1cd3372 libbpf: Add __NR_bpf definition for LoongArch
a25feb4abc libbpf: Fix UAF in strset__add_str()
656323e6ba libbpf: Harden parse_vma_segs() path parsing
5a5b5b0dff libbpf: fix off-by-one in emit_signature_match jump offset
485dd4bb6c libbpf: Add OPTS_VALID() for log_opts in bpf_map_create
8513b14196 libbpf: Use strscpy() in kernel code for skel_map_create()
88501b1097 libbpf: Add syscall common attributes support for map_create
92ca488798 libbpf: Add support for extended BPF syscall
978fc80ec7 bpf: Extend BPF syscall with common attributes support
5b0f3729a2 libbpf: Fix deduplication of typedef with base definitions
95d952d70c libbpf: Add section handlers for sleepable tracepoints
9c6daf3720 libbpf: Adjust btf_vlen() to return a __u32
9801e02973 bpf: Extend BTF UAPI vlen, kinds to use unused bits
33d87a7b5f libbpf: Report error when a negative kprobe offset is specified
acffcfe3fb libbpf: Prevent double close and leak of btf objects
86525c190b net: bridge: add stp_mode attribute for STP mode selection
8159a62fa8 netkit: Add single device mode for netkit
c361e88771 net: Add queue-create operation
b6f2d5c84d bonding: print churn state via netlink
c52980168a docs/bpf: add missing fsession attach type to docs
63cfece8d9 libbpf: Allow use of feature cache for non-token cases
dd92bef7f6 Makefile: bump to v1.8.0
adb64b3607 sync: latest libbpf changes from kernel
998700f409 sync: auto-generate latest BPF helpers
5ca5801a7b bpf: reject negative CO-RE accessor indices in bpf_core_parse_spec()
100089d560 libbpf: Clarify raw-address single kprobe attach behavior
b93c2b916e libbpf: Use direct error codes for kprobe/uprobe attach
2040414176 libbpf: Fix BTF handling in bpf_program__clone()
c2838bdfe5 bpf: Clarify BPF_RB_NO_WAKEUP behavior for bpf_ringbuf_discard()
fd04b4eae1 libbpf: Support sanitization of BTF layout for older kernels
c95ad95d0a libbpf: BTF validation can use layout for unknown kinds
aa9d4c3227 libbpf: Add layout encoding support
815411adc2 libbpf: Use layout to compute an unknown kind size
87896082a7 libbpf: Support layout section handling in BTF
462733ecb8 btf: Add BTF kind layout encoding to UAPI
080991addb libbpf: Introduce bpf_program__clone()
406b456fb1 libbpf: Start v1.8 development cycle
git-subtree-dir: vendor/github.com/libbpf/libbpf
git-subtree-split: 85c0d575a447651bbeb8e2376eacd64c30dce9a6
commit 98baa3587788ccc004e8f8cddbd2cc507b235dbc
Author: Nathan Scott <nathans@redhat.com>
Date: Thu Nov 19 17:23:27 2026 +1100
build: disable pylint persistent stats cache
Fedora 43's pylint-3.3.9-3.fc43 backports the JSON results-cache change
(GHSA-22qq-2fwx-7p67) without the matching LinterStats.modules_names
attribute, so every pylint run with persistent=yes ends with
AttributeError: 'LinterStats' object has no attribute 'modules_names'
and a non-zero exit status. Since .pylintrc sets persistent=yes this
fails "make check" and hence "Makepkgs --check" for the fedora43-container
CI job. The score cache provides no value for package builds.
commit fc2c2c64f7ee84141a208b414cf03bd6393e3397
Author: Nathan Scott <nathans@redhat.com>
Date: Wed Nov 11 17:42:42 2026 +1100
pmproxy: send only one reply when header handling fails
Several parser paths call http_error() to queue a reply and also set
parser.status_code - a URL exceeding MAX_URL_SIZE, an empty or
unhandled request URL, an invalid OPTIONS target. Sending the deferred
status for those requests queues a second response, which a keep-alive
client reads as the answer to its next request.
Flag the client once http_error() has queued a reply, and only send the
deferred status when no reply has been queued for the request. The flag
is cleared with the rest of the per-request state by http_client_release().
commit 5c72f9e9a48f93b0c71b4508c3ed625e1f746f73
Author: Nathan Scott <nathans@redhat.com>
Date: Wed Nov 11 17:42:37 2026 +1100
pmcd: remap agent profile client pointers when the client table moves
Agents remember the client that last sent them a profile by storing a
ClientInfo pointer, and pmcd compares it when replacing a profile or
disconnecting that client. The client table is a single array that
NewClient() grows with realloc(), so every ClientInfo can move; after
that the comparison no longer matches the client it refers to.
For DSO agents this skipped ClearAgentProfile(), freeing the profile
while the PMDA still held a borrowed pointer to it - the same dangling
e_prof the profile clearing was added to prevent. It also meant a
disconnect left a stale reference behind.
Remap any agent profile pointers that refer into the old table whenever
it is reallocated.
commit 48f58cc2a6ff648a808e57cbcdd4d5709deb7f30
Author: Nathan Scott <nathans@redhat.com>
Date: Wed Nov 11 17:42:32 2026 +1100
libpcp_web: collect garbage contexts only after their references drop
pmWebGroupDestroy() marks a context garbage before dropping the destroy
lookup's reference, so a context still being used by another operation
stays in the dictionary with garbage set and the operation's reference
intact. The garbage collector then dropped it on the garbage flag alone,
releasing that operation's reference and freeing the context while the
operation was still using it.
Require the reference count to have reached zero before collecting an
expired or garbage context, so the collector never releases a reference
it does not own.
The expiry scheduler skipped garbage contexts when deciding whether the
GC timer was still needed, so destroying the last context while it was
in use stopped the timer and left it allocated until shutdown. Count
garbage contexts as needing collection so the timer keeps running and
the context is freed soon after its final reference is released.
commit dc7f722b5c5f2aa0ed31d4d0d57dd04869100504
Author: Nathan Scott <nathans@redhat.com>
Date: Wed Nov 11 10:57:26 2026 +1100
qa: make pmproxy tests independent of the surrounding environment
Tests 1695, 1773, 1874, 1875 and 1922 start their own pmproxy and are
already given private run directories. A PMPROXY_SOCKET in the
environment still redirects them at a socket used by another pmproxy,
which they then replace and remove on shutdown. Clear it before the
test proxy starts.
Cleanup also signalled the recorded pid after waiting for pmproxy to
exit, so a recycled pid could be signalled if cleanup ran a second time.
Clear the pid once it has been waited for.
commit 4c950539b1d823feb123a296c1c1680c4b69b62e
Author: Nathan Scott <nathans@redhat.com>
Date: Wed Nov 11 10:57:26 2026 +1100
qa: do not run pmseries --load through the NaN-normalising wrapper
Tests 1886 and 1906 wrap pmseries in a shell function that maps NaN
spellings to a single form. The --load argument is a JSON source path,
so a directory name containing "NaN" or "-nan" would be rewritten and
the load would fail. Run that one command directly; it produces no
floating point output.
commit d4dd9dafa4cf499d70f7d265af4c222b388d088e
Author: Nathan Scott <nathans@redhat.com>
Date: Wed Nov 11 10:57:19 2026 +1100
qa: only filter successful context-destruction diagnostics from 1617
The filter removed every pmDestroyContext diagnostic, including the
failure reported when the context has already gone (PM_ERR_NOCONTEXT),
so a test failure could be hidden by the expected output. Filter only
the successful case, which is the one that varies with timing.
commit bf3635555a24355a2f7608b3bf2e420dc0fada8a
Author: Nathan Scott <nathans@redhat.com>
Date: Wed Nov 11 10:57:19 2026 +1100
qa: keep _find_free_port usable when the ephemeral range starts low
The previous change moved dynamically selected ports to just below the
ephemeral port range. On systems where ip_unprivileged_port_start has
been raised to protect low ports, that could return a port the test user
cannot bind to, and systems that report no ephemeral range information
kept the historical default, which may lie inside the range.
Consult ip_unprivileged_port_start and, when there is no unprivileged
gap below the ephemeral range, scan upwards from above it instead.
commit 4eaccc174917581ab8602faed1289deecdfe60e3
Author: Nathan Scott <nathans@redhat.com>
Date: Wed Nov 11 10:57:07 2026 +1100
pmcd: clear DSO profile pointer without calling the PMDA callback
ClearAgentProfile() called the dispatch profile callback with a NULL
profile to make the PMDA forget the pointer it was given. A DSO PMDA
may have installed a custom callback that does not expect NULL, and
pmdaProfile() documents the caller as responsible for the borrowed
pointer rather than the callback. The PMDA library itself only reads
e_prof, so clear that directly and let the next profile the agent
receives refresh any per-PMDA state, as it already does on a profile
change.
commit ef375ac102f6fb641bba92e0ae1d4ec8ee6fe66b
Author: Nathan Scott <nathans@redhat.com>
Date: Wed Nov 11 10:57:04 2026 +1100
pmproxy: return the stored error when header handling fails
Header processing can set an HTTP error status (malformed Basic
credentials, too many header fields, invalid content encoding) before
the request URL has been routed to a servlet. on_message_complete()
then had no servlet to call, so the stored status was never turned into
a response and the connection was left hanging until it timed out.
Send the stored error status when no servlet was selected.
commit 604f6a40392caa177c0c51e22ffc8ee39d950532
Author: Nathan Scott <nathans@redhat.com>
Date: Wed Nov 11 10:56:57 2026 +1100
pmproxy: wait for TLS output to drain before closing a connection
TLS responses are encrypted into a memory BIO and written out by the
prepare/check callbacks, so the HTTP write accounting completes before
the ciphertext has been handed to the socket. A streamed
"Connection: close" response could therefore see its last counted write
complete and close the connection while the final chunk was still in
the BIO or in the deferred plaintext queue, truncating the response.
Mark transport (ciphertext) writes so they are not counted as HTTP
writes, and make the keep-alive check also consult the TLS state before
closing.
Also release queued writes that never reach the client: a rejected
uv_callback_fire() left the request, its buffers and the client
reference leaking, and a failed uv_write() closed the connection without
completing the write accounting. Free the request when the callback
queue discards it, complete a failed uv_write() through the write
callback like a normal completion, and undo the write reservation in
both cases.
commit 7ecbf8e2b1aadce3afa47e76e509063cace29566
Author: Nathan Scott <nathans@redhat.com>
Date: Wed Nov 11 10:56:50 2026 +1100
libpcp_web: close timer handles once when shutting down
pmWebTimerClose() closed the global timer and cleared its initialized
flag immediately. A new event loop could then be set before the close
callback had run, reinitialising a handle that libuv was still closing -
pmfind does exactly this, calling pmWebTimerClose() once per discovery
source. Track the close in flight and reject a new event loop until it
has completed.
loggroup_timers_stop() stopped the garbage collection timer by closing
it and reinitialised it when the next archive arrived, which could also
happen before the previous close callback ran. The timer is embedded in
the loggroups structure and only freed with it, so stop it in the normal
idle path and close it exactly once in loggroup_free().
commit 7e6296d6c112042f7cf9d88c5085e65f3e1c741d
Author: Nathan Scott <nathans@redhat.com>
Date: Wed Nov 11 10:56:47 2026 +1100
libpcp_web: keep webapi context references and report lookup failures
pmWebGroupDestroy() dropped the destroy lookup's reference twice - once
directly and once through webgroup_drop_context() - so it could consume
the reference held by a concurrent operation and free the context while
that operation was still using it. Drop only the lookup's reference and
let the drop path defer the free until the last user is gone.
Every activity refresh woke the event loop with a request to rescan all
contexts, which is unnecessary work on a busy server. Record whether a
new context needs expiry scheduling and let the async callback rescan
only in that case (or when no expiry timer is running); refreshes only
move expiry later, and the running timer handles them.
pmWebGroupMetric() ignored a terminal lookup failure, which is how a
context expiring during a multi-prefix traversal is reported, and called
on_done() with success and partial results. Propagate the failure
status and message instead.
commit 497762ee02b14278571c09d73401fb9faf0f4d8f
Author: Nathan Scott <nathans@redhat.com>
Date: Wed Nov 11 10:56:39 2026 +1100
pmproxy: fix discarded call cleanup and callback handle closing
dequeue_all_from_callback() removed a discarded call from the wrong
list: it cleared callback->queue rather than the link in the master
queue, so calls belonging to other callbacks could be lost, and the
notification callback reference held by the discarded call was never
released. Unlink the call through the master queue and drop the
notification reference along with the call data.
uv_callback_close() closed the idle and async handles with separate
close callbacks, so whichever close completed first released the
callback object while the other handle was still pending in libuv.
Count the handles being closed, release the object only after the last
one has completed, and ignore a repeated close request.
commit e9d75df2ef679dbebbdb541eb739f461db41c0c7
Author: Nathan Scott <nathans@redhat.com>
Date: Mon Nov 9 17:53:33 2026 +1100
qa: ignore the sign of NaN values from pmseries expressions
Division of zero by zero yields a NaN whose sign depends on the
architecture - x86_64 reports "-nan" while aarch64 reports "nan" - so
tests 1886 and 1906 only passed on one of them. Filter these values
through a single representation, as other tests already do.
commit dd3e84c115f2c1027d329e4f43357e529f92ea3b
Author: Nathan Scott <nathans@redhat.com>
Date: Mon Nov 9 17:53:33 2026 +1100
qa: keep dynamically assigned ports out of the ephemeral range
The default base port for _find_free_port is 54321, which on Linux (and
macOS) falls inside the local ephemeral port range used for outgoing
connections. telnet-probe only detects listening sockets, so a port in
use by an established connection looks free and a later bind fails with
EADDRINUSE. That is what was seen in qa/1773, where pmproxy could not
open its request port immediately after another test had made many
connections.
Determine the first ephemeral port and scan downwards from just below
it when no explicit base port is given. An explicit base (as used by a
few tests) behaves as before.
Test 1744 printed the dynamically chosen key server port in its expected
output, which is no longer a fixed value - filter the port out (it is
still recorded in the .full file).
commit 873cec3b98289f0ed95c97f2b48497c1306b2151
Author: Nathan Scott <nathans@redhat.com>
Date: Mon Nov 9 16:37:08 2026 +1100
pmcd: drop stale DSO agent profile references
pmcd keeps pmProfile structures per client context and hands them to DSO
PMDAs via pmdaProfile(), which only saves the pointer - the PMDA library
uses it later from instance and label callbacks (__pmdaNextInst() calls
__pmInProfile()). When pmcd replaced a profile in DoProfile() or tore
down a client in DeleteClient(), the old profile was freed but the
agent's e_prof pointer was left dangling, so a subsequent PM_LABEL or
instance request walked freed memory.
This was reproducible by fetching an instanced metric with a profile,
destroying that context, and then asking for the instance labels of the
same indom from a new context - pmcd died in __pmFindProfile(). In the
wild it showed up as an intermittent pmcd SIGSEGV while the webapi
enumerated metrics whose instance labels were being collected.
Add ClearAgentProfile() and call it before freeing a profile, so DSO
PMDAs reset their borrowed pointer (the same agents are already told
about profile changes on the next fetch). Also make the fallback
"no profile" structure static in SendFetch(), since that pointer
escapes into the PMDA and must outlive the fetch call.
commit 287087afb8d85081f8b0f2c0a70c78f40d24c054
Author: Nathan Scott <nathans@redhat.com>
Date: Mon Nov 9 14:01:39 2026 +1100
pmproxy, libpcp_web: keep JSON valid when a request fails mid-stream
If a webapi context fails partway through a metric namespace traversal
the error message was appended to lookup->message for every remaining
metric, and the resulting error object was then appended to the already
emitted (and possibly chunked) partial response. That produced an
unbounded response that was not valid JSON.
Stop attempting PMAPI calls once a lookup has failed, and when closing
out a partial response replace the outermost closing brace with the
error members instead of starting a second JSON object.
commit e63ffe1998d94620eae613d4d79a79449101961b
Author: Nathan Scott <nathans@redhat.com>
Date: Mon Nov 9 13:21:29 2026 +1100
qa: isolate pmproxy tests from the system service and slow shutdown
Tests 1695 and 1773/1874/1875/1922 start their own pmproxy instances but
used the default PCP_RUN_DIR and PCP_TMP_DIR, so they collided with the
system pmproxy socket (and with each other's ports and metrics files).
Use private run directories for these tests, and make them wait for their
own pmproxy to exit before finishing so later tests can reuse the port
without racing a shutting-down pmproxy.
commit 33115c41988850ac3a5308cbdd399800f2e1037a
Author: Nathan Scott <nathans@redhat.com>
Date: Mon Nov 9 13:21:26 2026 +1100
libpcp_web: fix webapi shutdown leaks and borrowed context handling
When discovered archives are released, the web API context shares the
PMAPI context handle owned by its pmDiscover entry. pmwebapi_release_context
was destroying that borrowed handle, leading to a double pmDestroyContext
and errors during pmproxy shutdown.
Track handle ownership on the context and only destroy handles created by
pmwebapi_new_context. Also free the labellist_t nodes themselves when
releasing metrics and instances - these were leaking once discovered
contexts started being torn down at shutdown.
Detach the discovery load baton from the pmDiscover entry before dropping
the final reference so closed callbacks cannot see a freed baton.
qa/1617 (and 1618, which runs it) now filter the context-destroy
diagnostics like the other -Dcontext noise.
commit ef443aeb42be578f537432c988e0c90652556700
Author: Nathan Scott <nathans@redhat.com>
Date: Mon Nov 9 11:58:11 2026 +1100
qa: keep the 662 chunked-close request inside its context polltimeout
The new chunked response check enumerated every metric on the test
context. On slower hosts that takes long enough for the context to
idle past polltimeout, so the following checks reconnect instead of
using the still-live context and the test fails spuriously.
Restrict the chunked request to the kernel prefix - it still streams a
multi-chunk reply, but completes well inside the idle window.
commit c218df022493bd0e153592cd37347adf512b2db9
Author: Nathan Scott <nathans@redhat.com>
Date: Mon Nov 9 11:58:08 2026 +1100
libpcp_web: free discovery load batons when their source closes
pmSeriesDiscoverSource takes a reference on the load baton and expects
pmSeriesDiscoverClosed to release it, but the baton was never freed once
that final reference was dropped. The completion callback used to call
freeSeriesLoadBaton from inside freeSeriesLoadBaton, so the baton leaked
when the discovery source closed normally.
Make the release run a terminal load phase that frees the baton after
the persist reference is dropped, leave the done callback clear for
discovery batons, and ignore closed events for sources that never
created a baton.
commit f07fe72212b2d5ad9a2865a8b473949ae094239a
Author: Nathan Scott <nathans@redhat.com>
Date: Mon Nov 9 11:58:06 2026 +1100
pmproxy, libpcp_web: release discovered archives before discovery shutdown
Shutdown closed the discovery module before the HTTP servlets, so
pmlogger archive teardown (scheduled by the servlet close) still held
pmDiscover pointers after pmDiscoverClose had released them. The later
close callback then dereferenced freed discovery and key slot state.
Close the HTTP servlets first and give the loop a non-blocking turn so
archive close handlers can call pmDiscoverStreamEnd while the discovery
module and key server slots are alive. Then stop key server I/O, purge
the remaining discovered sources while their close callbacks can still
run, and only then release the module and slots.
commit 6930d07559c296b8f7106438bedcb60c87710f9f
Author: Nathan Scott <nathans@redhat.com>
Date: Mon Nov 9 11:58:03 2026 +1100
libpcp_web: free loggroups only after the embedded timer closes
struct loggroups embeds its worker timer, but loggroup_free released
the structure immediately after uv_close. libuv still owns the handle
node until the close callback runs, so the event loop could later walk
freed memory.
Defer the structure free until the timer close callback runs, tracking
whether the timer was initialised and whether it has been closed. When
a close is already in flight, the existing callback completes the
teardown instead of scheduling a second close. Destroy the mutex in
the same deferred path so it is not used after the structure is gone.
commit f3bb2d9c850d9bb56cb7d0a7899c061167441aec
Author: Nathan Scott <nathans@redhat.com>
Date: Sun Nov 8 11:38:21 2026 +1100
qa: keep 662 contexts fresh and tighten pmproxy coverage
The URL-split check opens a series of connections and runs before the
chunked-close check. Both used to run after the webapi context was
created with a five second polltimeout, so a slow connection could let
the context expire before the chunked reply was requested. Run the
URL-split check before creating the context and keep the chunked check
immediately after it.
A non-chunked reply means the chunked-close check covered nothing, so
report that as a failure with the reason rather than a skip.
commit 2e30c7861a885f88b242e6ea3a103c10ccd20eb6
Author: Nathan Scott <nathans@redhat.com>
Date: Sun Nov 8 11:37:34 2026 +1100
pmproxy, libpcp_web: drain closed handles before closing the loop
Several libuv handles were still live when the event loop was closed,
and one shutdown path called back into the loop after it had stopped:
- shutdown_proxy ran the full teardown from inside a timer callback and
then called exit(0). The teardown drives the loop again to process
handle close callbacks, but uv_run is not reentrant, so the -T
(runtime) path could crash. The callback now only stops the loop and
lets main_loop() and Shutdown() finish the job in order.
- main_loop initialises its prepare, check and two timer handles on the
stack. Once the loop returned, those handles were left registered
while the stack frame went away, so any later uv_run during shutdown
called through dead stack memory. Close and drain them before
returning.
- pmWebTimerClose only stopped the global timer handle, leaving it
registered forever. It now closes the handle too, tracks whether the
handle is initialised, rejects a second event loop (handles cannot be
moved between loops) and refuses registrations after close.
- pmfind installs a one-shot timer on its stack and calls into the
webgroup API. Close that timer and the timer/webgroup handles before
the final loop run so their close callbacks are processed.
- The write callback's async/idle handles, the signal handlers and any
connections still open (with their SSL state) were left behind. Close
them during shutdown and drive the loop once so the close callbacks
release those resources while the modules that own them are alive.
- pmDiscoverUnregister only detaches the callback table entry, so every
inotify (uv_fs_event) handle for a monitored archive stayed registered
and kept the loop open. Add pmDiscoverPurge to release the entries
owned by a module that is closing.
- A proxied PCP client never closed its connection to pmcd. The socket
holds a client reference that is only dropped by the socket's own
close callback, so both the connection and the client allocation
leaked for the life of the process. Close the pmcd connection with
its client, and take the client reference when the socket handle is
set up rather than when the connect completes, so a client that goes
away mid-connect is also released safely. When that callback runs,
use the client pointer stored in the handle (the socket is not at the
start of the client structure) and leave the closing handle memory
intact.
A failed uv_loop_close is still reported at debug level rather than
silently ignored.
commit 0d92513060612d3844a12070bd7a4ca76b76a314
Author: Nathan Scott <nathans@redhat.com>
Date: Sun Nov 8 11:23:29 2026 +1100
libpcp_web: harden webapi event loop handle lifecycle
pmWebGroupSetEventLoop() previously accepted any loop at any time. A
second call with a different loop silently allocated another timer and
async handle, leaking the first pair and leaving a timer that could
fire against reinitialised state.
libuv handles are bound to the loop they were initialised on, so make
this API one-shot: return -EBUSY (with a diagnostic) if handles already
exist and a different loop is requested, and -EINVAL for a NULL loop
when none has been configured yet.
Also document why the async handle is unreferenced: the caller's loop
must retain at least one referenced handle for worker wakeups to be
processed, and reference counting cannot be adjusted from the worker
threads that send them.
commit b7cd5bff11139a2017fa1a4c865febc69205a911
Author: Nathan Scott <nathans@redhat.com>
Date: Sun Nov 8 11:23:21 2026 +1100
libpcp_web: pin webapi contexts and drain users before closing
Two context lifetime races remained after moving timer handling to the
event loop:
- webgroup_lookup_context() found a context in the dictionary and only
incremented its reference count afterwards. The garbage collector
runs on a different thread and could free the context in between,
leaving the caller with a pointer to freed memory. Look up and pin
the context under the webgroups mutex now, refusing contexts already
marked garbage or inactive, and release the pin when the lookup
fails.
- pmWebGroupClose() freed the contexts, dictionaries and handles while
worker threads could still be inside a webapi operation. Give every
API call a lease on the module (webgroup_get/webgroup_put) and wait
for outstanding leases, with a five second timeout, before releasing
anything. On timeout the resources are deliberately leaked and a
diagnostic is logged, rather than risking a use-after-free while the
process exits.
Destroy now marks a context garbage under the same lock before
dropping it, so a concurrent lookup cannot acquire it mid-removal.
Reference count updates are serialised on the webgroups mutex too, so
the garbage collector's decisions are consistent with in-flight users.
A closed module retains a sentinel pointer: work that was queued before
close can still start on a worker thread and must be refused instead
of reallocating state that can never work. pmWebGroupSetup() clears
the sentinel so a module can be set up again.
commit b4636f1f515be54ac39761d3ec08bf9703952b3d
Author: Nathan Scott <nathans@redhat.com>
Date: Sun Nov 8 11:15:55 2026 +1100
libpcp_web: expire webapi contexts with a lock-consistent timestamp
webgroup_garbage_collect sampled the clock before acquiring the
webgroups mutex, while worker threads refresh last_active under that
mutex. A refresh in between made the elapsed time for a live context
appear to be a huge (wrapped) value, so a context that had just been
used could be expired.
Sample the clock only after taking the lock, in both the garbage
collector and the expiry scheduler, and skip contexts whose last_active
is newer than that sample.
qa/1741 now keeps a context alive with uses inside polltimeout and then
confirms it is still reaped once idle.
commit ba3e29fbf16bacf50f6d164305eba25f4a7de5b4
Author: Nathan Scott <nathans@redhat.com>
Date: Sun Nov 8 11:14:09 2026 +1100
pmproxy: defer connection close until all response writes complete
A chunked reply is queued as a series of uv_write requests. The
HTTP_FLAG_STREAMING flag that gated connection close was cleared when
the terminating chunk was *queued*, not when it was written. If an
earlier chunk completed before the terminator write was processed, its
completion callback saw the flag already clear and closed the stream,
cancelling the queued "0\r\n\r\n"; clients saw a truncated chunked
response.
Count queued HTTP writes on the client, protected by the existing
client mutex because writes are queued from libuv worker threads, and
only close a "Connection: close" request once no writes remain. libuv
completes writes to a stream in order, so the terminating chunk is
always the last write accounted for.
A client that stalls while draining now keeps its connection until the
queued writes complete; there is no write timeout, but that matches
HTTP semantics.
qa/1741 exercises this with a 128 byte chunk size and a deliberately
slow reader. Before this change the reply decoded to the full metric
set but was missing the terminating chunk; now it is complete.
Related: https://github.com/performancecopilot/pcp/issues/2781
commit 6c64fa979e2f2b41f891704e3aa701d92c439bbd
Author: Nathan Scott <nathans@redhat.com>
Date: Sat Nov 7 13:24:47 2026 +1100
qa: extend pmproxy coverage for URL splits, chunked close and timers
Add checks to test 662 that a request URL delivered across two reads is
still routed correctly, and that a chunked /pmapi response completes
when the client requests that the connection be closed.
Add test 1738, a concurrent derive and fetch workload against a private
pmproxy, as a regression test for the libuv timer crash.
Related to https://github.com/performancecopilot/pcp/issues/2781
Related to https://github.com/performancecopilot/pcp/issues/2782
Related to https://github.com/performancecopilot/pcp/issues/2783
commit 5f38a91213c0aabf647ab906488742df68bb013e
Author: Nathan Scott <nathans@redhat.com>
Date: Sat Nov 7 13:11:41 2026 +1100
libpcp_web: keep webapi context timer handling on the event loop
pmproxy executes pmapi operations in libuv worker threads. Refreshing a
webapi context called uv_timer_start (and uv_timer_stop) directly from
those threads, but libuv handle APIs are not thread-safe. Concurrent
requests using the same context could therefore corrupt timer state and
crash inside uv_timer_start.
Replace the per-context timers with a single timer owned by the event
loop. Worker threads now only update last_active under the webgroups
mutex and wake the loop with a thread-safe uv_async_send; the loop
thread computes the next expiry, runs garbage collection and performs
all uv_timer_start and uv_timer_stop calls. Dropped contexts are queued
and freed by the async callback, and the async handle is unreferenced so
it cannot keep the loop alive on its own.
This also closes the race where a newly created context could become
visible to the event loop before its privdata had been initialised.
In pmfind, close the webgroup handles before closing the loop, then run
the loop once more so the handle close callbacks are processed.
Fixes https://github.com/performancecopilot/pcp/issues/2783
commit db6b7f4dc92bffc5b49f32e0d7b737c632d4104a
Author: Nathan Scott <nathans@redhat.com>
Date: Sat Nov 7 13:11:34 2026 +1100
pmproxy: complete chunked replies when closing the connection
A chunked response is written in several pieces, so on_http_client_write
is called once per piece. With "Connection: close" the first completion
closed the connection while later chunks were still queued, truncating
the reply and leaving clients with a chunked-encoding error.
Only close the connection after the final write, which is the point at
which HTTP_FLAG_STREAMING has been cleared.
Fixes https://github.com/performancecopilot/pcp/issues/2781
commit ec207dd8de0e09b4fd64104bde8c70240ce3e316
Author: Nathan Scott <nathans@redhat.com>
Date: Sat Nov 7 13:11:31 2026 +1100
pmproxy: reassemble request URLs split across TCP reads
http-parser hands the request URL to on_url in one or more pieces when
the request line spans multiple reads. Routing each fragment as though
it were a complete URL caused pmproxy to reject valid requests, with
the outcome depending on exactly where the split happened.
Accumulate URL fragments until the headers are complete, then route the
complete URL once. Move the per-request cleanup into on_message_begin
so the accumulated URL, parameters and headers are reset for each
request on a keep-alive connection.
Fixes https://github.com/performancecopilot/pcp/issues/2782
commit 33595723891cd07f4e9ca40880cbfced98d07182
Merge: fdd30b63 cad8c4f4
Author: Ken McDonell <kenj@kenj.id.au>
Date: Tue Nov 17 07:52:17 2026 +1100
Merge pull request #2789 from kmcdonell/wip
Rework /proc/cpuinfo parsing for Linux PMDA
commit cad8c4f458327b41f53b011fffee1734f8ded870
Author: Ken McDonell <kenj@kenj.id.au>
Date: Tue Nov 17 07:38:52 2026 +1100
linux PMDA: rework non-parallel generation of arm_cpuinfo.? files
commit c69e696fbccd722a9d655a3e5ad897dc6f9ab0ba
Merge: 039635c3 b961aad6
Author: Ken McDonell <kenj@kenj.id.au>
Date: Tue Nov 17 06:59:16 2026 +1100
Merge branch 'wip'
commit 039635c32e558754f56caa9f1f3ac4bda1e91978
Author: Ken McDonell <kenj@kenj.id.au>
Date: Tue Nov 17 06:57:50 2026 +1100
linux PMDA: tidy up some of the arm_cpuinfo* and proc_cpuinfo* changes
Small improvements based on @coderabbitai feedback in the context
of PR #2789.
commit b961aad654a8b401d14f1aaddebf5bc371b0272a
Author: Ken McDonell <kenj@kenj.id.au>
Date: Mon Nov 16 21:35:43 2026 +1100
qa/admin/post-setup: handle Time zone: and Timezone: for timedatectl status
commit c699342a07a8fb0a4099ed1a032a4eecf978494f
Author: Ken McDonell <kenj@kenj.id.au>
Date: Mon Nov 16 21:32:58 2026 +1100
qa/admin/pcp-daily: can't run mac-deb and mac-fed on bozo
commit 383340e4bfc402608e0fdb0213680ac3f5f4f363
Author: Ken McDonell <kenj@kenj.id.au>
Date: Mon Nov 16 21:31:01 2026 +1100
qa/src/fakeuname.c: drop domainname ... it is not portable
commit e011606baf3ca8f5f5e8d312155791744bf584c2
Author: Ken McDonell <kenj@kenj.id.au>
Date: Mon Nov 16 21:30:12 2026 +1100
qa/admin/pcp-daily: tweak utm vm handling
commit ffa44122d16ebb768804be5ddf43f018f87fe74b
Author: Ken McDonell <kenj@kenj.id.au>
Date: Mon Nov 16 17:53:19 2026 +1100
qa/admin/pcp-daily: add warning if not run from base of repo and -g special case cannot be done
commit 0ef5e39967cb2819f2dda32fba204e293f8ecc84
Author: Ken McDonell <kenj@kenj.id.au>
Date: Mon Nov 16 16:56:31 2026 +1100
qa/885: fix $debug setting for all data cases
commit bda3fd9e471ae5f5b5c4379f277640acdff61206
Author: Ken McDonell <kenj@kenj.id.au>
Date: Mon Nov 16 16:54:23 2026 +1100
qa/1743: valgrind dual for qa/1741
commit 4a26ad70c7f4cff8fae6c3c9d0633a21e571964d
Author: Ken McDonell <kenj@kenj.id.au>
Date: Mon Nov 16 14:54:03 2026 +1100
linux PMDA: refactor /proc/cpuinfo parsing
Add architecture-dependent parsing and rework order of
checks for each cpuinfo line.
Additional diagnostics with -Dappl9.
New qa/1741 that is like qa/885, but tries to reconcile PCP values
for vendor, model, model_name, ... against lscpu(1) -s output.
Resolves https://github.com/performancecopilot/pcp/issues/2470
commit b52d4807af3139cbd565abc8f821c16e8254ae19
Author: Ken McDonell <kenj@kenj.id.au>
Date: Mon Nov 16 13:29:00 2026 +1100
qa/885: and linux/cpuinfo-* files
- rename some files to allow architecture to be embedded in the
name ... used in concert with uname() wrapper to force linux
PMDA to use the correct architecture-dependent method(s) when
parsing cpuinfo files
- additional cpuinfo files from Christian Horn
commit 8a22f7f958c5d97962a0eecee30ae5a404e54313
Author: Ken McDonell <kenj@kenj.id.au>
Date: Mon Nov 16 13:25:44 2026 +1100
qa/src/fakeuname.c: uname() wrapper DSO for use with LD_PRELOAD
Allows utsname fields to be selective clobbered to support QA, e.g.
FAKEUNAME_MACHINE=aarch64 LD_PRELOAD=.../src/fakeuname.so will allow apps
(like the linux PMDA) to think they're running on aarch64.
commit c9fd901f86c1bd300685bbcae4236fd61bce2e93
Author: Ken McDonell <kenj@kenj.id.au>
Date: Sat Nov 14 21:25:15 2026 +1100
src/pmdas/linux/GNUmakefile: fix parallel make race associated with mk.arm_cpuinfo
commit e1b6869a3e2d67a9e2618135ba3c740ccfe37a81
Author: Ken McDonell <kenj@kenj.id.au>
Date: Thu Nov 12 07:46:44 2026 +1100
admin/post-setup: tweak for (old) timedatectl(1) on CentOS 7
commit 7b3bc8dc62a79c6fe2efd3298b611f9fad08762f
Merge: b4362a98 fdd30b63
Author: Ken McDonell <kenj@kenj.id.au>
Date: Thu Nov 12 06:51:51 2026 +1100
Merge branch 'main' of https://github.com/performancecopilot/pcp
commit b4362a984210cf551a4f346a1c163c636d410dda
Author: Ken McDonell <kenj@kenj.id.au>
Date: Thu Nov 12 06:50:28 2026 +1100
linux PMDA: more refinements for hinv.cpu metrics on arm64
commit 5470b9fb3f50806b59872dc2071b359e3e06ad7b
Author: Ken McDonell <kenj@kenj.id.au>
Date: Thu Nov 12 06:47:08 2026 +1100
qa/admin/package-lists/OpenIndiana+2026.10+i86pc: new package list
commit fdd30b634c13570bb9679b34b871a59291380998
Author: kurik <jkurik@redhat.com>
Date: Wed Nov 11 15:51:29 2026 +0100
fix: Leftovers after removing RPMs (#2786)
* build: install parent directories for docs, icons and bpftrace examples
Several directories were only ever created implicitly by install-sh
when a leaf directory was installed. Because install-sh only records
explicitly created directories in $DIST_MANIFEST, these parents were
never listed in any RPM and so were left behind after package removal:
/usr/share/doc/pcp-doc
/usr/share/pcp-gui
/usr/share/pcp/pmdas
/usr/share/pcp/pmdas/bpftrace
Create them with the -d option first so they are owned by a package,
following the pattern already used elsewhere in the tree.
This addresses the remaining 'missing from our makefiles' cases from
https://github.com/performancecopilot/pcp/issues/2229
commit 1dd9baa68bda558c9987c5c3d380e4f3916a76ce
Merge: 596d3d90 632bcfd1
Author: Nathan Scott <nathans@redhat.com>
Date: Wed Nov 11 10:37:17 2026 +1100
Merge branch 'fix/atop-service-acct-uaf'
commit 27592f4325520c92e24de9d9e6ba340620bdc92d
Author: Ken McDonell <kenj@kenj.id.au>
Date: Tue Nov 10 14:35:47 2026 +1100
vendor/github.com/util-linux/sys-utils: rename and update
Was vendor/github.com/util-linux but the extra sys-utils directory
better matches the github path.
Improve refresh-me to allow additional files to be included
easily as required.
Add lscpu.h.
commit 632bcfd1cf1e4d6a2d62055640aaac92a717369c
Author: Nathan Scott <nathans@redhat.com>
Date: Sun Nov 8 10:40:46 2026 +1100
atop, selinux: fix service-stop handling and pacct unlink denial
Two gaps found while reviewing the previous commits:
- atop-daily.service restarts atop.service unconditionally. Now that
the timer outlives the service (Wants rather than BindsTo), the daily
maintenance run would start atop again after an administrator had
deliberately stopped it. Use try-restart so a stopped service stays
stopped.
- pcp_import_t was allowed to add and remove names in pcp_var_lib_t and
to create and setattr the private accounting file, but not to unlink
that file. Unlinking needs both remove_name on the directory and
unlink on the file itself, so close_pacct_file() still triggered an
AVC and left $PCP_VAR_DIR/pmcd/pacct behind after accounting stopped.
Grant file unlink as well.
Signed-off-by: Nathan Scott <nathans@redhat.com>
commit 4a2245f18261d07719c2f162c432bc7ee7b73497
Author: Ken McDonell <kenj@kenj.id.au>
Date: Sun Nov 8 08:04:06 2026 +1100
scripts/start: better separation of stdout and stderr
commit e942223f7dac621612873fbf05a8ceeb1729e821
Author: Ken McDonell <kenj@kenj.id.au>
Date: Sun Nov 8 07:56:57 2026 +1100
vendor/github.com/util-linux/lscpu-arm.c: new vendor'd file
Since there is no API for getting CPU identity info, we're going to base
our code for aarch64 (aka arm64) in the linux lscpu(1) code.
The refresh-me script in the same directory will update our copy if the
github version changes.
The plan is to slice-n-dice this code over in the PCP linux PMDA build to
support better hinv.cpu.model and hinv.cpu.vendor metric values.
commit 2e765976c23d682007a82fb1e0e70619605d3a75
Author: Ken McDonell <kenj@kenj.id.au>
Date: Sun Nov 8 07:21:41 2026 +1100
qa/1738 and qa/1965: exercise novalue() and novalue(meta=...) in both tests
commit f27cd47987fa788a467238b049f6db22065e8877
Merge: 76de01ff 596d3d90
Author: Ken McDonell <kenj@kenj.id.au>
Date: Sun Nov 8 07:18:55 2026 +1100
Merge branch 'main' of https://github.com/performancecopilot/pcp
commit 596d3d90a161e4682b3a237f9d7486aeee44c785
Merge: 9a98a0b3 71473a80
Author: Ken McDonell <kenj@kenj.id.au>
Date: Sun Nov 8 07:11:55 2026 +1100
Merge pull request #2780 from kmcdonell/wip
QA, small code refinements and fix for issue #2779
commit 71473a8096e8375d7480e5a4ee43fcf425fe7164
Author: Ken McDonell <kenj@kenj.id.au>
Date: Sat Nov 7 16:44:29 2026 +1100
qa/1339: changes suggested by @coderabbitai
- quoting
- saving and reporting stderr for failing commands
commit ca5978481cea2ca59a80617ecf57c950395fe3fa
Author: Ken McDonell <kenj@kenj.id.au>
Date: Sat Nov 7 16:43:07 2026 +1100
scripts/start: rework
Drop the whole "where is the base of your gir tree" pile of steaming ...
go back to only known and trusted places for pcp.conf and common.check.
Clean up some other quoting and exit status issues.
commit 368f03d5b55c8bd956c7a87d17090391711c1392
Author: Ken McDonell <kenj@kenj.id.au>
Date: Sat Nov 7 16:18:43 2026 +1100
src/libpcp/src/derive_fetch.c: another (obscure) corner case with ternary op and novalue()
In the context of PR #2780, @coderrabitai culled this one out of thin air:
guard ? novalue(meta=metric) : metric
and asserted this would SEGV.
New qa/1965 (and the valgrind dual qa/1966) showed this assertion to be
true.
Fixed by some extra logic in eval_expr() to guard against the
novalue(meta=metric) case where the expression N_NOVALUE node has a pmDesc
and if the metric has an indom, then desc.indom is not PM_INDOM_NULL but
this node in the expression tree will never have any instances ... so
force the instance enumeration onto the other operand node.
commit ef11e53e861785c6ab93a787cfb7250b073e143c
Author: Ken McDonell <kenj@kenj.id.au>
Date: Sat Nov 7 16:17:28 2026 +1100
src/libpcp/src/tz.c: tweak logic, comment on Solaris TODO for TZ= quoting
Based on suggestions from @coderabbitai in the context of PR #2779.
commit 76de01ff52ae3aa37b60497f03bfde282ee402c9
Author: Ken McDonell <kenj@kenj.id.au>
Date: Sat Nov 7 08:20:51 2026 +1100
qa/new: check that groups provided are defined in the group file
There are 6 open security issues in trixie.
You can find information about how to handle these issues in the security team's documentation.