Debian Package Tracker
Register | Log in
Subscribe

pcp

System level performance monitoring and performance management

Choose email to subscribe with

general
  • source: pcp (main)
  • version: 7.2.2-1
  • maintainer: PCP Development Team (DMD)
  • uploaders: Nathan Scott (DMD) – Ken McDonell (DMD)
  • arch: all any
  • std-ver: 4.7.2
  • VCS: Git (Browse, QA)
versions [more versions can be listed by madison] [old versions available from snapshot.debian.org]
[pool directory]
  • o-o-stable: 5.2.6-1
  • oldstable: 6.0.3-1.1
  • stable: 6.3.8-1
  • testing: 7.2.2-1
  • unstable: 7.2.2-1
versioned links
  • 5.2.6-1: [.dsc, use dget on this link to retrieve source package] [changelog] [copyright] [rules] [control]
  • 6.0.3-1.1: [.dsc, use dget on this link to retrieve source package] [changelog] [copyright] [rules] [control]
  • 6.3.8-1: [.dsc, use dget on this link to retrieve source package] [changelog] [copyright] [rules] [control]
  • 7.2.2-1: [.dsc, use dget on this link to retrieve source package] [changelog] [copyright] [rules] [control]
binaries
  • libpcp-archive1
  • libpcp-archive1-dev
  • libpcp-gui2
  • libpcp-gui2-dev
  • libpcp-import-perl
  • libpcp-import1
  • libpcp-import1-dev
  • libpcp-import2
  • libpcp-import2-dev
  • libpcp-logsummary-perl
  • libpcp-mmv-perl
  • libpcp-mmv1
  • libpcp-mmv1-dev
  • libpcp-pmda-perl
  • libpcp-pmda3
  • libpcp-pmda3-dev
  • libpcp-trace2
  • libpcp-trace2-dev
  • libpcp-web1
  • libpcp-web1-dev
  • libpcp3
  • libpcp3-dev
  • libpcp4
  • libpcp4-dev
  • pcp (2 bugs: 0, 2, 0, 0)
  • pcp-atop
  • pcp-conf
  • pcp-doc
  • pcp-dstat (1 bugs: 0, 1, 0, 0)
  • pcp-export-pcp2elasticsearch
  • pcp-export-pcp2graphite
  • pcp-export-pcp2influxdb
  • pcp-export-pcp2json
  • pcp-export-pcp2spark
  • pcp-export-pcp2xlsx
  • pcp-export-pcp2xml
  • pcp-export-pcp2zabbix
  • pcp-export-zabbix-agent
  • pcp-gui
  • pcp-htop
  • pcp-import-benchmarks
  • pcp-import-collectl2pcp
  • pcp-import-ganglia2pcp
  • pcp-import-guidellm2pcp
  • pcp-import-iostat2pcp
  • pcp-import-mrtg2pcp
  • pcp-import-sar2pcp
  • pcp-import-sheet2pcp
  • pcp-pmda-infiniband
  • pcp-testsuite (1 bugs: 0, 1, 0, 0)
  • pcp-zeroconf
  • python3-pcp
action needed
lintian reports 2 errors and 11 warnings high
Lintian reports 2 errors and 11 warnings about this package. You should make the package lintian clean getting rid of them.
Created: 2026-08-14 Last update: 2026-11-16 07:00
9 security issues in bullseye high

There are 9 open security issues in bullseye.

6 important issues:
  • CVE-2026-16524: A command injection flaw in PCP's linux_sockets PMDA allows malicious shell metacharacters via the network.persocket.filter metric. This failed validation lets attackers execute arbitrary commands as the PMDA user when metrics refresh.
  • CVE-2026-16526: A flaw in the PCP linux_sockets module exposes an unsecured internal connection. An attacker with initial code execution can exploit this to escalate privileges and execute arbitrary commands as root.
  • CVE-2026-16527: An unauthenticated remote attacker can bypass access controls by sending crafted requests to the PCP pmproxy /store endpoint. This allows the attacker to overwrite any PMDA metric, leading to arbitrary code execution and system takeover.
  • CVE-2026-16529: A signed integer overflow in the PCP __pmGetPDU() function can be exploited via crafted network packets during PDU processing or SASL negotiation. This permanently blinds the affected daemon, resulting in a total denial of service (DoS) for subsequent packet reads.
  • CVE-2026-16530: A flaw was found in the PCP (Performance Co-Pilot) `pmproxy` service. A remote attacker can exploit a vulnerability in the `pmLogLoadInDom()` function by sending a specially crafted request. This bypasses a critical bounds check, which can lead to the `pmproxy` service crashing, causing a Denial of Service (DoS). Additionally, this flaw may enable the leakage of sensitive information from the system's memory.
  • CVE-2026-16531: An unauthenticated remote attacker can exploit a path traversal vulnerability in the PCP pmproxy logger servlet using a crafted hostname. This allows arbitrary file and directory creation, potentially leading to a denial of service.
2 issues postponed or untriaged:
  • CVE-2023-6917: (needs triaging) A vulnerability has been identified in the Performance Co-Pilot (PCP) package, stemming from the mixed privilege levels utilized by systemd services associated with PCP. While certain services operate within the confines of limited PCP user/group privileges, others are granted full root privileges. This disparity in privilege levels poses a risk when privileged root processes interact with directories or directory trees owned by unprivileged PCP users. Specifically, this vulnerability may lead to the compromise of PCP user isolation and facilitate local PCP-to-root exploits, particularly through symlink attacks. These vulnerabilities underscore the importance of maintaining robust privilege separation mechanisms within PCP to mitigate the potential for unauthorized privilege escalation.
  • CVE-2024-3019: (needs triaging) A flaw was found in PCP. The default pmproxy configuration exposes the Redis server backend to the local network, allowing remote command execution with the privileges of the Redis user. This issue can only be exploited when pmproxy is running. By default, pmproxy is not running and needs to be started manually. The pmproxy service is usually started from the 'Metrics settings' page of the Cockpit web interface. This flaw affects PCP versions 4.3.4 and newer.
1 ignored issue:
  • CVE-2024-45770: A vulnerability was found in Performance Co-Pilot (PCP). This flaw can only be exploited if an attacker has access to a compromised PCP system account. The issue is related to the pmpost tool, which is used to log messages in the system. Under certain conditions, it runs with high-level privileges.
Created: 2026-07-30 Last update: 2026-08-29 19:00
AppStream hints: 1 error and 1 warning for pcp-gui high
AppStream found metadata issues for packages:
  • pcp-gui: 1 error and 1 warning
You should get rid of them to provide more metadata about this software.
Created: 2018-06-04 Last update: 2026-02-23 04:00
Does not build reproducibly during testing normal
A package building reproducibly enables third parties to verify that the source matches the distributed binaries. It has been identified that this source package produced different results, failed to build or had other issues in a test environment. Please read about how to improve the situation!
Created: 2026-11-01 Last update: 2026-11-29 11:02
version in VCS is newer than in repository, is it time to upload? normal
vcswatch reports that this package seems to have a new changelog entry (version 7.2.3-1, distribution unstable) and new commits in its VCS. You should consider whether it's time to make an upload.

Here are the relevant commit messages:
commit 110a84b34bb825db3414141cd623defa9842d48d
Author: Jan Kurik <jkurik@redhat.com>
Date:   Thu Nov 26 09:58:52 2026 +0100

    qa/common.pmcd.pdu: wait for pmcd to start instead of a fixed sleep
    
    The PDU exerciser tests started pmcd under valgrind, slept 2 seconds and then
    sent their PDU.  pmcd binds its request port and logs early but only starts
    serving well after that, so on a slow host the PDU was dropped and the
    following SIGTERM could arrive while valgrind was still starting the guest.
    Nothing exited, the bare "wait" then blocked until check(1)'s 5 minute
    timeout killed the test, leaving no pmcd.log and no expected error line.
    
    Poll pmcd.log for the "pmcd: PID = ..." line it writes just before
    ClientLoop() (bounded, aborts if the process dies) and fail with the
    out/err/pmcd.log dumped into the full file if it never gets there.  Bound the
    shutdown too: SIGTERM, wait up to 60s, then SIGKILL, and wait for the valgrind
    job only.
    
    Fixes the timeout observed on ppc64le on qa/2105 and protects 1518, 1519, 1527,
    1528, 1536, 1538, 1539 and 1561, which share this body.

commit 26c4dddf8a62bd1417cd0d182393b2d207ddc863
Merge: 60d19e87 afc8b339
Author: Ken McDonell <kenj@kenj.id.au>
Date:   Fri Nov 27 09:28:02 2026 +1100

    Merge pull request #2801 from kmcdonell/wip
    
     Mostly QA fixups

commit afc8b339aa978ae2867af7b7ad4417feba2be27b
Author: Ken McDonell <kenj@kenj.id.au>
Date:   Fri Nov 27 09:25:35 2026 +1100

    man/man1/pmlogcompress.1: fix PCP_COMPRESS_ZSTD_MIN_FILESIZE table entry
    
    Should be -Z min not -f prog.

commit 068159eacc6bbd29e51b99bb29242589850a51de
Author: Ken McDonell <kenj@kenj.id.au>
Date:   Fri Nov 27 08:27:16 2026 +1100

    Revert "src/pmsignal/pmsignal.sh: add support for an optional audit log"
    
    This reverts commit 610a2c008fa07862c4c3e1ae2f7fe561137f7ba2.
    
    Hold this one back until the next release and rework in light of
    coderabbitai's comments ... most are minor but leaking potentially
    secret command line arguments into the log and portability issues
    need to be addressed.

commit f50aeec55d367b5484453a6ce606c66687695c73
Merge: 91c3ee08 09f37a72
Author: Ken McDonell <kenj@kenj.id.au>
Date:   Fri Nov 27 08:12:14 2026 +1100

    Merge branch 'main' into wip

commit 09f37a7219253feaab695cc2beb8fbaf3c61030f
Merge: 6fe7b4bf 60d19e87
Author: Ken McDonell <kenj@kenj.id.au>
Date:   Fri Nov 27 08:11:32 2026 +1100

    Merge branch 'main' of https://github.com/performancecopilot/pcp

commit 6fe7b4bf315e0d2523ffbaf00fd47642ed5f93bc
Author: Ken McDonell <kenj@kenj.id.au>
Date:   Thu Nov 26 16:32:51 2026 +1100

    qa/common.check: sysctl on OpenBSD can exit 0 but still babble errors on stderr

commit 633ede23ff1a73459672675cae9768668f862110
Author: Ken McDonell <kenj@kenj.id.au>
Date:   Thu Nov 26 14:48:44 2026 +1100

    qa/1616.out: remade

commit 9c348f05f28810574736183e87f5f126709dd501
Author: Ken McDonell <kenj@kenj.id.au>
Date:   Thu Nov 26 09:08:27 2026 +1100

    man pages: small fixup from qa/1270 fallout
    
    troff and tbl are a bit more picky on the latest Debian unstable
    (vm25) ... in this case, the tools are right.

commit afd3440b5ae1531f7b67905158d86b60173529c4
Author: Ken McDonell <kenj@kenj.id.au>
Date:   Wed Nov 25 21:37:53 2026 +1100

    src/libpcp_pmda/src/cache.c: use PRINTF_P_PFX with %p for cross-platform consistency
    
    And tweak the filters to match in a few QA tests.

commit 14ac56da12cab874e4a247a7aa7a268463104fbb
Author: Ken McDonell <kenj@kenj.id.au>
Date:   Wed Nov 25 21:36:55 2026 +1100

    valgrind-suppress-3.28.0: (new) for qa/802 on OpenIndiana

commit 0c83d82cc50f9efee513bd83a505ccc747248299
Author: Ken McDonell <kenj@kenj.id.au>
Date:   Wed Nov 25 21:34:33 2026 +1100

    qa/1429: filter away mkdir(1) error message differences on OpenIndiana

commit 60d19e8713bd2208e35db470619a237b124cc106
Author: Jan Kurik <jkurik@redhat.com>
Date:   Wed Nov 25 07:59:01 2026 +0100

    pmdadb2local: create each install directory with a separate -d
    
    install-sh only handles one directory after -d, that the other four were created implicitly and thus never got d entries in DIST_MANIFEST, and that the macOS idb/install-pcp needs those entries

commit f3ee5fe23cd1ab179c62898fdef75afaa23a5156
Merge: 5bd18fe2 98dd7477
Author: Ken McDonell <kenj@kenj.id.au>
Date:   Wed Nov 25 15:44:47 2026 +1100

    Merge branch 'main' of ../pcp

commit 98dd747744d7e5f5bb32979ae6c8f30915e1b968
Author: Ken McDonell <kenj@kenj.id.au>
Date:   Wed Nov 25 15:43:54 2026 +1100

    qa/201: filter away differences in how printf reports NULL
    
    Is it (nil) or 0x0 or 0?

commit 5bd18fe206a8712ce3b59cf55d9090e5de8e1cd5
Author: Jan Kurik <jkurik@redhat.com>
Date:   Tue Nov 24 09:56:08 2026 +0100

    pmdadb2local: use the PMDA set_user instead of a private uid drop
    
    The agent changed to the Db2 instance user with its own setgid, initgroups
    and setuid sequence.  The PMDA library provides set_user(), which calls
    pmSetProcessIdentity(3) and is what the other PMDAs use.  It also covers
    two cases the private version did not: initgroups is skipped when the
    process has no supplementary groups, and an initgroups EPERM is tolerated,
    which is what happens when the parent has already dropped privileges.
    
    The transition now relies on that call exiting the process when it fails,
    so a failure logs one Critical line from libpcp instead of the private
    "must start as root" message and a traceback.  Under PCP_PYTHON_PROBE the
    call is a no-op, which keeps the domain and namespace probe paths safe.
    
    Verified on Fedora 45 against a live Db2 12.1.5.0 instance: an install
    still leaves the agent running as db2inst1, a manual start as db2inst1
    keeps working, a start as an unrelated non-root user exits with the
    libpcp message, qa/2003 and qa/2004 pass, and pylint rates the file
    10.00/10.

commit b1e7985e96367dbf0cb3524233b16f757147a17f
Author: Jan Kurik <jkurik@redhat.com>
Date:   Tue Nov 24 08:48:02 2026 +0100

    pmdadb2local: do not compare the metric set with pmdadb2
    
    The first LIMITATIONS paragraph claimed the PMDA is not metric-compatible
    with pmdadb2 and listed the SQL-only metrics it does not collect.  Neither
    the compatibility claim nor the non-overlap rule holds meaning between two
    independent PMDAs with separate domains, and the list restates what
    pmdadb2(1) documents, so it would drift whenever that PMDA changes.
    
    Keep LIMITATIONS to what this PMDA does not yet collect: the deferred
    db2pd command-line groups, which explain why those metrics are missing.
    Note in DESCRIPTION that the two PMDAs are independent and can be installed
    side by side, which is the useful point for someone choosing between them.

commit 4cd96760e3c4672c1b4967590ecc1e74ba85901c
Author: Jan Kurik <jkurik@redhat.com>
Date:   Mon Nov 23 22:15:17 2026 +0100

    pmdadb2local: check the configuration in a standalone script
    
    Install validated the configuration with Python embedded in a shell
    heredoc, which is awkward to lint, test or run by hand.  Move that code
    to check-config.py, installed next to Install, and add it to the pylint
    target.  The script keeps working when a configuration file is edited by
    hand: it takes the file as an optional argument, accepts -h, and prints
    the reason on stderr, so the man page now says so too.
    
    Two problems in the old code are fixed on the way:
    
    Install reported success when the check failed.  pmdaproc.sh installs an
    exit trap that ends the script with $status, so the old "|| exit 1" was
    rewritten to exit 0 and an unusable configuration still installed the
    PMDA.  Set status and exit, as the other PMDA Install scripts do.
    
    An unreadable configuration looked like an unparsable one, or worse
    looked empty, because configparser.read() silently skips a file it
    cannot open.  Read the file explicitly so a permission problem is named.
    
    bin_dir handling now matches the agent exactly: a relative path or a
    ~user form is reported and skipped in favour of the instance sqllib
    directories, instead of failing the install for a value the agent
    ignores.
    
    Verified on Fedora 45: every rejected configuration leaves pmcd and
    pmcd.conf untouched, a live Db2 12.1.5.0 instance with the tools in
    ~/sqllib/bin passes both with and without an argument while a stale or
    unusable bin_dir only warns, qa/2003 and qa/2004 pass, and pylint rates
    the new script 10.00/10.

commit b7f24ff01e6bef476545dd503c6eff541fa99770
Author: Jan Kurik <jkurik@redhat.com>
Date:   Mon Nov 23 21:05:26 2026 +0100

    pmdadb2local: do not force a pmcd restart on install
    
    Install set forced_restart so that pmcd would come back up and start the
    agent as root, based on the assumption that a Python pipe PMDA inherits
    pmcd's identity.  That has not been true since pmdaroot: pmcd always asks
    pmdaroot to spawn an agent, so every start - first install, SIGHUP
    reconfiguration, restart after a crash - already begins as root and the
    agent then drops to the Db2 user.
    
    Leaving the flag out keeps the default install path, which only culls the
    previous entry and sends pmcd a SIGHUP instead of stopping and starting
    the daemon, so unrelated PMDAs and client connections are not bounced.
    No other PMDA in the tree sets forced_restart.
    
    The root start is still required and still checked: the agent refuses to
    run when it cannot become the configured Db2 user, and pmdadb2local(1)
    documents the pmdaroot path.

commit 585397cb8e4b4fd39a18ce7f2e507417069de7b2
Author: Jan Kurik <jkurik@redhat.com>
Date:   Mon Nov 23 17:34:39 2026 +0100

    pmdadb2local: resolve Db2 tools without a versioned install path
    
    The agent and Install defaulted to /opt/ibm/db2/V11.5/bin, so a fix pack
    or a version upgrade required editing the configuration.
    
    Use the instance's own sqllib directories instead: sqllib/bin for the CLP
    tools and sqllib/adm for db2pd.  Db2 repoints those at the installed copy
    on fix packs and upgrades, so the default survives them unchanged.  A
    configured bin_dir still wins while it exists; one that an upgrade removed
    is reported and skipped.  Directories exported by the instance profile
    (DB2DIR, DB2_HOME, INST_DIR) are the last resort, and the profile's PATH is
    preserved instead of replaced so helpers in the install tree stay
    reachable.
    
    Install applies the same default and fallback, and qa/2003 covers the
    resolution order.  qa/2004 follows the new default.

commit dc06ad84f3d5030b20d466f15e78682da8115f44
Author: Jan Kurik <jkurik@redhat.com>
Date:   Mon Nov 9 17:39:46 2026 +0100

    pmdadb2local: throttle command failures per command line
    
    Buffer-pool and tablespace refreshes both run db2pd, so keying the
    throttle by program alone let a -tablespaces failure be swallowed by a
    -bufferpools failure for the same database within LOG_INTERVAL, losing
    the stderr that explains missing tablespace metrics.
    
    - key command failures by program and arguments
    - name the failing command in the message, which also identifies it when
      the failure comes from the profile load
    - drop throttle entries older than LOG_INTERVAL so the table does not
      grow with one entry per database
    
    qa/2003:
    - check that repeated identical failures log once while a different
      failing command is still reported

commit 4e068e62c341dd51450633630d7808f405585ab4
Author: Jan Kurik <jkurik@redhat.com>
Date:   Mon Nov 9 15:59:44 2026 +0100

    pmdadb2local: throttle repeated failure and guard logs
    
    When stuck children keep launches blocked, every fetch logged once for
    discovery and again for each database, which can flood db2local.log.
    
    - add log_throttled(), which logs a key at most once per LOG_INTERVAL
    - send the blocked-launch message and per-program command failures
      through it
    - clear the launch key when launches resume, so a new stuck episode is
      reported immediately
    
    qa/2003:
    - cover throttling of repeated blocked launches and command failures

commit 5d0f68083e6e18e52e30120c16019281f8af429d
Author: Jan Kurik <jkurik@redhat.com>
Date:   Mon Nov 9 14:53:46 2026 +0100

    pmdadb2local: keep install failures and recover from stuck children
    
    qa/2004:
    - return the Install exit status from _pmda_install() instead of the
      filter pipeline status, and keep it in the QA status, so a failed
      install cannot pass when a stale agent still serves the metrics
    
    pmdadb2local.python:
    - allow a bounded number of unreaped children (STUCK_LIMIT) before
      delaying launches, so one uninterruptible Db2 tool no longer stops all
      command-derived metrics
    - log when the guard delays a launch
    - do not cache a discovery skipped by that guard as an empty database
      list; keep the previous list and retry on the next fetch
    
    qa/2003:
    - cover collection below the stuck limit, the launch refusal and its
      report, and the uncached blocked discovery

commit c9710fa4f4bfaaa18f002c9117f230a52f10f133
Author: Jan Kurik <jkurik@redhat.com>
Date:   Mon Nov 9 14:32:50 2026 +0100

    pmdadb2local: keep failed exits and reap stuck children
    
    qa/2004:
    - set status=0 once the install has run, before the registration and
      per-metric checks, instead of unconditionally at the end, so a failed
      check is no longer reported as a pass
    
    pmdadb2local.python:
    - do not wait() for a child that survived SIGKILL; keep it in
      stuck_children and reap it with a non-blocking poll() on later commands
    - refuse to launch new commands while such a child remains stuck, so
      uninterruptible children cannot accumulate or delay a fetch
    
    qa/2003:
    - cover the asynchronous reaping and the launch guard

commit f1e0f1b039b31bc23a3a1d5463ef8399763e292b
Author: Jan Kurik <jkurik@redhat.com>
Date:   Mon Nov 9 14:11:04 2026 +0100

    pmdadb2local: address remaining review findings
    
    pmdadb2local.python:
    - source the Db2 profile before calculating the command timeout in both
      command() and discover_databases(), so the profile load is charged to
      the shared fetch deadline instead of extending it
    - bound the reaping communicate() after a timeout, so a descendant that
      left the process group cannot hang the agent: close the captured pipes
      and kill the child once CLEANUP_TIMEOUT expires
    - publish a still-valid cached db2diag count when the fetch budget is
      already exhausted, instead of reporting PM_ERR_VALUE
    - remember a diagnostic level that had to be skipped and query it first
      on the next refresh, so a slow severe query cannot starve error_15m
    
    Install:
    - check profile and tool access with access(2) in a child running as the
      configured Db2 user, so POSIX ACL grants are accepted and search
      permission on every parent directory is checked
    
    qa/2003:
    - cover the timeout ordering after a slow profile load, publishing a
      cached diag count without budget, and the retry order of a skipped
      diagnostic level
    
    qa/2004:
    - forward the database argument through _as_db2() instead of dropping it

commit 721fee8496e43b6a080077f31b8ce92f4d62c2d7
Author: Jan Kurik <jkurik@redhat.com>
Date:   Mon Nov 9 13:15:55 2026 +0100

    pmdadb2local: rename command helper to run_command
    
    The process-group aware subprocess helper was named run(), which shadowed
    the PMDA base class runner.  pylint reported arguments-differ for the
    override and then resolved Db2LocalPMDA(...).run() to the static helper,
    complaining about the missing argv and timeout arguments, so the build's
    pylint check failed.
    
    Rename the helper to run_command() and update the stub in qa/2003 that
    replaces it while exercising the database directory parser.

commit 624c4cb29e707e30c1df403ace42a93203075af2
Author: Jan Kurik <jkurik@redhat.com>
Date:   Mon Nov 9 12:32:37 2026 +0100

    pmdadb2local: fix pylint and review findings
    
    Address the pylint failures reported by CI and the review findings from
    CodeRabbit on the initial PMDA submission.
    
    pmdadb2local.python:
    - make setup_metrics() table driven to satisfy pylint complexity limits
    - pass check=False explicitly to subprocess calls and read the error text
      via getattr(error, 'stderr', None)
    - rename uptime() to instance_uptime() to avoid shadowing the metric name
    - defer the startup deadline so slow or missing Db2 tools do not make the
      PMDA fail to start, while still bounding each fetch with one shared
      deadline for all metrics
    - kill the whole process group on timeout so child db2pd/db2 commands do
      not survive and hold the pipe open
    - keep the local alias and the real database name separate, so profiles
      fetch the configured alias while metrics report the database name
    - do not throttle the skipped diagnostic query, so it is retried on the
      next fetch
    
    Install:
    - report a missing, malformed or unreadable [db2] section instead of
      confusing it with an unknown Db2 user
    - validate that the configured Db2 user can actually read the profile and
      execute db2pd, using the user's uid and groups
    
    qa/2003, qa/2004, qa/db2local:
    - parse the profile with configparser and quote the value safely when
      checking it in the live test
    - add coverage for alias/database-name separation and the shared fetch
      deadline, with the new db2-list-db-directory-alias.txt fixture
    
    db2local.conf, pmdadb2local.1:
    - correct the db2pd search-order comment and document the profile,
      alias and database-name handling

commit eb1573fec5832701681887fae35f6505fc6e6554
Author: Jan Kurik <jkurik@redhat.com>
Date:   Mon Nov 9 11:06:36 2026 +0100

    pmdadb2local: new PMDA for local IBM Db2 state from command-line tools
    
    Adds a Python PMDA (agent name db2local, domain 44) that collects IBM Db2
    instance and database state with the Db2 command-line tools rather than
    SQL, so it keeps answering when the engine or its connection handling
    does not.  No network connections, credentials or ibm_db are involved.
    
    Five clusters covering 24 metrics and two instance domains:
    
      db2local.instance.*   (5) instance user, db2level version and build
                                level, db2pd -inst uptime and member state
      db2local.agent.*      (6) current, idle, active, pooled and total agent
                                counts from db2pd -inst -agents
      db2local.bufferpool.* (4) per database/buffer pool: page size,
                                configured and current pages, tablespace count
      db2local.tablespace.* (7) per database/tablespace: total, usable, used
                                and free pages, page and extent size, and
                                container count
      db2local.diag.*       (2) severe and error db2diag entries for the
                                preceding 15 minutes
    
    Buffer pool and tablespace instances are named database::object and carry
    database= plus bufferpool=/tablespace= PCP labels; both instance domains
    also have indom_name labels.
    
    The metric set complements pmdadb2 instead of duplicating it: instance
    and agent state without a connection, buffer pool sizing and tablespace
    capacity that the MON_GET_* monitoring functions do not expose, and
    diagnostic counts that remain available on an unresponsive engine.  The
    I/O counters pmdadb2 already reports are deliberately not repeated, and
    the man page records the deferred command-line groups and the local-member
    only behaviour on multi-member instances.
    
    Safety and robustness:
    - $PCP_SYSCONF_DIR/db2local/db2local.conf is read as root before the
      agent permanently drops to the configured Db2 user (initgroups, setgid,
      setuid, result verified).  Install validates bin_dir, profile and every
      required tool first, and the agent refuses to run Db2 commands if it
      cannot make the transition.
    - The instance profile is sourced once into a fixed environment (DB2*,
      HOME, LIBPATH, LC_ALL=C, PATH) and only executables resolved under
      bin_dir or the instance-home sqllib/adm are executed, with stdin closed.
    - Each command and the whole refresh are bounded so a hung Db2 cannot
      overrun pmcd's five second response timeout.  Failed commands clear the
      affected cluster rather than serving stale values, and db2diag is
      retried at most once per ten minute TTL, with counts older than two TTLs
      withheld instead of published.
    
    Packaging adds pcp-pmda-db2local to both spec files, pmlogconf config,
    state and summary groups, and DB2LOCAL in stdpmid.  No pcp.te changes are
    included: pcp.te already lets pcp_pmcd_t read any file through
    files_read_all_files() and search any directory through
    files_list_non_auth_dirs(), and the base policy plus corecmd_exec_bin()
    cover executing the tools, so the extra db2local allow rules that earlier
    revisions shipped were dropped.  Those rules only helped the test wrapper
    scripts under /opt/ibm, which the V11.5 path rework replaced with calls to
    the native tools in /opt/ibm/db2/V11.5/bin.
    
    QA adds 2003, which exercises the command-output parsers, the refresh path
    and the diag cache/back-off behaviour against checked-in fixtures and a
    generated db2local archive (qa/archives/mk.db2local), and 2004, which
    installs and removes the PMDA against a live Db2 instance and _notrun's
    when no Db2 user, profile or active database is available.

commit 0d6b41ed8638914e5dcada236f9ebb4bb7c94d9f
Author: Ken McDonell <kenj@kenj.id.au>
Date:   Wed Nov 25 15:25:23 2026 +1100

    qa/2110: couple of tweaks
    
    1. add a _triage_wait_point just before pminfo is run
    2. filter away a device-mapper warning that's been seen on some QA Farm hosts

commit 113a4eb784f563593802399c6c6fe7e4fa5d52eb
Author: Ken McDonell <kenj@kenj.id.au>
Date:   Wed Nov 25 15:18:00 2026 +1100

    qa/1041: if we cannot start libvirtd, nothing to run

commit 107c3be3a2754af553064414c552b77e19a0c9ca
Author: Ken McDonell <kenj@kenj.id.au>
Date:   Wed Nov 25 13:42:58 2026 +1100

    qa/1741: be tougher on notrun for older versions of lscpu
    
    Too much pain for too little gain for versions before 2.39.

commit 792df61e183f0d75ef3df9c7919843f12d5d17fe
Author: Ken McDonell <kenj@kenj.id.au>
Date:   Wed Nov 25 07:27:45 2026 +1100

    1995.out: remake to reinstate final empty line

commit e279b07a1c13e71314141574faf8a380c02381e8
Author: Ken McDonell <kenj@kenj.id.au>
Date:   Tue Nov 24 21:34:13 2026 +1100

    qa/1611: several changes to address non-deterministic failures
    
    - there is an indirect path from pmlogger_check (and pmlogger_daily)
      that can end up smacking the pmproxy started by qa/1611 with a
      SIGHUP that terminates the pmlogger and produces a truncated
      archive and qa test failure
    
    - the root cause was a missing _remove_job_scheduler before
      starting our private pmlogger and then a pmlogger restart in
      _cleanup()
    
    - along the way qa/1611 was enhanced with
      + nanosecond resolution timestamps (the race happens in a sub-second
        window)
      + save and restore pmproxy.options, so I can set -Dappl0 in particular
        toi trace pmproxy's client comings and goings
      + using auditctl(1) to log "who is sending signals to whom" ... this
        was subsequently gazumped by the enhancements to pmsignal(1) in the
        next commit, but I've left the working auditctl(1) code here in case
        we need it at some point in the future

commit 91c3ee085abd3dea8d606032686c33899fffc942
Merge: 610a2c00 0bd1b43a
Author: Ken McDonell <kenj@kenj.id.au>
Date:   Wed Nov 25 07:15:59 2026 +1100

    Merge branch 'main' into wip

commit 0bd1b43a714a9d62f075762b56098bddebe22024
Merge: 18d48a14 d39bda5e
Author: Ken McDonell <kenj@kenj.id.au>
Date:   Wed Nov 25 07:15:28 2026 +1100

    Merge branch 'main' of https://github.com/performancecopilot/pcp

commit 610a2c008fa07862c4c3e1ae2f7fe561137f7ba2
Author: Ken McDonell <kenj@kenj.id.au>
Date:   Wed Nov 25 07:12:31 2026 +1100

    src/pmsignal/pmsignal.sh: add support for an optional audit log
    
    From the man page ...
    
       In some cases, especially when triaging  non-determin‐
       istic  QA failures, it is useful to be able to produce
       a timestamped audit log of ``who sent which signal  to
       whom''.  If the file /tmp/pmsignal.audit exists and is
       writable  (really  needs  to be world-writable because
       PCP processes run with different user  IDs),  then  an
       audit  lines are written to this file showing the cur‐
       rent time and summary ps(1) information for the caller
       process,  all  ancestor  processes  and   the   target
       process(es).

commit 9ec29600cdaac22a5adfca71239e126b604042e7
Author: Ken McDonell <kenj@kenj.id.au>
Date:   Tue Nov 24 21:34:13 2026 +1100

    qa/1611: several changes to address non-deterministic failures
    
    - there is an indirect path from pmlogger_check (and pmlogger_daily)
      that can end up smacking the pmproxy started by qa/1611 with a
      SIGHUP that terminates the pmlogger and produces a truncated
      archive and qa test failure
    
    - the root cause was a missing _remove_job_scheduler before
      starting our private pmlogger and then a pmlogger restart in
      _cleanup()
    
    - along the way qa/1611 was enhanced with
      + nanosecond resolution timestamps (the race happens in a sub-second
        window)
      + save and restore pmproxy.options, so I can set -Dappl0 in particular
        toi trace pmproxy's client comings and goings
      + using auditctl(1) to log "who is sending signals to whom" ... this
        was subsequently gazumped by the enhancements to pmsignal(1) in the
        next commit, but I've left the working auditctl(1) code here in case
        we need it at some point in the future

commit d39bda5ef0bdfd1833064e3071bef949e78bdb6e
Merge: 75b306e9 6b3d9a3b
Author: Nathan Scott <nathans@redhat.com>
Date:   Tue Nov 24 21:28:56 2026 +1100

    Merge branch 'fix/derive-parser-typed-destructors'

commit 9b81eac5c1f0714fd804fa5ca4a51fce1975f528
Author: Ken McDonell <kenj@kenj.id.au>
Date:   Tue Nov 24 21:27:53 2026 +1100

    src/pmproxy: debug changes
    
    - in server.c and http.c change from fprintf(stderr, ...) to
      pmNotifyErr(LOG_DEBUG, ...) for -D guarded diagnostics ... this
      means they are datestamped in pmproxy.log which is important for
      triaging some classes of failure
    
    - re-instate -Dappl0 for client connection/disconnnection messages
      ... these were lost when libuv was used to replace functionality
      that moved to deprecated.c but is apparently no longer called

commit 18d48a14e62c67df05a9bc0a6d0dece1e9be2989
Merge: e0e6eb1d 75b306e9
Author: Ken McDonell <kenj@kenj.id.au>
Date:   Tue Nov 24 21:24:01 2026 +1100

    Merge branch 'main' of https://github.com/performancecopilot/pcp

commit 6b3d9a3b10b10fca7a3edf522825b165ed5754b3
Author: Nathan Scott <nathans@redhat.com>
Date:   Mon Nov 23 13:57:07 2026 +1100

    build: require bison v2.4 or later for typed %destructor
    
    The typed %destructor directives in libpcp's derive_parser.y use the
    "<type>" form, which bison only accepts from v2.4 onwards.  Older
    releases fail with
    
      derive_parser.y:4776.41-43: syntax error, unexpected type, expecting string or identifier
    
    and libpcp does not build at all.  configure currently accepts whatever
    older bison it is pointed at, so the failure only shows up much later
    in the build with a confusing grammar error.
    
    Check the bison version alongside the existing yacc/bison checks and
    fail early with a meaningful message.
    
    This is the approach preferred during maintainer discussions on the
    initial pull request, which changed the grammar itself to avoid the
    typed %destructor directives ... the libpcp parser is unchanged here.
    
    Regenerate configure with autoconf v2.72.

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 e0e6eb1d45966582b65bbb7e2a7927b002f90369
Author: Ken McDonell <kenj@kenj.id.au>
Date:   Mon Nov 23 07:39:30 2026 +1100

    qa/170: drop pmlogger starts
    
    This test is for pmcd and we don't need pmlogger running, and indeed
    attempts to keep pmlogger running, especially with pmlogger configured
    to push to a remote pmproxy makes this problematic (like on vm01).

commit 34f871470222c63647ce2e7aad2cd839474b9eeb
Author: Ken McDonell <kenj@kenj.id.au>
Date:   Mon Nov 23 07:38:55 2026 +1100

    qa/1741: _notrun for some old versions of lscpu(1)
    
    - like Ubuntu 18.04 on vm01

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.
Created: 2026-05-23 Last update: 2026-11-28 14:02
Multiarch hinter reports 1 issue(s) low
There are issues with the multiarch metadata for this package.
  • pcp-doc could be marked Multi-Arch: foreign
Created: 2016-09-14 Last update: 2026-11-29 07:30
6 low-priority security issues in trixie low

There are 6 open security issues in trixie.

6 issues left for the package maintainer to handle:
  • CVE-2026-16524: (needs triaging) A command injection flaw in PCP's linux_sockets PMDA allows malicious shell metacharacters via the network.persocket.filter metric. This failed validation lets attackers execute arbitrary commands as the PMDA user when metrics refresh.
  • CVE-2026-16526: (needs triaging) A flaw in the PCP linux_sockets module exposes an unsecured internal connection. An attacker with initial code execution can exploit this to escalate privileges and execute arbitrary commands as root.
  • CVE-2026-16527: (needs triaging) An unauthenticated remote attacker can bypass access controls by sending crafted requests to the PCP pmproxy /store endpoint. This allows the attacker to overwrite any PMDA metric, leading to arbitrary code execution and system takeover.
  • CVE-2026-16529: (needs triaging) A signed integer overflow in the PCP __pmGetPDU() function can be exploited via crafted network packets during PDU processing or SASL negotiation. This permanently blinds the affected daemon, resulting in a total denial of service (DoS) for subsequent packet reads.
  • CVE-2026-16530: (needs triaging) A flaw was found in the PCP (Performance Co-Pilot) `pmproxy` service. A remote attacker can exploit a vulnerability in the `pmLogLoadInDom()` function by sending a specially crafted request. This bypasses a critical bounds check, which can lead to the `pmproxy` service crashing, causing a Denial of Service (DoS). Additionally, this flaw may enable the leakage of sensitive information from the system's memory.
  • CVE-2026-16531: (needs triaging) An unauthenticated remote attacker can exploit a path traversal vulnerability in the PCP pmproxy logger servlet using a crafted hostname. This allows arbitrary file and directory creation, potentially leading to a denial of service.

You can find information about how to handle these issues in the security team's documentation.

Created: 2026-07-30 Last update: 2026-11-22 21:30
Standards version of the package is outdated. wishlist
The package should be updated to follow the last version of Debian Policy (Standards-Version 4.7.4 instead of 4.7.2).
Created: 2025-12-23 Last update: 2026-10-07 09:20
testing migrations
  • This package will soon be part of the auto-openssl transition. You might want to ensure that your package is ready for it. You can probably find supplementary information in the debian-release archives or in the corresponding release.debian.org bug.
news
[rss feed]
  • [2026-10-31] pcp 7.2.2-1 MIGRATED to testing (Debian testing watch)
  • [2026-10-07] Accepted pcp 7.2.2-1 (source) into unstable (Nathan Scott)
  • [2026-08-30] pcp REMOVED from testing (Debian testing watch)
  • [2026-08-16] pcp 7.2.1-2 MIGRATED to testing (Debian testing watch)
  • [2026-08-14] Accepted pcp 7.2.1-2 (source) into unstable (Nathan Scott)
  • [2026-08-01] pcp 7.2.0-1 MIGRATED to testing (Debian testing watch)
  • [2026-07-30] Accepted pcp 7.2.0-1 (source arm64 all) into unstable (Debian FTP Masters) (signed by: Nathan Scott)
  • [2026-05-29] pcp 7.1.5-1 MIGRATED to testing (Debian testing watch)
  • [2026-05-26] Accepted pcp 7.1.5-1 (source) into unstable (Nathan Scott)
  • [2026-05-25] pcp 7.1.4-1 MIGRATED to testing (Debian testing watch)
  • [2026-05-22] Accepted pcp 7.1.4-1 (source) into unstable (Nathan Scott)
  • [2026-05-02] Accepted pcp 7.1.3-2 (source) into unstable (Nathan Scott)
  • [2026-04-27] pcp 7.1.2-1 MIGRATED to testing (Debian testing watch)
  • [2026-04-24] Accepted pcp 7.1.2-1 (source) into unstable (Nathan Scott)
  • [2026-04-02] pcp 7.1.1-1 MIGRATED to testing (Debian testing watch)
  • [2026-03-30] Accepted pcp 7.1.1-1 (source) into unstable (Nathan Scott)
  • [2026-01-30] pcp 7.1.0-1 MIGRATED to testing (Debian testing watch)
  • [2026-01-28] Accepted pcp 7.1.0-1 (source) into unstable (Nathan Scott)
  • [2025-12-05] pcp 7.0.5-1 MIGRATED to testing (Debian testing watch)
  • [2025-11-21] Accepted pcp 7.0.5-1 (source) into unstable (Nathan Scott)
  • [2025-11-19] Accepted pcp 7.0.4-1 (source) into unstable (Nathan Scott)
  • [2025-11-12] Accepted pcp 7.0.3-1 (source arm64 all) into unstable (Nathan Scott)
  • [2025-11-01] pcp REMOVED from testing (Debian testing watch)
  • [2025-10-16] Accepted pcp 7.0.2-1 (source arm64 all) into unstable (Debian FTP Masters) (signed by: Nathan Scott)
  • [2025-09-23] Accepted pcp 7.0.1-1 (source arm64 all) into unstable (Debian FTP Masters) (signed by: Nathan Scott)
  • [2025-09-01] Accepted pcp 7.0.0-1 (source arm64 all) into unstable (Debian FTP Masters) (signed by: Nathan Scott)
  • [2025-04-21] pcp 6.3.8-1 MIGRATED to testing (Debian testing watch)
  • [2025-04-11] Accepted pcp 6.3.8-1 (source) into unstable (Nathan Scott)
  • [2025-04-07] pcp 6.3.7-1 MIGRATED to testing (Debian testing watch)
  • [2025-03-28] Accepted pcp 6.3.7-1 (source) into unstable (Nathan Scott)
  • 1
  • 2
bugs [bug history graph]
  • all: 5
  • RC: 0
  • I&N: 5
  • M&W: 0
  • F&P: 0
  • patch: 0
links
  • homepage
  • lintian (2, 11)
  • buildd: logs, reproducibility, cross
  • popcon
  • browse source code
  • other distros
  • security tracker
  • screenshots
ubuntu Ubuntu logo [Information about Ubuntu for Debian Developers]
  • version: 7.2.2-1
  • 2 bugs

Debian Package Tracker — Copyright 2013-2025 The Distro Tracker Developers
Report problems to the tracker.debian.org pseudo-package in the Debian BTS.
Documentation — Bugs — Git Repository — Contributing