From nobody Mon Dec 29 01:01:46 2025 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dfdGL3tthz6LPw0 for ; Mon, 29 Dec 2025 01:01:46 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dfdGL38D1z3WDy for ; Mon, 29 Dec 2025 01:01:46 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1766970106; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=+ZQ4GyMxRuG4p0JV0DGcbSR6P028Wlgp0NA6ht1v8cg=; b=kpZnj510UMpYXeGbeViOw1MjvbassvAu7cfaNTmWd9a/r+Jtx+Hcj/2k1nbef1uFtKD45D r2gzlfhxj8plADZTJuJEiBCi4sNNM7VNZk9R0RqQWHmSeL00Dx6skptXAXUffBNuNmzLZT YivpDrquoA0F7OonpxFBiGpT/qJLC338uH52gEnkI6wHOXDgWoNARQlWlJ+5bSIoHoYhDm adlIR7OO17ErQhrbFJ1p3ExgZMbWK3QFTVmMKgcLuoxIUXkDiID6EXMf73aJdxFbFtiUwi Cn8Xrkpg9qeC631cmNcNZFd7Qa1AiRCG50m5SD4jWtwxslkmRXVZi52RQaa86g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1766970106; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=+ZQ4GyMxRuG4p0JV0DGcbSR6P028Wlgp0NA6ht1v8cg=; b=WohZ/9QUljCjkUo1PByZpLo1yZSgfx66XcaxZNU0DHOUIuwjqIMcCQwOo5Hwz6iUd3KjAp 3U1x+zg/padN5qqqjA80r7I8Dcxe+6JINibpfs1VewJo/5In3maBsHNa6zZ/nCWqcN7OCn UIblbZd1K5+pFOFLMtH0Qv8wCKBhcR03QHEIg7YafyFnt5VonlyRcGdeRxXAgxpKqUs/Vc Z2+u+DvjJiKG08GG432KANRO4IsV6oIu6NCIIpO17D2M/GmQBUEdToKYPhfAlw1itXB7zS bm6MbvKMCM47KGmR1luIc5sHapW/LeHeHKjI1lPrJZlqlmlmZS1sOC6xJHj63g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1766970106; a=rsa-sha256; cv=none; b=hbPpfwaUfrP9hzmckyvEoainOn0ZoXaM2mg0tKQjvt4VdeF9BzQas2VSoTLbgGupoKglEx xl+oOA2GXrpzhFf43CF2e8FF8NdiL5tiFFer/8MeIp6R8bT6PO6mCq3Q7Rr+UyC6504k8B 57CFweOBK4Dqml97x+OjJaANjLSB+wk7xoH1zzB+T1TIVOwJssuQVjKfzbnEJ+DIvlAWwJ Iqk7QS8pDObJG/DJW64CKx85EPVzt364G07KWHhcMvNx/hUEl956Bb9TQcKXMua3Ymy21w JosbjlpD09z5msCXSIT/LXsc9MMRSQg5adjDdjN35qPxY5fYBBOA3/pMLiB1ow== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dfdGL2fpxz17wM for ; Mon, 29 Dec 2025 01:01:46 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 379bd by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 29 Dec 2025 01:01:46 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Konstantin Belousov Subject: git: b86fc3284bf8 - stable/15 - sys/netipsec: ensure sah stability during input callback processing List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: b86fc3284bf8eff23cc2606bf7ab0c8117e6023e Auto-Submitted: auto-generated Date: Mon, 29 Dec 2025 01:01:46 +0000 Message-Id: <6951d2fa.379bd.5b3e126@gitrepo.freebsd.org> The branch stable/15 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=b86fc3284bf8eff23cc2606bf7ab0c8117e6023e commit b86fc3284bf8eff23cc2606bf7ab0c8117e6023e Author: Konstantin Belousov AuthorDate: 2025-12-09 08:55:11 +0000 Commit: Konstantin Belousov CommitDate: 2025-12-29 00:57:03 +0000 sys/netipsec: ensure sah stability during input callback processing (cherry picked from commit 183513d15f2290a42b542753aaffe9de2152575b) --- sys/net/if_ipsec.c | 12 ++++++++++-- sys/netipsec/ipsec.h | 7 +++++-- sys/netipsec/ipsec6.h | 5 ++++- sys/netipsec/ipsec_input.c | 17 +++++++++++++---- sys/netipsec/xform_ah.c | 16 ++++++++++++++-- sys/netipsec/xform_esp.c | 10 ++++++++-- sys/netipsec/xform_ipcomp.c | 16 ++++++++++++++-- 7 files changed, 68 insertions(+), 15 deletions(-) diff --git a/sys/net/if_ipsec.c b/sys/net/if_ipsec.c index df10af66471c..fd4fb37debfa 100644 --- a/sys/net/if_ipsec.c +++ b/sys/net/if_ipsec.c @@ -450,7 +450,8 @@ ipsec_output(struct ifnet *ifp, struct mbuf *m, const struct sockaddr *dst, } int -ipsec_if_input(struct mbuf *m, struct secasvar *sav, uint32_t af) +ipsec_if_input(struct mbuf *m, struct secasvar *sav, uint32_t af, + struct rm_priotracker *sahtree_tracker) { IPSEC_RLOCK_TRACKER; struct secasindex *saidx; @@ -459,13 +460,16 @@ ipsec_if_input(struct mbuf *m, struct secasvar *sav, uint32_t af) if (sav->state != SADB_SASTATE_MATURE && sav->state != SADB_SASTATE_DYING) { + ipsec_sahtree_runlock(sahtree_tracker); m_freem(m); return (ENETDOWN); } if (sav->sah->saidx.mode != IPSEC_MODE_TUNNEL || - sav->sah->saidx.proto != IPPROTO_ESP) + sav->sah->saidx.proto != IPPROTO_ESP) { + ipsec_sahtree_runlock(sahtree_tracker); return (0); + } IPSEC_RLOCK(); CK_LIST_FOREACH(sc, ipsec_idhash(sav->sah->saidx.reqid), idhash) { @@ -487,6 +491,7 @@ ipsec_if_input(struct mbuf *m, struct secasvar *sav, uint32_t af) } if (sc == NULL) { IPSEC_RUNLOCK(); + ipsec_sahtree_runlock(sahtree_tracker); /* Tunnel was not found. Nothing to do. */ return (0); } @@ -494,6 +499,7 @@ ipsec_if_input(struct mbuf *m, struct secasvar *sav, uint32_t af) if ((ifp->if_drv_flags & IFF_DRV_RUNNING) == 0 || (ifp->if_flags & IFF_UP) == 0) { IPSEC_RUNLOCK(); + ipsec_sahtree_runlock(sahtree_tracker); m_freem(m); return (ENETDOWN); } @@ -503,6 +509,8 @@ ipsec_if_input(struct mbuf *m, struct secasvar *sav, uint32_t af) */ m->m_pkthdr.rcvif = ifp; + ipsec_sahtree_runlock(sahtree_tracker); + m_clrprotoflags(m); M_SETFIB(m, ifp->if_fib); BPF_MTAP2(ifp, &af, sizeof(af), m); diff --git a/sys/netipsec/ipsec.h b/sys/netipsec/ipsec.h index 44e7d9667d5b..b8969e88abbe 100644 --- a/sys/netipsec/ipsec.h +++ b/sys/netipsec/ipsec.h @@ -330,12 +330,14 @@ VNET_DECLARE(int, natt_cksum_policy); struct inpcb; struct ip; struct m_tag; +struct rm_priotracker; struct secasvar; struct sockopt; struct tcphdr; union sockaddr_union; -int ipsec_if_input(struct mbuf *, struct secasvar *, uint32_t); +int ipsec_if_input(struct mbuf *, struct secasvar *, uint32_t, + struct rm_priotracker *); struct ipsecrequest *ipsec_newisr(void); void ipsec_delisr(struct ipsecrequest *); @@ -357,7 +359,8 @@ void ipsec_setspidx_inpcb(struct inpcb *, struct secpolicyindex *, u_int); void ipsec4_setsockaddrs(const struct mbuf *, const struct ip *, union sockaddr_union *, union sockaddr_union *); -int ipsec4_common_input_cb(struct mbuf *, struct secasvar *, int, int); +int ipsec4_common_input_cb(struct mbuf *, struct secasvar *, int, int, + struct rm_priotracker *sahtree_tracker); int ipsec4_check_pmtu(struct ifnet *, struct mbuf *, struct ip *ip1, struct secpolicy *, int); int ipsec4_process_packet(struct ifnet *, struct mbuf *, struct ip *ip1, diff --git a/sys/netipsec/ipsec6.h b/sys/netipsec/ipsec6.h index a7410733c43f..0747b88059ab 100644 --- a/sys/netipsec/ipsec6.h +++ b/sys/netipsec/ipsec6.h @@ -60,12 +60,15 @@ VNET_DECLARE(int, ip6_ipsec_ecn); #define V_ip6_ipsec_ecn VNET(ip6_ipsec_ecn) struct inpcb; +struct rm_priotracker; + struct secpolicy *ipsec6_checkpolicy(const struct mbuf *, struct inpcb *, int *, int); void ipsec6_setsockaddrs(const struct mbuf *, union sockaddr_union *, union sockaddr_union *); -int ipsec6_common_input_cb(struct mbuf *, struct secasvar *, int, int); +int ipsec6_common_input_cb(struct mbuf *, struct secasvar *, int, int, + struct rm_priotracker *sahtree_tracker); int ipsec6_check_pmtu(struct ifnet *, struct mbuf *, struct secpolicy *, int); int ipsec6_process_packet(struct ifnet *, struct mbuf *, struct secpolicy *, struct inpcb *, u_long); diff --git a/sys/netipsec/ipsec_input.c b/sys/netipsec/ipsec_input.c index 221ac879cb18..34767420086a 100644 --- a/sys/netipsec/ipsec_input.c +++ b/sys/netipsec/ipsec_input.c @@ -339,7 +339,7 @@ ipsec4_ctlinput(ipsec_ctlinput_param_t param) */ int ipsec4_common_input_cb(struct mbuf *m, struct secasvar *sav, int skip, - int protoff) + int protoff, struct rm_priotracker *sahtree_tracker) { IPSEC_DEBUG_DECLARE(char buf[IPSEC_ADDRSTRLEN]); struct epoch_tracker et; @@ -492,7 +492,9 @@ ipsec4_common_input_cb(struct mbuf *m, struct secasvar *sav, int skip, /* Handle virtual tunneling interfaces */ if (saidx->mode == IPSEC_MODE_TUNNEL) - error = ipsec_if_input(m, sav, af); + error = ipsec_if_input(m, sav, af, sahtree_tracker); + else + ipsec_sahtree_runlock(sahtree_tracker); if (error == 0) { error = netisr_queue_src(isr_prot, (uintptr_t)sav->spi, m); if (error) { @@ -507,6 +509,7 @@ ipsec4_common_input_cb(struct mbuf *m, struct secasvar *sav, int skip, bad: NET_EPOCH_EXIT(et); bad_noepoch: + ipsec_sahtree_runlock(sahtree_tracker); key_freesav(&sav); if (m != NULL) m_freem(m); @@ -590,7 +593,7 @@ extern ipproto_input_t *ip6_protox[]; */ int ipsec6_common_input_cb(struct mbuf *m, struct secasvar *sav, int skip, - int protoff) + int protoff, struct rm_priotracker *sahtree_tracker) { IPSEC_DEBUG_DECLARE(char buf[IPSEC_ADDRSTRLEN]); struct epoch_tracker et; @@ -734,7 +737,9 @@ ipsec6_common_input_cb(struct mbuf *m, struct secasvar *sav, int skip, } /* Handle virtual tunneling interfaces */ if (saidx->mode == IPSEC_MODE_TUNNEL) - error = ipsec_if_input(m, sav, af); + error = ipsec_if_input(m, sav, af, sahtree_tracker); + else + ipsec_sahtree_runlock(sahtree_tracker); if (error == 0) { error = netisr_queue_src(isr_prot, (uintptr_t)sav->spi, m); @@ -748,6 +753,9 @@ ipsec6_common_input_cb(struct mbuf *m, struct secasvar *sav, int skip, key_freesav(&sav); return (error); } + + ipsec_sahtree_runlock(sahtree_tracker); + /* * See the end of ip6_input for this logic. * IPPROTO_IPV[46] case will be processed just like other ones @@ -787,6 +795,7 @@ ipsec6_common_input_cb(struct mbuf *m, struct secasvar *sav, int skip, return (0); bad: NET_EPOCH_EXIT(et); + ipsec_sahtree_runlock(sahtree_tracker); key_freesav(&sav); if (m) m_freem(m); diff --git a/sys/netipsec/xform_ah.c b/sys/netipsec/xform_ah.c index 8f08872eb38a..65c67db983d6 100644 --- a/sys/netipsec/xform_ah.c +++ b/sys/netipsec/xform_ah.c @@ -692,6 +692,7 @@ ah_input_cb(struct cryptop *crp) { IPSEC_DEBUG_DECLARE(char buf[IPSEC_ADDRSTRLEN]); unsigned char calc[AH_ALEN_MAX]; + struct rm_priotracker sahtree_tracker; struct mbuf *m; struct xform_data *xd; struct secasvar *sav; @@ -711,6 +712,14 @@ ah_input_cb(struct cryptop *crp) nxt = xd->nxt; protoff = xd->protoff; cryptoid = xd->cryptoid; + ipsec_sahtree_rlock(&sahtree_tracker); + if (sav->state >= SADB_SASTATE_DEAD) { + /* saidx is freed */ + DPRINTF(("%s: dead SA %p spi %#x\n", __func__, sav, sav->spi)); + AHSTAT_INC(ahs_notdb); + error = ESRCH; + goto bad; + } saidx = &sav->sah->saidx; IPSEC_ASSERT(saidx->dst.sa.sa_family == AF_INET || saidx->dst.sa.sa_family == AF_INET6, @@ -808,12 +817,14 @@ ah_input_cb(struct cryptop *crp) switch (saidx->dst.sa.sa_family) { #ifdef INET6 case AF_INET6: - error = ipsec6_common_input_cb(m, sav, skip, protoff); + error = ipsec6_common_input_cb(m, sav, skip, protoff, + &sahtree_tracker); break; #endif #ifdef INET case AF_INET: - error = ipsec4_common_input_cb(m, sav, skip, protoff); + error = ipsec4_common_input_cb(m, sav, skip, protoff, + &sahtree_tracker); break; #endif default: @@ -823,6 +834,7 @@ ah_input_cb(struct cryptop *crp) CURVNET_RESTORE(); return error; bad: + ipsec_sahtree_runlock(&sahtree_tracker); CURVNET_RESTORE(); if (sav) key_freesav(&sav); diff --git a/sys/netipsec/xform_esp.c b/sys/netipsec/xform_esp.c index 7aec10549e6c..be8c18da60b3 100644 --- a/sys/netipsec/xform_esp.c +++ b/sys/netipsec/xform_esp.c @@ -492,6 +492,7 @@ static int esp_input_cb(struct cryptop *crp) { IPSEC_DEBUG_DECLARE(char buf[128]); + struct rm_priotracker sahtree_tracker; uint8_t lastthree[3]; const struct auth_hash *esph; struct mbuf *m; @@ -507,6 +508,7 @@ esp_input_cb(struct cryptop *crp) xd = crp->crp_opaque; CURVNET_SET(xd->vnet); sav = xd->sav; + ipsec_sahtree_rlock(&sahtree_tracker); if (sav->state >= SADB_SASTATE_DEAD) { /* saidx is freed */ DPRINTF(("%s: dead SA %p spi %#x\n", __func__, sav, sav->spi)); @@ -527,6 +529,7 @@ esp_input_cb(struct cryptop *crp) if (ipsec_updateid(sav, &crp->crp_session, &cryptoid) != 0) crypto_freesession(cryptoid); xd->cryptoid = crp->crp_session; + ipsec_sahtree_runlock(&sahtree_tracker); CURVNET_RESTORE(); return (crypto_dispatch(crp)); } @@ -658,12 +661,14 @@ esp_input_cb(struct cryptop *crp) switch (saidx->dst.sa.sa_family) { #ifdef INET6 case AF_INET6: - error = ipsec6_common_input_cb(m, sav, skip, protoff); + error = ipsec6_common_input_cb(m, sav, skip, protoff, + &sahtree_tracker); break; #endif #ifdef INET case AF_INET: - error = ipsec4_common_input_cb(m, sav, skip, protoff); + error = ipsec4_common_input_cb(m, sav, skip, protoff, + &sahtree_tracker); break; #endif default: @@ -673,6 +678,7 @@ esp_input_cb(struct cryptop *crp) CURVNET_RESTORE(); return error; bad: + ipsec_sahtree_runlock(&sahtree_tracker); if (sav != NULL) key_freesav(&sav); if (m != NULL) diff --git a/sys/netipsec/xform_ipcomp.c b/sys/netipsec/xform_ipcomp.c index 737d4a50098a..778cd955310a 100644 --- a/sys/netipsec/xform_ipcomp.c +++ b/sys/netipsec/xform_ipcomp.c @@ -283,6 +283,7 @@ static int ipcomp_input_cb(struct cryptop *crp) { IPSEC_DEBUG_DECLARE(char buf[IPSEC_ADDRSTRLEN]); + struct rm_priotracker sahtree_tracker; struct xform_data *xd; struct mbuf *m; struct secasvar *sav; @@ -300,6 +301,14 @@ ipcomp_input_cb(struct cryptop *crp) skip = xd->skip; protoff = xd->protoff; cryptoid = xd->cryptoid; + ipsec_sahtree_rlock(&sahtree_tracker); + if (sav->state >= SADB_SASTATE_DEAD) { + /* saidx is freed */ + DPRINTF(("%s: dead SA %p spi %#x\n", __func__, sav, sav->spi)); + IPCOMPSTAT_INC(ipcomps_notdb); + error = ESRCH; + goto bad; + } saidx = &sav->sah->saidx; IPSEC_ASSERT(saidx->dst.sa.sa_family == AF_INET || saidx->dst.sa.sa_family == AF_INET6, @@ -365,12 +374,14 @@ ipcomp_input_cb(struct cryptop *crp) switch (saidx->dst.sa.sa_family) { #ifdef INET6 case AF_INET6: - error = ipsec6_common_input_cb(m, sav, skip, protoff); + error = ipsec6_common_input_cb(m, sav, skip, protoff, + &sahtree_tracker); break; #endif #ifdef INET case AF_INET: - error = ipsec4_common_input_cb(m, sav, skip, protoff); + error = ipsec4_common_input_cb(m, sav, skip, protoff, + &sahtree_tracker); break; #endif default: @@ -380,6 +391,7 @@ ipcomp_input_cb(struct cryptop *crp) CURVNET_RESTORE(); return error; bad: + ipsec_sahtree_runlock(&sahtree_tracker); CURVNET_RESTORE(); if (sav != NULL) key_freesav(&sav); From nobody Mon Dec 29 02:12:10 2025 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dffqb0Tlxz6LVhb for ; Mon, 29 Dec 2025 02:12:11 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dffqZ6gGTz3hRH for ; Mon, 29 Dec 2025 02:12:10 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1766974331; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Ua4PJ106v3elkJ7cux9bhKsztkomvH1uHPGliIAzqBg=; b=khjV9G0jrFcjTgS6inKu39NvUDF5diw0H+NG/SrgIZ5zPIsxxG/VwSxKxtwnRlPbwRSgZu LBVQikaaxWqbWXYQbFIutDP5FN85CJPGm/MnRFoyhoxZMFMzCxspbbJfpVCSdiTrdwxovp Xcvs6hScayOmxUY6eVMlRALk4LzVsPqq3TJqocogplqQRxZur7rGFiLJeqt8gNWKzAiAgY 8NWqzEyyPvSDxYkvOTnH0UVXgJ6K0NRFEW3PponlHraA3jXZARGL1A9nj7rbkPJyKEvXsf mieSpTkPN+8k29zrZtSdEfrOexmIR/d8f9iHgW2UurXL2T+FyXCKbk+zfMhrhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1766974331; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Ua4PJ106v3elkJ7cux9bhKsztkomvH1uHPGliIAzqBg=; b=cVQWCifRDdhpUHYw+JDU/W0Vj8ifl0jnwL0UoL0hli+vqLqLTlENMDlxuBeCaCKTK1FDfp BTFl/biQjIA4axSwbczlaou39qQ5jvAVm+OD9bHiBeRncLc/tnoaSIvBP5P9j7bL/U56sp jtkfKvwKvGqDi8N6p++Fa23xpyyaxtVodVFiuX4jnSeR2vpNw75j1PgCAosvJ6BPTvtGbt avd9M1qRE46jrhQihJFJwdZZUXFm7kso0O/cDUMbsLMx4pFuH2Tvrecb/P5BxP2aVwWuxn YWXd4JU6j0Hy9UYG6YGVa7RRT4m2bcaaR/0SZM3Ki2XliccwNu5ATLHbCv3aAw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1766974331; a=rsa-sha256; cv=none; b=Aa7gSXBXy4Zd0nexeXaU6K3u5SQcHNfSNdUcfoGo9yaXgEf/fe54+L7rYveL9qGTp4l3Xd OIeMScs4JXLqBD+ljeX044Z9Cg7TpUYai+Qu8ipLJJj8BJyxj3G1NL646unrZbio3jV3hk GiXydPIroY/m1IZf6xiHk7C6S4bZraaLXkhey4rUoxMUq+EsCUpwYKJzhhA5o465+fwJIJ 3NmvOiPG6TZ8y40/SqubDGgyQNQZqEu6ixUqUehFAN9CD647DPZUM1ZKyAzlORPOFEzz+6 2yW9XrUq4zarg1rPe7sGXQxdg68cFArCksEOUQCEPIWyt2q8nycMz2nTE9OMcA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dffqZ6DWwz19jZ for ; Mon, 29 Dec 2025 02:12:10 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3ed94 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 29 Dec 2025 02:12:10 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: 8f7dfa4fe2b7 - stable/15 - cuse(3): annotate cuse_init() to suppress thread safety analysis List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 8f7dfa4fe2b79b3fdf096fa26dc7e2b743e1f208 Auto-Submitted: auto-generated Date: Mon, 29 Dec 2025 02:12:10 +0000 Message-Id: <6951e37a.3ed94.2184f8af@gitrepo.freebsd.org> The branch stable/15 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=8f7dfa4fe2b79b3fdf096fa26dc7e2b743e1f208 commit 8f7dfa4fe2b79b3fdf096fa26dc7e2b743e1f208 Author: Dimitry Andric AuthorDate: 2025-12-25 18:02:27 +0000 Commit: Dimitry Andric CommitDate: 2025-12-29 02:06:47 +0000 cuse(3): annotate cuse_init() to suppress thread safety analysis This avoids warnings from clang 21, similar to: /usr/src/lib/libcuse/cuse_lib.c:111:14: error: writing variable 'h_cuse' requires holding mutex 'm_cuse' exclusively [-Werror,-Wthread-safety-analysis] 111 | TAILQ_INIT(&h_cuse); | ^ /usr/src/lib/libcuse/cuse_lib.c:111:14: error: writing variable 'h_cuse' requires holding mutex 'm_cuse' exclusively [-Werror,-Wthread-safety-analysis] /usr/src/lib/libcuse/cuse_lib.c:112:14: error: writing variable 'h_cuse_entered' requires holding mutex 'm_cuse' exclusively [-Werror,-Wthread-safety-analysis] 112 | TAILQ_INIT(&h_cuse_entered); | ^ /usr/src/lib/libcuse/cuse_lib.c:112:14: error: writing variable 'h_cuse_entered' requires holding mutex 'm_cuse' exclusively [-Werror,-Wthread-safety-analysis] MFC after: 3 days (cherry picked from commit 5629b5cf79934e0b94ddbbd93b7756f74fe4050a) --- lib/libcuse/cuse_lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libcuse/cuse_lib.c b/lib/libcuse/cuse_lib.c index 3f040d0eeeda..48c72258106d 100644 --- a/lib/libcuse/cuse_lib.c +++ b/lib/libcuse/cuse_lib.c @@ -93,7 +93,7 @@ static struct cuse_vm_allocation a_cuse[CUSE_ALLOC_UNIT_MAX] pthread_mutex_unlock(&m_cuse) int -cuse_init(void) +cuse_init(void) __no_lock_analysis { pthread_mutexattr_t attr; From nobody Mon Dec 29 02:12:11 2025 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dffqc2RYLz6LVmZ for ; Mon, 29 Dec 2025 02:12:12 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dffqc1Gqwz3hTb for ; Mon, 29 Dec 2025 02:12:12 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1766974332; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=rGKlmmXP6dB5RqgDmA1PBARxSPzwAYaH+PzDChgUCmQ=; b=uoFV9FKAUaUQuyjLlXHa899G3pzoxdJtxZUfxFsBlrUNthHekcx8pZdQ/NJZWmyczUXSQx YKaw1rET+0BMFjImzDgOzikiAdF6mhew/ukIGMe+Oi6Ykjdk+xfYqvscWXCc1W/ueAdQez p2dSYZNRljvdY7qlt9fT5owpmLdI/QqLss2UOfW5GByhO451TWeRFm/oK1sgmLSLuQwitd DSeQvM5yNVgXEyrI/t4MguGKXZI1liFRgiixJU3/i3nlF6AEPYPzHdZVpWNReQPfRLtKHD ohOcbG0KUFPVEkjMj/bLvlXa/jf3WDr9mCnFwcix5MgW6DsH5wJ5HFRhqFihmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1766974332; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=rGKlmmXP6dB5RqgDmA1PBARxSPzwAYaH+PzDChgUCmQ=; b=TWEzlyRcvVCb5Ls3ZLVbBUIbn+ZiXyJwFSeIHyqHkYocyAhBOVemmVLcWfZHutyLJQsHl+ IkZkg5OuWPns8anQukX8Ped66zaBq51icY9+QX0fCqQqLPY2w0NPBbSYfo0zYZZLRwxLoI qmbAH6yWCjoYz2DaDnE7LE59fWDLa69W7z4H3OoHsQPY7QCZcQR1A32ohHdbB5Z3yxPqPb C89vJlpVEk3EKh5oWH0/A1qtw6SXG1PaClbRlN1gsRTDy4Sfws307vlJHMKKPE9+Ym60YO dllmp2f4KvhHlpVCp7ywM+6WaeJq5FWKAxRnAkQ4f/wOU+2g4hwBr7Mj/t+z+g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1766974332; a=rsa-sha256; cv=none; b=UkPGEOhuLgtzvHRfviamjZq9KTuaw9AW5G3hQb286QGtWT8teYSMg/z0rlZOGsI3/HDJ7X lrjSYt7fOywJLPn2BujApDcWYyOYepqEgd+/KOrYD3NrlGif7usTIOmhJZRSS1YCKCvBYm hJRp7cW7Q54lQS9gHS0GzmahSoBnJvhn5QJMzkYw0G1arlsqIPGs9oifcZ4jqtqLsoTN+1 mweBayXjYQ18g279xgN2jpEpcFxuZiXm6kQQ6fqO55t96tSvAozGFwlqa1KldWNb9yju+s m+MV+qdTjeldBXzU3YH/+ZnjTV+BZ8vwDvkFLw0NiTZ6QocEZPG7MaHNhxXVlg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dffqb725Kz19JS for ; Mon, 29 Dec 2025 02:12:11 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3d9b4 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 29 Dec 2025 02:12:11 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: 5c5e2a0a7be8 - stable/15 - Reduce number of external symbols in libllvm, libclang and liblldb List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 5c5e2a0a7be849c7a557a026352008190f8bf10b Auto-Submitted: auto-generated Date: Mon, 29 Dec 2025 02:12:11 +0000 Message-Id: <6951e37b.3d9b4.33ba0388@gitrepo.freebsd.org> The branch stable/15 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=5c5e2a0a7be849c7a557a026352008190f8bf10b commit 5c5e2a0a7be849c7a557a026352008190f8bf10b Author: Dimitry Andric AuthorDate: 2025-12-21 21:37:57 +0000 Commit: Dimitry Andric CommitDate: 2025-12-29 02:09:11 +0000 Reduce number of external symbols in libllvm, libclang and liblldb In commit 2e47f35be5dc libllvm, libclang and liblldb were converted into private shared libraries. This allowed clang, lld, lldb, and other llvm tools to be linked against these shared libraries, which makes them smaller and avoids duplication. However, upstream builds the shared libraries using several visibility options, which reduces the number of external symbols, and makes the libraries a bit smaller. On my test machine: * libprivatellvm.so goes from 75643 to 34706 symbols (~54% reduction) * libprivateclang.so goes from 53250 to 33531 symbols (~37% reduction) * libprivatelldb.so goes from 27242 to 18798 symbols (~31% reduction) Note: to get the full benefit, a clean build is required. Incremental builds should still work, but I didn't want to force a full rebuild on everybody. MFC after: 1 week (cherry picked from commit cf1eaaf41cefe7e3aef45f6dab862191a3939ed8) --- lib/clang/libllvm/Makefile | 12 ++++++++++++ lib/clang/llvm.build.mk | 1 + 2 files changed, 13 insertions(+) diff --git a/lib/clang/libllvm/Makefile b/lib/clang/libllvm/Makefile index 810eac08d8d5..7c45375b8fbf 100644 --- a/lib/clang/libllvm/Makefile +++ b/lib/clang/libllvm/Makefile @@ -48,6 +48,8 @@ CFLAGS+= -DBLAKE3_NO_AVX512 -DBLAKE3_NO_AVX2 -DBLAKE3_NO_SSE41 \ CFLAGS+= -DBLAKE3_USE_NEON=0 .endif +CFLAGS+= -DLLVM_BUILD_LLVM_DYLIB + SRCDIR= llvm/lib # Explanation of different SRCS variants below: @@ -2050,6 +2052,16 @@ SRCS_ALL+= ${SRCS_COV} SRCS+= ${GENSRCS} SRCS+= ${SRCS_ALL:O} +# Optimization: for all source files under Target/*/*, use -fvisibility=hidden, +# which reduces the number of external symbols in the resulting shared library. +# This is also what upstream does. +.for src in ${SRCS} +. if "${src:MTarget/*/*}" +CFLAGS.${src:T}+= -fvisibility=hidden +.info ${src}: CFLAGS.${src:T} +. endif +.endfor + llvm/CodeGen/GenVT.inc: ${LLVM_SRCS}/include/llvm/CodeGen/ValueTypes.td ${LLVM_MIN_TBLGEN} -gen-vt \ -I ${LLVM_SRCS}/include -d ${.TARGET}.d -o ${.TARGET} \ diff --git a/lib/clang/llvm.build.mk b/lib/clang/llvm.build.mk index e88b2ff1033e..f6e51129e9fa 100644 --- a/lib/clang/llvm.build.mk +++ b/lib/clang/llvm.build.mk @@ -122,6 +122,7 @@ LDFLAGS+= -Wl,-m,elf64lriscv_fbsd CXXSTD= c++17 CXXFLAGS+= -fno-exceptions CXXFLAGS+= -fno-rtti +CXXFLAGS+= -fvisibility-inlines-hidden .if ${.MAKE.OS} == "FreeBSD" || !defined(BOOTSTRAPPING) CXXFLAGS.clang+= -stdlib=libc++ .else From nobody Mon Dec 29 02:12:13 2025 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dffqd4Hyxz6LW68 for ; Mon, 29 Dec 2025 02:12:13 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dffqd1CQQz3hNs for ; Mon, 29 Dec 2025 02:12:13 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1766974333; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ng5QFlChdOJF9el1vLmPf+Grkm/D0D8MGbEhSI21NL8=; b=WCWSGK/Zv1UdAB5zQKdnseRrV6NJa4lrc+WMTwZQ8yvIgE/UKs/BZJolWlZGtFypnAkb3S FaZfxB3MwhNpmK0tFOEcDkMpXOsF4gwJQM9Z8u+DX2I94aP2Sw/HJjQJrmVisOOKZlTc9w D45072vAHWNmArYf4qkD+DlZJWfYlK1+60VPHI7yvkHGFNduCYE4oNYHlXCvBuybUkmuMN v4XEai8DldIIOowS93lBmEqqznu1cGXts4m/rEIZ34cikqITfWxMI53FHiKaGSLNnB0LzV KRED2rsFPSnEZR/+2+r1BuNfOOVu8KHwK+b1bmdOArpH4Pity/rc8CBM2PNtjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1766974333; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ng5QFlChdOJF9el1vLmPf+Grkm/D0D8MGbEhSI21NL8=; b=o+Esh1IltFndar/fr2vkWNeCHGx0Kjv7cvp2eDHQV6F5xHW/ts09OwPFwl1oEKOpOt50RQ hqWcAGFbUqqEPD+BkQo6nu0QnCXcB3NicI8YEroX+hbF9jCCbxbXO5gXWww7VrFXyoe2oR 8juKUD+pkuekWFFqJ3kYgM7iL6xUtPkVwbVAvOlzGCyHMyVPssfA5KsbHdZz1faE5+jdf9 n0IG6qQ9IC8644TRo0sx28JdYlsEnrpLaJabyIjODhYOUPtcDI+bBETfyQFNlAsE93dnWb chefsXfXHjbTRHKQCO/n5ZtjQRK0/H4TlNCplWG3yBsDU2TVbKlrjSC8KTJ+0g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1766974333; a=rsa-sha256; cv=none; b=M3FC2IKY/WBer8aFu3nnseomEXCVfWHlv8xDqZNnVTfzZMK/4NfmX7nIambo8dFC9+Wic0 hoEpqhYZQ8swIdlwV7UHDUuKgI2FTQ4gDJuHGmhm42k7Pe4uz5mDaidG+h315qTkCB4dJN uirWf4Ahx1yKzm76V0dE5CseD4ssnWVHCUdtaQPoPJ8ug6Xfxn09tO5V2DSi0ZTiD6rlnX /veV+ERmC4ouuK84JxPg5SYE+sF3nFT/jqeYZY7uI9vDC4UeJfeRlvYSYIFtQM41ULvFAA HWeJoljF8PVOTJsSDD45bxvHK9Oyy3WBrY3Jnt0cnJAjm57gGiPI1Gi0L5JXZw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dffqd0lmtz19FF for ; Mon, 29 Dec 2025 02:12:13 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3e3a2 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 29 Dec 2025 02:12:13 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: 1eea0671cc85 - stable/15 - Remove debug crutch I accidentally left in List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 1eea0671cc8527114bec915406d6dd96239c85ff Auto-Submitted: auto-generated Date: Mon, 29 Dec 2025 02:12:13 +0000 Message-Id: <6951e37d.3e3a2.19bc2758@gitrepo.freebsd.org> The branch stable/15 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=1eea0671cc8527114bec915406d6dd96239c85ff commit 1eea0671cc8527114bec915406d6dd96239c85ff Author: Dimitry Andric AuthorDate: 2025-12-22 11:49:27 +0000 Commit: Dimitry Andric CommitDate: 2025-12-29 02:09:28 +0000 Remove debug crutch I accidentally left in Fixes: cf1eaaf41cef MFC after: 1 week (cherry picked from commit 3b1126208f44a90c7dc04a87207e54b22d45893c) --- lib/clang/libllvm/Makefile | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/clang/libllvm/Makefile b/lib/clang/libllvm/Makefile index 7c45375b8fbf..a4e9c628d99e 100644 --- a/lib/clang/libllvm/Makefile +++ b/lib/clang/libllvm/Makefile @@ -2058,7 +2058,6 @@ SRCS+= ${SRCS_ALL:O} .for src in ${SRCS} . if "${src:MTarget/*/*}" CFLAGS.${src:T}+= -fvisibility=hidden -.info ${src}: CFLAGS.${src:T} . endif .endfor From nobody Mon Dec 29 02:12:14 2025 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dffqf3Plmz6LVsF for ; Mon, 29 Dec 2025 02:12:14 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dffqf1zr7z3hlG for ; Mon, 29 Dec 2025 02:12:14 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1766974334; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=pV0ONvZFhQs42UUXTkEo3ptXh3N+fGarFPN+3P5KxoQ=; b=DtqC1byc6QCw4YW6nCGSPU0dYpiAhemzVqvXcbRtlIW+Oa5m65ltpEU2K+xdJ+dh+hjHt8 brfVSYNeG4oxM8wS1Fa1Y354A1Zw/74d5r8JaX/Hg5uUoKlDWmOz0OfifaAw9yrpqUFp9O zhOxYJbTDIiLhp6Xkx1woxsYclSda2obqVehirvDoZ/ioQXUgaInwGJdkLLr4bIFbAfe2a B8pO5ev5+dfDbfc9Odd91K8/9lGBDw20+u3gDCr/0CEGmubCzJ+6lh4xJbYDf1NhhDObXv qY2O8Yh70EkUvSgOuqAz7idSc0wPYYidHE1KXfpcFoUXLeHbbx3wDS7eJS5aTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1766974334; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=pV0ONvZFhQs42UUXTkEo3ptXh3N+fGarFPN+3P5KxoQ=; b=ybRQI9tP/WKiz0YUZmnqfzl+cP6llkp9M1CyjrN156AjISGgpXPsCWvznxi8xEoPZV3m7l C86dW7CfzpqG9DpzEWUFpQ3pOVGYg7iwwb9p4oMiPT0wuj/bRyjY7XlD6fLetJDfJEanU0 uaiYfenJdArOztrINOw5kq+xQVKx0ZJ27PqqlDYtkDr9ytMybppNbO2Su8cECYzaUbBHo+ aKmiKLihCjKY9xiuSKUAhc44ymAVh5nPRiqkYBl923bIcF0Nl2NbYsbk1HB2q5tsyFL8fX OyV/nW7ehIzP1q71Pp2qQ26VngH7VFJAHXNSQ8JXKHIpsBlEeRu7uKqTCXFLKg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1766974334; a=rsa-sha256; cv=none; b=r3rTJPhHOtCKSGDzziSqhiUp3/PjMFD0Hk87HEJq5Va0IAKXA3pPWrwDEiKT01dwDh0NUx Wc+g6CNUc/82Iupd22B3e778XPezW+1SZkZN3XSaxTxLKKSMLJQNwBt4DB8zP9EysN4ZCr 6s8LPKjQqMaXRUbdGV3juPasvUAeqA5seIe2Noqv7hPALmAC6TlC0BqRYQ8rCPcScII8j0 tgYTWfW9wnux3Sud/c1F8wwrhTxyVCQ53GtZn1/ZlrbWJhKiBq50/zKnK46SbJ85XEziRf D2YDerJcNEESaGinL2Cdb8avMY0spivz5yUySgkkp1bzeI8SdAef+XaMcEmHvw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dffqf1Ww0z19RC for ; Mon, 29 Dec 2025 02:12:14 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3d4b8 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 29 Dec 2025 02:12:14 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: ea9ce3875759 - stable/15 - pmcannotate: avoid accessing uninitialized local variables List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: ea9ce38757594252558d27152fb7173ad1510aa7 Auto-Submitted: auto-generated Date: Mon, 29 Dec 2025 02:12:14 +0000 Message-Id: <6951e37e.3d4b8.2e9d8fa4@gitrepo.freebsd.org> The branch stable/15 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=ea9ce38757594252558d27152fb7173ad1510aa7 commit ea9ce38757594252558d27152fb7173ad1510aa7 Author: Dimitry Andric AuthorDate: 2025-12-26 13:37:47 +0000 Commit: Dimitry Andric CommitDate: 2025-12-29 02:09:43 +0000 pmcannotate: avoid accessing uninitialized local variables Initialize `tbfl` and `tofl` to NULL, and check whether they are non-NULL before calling remove(3) on them, to avoid warnings from clang 21 similar to: usr.sbin/pmcannotate/pmcannotate.c:746:3: error: variable 'tbfl' is uninitialized when used here [-Werror,-Wuninitialized] 746 | FATAL(exec, "%s: Impossible to locate the binary file\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 747 | exec); | ~~~~~ usr.sbin/pmcannotate/pmcannotate.c:57:9: note: expanded from macro 'FATAL' 57 | remove(tbfl); \ | ^~~~ usr.sbin/pmcannotate/pmcannotate.c:695:12: note: initialize the variable 'tbfl' to silence this warning 695 | char *tbfl, *tofl, *tmpdir; | ^ | = NULL usr.sbin/pmcannotate/pmcannotate.c:746:3: error: variable 'tofl' is uninitialized when used here [-Werror,-Wuninitialized] 746 | FATAL(exec, "%s: Impossible to locate the binary file\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 747 | exec); | ~~~~~ usr.sbin/pmcannotate/pmcannotate.c:58:9: note: expanded from macro 'FATAL' 58 | remove(tofl); \ | ^~~~ usr.sbin/pmcannotate/pmcannotate.c:695:19: note: initialize the variable 'tofl' to silence this warning 695 | char *tbfl, *tofl, *tmpdir; | ^ | = NULL MFC after: 3 days (cherry picked from commit cd880010c49a5d4ec529f4204d4e88cd27727255) --- usr.sbin/pmcannotate/pmcannotate.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/usr.sbin/pmcannotate/pmcannotate.c b/usr.sbin/pmcannotate/pmcannotate.c index 5958ff615e4b..6f3e121b4729 100644 --- a/usr.sbin/pmcannotate/pmcannotate.c +++ b/usr.sbin/pmcannotate/pmcannotate.c @@ -54,8 +54,10 @@ if ((ptr) != NULL) \ perror(ptr); \ fprintf(stderr, ##x); \ - remove(tbfl); \ - remove(tofl); \ + if (tbfl != NULL) \ + remove(tbfl); \ + if (tofl != NULL) \ + remove(tofl); \ exit(EXIT_FAILURE); \ } while (0) @@ -702,6 +704,8 @@ main(int argc, char *argv[]) uintptr_t tmppc, ostart, oend; int cget, asmsrc; + tbfl = NULL; + tofl = NULL; exec = argv[0]; ofile = NULL; bin = NULL; From nobody Mon Dec 29 02:12:27 2025 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dffqw1YH8z6LVqq for ; Mon, 29 Dec 2025 02:12:28 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dffqv3HSDz3hsd for ; Mon, 29 Dec 2025 02:12:27 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1766974347; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=fksin+0iPFd7JIABswDJ1zKpcA6tsEcfTHae8g2csm8=; b=XBJnLO2dPdweWalRT6sZvVaIAOU7Ivbwc25Hl581hqWYpSaxcHv5MdehIhfFD9HmvNkzZF jV7j1GY8kstIoPoGMladduTtFibLNaVJgCj+/OyBlxZee0hXNIEA5osJe4DmYoUFfF+C7f xrkM7jD0xl8UrmXZVh/AvWfkfHj+OJqkzHxXENIW6se5zYNB+HlaaR23yn/ypTrqnj93Qx NQ4Ffq0/bSIZ0YEf2LBACvhs+KBQKS9uj6y6dhzmjjTogzh5nUDlCOMGyJgXiawpqcC4IB ABejVC7945MwyR7TQaUXSXyaeFfEdB+cc3s4DBUgNLReSp6kXn12v6OUoXrDXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1766974347; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=fksin+0iPFd7JIABswDJ1zKpcA6tsEcfTHae8g2csm8=; b=W1gIEQewUhAwTLJPld1yTwcuK0vSJ4a6iyZ2tnC0dnHx/VWkT0kTyMlJdRf3wXUsg0IGAy brdpvsDJuxDyT4AnXWxEwefXMkcRASA3LWuBp1uSD+f2qOF+MzdIGoFaPtwLmFWNFDmYLI Qa6uLH8JC/xpm8VGYZKmuHP5i5uVQUTSkUtHbcOKNYg1VmX2mB8UnOuus3Rnu5/LfKOLr0 2TolvvzX0+rBY2ZOqHt0TTZuhCX8qC9vXgiwzMXkVgau762DmbQpbQyYlbW7aJ17FSQ5MM zIHfGNyHBQoq1JBUyfxjUJ5NEmDahvQuRI4wd+8orrJm3BV5O+fsK9SjPy2FYA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1766974347; a=rsa-sha256; cv=none; b=bibedChoFwZl19n14yblzw4KrNXEaNFr/KsiRVhnh6f2d7oAPuKi0DBAg8iD7xb+LCOMRz ZU2B5EOijF1eq+aJwwJx4pcPR6APBuX4xRe4Dj6EflbzFXJTTYfRC5p2l3BIlmRw9mTWsI NCc3jhduswawQAF7p3A2qD2vSNhslUg7QYkSh2W4+5pMNrEHQzzqoCHAb+/0VR/FNSZTNc na1FjgxgkGQ+GNOseVE0F3ivU05N8NJ7SO8vF2aBQLjtL6F4lxfdQNvoAqA9WqIDVmh+2S GZBPpNk3HcdpLyj8BcYp8Vw2jJvEhZKLuiDuNnIiSluROBDO+yeQ3XY5B3FgeA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dffqv2rTfz19T4 for ; Mon, 29 Dec 2025 02:12:27 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3c5fb by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 29 Dec 2025 02:12:27 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: c55bd9b27275 - stable/14 - cuse(3): annotate cuse_init() to suppress thread safety analysis List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: c55bd9b2727595b170d25c87d0561477952cce54 Auto-Submitted: auto-generated Date: Mon, 29 Dec 2025 02:12:27 +0000 Message-Id: <6951e38b.3c5fb.3cf4a895@gitrepo.freebsd.org> The branch stable/14 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=c55bd9b2727595b170d25c87d0561477952cce54 commit c55bd9b2727595b170d25c87d0561477952cce54 Author: Dimitry Andric AuthorDate: 2025-12-25 18:02:27 +0000 Commit: Dimitry Andric CommitDate: 2025-12-29 02:07:08 +0000 cuse(3): annotate cuse_init() to suppress thread safety analysis This avoids warnings from clang 21, similar to: /usr/src/lib/libcuse/cuse_lib.c:111:14: error: writing variable 'h_cuse' requires holding mutex 'm_cuse' exclusively [-Werror,-Wthread-safety-analysis] 111 | TAILQ_INIT(&h_cuse); | ^ /usr/src/lib/libcuse/cuse_lib.c:111:14: error: writing variable 'h_cuse' requires holding mutex 'm_cuse' exclusively [-Werror,-Wthread-safety-analysis] /usr/src/lib/libcuse/cuse_lib.c:112:14: error: writing variable 'h_cuse_entered' requires holding mutex 'm_cuse' exclusively [-Werror,-Wthread-safety-analysis] 112 | TAILQ_INIT(&h_cuse_entered); | ^ /usr/src/lib/libcuse/cuse_lib.c:112:14: error: writing variable 'h_cuse_entered' requires holding mutex 'm_cuse' exclusively [-Werror,-Wthread-safety-analysis] MFC after: 3 days (cherry picked from commit 5629b5cf79934e0b94ddbbd93b7756f74fe4050a) --- lib/libcuse/cuse_lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libcuse/cuse_lib.c b/lib/libcuse/cuse_lib.c index 3f040d0eeeda..48c72258106d 100644 --- a/lib/libcuse/cuse_lib.c +++ b/lib/libcuse/cuse_lib.c @@ -93,7 +93,7 @@ static struct cuse_vm_allocation a_cuse[CUSE_ALLOC_UNIT_MAX] pthread_mutex_unlock(&m_cuse) int -cuse_init(void) +cuse_init(void) __no_lock_analysis { pthread_mutexattr_t attr; From nobody Mon Dec 29 02:12:28 2025 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dffqw5SNqz6LWB5 for ; Mon, 29 Dec 2025 02:12:28 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dffqw4MyJz3jYv for ; Mon, 29 Dec 2025 02:12:28 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1766974348; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=rkeaubJO5nD5RB0q2HG+9pNfRJeflndXQxifzBHV220=; b=tpGYWuYjMF58HUvou1pxU9/lkgSW4sDnm4CDLVkDJKxoBZ2Ma8AseA6GjNkxvWvghZWeqq 097TnRz4+wHeTzHQOR0/Tpl/U6VmQcp4+p6uvD1cgQwTuOBGBxrv8j1rfuOHM58URO1l2Y 4xHm9pO87a0459E2FyShWb+1hH4c0eUKtISIMvbPFNHB9HG7hYI4Qw++H1Yi7E4voZEOpP yKtoyutdzJKqWConO2jT67P1lqths2PQqrlVVq6Dj3MT7CVtmAxJeJ1NYpqe87tdjnD+t8 TCpfxu9QBjDA8WSpfHfeJ//BlHHtdpLPeDpBM9LruYYK9spBUD/tLh6qDwnTsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1766974348; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=rkeaubJO5nD5RB0q2HG+9pNfRJeflndXQxifzBHV220=; b=WjPEYrSHFTU8rp2c5E9IIlGPxcSsyqGoo+bprQ8AWjfC4bkT01h0XaxqC9EMTcS29JedrY iJGApqdTBIJ5k0gTDArYc5SPQnc9KkvHt4n0GO5iuu2SpAiWwTtdF98hB0dkDAYI/XSpNu HgcOnfyDexZz9ZeGiP6rRG3GeJupY08x0cqxF+TY1Ij811oIezxuI7BlN6HJ8m9JaouTQB ZPbM33JCYkNr7Cz7jXKiHMlt7yZHsNz5WZ8QCfhiBcBOD1KPDQ1cRfXliIKmGLmvQtBkbL h2BgXRJIIfg/ia3SSUkvIqfj4FSSQi8hkCxjtue0wqIetTq/Pbki08uQCPH5Qg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1766974348; a=rsa-sha256; cv=none; b=sNuAD5xyxKjDr6IUC17WZeyvRL+FfGQ7+Li0SJ0Zi4CzLxH52o8R22w+L0kF3yoVsKtf0o iYGkRhjSUwh2qHrf6WvdyZkJt4sWniqhH8kuZ3IKKSgeMkSoDWgBYABJqr6Ww3RtiKXBr+ ApaCFbxmuSe29Jq+mOMEPnUyoLFEPhUYE2vW/LPSKwHV463jxUazfhtI/Kp7qDmsf2WhUS wurHNAGrKOgaKXsWm2QqxpDEQZfltU2/6c6BdmHc/Bc7GqVFfIgjvT6FaZ42d0mziZsjnZ DySikvqW5ih3pMDpHRpwPIuIM+CLE5vlQmiiG1dniS4XkwO3tDlLYD0f2K4sxw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dffqw3g6Dz19lx for ; Mon, 29 Dec 2025 02:12:28 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3e9d7 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 29 Dec 2025 02:12:28 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: 4660accec8d3 - stable/14 - Reduce number of external symbols in libllvm, libclang and liblldb List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 4660accec8d3e31b513bcbcf57d3a3a532ea60ca Auto-Submitted: auto-generated Date: Mon, 29 Dec 2025 02:12:28 +0000 Message-Id: <6951e38c.3e9d7.5d081105@gitrepo.freebsd.org> The branch stable/14 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=4660accec8d3e31b513bcbcf57d3a3a532ea60ca commit 4660accec8d3e31b513bcbcf57d3a3a532ea60ca Author: Dimitry Andric AuthorDate: 2025-12-21 21:37:57 +0000 Commit: Dimitry Andric CommitDate: 2025-12-29 02:11:13 +0000 Reduce number of external symbols in libllvm, libclang and liblldb In commit 2e47f35be5dc libllvm, libclang and liblldb were converted into private shared libraries. This allowed clang, lld, lldb, and other llvm tools to be linked against these shared libraries, which makes them smaller and avoids duplication. However, upstream builds the shared libraries using several visibility options, which reduces the number of external symbols, and makes the libraries a bit smaller. On my test machine: * libprivatellvm.so goes from 75643 to 34706 symbols (~54% reduction) * libprivateclang.so goes from 53250 to 33531 symbols (~37% reduction) * libprivatelldb.so goes from 27242 to 18798 symbols (~31% reduction) Note: to get the full benefit, a clean build is required. Incremental builds should still work, but I didn't want to force a full rebuild on everybody. MFC after: 1 week (cherry picked from commit cf1eaaf41cefe7e3aef45f6dab862191a3939ed8) --- lib/clang/libllvm/Makefile | 12 ++++++++++++ lib/clang/llvm.build.mk | 1 + 2 files changed, 13 insertions(+) diff --git a/lib/clang/libllvm/Makefile b/lib/clang/libllvm/Makefile index 2060f5f52c91..9ea816fd4e10 100644 --- a/lib/clang/libllvm/Makefile +++ b/lib/clang/libllvm/Makefile @@ -49,6 +49,8 @@ CFLAGS+= -DBLAKE3_NO_AVX512 -DBLAKE3_NO_AVX2 -DBLAKE3_NO_SSE41 \ CFLAGS+= -DBLAKE3_USE_NEON=0 .endif +CFLAGS+= -DLLVM_BUILD_LLVM_DYLIB + SRCDIR= llvm/lib # Explanation of different SRCS variants below: @@ -2051,6 +2053,16 @@ SRCS_ALL+= ${SRCS_COV} SRCS+= ${GENSRCS} SRCS+= ${SRCS_ALL:O} +# Optimization: for all source files under Target/*/*, use -fvisibility=hidden, +# which reduces the number of external symbols in the resulting shared library. +# This is also what upstream does. +.for src in ${SRCS} +. if "${src:MTarget/*/*}" +CFLAGS.${src:T}+= -fvisibility=hidden +.info ${src}: CFLAGS.${src:T} +. endif +.endfor + llvm/CodeGen/GenVT.inc: ${LLVM_SRCS}/include/llvm/CodeGen/ValueTypes.td ${LLVM_MIN_TBLGEN} -gen-vt \ -I ${LLVM_SRCS}/include -d ${.TARGET}.d -o ${.TARGET} \ diff --git a/lib/clang/llvm.build.mk b/lib/clang/llvm.build.mk index 2520637e2d06..aeee2467e4be 100644 --- a/lib/clang/llvm.build.mk +++ b/lib/clang/llvm.build.mk @@ -122,6 +122,7 @@ LDFLAGS+= -Wl,-m,elf64lriscv_fbsd CXXSTD?= c++17 CXXFLAGS+= -fno-exceptions CXXFLAGS+= -fno-rtti +CXXFLAGS+= -fvisibility-inlines-hidden .if ${.MAKE.OS} == "FreeBSD" || !defined(BOOTSTRAPPING) CXXFLAGS.clang+= -stdlib=libc++ .else From nobody Mon Dec 29 02:12:29 2025 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dffqy03G9z6LVnh for ; Mon, 29 Dec 2025 02:12:30 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dffqx54fWz3jrB for ; Mon, 29 Dec 2025 02:12:29 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1766974349; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=x7b+5SfFPdq+Fmnq+ETzoVdmzmb7qclQjMRebETVJoI=; b=hg4nG7C+8Yx1ySObxaX3csE4aMWwPiXY14P7On8JEu8Yu79eTj+FGQQvFGd+lBoS9hxBga dfBRNrYpu+vY4pm4so0zW9C7EElnr25GSXnONDhYxM0ZOtY8kuU0RoDcEFPY0Jlc9fzK68 TGzO0yUgAr1Nydb/L1jQORPhgazsWBP1+jQC07asqdQUnVUp39HLfLFTzfCfGkCgACllcC JrZHFBGhBc1dG6nGHvtM24aMRywaoSzS6kUT3vOin57TWpVRubMhlrxNOObpl0r7qwcWn8 5D/iNgtvgnROdH82PioCOy1pJF8gpVfpO2jStDXmW/xADg6yRnc+EZrFN6PXLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1766974349; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=x7b+5SfFPdq+Fmnq+ETzoVdmzmb7qclQjMRebETVJoI=; b=PU7rMzejPLvDQNW7xFSGzzVXw4W7EAUq0nW2COA6x/+J7V1iojdSB2trb11asaeMfOxLZW FZsvpHrL0smrw4fOzbFdHd+/SD86blumV2VtCTTKZkp0i1Zg9zsoBVqP1V8mSIad+9QOLs D0d2hbSa93Ddx6d9pcemsn5z5cmwfd8NsOSmi0glKB06mLp2iEvazQih+DXB2g9pP0x8XW cSUfYC+hUSDvpB+sorHWv8QOTIl4EtTmdH/nnzfbVxQFBJltEXz/Q8UBF4l+Kf80ZxCZkZ I7rq7C35BeSBbVrt2UKg0ygFgKC7/DPnLZ5AfUYlskVk4ADUpevNnGdWOfJhBQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1766974349; a=rsa-sha256; cv=none; b=TksedjvyCVn+frBP4RbOeG6fsQthrWBJN//pYn/M7nUNdhrR2nrJniNQuKC3i9EOQpF5Sg UPiGuHM8/v8COr4vgTyPkvQvnxqlKUilpDzUVO2n6LYvvLgnl4UlsmC6nQdzJy17DWIoS6 L1o5zhNINjigfrikBbCUpMsl0I8/5B2eEoYULMuH7LE7xTt7wSyUKAYQK9/d0BgJIEsnKp Y7eQ1V6sWs+GzzgRKrnWzb5EsmlGSepGVI3wX7wm5ftwuf4Z6uBuh+9MVXnnP7dUexuEbx o9e8LmHmgb37tvhwxL6uY2YjIZs1T2xyLxMp3eTiRFhf32z+r55fSQ10lY8kIQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dffqx4RQxz19FJ for ; Mon, 29 Dec 2025 02:12:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3d44b by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 29 Dec 2025 02:12:29 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: ecb101967370 - stable/14 - Remove debug crutch I accidentally left in List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: ecb101967370cb1dedef5c46109011a93eeb1aa1 Auto-Submitted: auto-generated Date: Mon, 29 Dec 2025 02:12:29 +0000 Message-Id: <6951e38d.3d44b.52dedb99@gitrepo.freebsd.org> The branch stable/14 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=ecb101967370cb1dedef5c46109011a93eeb1aa1 commit ecb101967370cb1dedef5c46109011a93eeb1aa1 Author: Dimitry Andric AuthorDate: 2025-12-22 11:49:27 +0000 Commit: Dimitry Andric CommitDate: 2025-12-29 02:11:30 +0000 Remove debug crutch I accidentally left in Fixes: cf1eaaf41cef MFC after: 1 week (cherry picked from commit 3b1126208f44a90c7dc04a87207e54b22d45893c) --- lib/clang/libllvm/Makefile | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/clang/libllvm/Makefile b/lib/clang/libllvm/Makefile index 9ea816fd4e10..835da5545e81 100644 --- a/lib/clang/libllvm/Makefile +++ b/lib/clang/libllvm/Makefile @@ -2059,7 +2059,6 @@ SRCS+= ${SRCS_ALL:O} .for src in ${SRCS} . if "${src:MTarget/*/*}" CFLAGS.${src:T}+= -fvisibility=hidden -.info ${src}: CFLAGS.${src:T} . endif .endfor From nobody Mon Dec 29 02:12:30 2025 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dffqz2FJ6z6LVr0 for ; Mon, 29 Dec 2025 02:12:31 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dffqy5sTHz3jZM for ; Mon, 29 Dec 2025 02:12:30 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1766974350; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=zz7ncSqz9lIHVqwO2/bUdZ7JeP6py88N4gNEPv8SoX8=; b=iqFsk0SRfFfFMpuXSq33LIMhJaCElOiMlUZI3XGsl5JPpikmuUsNbbpAwPhPrcVZrn3RdE F79DSDQr/W9r1jkfiULe5jBBn4ceSBeTk4BXzxkymIjCl16Rs7sBrRAhS7fYFOAqq1lLk+ 7sVBydfClBrlyBYKyF8Cl8ISAxEr/LIBdq6IuzURr8sPd4KkuZ0lQZqNYhI88+w9HJe/Ew wtuqG9i1KNVfxTfxW92OtLKvS1N5Iv2Ed1Q6TY3bHJHMTBdnCdrLU3ZaKYBmW+yWPs/dgB EywI4++HE/peWduEqWFElC6sefgAIDxPr31XmuIwR3ygLzk+zhUo9uIiZFh3EA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1766974350; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=zz7ncSqz9lIHVqwO2/bUdZ7JeP6py88N4gNEPv8SoX8=; b=dG/1UApnCMAjC4eijbKNUKclB8QC/wkGz+Nuf2PIWi455tqF9vBoOZGCl6FaFjr+pQHW+b eivVFGVosHB2wGrMetMPZMtgzO0L/p1fpqyUrWfqNzvanZ3MEStPWMxMKjUFgkxT/pvt1o /bt7u3rwqWiFwCJuV6A44A46YsTBBQiBXY/qBUJJIwN8RQrX3QSFjwNIb6wEhlK8WcgqPm dVnLiG3JAPi7iPFEfi2phTTmvsB9engHdz5CU7frQDykIoSikB7HuVs65CDt3z6jcia8bw mLaV1XMRcDGdaU33LNO5lLlnlNA93A4SFau6LbGjJ6zk72d4OZ3D5HBT+rlq4Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1766974350; a=rsa-sha256; cv=none; b=KTOLdgi8T0XooJjqsUVi8TU1mCqrWqch3idW1XNmLDIhzVfHAH3sqMXwtdD9HbeombLVHQ ddTWtpROK2+49qNwc6yI2XKgxZ43PVpqA+pGNfNFgUdRsMXy8vqzZCk8KespHqZo53juMp GQQrluGmq9epjDR4aiTFci69GjYkMedbmOsJvpsqoO//WmYVJzVQ9k+yk9L7H94pUaIKs6 kAhKyFNGyJtQfA9e0ADVMDQx+UFGebbImvKFDSuqrht1JC/Ye5g8BxDjYbag6XR5hGk9SL AsBjAQ3HLcWt++JPW948NIRvxF9aTB1Lxl4I41547hAx0wFPu0XFAO/+ktMY2w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dffqy5GF2z19Jb for ; Mon, 29 Dec 2025 02:12:30 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3c75a by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 29 Dec 2025 02:12:30 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: 5143ea18e510 - stable/14 - pmcannotate: avoid accessing uninitialized local variables List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 5143ea18e51042811bfb8be2b14e57befbde10fe Auto-Submitted: auto-generated Date: Mon, 29 Dec 2025 02:12:30 +0000 Message-Id: <6951e38e.3c75a.2237d33d@gitrepo.freebsd.org> The branch stable/14 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=5143ea18e51042811bfb8be2b14e57befbde10fe commit 5143ea18e51042811bfb8be2b14e57befbde10fe Author: Dimitry Andric AuthorDate: 2025-12-26 13:37:47 +0000 Commit: Dimitry Andric CommitDate: 2025-12-29 02:11:35 +0000 pmcannotate: avoid accessing uninitialized local variables Initialize `tbfl` and `tofl` to NULL, and check whether they are non-NULL before calling remove(3) on them, to avoid warnings from clang 21 similar to: usr.sbin/pmcannotate/pmcannotate.c:746:3: error: variable 'tbfl' is uninitialized when used here [-Werror,-Wuninitialized] 746 | FATAL(exec, "%s: Impossible to locate the binary file\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 747 | exec); | ~~~~~ usr.sbin/pmcannotate/pmcannotate.c:57:9: note: expanded from macro 'FATAL' 57 | remove(tbfl); \ | ^~~~ usr.sbin/pmcannotate/pmcannotate.c:695:12: note: initialize the variable 'tbfl' to silence this warning 695 | char *tbfl, *tofl, *tmpdir; | ^ | = NULL usr.sbin/pmcannotate/pmcannotate.c:746:3: error: variable 'tofl' is uninitialized when used here [-Werror,-Wuninitialized] 746 | FATAL(exec, "%s: Impossible to locate the binary file\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 747 | exec); | ~~~~~ usr.sbin/pmcannotate/pmcannotate.c:58:9: note: expanded from macro 'FATAL' 58 | remove(tofl); \ | ^~~~ usr.sbin/pmcannotate/pmcannotate.c:695:19: note: initialize the variable 'tofl' to silence this warning 695 | char *tbfl, *tofl, *tmpdir; | ^ | = NULL MFC after: 3 days (cherry picked from commit cd880010c49a5d4ec529f4204d4e88cd27727255) --- usr.sbin/pmcannotate/pmcannotate.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/usr.sbin/pmcannotate/pmcannotate.c b/usr.sbin/pmcannotate/pmcannotate.c index c00e4b2a33bc..9c11018135c3 100644 --- a/usr.sbin/pmcannotate/pmcannotate.c +++ b/usr.sbin/pmcannotate/pmcannotate.c @@ -55,8 +55,10 @@ if ((ptr) != NULL) \ perror(ptr); \ fprintf(stderr, ##x); \ - remove(tbfl); \ - remove(tofl); \ + if (tbfl != NULL) \ + remove(tbfl); \ + if (tofl != NULL) \ + remove(tofl); \ exit(EXIT_FAILURE); \ } while (0) @@ -703,6 +705,8 @@ main(int argc, char *argv[]) uintptr_t tmppc, ostart, oend; int cget, asmsrc; + tbfl = NULL; + tofl = NULL; exec = argv[0]; ofile = NULL; bin = NULL; From nobody Mon Dec 29 02:13:09 2025 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dffrk15DMz6LVtp for ; Mon, 29 Dec 2025 02:13:10 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dffrj4bsDz3l39 for ; Mon, 29 Dec 2025 02:13:09 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1766974389; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=6rdjEyNTRQ2sqZXN5FjWF6v9zxsSpnKE8Pxl6Ro4T5M=; b=BYWC2xj8XlAgCahaBEE3bmF4R84+XxRPJFYbFwNRbPu63uFHbVCULmIEOUQHvJ11ohgQVi Hu1ZtpGDscNNUTcGxIp0uHOXLgHuSbGzlf6Flzp2aQ5C5mxGDTXsUBdWSkSvJxVvS9189h 7H2KolKgaA6+6t/OGDna2Xbqzccyo8qaB/mSp+l4iFfpJLZeKqpJ40KD9Xwb86eJMxRlsD WdzM/vp0vcNfj4sek8Z7XqLY9x9O6vIR1dmabEGSnExIEOIEpgVzHUdMgXKGBsAthEo7Rb iyvVIvuVFQHWqejAyU5rhUG3iCKU1Qken230FI5h6iDNtV/y//q3KQidZGijJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1766974389; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=6rdjEyNTRQ2sqZXN5FjWF6v9zxsSpnKE8Pxl6Ro4T5M=; b=hYckGTXp770cDKsRTVVOZpVtlOh0yF04YTdeK0JYG7ecfiJmPwFP989HeRITHcmRghfZ0z DEQfurUht/+76niEX9Uecv8ukIcN32CZpbAhHYggGxPXrXJwSN2RbL7K300cLNpGGZJlMB RlAoc8XnUSWt0RsoYAGqWwOwgLfKwJ0H4MXZDjQtCPdW9aBjhCVGvlHREVsjTfeObGMbxu hJkDrAZyZ2cNo5kND5vZ9M630LnAipSdgdwwhhKyqH8KfNVDzuPwfOy7Cn/m2FSuczrHfh cjbS+jqvzA99I7tf51UrTbl64bdBvpGXGJum8b/yrbFrzZCa3gVuItUD7Wt16A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1766974389; a=rsa-sha256; cv=none; b=iBJqYQBsa2u1lgUHl2dZxF0gz7H1XzbbrWzGBBDetguoM5PqeiMAR+sff+3Caar1xz2Ui8 TiFZYSXcc4a+inEBWvYpjDePOePGWwTf1E9TtC3ZLj5zCsdZ8zOV/q1nPzbsCU7aiumkYo y65K+igVmMPM/HRu+bKBmS0mgwH5BKkGtInqfMZTJu1DqCHkm1UcXT2YBFN8HlG/y2tKvB jkvEuVgYdcqMVEuT+WbT1iHagbkQ5Oa1cInniqArroduwSwa5yHqjqO7QUlzkBRmFRx4+0 AW/yA0mJGFoYECWJhcJYQu/sN6j1NZ3t1/G4/nNr/O2ZNThFRdQmKaMoSfAf9w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dffrj4CQYz19Jf for ; Mon, 29 Dec 2025 02:13:09 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3f334 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 29 Dec 2025 02:13:09 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: 1f5a55504f09 - stable/13 - cuse(3): annotate cuse_init() to suppress thread safety analysis List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 1f5a55504f09ff4b236dc3d414d30e42b7826336 Auto-Submitted: auto-generated Date: Mon, 29 Dec 2025 02:13:09 +0000 Message-Id: <6951e3b5.3f334.7bfd974a@gitrepo.freebsd.org> The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=1f5a55504f09ff4b236dc3d414d30e42b7826336 commit 1f5a55504f09ff4b236dc3d414d30e42b7826336 Author: Dimitry Andric AuthorDate: 2025-12-25 18:02:27 +0000 Commit: Dimitry Andric CommitDate: 2025-12-29 02:07:14 +0000 cuse(3): annotate cuse_init() to suppress thread safety analysis This avoids warnings from clang 21, similar to: /usr/src/lib/libcuse/cuse_lib.c:111:14: error: writing variable 'h_cuse' requires holding mutex 'm_cuse' exclusively [-Werror,-Wthread-safety-analysis] 111 | TAILQ_INIT(&h_cuse); | ^ /usr/src/lib/libcuse/cuse_lib.c:111:14: error: writing variable 'h_cuse' requires holding mutex 'm_cuse' exclusively [-Werror,-Wthread-safety-analysis] /usr/src/lib/libcuse/cuse_lib.c:112:14: error: writing variable 'h_cuse_entered' requires holding mutex 'm_cuse' exclusively [-Werror,-Wthread-safety-analysis] 112 | TAILQ_INIT(&h_cuse_entered); | ^ /usr/src/lib/libcuse/cuse_lib.c:112:14: error: writing variable 'h_cuse_entered' requires holding mutex 'm_cuse' exclusively [-Werror,-Wthread-safety-analysis] MFC after: 3 days (cherry picked from commit 5629b5cf79934e0b94ddbbd93b7756f74fe4050a) --- lib/libcuse/cuse_lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libcuse/cuse_lib.c b/lib/libcuse/cuse_lib.c index 3f040d0eeeda..48c72258106d 100644 --- a/lib/libcuse/cuse_lib.c +++ b/lib/libcuse/cuse_lib.c @@ -93,7 +93,7 @@ static struct cuse_vm_allocation a_cuse[CUSE_ALLOC_UNIT_MAX] pthread_mutex_unlock(&m_cuse) int -cuse_init(void) +cuse_init(void) __no_lock_analysis { pthread_mutexattr_t attr; From nobody Mon Dec 29 02:13:10 2025 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dffrk6wcxz6LVtq for ; Mon, 29 Dec 2025 02:13:10 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dffrk5JKCz3l7g for ; Mon, 29 Dec 2025 02:13:10 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1766974390; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=t8CMkBSHpKTl2aqC0G/x4gvIsNTfle0F4qvcO85sFvA=; b=xjni197JQ+vbgSnw85C2zk2Oq3ZTF69hYoQvNELa56KwOHiZgc3DIOQqWv5WLDvVtvv7gT AbDJvQmuskI3q7GCkUvLuyJuLkaoV/qcuMNCay3bTSHr8DGEH8vcRRaQH/727vSjLWsqh6 xsFc2ECNix6s7QuD/YOW92+Ft1D7BLk8FKAF0E+4+SOPJXHBeLVNfkLontRteFA1BM1NLD ZD8Tp8OJ5BzkqJt90Aa7kVXiCAb7DwNSHftC3UYlCw848k3s4oFsOEWNM6ytja333wyF6M fRx6fDdY0wvOvgcWV8f2LPTcvf24ol6KJ96Lq45C/uMn+fLULmq3SrPBwfUnNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1766974390; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=t8CMkBSHpKTl2aqC0G/x4gvIsNTfle0F4qvcO85sFvA=; b=vmoupjhewxUfMNbrtBHbgtxX6Zy0KZDSmP9ZYRM1U1NsvVvlGRejOKDwYpwlakEJ9S41R8 zbwxVfr4gcROL45q2MjIVhCwfyV61pTiS1Il6RleMDYRdQm12hqM+Y5iih/ijm7Cndya08 9aWBKg05xGF/M8zUSqt+h9PopxJrVW4z1rdxjFsBL1I7a9SS5rzH1uuPkTaBofUBNZKlO7 gOvvp1rM78GsB+tmGE7JwOgzjnm3MIkFLd/dM0nUfc+bY8f/CbpFQWukG37nLCVvaUOw8O BXBXV6bqwsHnc29QdvQIwHCiwS7/ysbuMFLRjqrkBuwg1WtCL+QGjFN5+VKhKw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1766974390; a=rsa-sha256; cv=none; b=we0gy1Z6M9pgiRDBEm+d1yKVfIx63ZbtEHBw4obKKip9W6Vbqz38zTH2Ou4Fb14B9sdqsY BWq/NGInO7nXdZ9cJ6qRxBmXNknnFUJ9HwbgbZxCaGkbgIjNy69EcgCju5/dTSb/R0Ny9m Buf/WYmqNkznv10fbs5IXN6M9UAcK5LlNWsU0Bi7IM81tek2qOksxyYU1fm09DM6EFlwS9 I0AnwkdmXW6CgUdZGXpXb7w0HUzdKenH7cFWus4OsCPCEFEHjxu5QQB9/DVc64ooGUBANg ztSdfuutX674Wo1V/IbKE58sb9qjEldhnBaH8uwoNRBWVX73tb04/VIJBKLGrw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dffrk4m95z19m4 for ; Mon, 29 Dec 2025 02:13:10 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3e9db by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 29 Dec 2025 02:13:10 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: d56ebf78c5a4 - stable/13 - Reduce number of external symbols in libllvm, libclang and liblldb List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: d56ebf78c5a4a6fdc1fd79666d9bdfa55326bbbf Auto-Submitted: auto-generated Date: Mon, 29 Dec 2025 02:13:10 +0000 Message-Id: <6951e3b6.3e9db.52d677b@gitrepo.freebsd.org> The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=d56ebf78c5a4a6fdc1fd79666d9bdfa55326bbbf commit d56ebf78c5a4a6fdc1fd79666d9bdfa55326bbbf Author: Dimitry Andric AuthorDate: 2025-12-21 21:37:57 +0000 Commit: Dimitry Andric CommitDate: 2025-12-29 02:11:42 +0000 Reduce number of external symbols in libllvm, libclang and liblldb In commit 2e47f35be5dc libllvm, libclang and liblldb were converted into private shared libraries. This allowed clang, lld, lldb, and other llvm tools to be linked against these shared libraries, which makes them smaller and avoids duplication. However, upstream builds the shared libraries using several visibility options, which reduces the number of external symbols, and makes the libraries a bit smaller. On my test machine: * libprivatellvm.so goes from 75643 to 34706 symbols (~54% reduction) * libprivateclang.so goes from 53250 to 33531 symbols (~37% reduction) * libprivatelldb.so goes from 27242 to 18798 symbols (~31% reduction) Note: to get the full benefit, a clean build is required. Incremental builds should still work, but I didn't want to force a full rebuild on everybody. MFC after: 1 week (cherry picked from commit cf1eaaf41cefe7e3aef45f6dab862191a3939ed8) --- lib/clang/libllvm/Makefile | 12 ++++++++++++ lib/clang/llvm.build.mk | 1 + 2 files changed, 13 insertions(+) diff --git a/lib/clang/libllvm/Makefile b/lib/clang/libllvm/Makefile index 2060f5f52c91..9ea816fd4e10 100644 --- a/lib/clang/libllvm/Makefile +++ b/lib/clang/libllvm/Makefile @@ -49,6 +49,8 @@ CFLAGS+= -DBLAKE3_NO_AVX512 -DBLAKE3_NO_AVX2 -DBLAKE3_NO_SSE41 \ CFLAGS+= -DBLAKE3_USE_NEON=0 .endif +CFLAGS+= -DLLVM_BUILD_LLVM_DYLIB + SRCDIR= llvm/lib # Explanation of different SRCS variants below: @@ -2051,6 +2053,16 @@ SRCS_ALL+= ${SRCS_COV} SRCS+= ${GENSRCS} SRCS+= ${SRCS_ALL:O} +# Optimization: for all source files under Target/*/*, use -fvisibility=hidden, +# which reduces the number of external symbols in the resulting shared library. +# This is also what upstream does. +.for src in ${SRCS} +. if "${src:MTarget/*/*}" +CFLAGS.${src:T}+= -fvisibility=hidden +.info ${src}: CFLAGS.${src:T} +. endif +.endfor + llvm/CodeGen/GenVT.inc: ${LLVM_SRCS}/include/llvm/CodeGen/ValueTypes.td ${LLVM_MIN_TBLGEN} -gen-vt \ -I ${LLVM_SRCS}/include -d ${.TARGET}.d -o ${.TARGET} \ diff --git a/lib/clang/llvm.build.mk b/lib/clang/llvm.build.mk index 2d8d9a2b0fcb..af7e501c007d 100644 --- a/lib/clang/llvm.build.mk +++ b/lib/clang/llvm.build.mk @@ -124,6 +124,7 @@ LDFLAGS+= -Wl,-m,elf64lriscv_fbsd CXXSTD?= c++17 CXXFLAGS+= -fno-exceptions CXXFLAGS+= -fno-rtti +CXXFLAGS+= -fvisibility-inlines-hidden .if ${.MAKE.OS} == "FreeBSD" || !defined(BOOTSTRAPPING) CXXFLAGS.clang+= -stdlib=libc++ .else From nobody Mon Dec 29 02:13:12 2025 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dffrn1kGjz6LW7l for ; Mon, 29 Dec 2025 02:13:13 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dffrm6lvhz3l5v for ; Mon, 29 Dec 2025 02:13:12 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1766974393; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=aCQa5a/+nsTmv9Mdszu5lbNsQae1kqZuL5E/7fXpBTA=; b=G+Y27S5qF5VYb2tQMQK2w4wfA5hCcOtBnvkqty3e7c3RXlC59CgQ4EIMieoM4nphPudNou HvK7u2xpxuiVT4rFoiFJY8JabxRT32+3ICEoMNR2mHX9L0x218h/hqPKvfao9JiGYdw97y 3npX2h0Cx1juTd4Kvs5SGfDa9kDpLBhXLeaHTl3g2S1NdOwzhUfaaOjHuyUx2kX1spSdh3 7QTC+ay8+sZa6nqu+mGGAEnSHdqk+BZYXJB0vfqTR/NbaMHXH2wvWjcGhamE6vjKu27lRo ZtiPJL0GZ5itbcofWVkcCHurBt7PMKbCu+42Bd4rHoGVePdQn7xByRuDzCUe6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1766974392; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=aCQa5a/+nsTmv9Mdszu5lbNsQae1kqZuL5E/7fXpBTA=; b=t2b/inryg9spMwgOIW9/aQfZwJYSu4NwEDjDiJdx7Jo6iOsWB5Y7T9667Ktj9AILXw3jgu IaeApvajD67QhXgTcvjeyzt89n8WNxnhJPy9CH7IGLuIJnyGRAjO7vzSGdq/z2nhzN/Cpj NR52CGf5MPLdt7yxv5QtNjRZRM5s8lSCPutZ7deyCqb+LzmZHYIygGr6+bk/AmD4/VYvEQ LZ5rWHUNImWsssbQRNKcTIHCOwybaLyiWP9GXUk+9SkBQIbl8Mtq2I5j7OIAHBY3KEpQNr 55s7nDK5aZdVAlJLDuzwpZlvGxF+kdHw0v2x1FoeXZYgQld3lwDSbpyr0AUteA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1766974392; a=rsa-sha256; cv=none; b=wul9jMhERJzjfvKymwo5pVP0bi1PgFex8zwIp/YTbNa+VKYN+eQB+sBA0uF7spKJ3/vdke k5cS+MK/nfPm7hz4jqNeTfM/oyPnr3Cz3z+dBoxctBynIv048csiV2zLwMAixR8/UoTAR9 D/KTKxu4nXyaz4qQWWhixbNR3dnSABt015zjyY1lUFHMHTB4mkweuX3DgnC8ca/IArBj0n T29VfzcINTxXyjc5ccYXwT95ToQeM8TRz3KkPHc6/d1GjXQssKQ63VUMbdl3WNKEuMOJ5z g98fadu8fqtj8ofTfBlmOAMDySMlFU0d9rW47lTPSJIXQnPFab9TwWadtM0pKw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dffrm60t4z19m5 for ; Mon, 29 Dec 2025 02:13:12 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3d4bc by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 29 Dec 2025 02:13:12 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: 14ab9445f714 - stable/13 - pmcannotate: avoid accessing uninitialized local variables List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 14ab9445f71454c21620f9a7f69352bea1349779 Auto-Submitted: auto-generated Date: Mon, 29 Dec 2025 02:13:12 +0000 Message-Id: <6951e3b8.3d4bc.7bfae91a@gitrepo.freebsd.org> The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=14ab9445f71454c21620f9a7f69352bea1349779 commit 14ab9445f71454c21620f9a7f69352bea1349779 Author: Dimitry Andric AuthorDate: 2025-12-26 13:37:47 +0000 Commit: Dimitry Andric CommitDate: 2025-12-29 02:11:58 +0000 pmcannotate: avoid accessing uninitialized local variables Initialize `tbfl` and `tofl` to NULL, and check whether they are non-NULL before calling remove(3) on them, to avoid warnings from clang 21 similar to: usr.sbin/pmcannotate/pmcannotate.c:746:3: error: variable 'tbfl' is uninitialized when used here [-Werror,-Wuninitialized] 746 | FATAL(exec, "%s: Impossible to locate the binary file\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 747 | exec); | ~~~~~ usr.sbin/pmcannotate/pmcannotate.c:57:9: note: expanded from macro 'FATAL' 57 | remove(tbfl); \ | ^~~~ usr.sbin/pmcannotate/pmcannotate.c:695:12: note: initialize the variable 'tbfl' to silence this warning 695 | char *tbfl, *tofl, *tmpdir; | ^ | = NULL usr.sbin/pmcannotate/pmcannotate.c:746:3: error: variable 'tofl' is uninitialized when used here [-Werror,-Wuninitialized] 746 | FATAL(exec, "%s: Impossible to locate the binary file\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 747 | exec); | ~~~~~ usr.sbin/pmcannotate/pmcannotate.c:58:9: note: expanded from macro 'FATAL' 58 | remove(tofl); \ | ^~~~ usr.sbin/pmcannotate/pmcannotate.c:695:19: note: initialize the variable 'tofl' to silence this warning 695 | char *tbfl, *tofl, *tmpdir; | ^ | = NULL MFC after: 3 days (cherry picked from commit cd880010c49a5d4ec529f4204d4e88cd27727255) --- usr.sbin/pmcannotate/pmcannotate.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/usr.sbin/pmcannotate/pmcannotate.c b/usr.sbin/pmcannotate/pmcannotate.c index 32138aa6c3a7..0044f6aa7d9e 100644 --- a/usr.sbin/pmcannotate/pmcannotate.c +++ b/usr.sbin/pmcannotate/pmcannotate.c @@ -54,8 +54,10 @@ if ((ptr) != NULL) \ perror(ptr); \ fprintf(stderr, ##x); \ - remove(tbfl); \ - remove(tofl); \ + if (tbfl != NULL) \ + remove(tbfl); \ + if (tofl != NULL) \ + remove(tofl); \ exit(EXIT_FAILURE); \ } while (0) @@ -676,6 +678,8 @@ main(int argc, char *argv[]) uintptr_t tmppc, ostart, oend; int cget, asmsrc; + tbfl = NULL; + tofl = NULL; exec = argv[0]; ofile = NULL; bin = NULL; From nobody Mon Dec 29 02:13:11 2025 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dffrm0nhpz6LW7k for ; Mon, 29 Dec 2025 02:13:12 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dffrl5wt6z3lJK for ; Mon, 29 Dec 2025 02:13:11 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1766974391; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=8Vyt3Lx0haNtr4gOo3QwDmiPgiEiVUd40SBnljhau20=; b=AvKM/wWJzSMA95Hn5gQaZyHi6743hM4t1lEo0tiGEX1GDjX0AoNPtUaVP6RFL8cecfxjl7 e/1bml4nchas6DcoHyAEWaYE4B8xVJdZGSTxZ3CGlYZ4yz1H4QDZSb93JyWbiu4dV6hi0Y PZDTLnxfPt0P3pvXX+9Moe9DitCAQSME006AuYZQbo9PKyej97Zq8Mk2YD5HnO3fEugPn4 5bXwWAxcPvNhCsOILIpVySPMN65z1q5Ar59V4mJwYUCLvnHEF8Be4rCET2pOyWdeuCbRBN ITPHPLAhaM9wvF44kgOczRk9UNoslSepxSv8BMCxAT3UUSsFFeGRi4ERxg4Crg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1766974391; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=8Vyt3Lx0haNtr4gOo3QwDmiPgiEiVUd40SBnljhau20=; b=HlTVRHxHKv4AjAmAM8zuvQajJnbUuhi7N9h9t7YPRNJliSP6jFbaTq3XWugo0hV9m/Gnum aYdRFFxg6jEThY7/qDgfPiYmLAH78bHES6moo2eAAqJq/DVYHvNo0PWW6/ZEJK5G3wZz+h 5epARnXVysMNScJJOLgjZggB6U/GlsyuUyxud4n585PW/gm889TzZa4/K9Uj5eElALpX0m o2SVO4Ltcb06KOHVrOgXsxX2JDqzQG3P01ACvHHgJlbjLpJiNU48CmP/OgpTcKpS+gNP8Z XM1K7Qcs/h+iHBS0h7wzEFgiIUGILEzX4AqnUGMrrT0YIQjHjE3poQb6CCRCvg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1766974391; a=rsa-sha256; cv=none; b=fEtILaLLfpJX+ai54jP4wCSUDGlgk0guvosoPLz12ejq4SxfsD/sJNx/w3PieI71eszO01 THBI9C+uHq3NLDw/mmiVZRGj+ez4PgivvT8Alx21bo7gAKS5vfX3/CpZ2HFO8ZgJW7Uvuj SBDOtv/I4Ad1NHKjy2jxUKedX+fX6fpYj+mj1iNu7K+pnCPB4GehKB0/HAnc8/l3wrbaky X4GIvsRbvXE8KU2YeOydD1jIe1ElYzMmAlzeqTXGmZ1qpN1ASKU06DmEOrsSftz4jhCxdk GG8tpXTv6USeWqbQsVOtvxvZSyBRiF9jk3UPGcBpyGfNvNmi7nkUmImGmiE+9A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dffrl5R3Vz19Jg for ; Mon, 29 Dec 2025 02:13:11 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3c853 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 29 Dec 2025 02:13:11 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: 61383038bc77 - stable/13 - Remove debug crutch I accidentally left in List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 61383038bc7709d9262bfc2e9f65e3d6837650c1 Auto-Submitted: auto-generated Date: Mon, 29 Dec 2025 02:13:11 +0000 Message-Id: <6951e3b7.3c853.22130dac@gitrepo.freebsd.org> The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=61383038bc7709d9262bfc2e9f65e3d6837650c1 commit 61383038bc7709d9262bfc2e9f65e3d6837650c1 Author: Dimitry Andric AuthorDate: 2025-12-22 11:49:27 +0000 Commit: Dimitry Andric CommitDate: 2025-12-29 02:11:53 +0000 Remove debug crutch I accidentally left in Fixes: cf1eaaf41cef MFC after: 1 week (cherry picked from commit 3b1126208f44a90c7dc04a87207e54b22d45893c) --- lib/clang/libllvm/Makefile | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/clang/libllvm/Makefile b/lib/clang/libllvm/Makefile index 9ea816fd4e10..835da5545e81 100644 --- a/lib/clang/libllvm/Makefile +++ b/lib/clang/libllvm/Makefile @@ -2059,7 +2059,6 @@ SRCS+= ${SRCS_ALL:O} .for src in ${SRCS} . if "${src:MTarget/*/*}" CFLAGS.${src:T}+= -fvisibility=hidden -.info ${src}: CFLAGS.${src:T} . endif .endfor From nobody Mon Dec 29 03:28:04 2025 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dfhW90NVZz6LbNN for ; Mon, 29 Dec 2025 03:28:05 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dfhW859T1z3v16 for ; Mon, 29 Dec 2025 03:28:04 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1766978884; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=xo6n0LX4wbqmlDXP70vtnZr3orqfptmiWGSyKG7qs+k=; b=NKTLjf/x2LvhGLZPVa1NGYDEZSPEDZ6VK/JD/YFQv3YpYlZPdy9eHAXedpK5+rthS7lGFS M96XLwOs63IDlG0ZA+ZWzuaEKH0Ne7nTzJIQTpK4EBlO+iSjvcukfOakPcU9EevCoUcy87 87OZdXQJ4pJI1egrcIBDQoRk6Te07FzFqzF7TUvd+7TqzFB65vKL3PV/SwiOYQBhQyPRlg 3S/xTUORPEFT45F8CT4O2HXioc4AUBnTGBOCfz3/zt7wAbota9BD5yz5P9qoIZxyQuEoDe N+m5R2uLG+ExHEQ+PbNbs8SfJyrjmz/GejXOQUIN67kZWD6+IHRpZh0tE3qbrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1766978884; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=xo6n0LX4wbqmlDXP70vtnZr3orqfptmiWGSyKG7qs+k=; b=oxWyhDfYB+Hyn2xXZ2BVIKdWG7a6Z2ZRxWyHCl2fdfSxG7V+JjOySPWl3uQW5fp1/R9JDk 1EO9tCIaUnNCcHHb2h+aqcU3cM/HYq5GrPuqAnsum9yrS0VvVVwtCmBO9CnrErM1BPAbuN +VzjA5wCGRnt6iUQNpYQZbAa/GqnrA68kcC9ARX2ogr6AEK4EKVomjBWdJNB6+rvPCEQmX hmhwEQsKE8lw7SqRTMoR3xHY81xIbhjw8GmrLSBwv+NupZes1bLEFSVky2Q+QwYCHqDxYi GKS7chLovppgvTIWMPzm4CmeWJwmHf8AwwGRJroqexRglJ7yxVVN827pTfvlaQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1766978884; a=rsa-sha256; cv=none; b=gz/w2gq6HUcE4BiE7CE45W+Kl86oSXQf4UC5N3Nc8ZIPaVDt5fl94u3MxvIo9nnNaFy2/E cXc6r/rIftEB2MtgYQ1klNNtkWMmZPcA0WqV4fyFQ3xniJhnaMBigXTYoGRKDo3tdxBDqI H73BPj/J/NgoBVCrWIK0BadJkalpBVZpDyK1fT/1PM4UYHv38+PAY+eCb6+RXhoW7i0shh y4dt/PfyGNCZg8o1bhJ68/rwYGzQdOgZ7KTUQYfIhR79hgNB8Abwe5yyJ358CDSlDBwL3C qSa9yhCXFI1lmUzE9A7tUMKYh+QupzyhSnTEYeNQSWFLiNot4tAvU9All4MKYQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dfhW84F02z1BmR for ; Mon, 29 Dec 2025 03:28:04 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id c433 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 29 Dec 2025 03:28:04 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Cc: Andrew Jorgensen From: Xin LI Subject: git: d1f275606d9f - stable/14 - GCE: Add TARGET and FS to image family List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: delphij X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: d1f275606d9fa2560606c4b6e515bc35d82699fc Auto-Submitted: auto-generated Date: Mon, 29 Dec 2025 03:28:04 +0000 Message-Id: <6951f544.c433.1d7d12c5@gitrepo.freebsd.org> The branch stable/14 has been updated by delphij: URL: https://cgit.FreeBSD.org/src/commit/?id=d1f275606d9fa2560606c4b6e515bc35d82699fc commit d1f275606d9fa2560606c4b6e515bc35d82699fc Author: Andrew Jorgensen AuthorDate: 2025-11-14 18:06:16 +0000 Commit: Xin LI CommitDate: 2025-12-29 03:22:18 +0000 GCE: Add TARGET and FS to image family GCE image family is meant to be unique per set of image characteristics so that a user can create instances using the image family instead of the image name to reliably get a similar image with updated software, but no other changes. Without this change, the instances create API would select the most recent non-deprecated image matching the name, regardless of architecture or filesystem. (cherry picked from commit fc83e6c5e1f20087314dc52b63e485db87a98b86) --- release/Makefile.gce | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/release/Makefile.gce b/release/Makefile.gce index 51dc5e3436e2..f67cc5da8d82 100644 --- a/release/Makefile.gce +++ b/release/Makefile.gce @@ -18,7 +18,7 @@ GCE_BUCKET?= GCE_LICENSE?= .if !defined(GCE_FAMILY) || empty(GCE_FAMILY) -GCE_FAMILY= ${TYPE:tl}-${REVISION:S,.,-,} +GCE_FAMILY= ${TYPE:tl}-${REVISION:S,.,-,}-${TARGET} .endif .if ${BRANCH} == "STABLE" || ${BRANCH} == "CURRENT" || ${BRANCH} == "PRERELEASE" @@ -76,7 +76,7 @@ gce-do-upload-${_FS}: /usr/local/bin/gsutil cp ${.OBJDIR}/${GCE_TARGET_${_FS}}.tar.gz \ gs://${GCE_BUCKET}/ /usr/local/bin/gcloud compute images create ${GCE_TARGET_${_FS}} \ - --family=${GCE_FAMILY}${GCE_FAMILY_SUFX} ${GCE_LICENSE} \ + --family=${GCE_FAMILY}-${_FS}${GCE_FAMILY_SUFX} ${GCE_LICENSE} \ --guest-os-features=GVNIC,UEFI_COMPATIBLE \ --source-uri gs://${GCE_BUCKET}/${GCE_TARGET_${_FS}}.tar.gz touch ${.OBJDIR}/${.TARGET} From nobody Mon Dec 29 03:28:05 2025 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dfhWB0JDFz6LbNQ for ; Mon, 29 Dec 2025 03:28:06 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dfhW95JYLz3vDX for ; Mon, 29 Dec 2025 03:28:05 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1766978885; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=WM408knut/Im0/FG7TH7niLVgmTDI8llawCovFzL/LY=; b=xey4vRi4JJ2SVVMQ4j77q9tkqAuZiwkNeqxq3LySqSIz9ie7LhRWbMcLmIA88Gy+rA968l cEYw0u4jScQw+uII91FnvxvRbbiAOa3KTjMsSa5frSV1hlX7FxEmrpvD3MEDKRgY/iAx1b uhuvwdQFPS/MnbMUDrfDl4yHfVAtt7RM10jr51BiA1PTz2Se7aVo1HzqDq4+AFBLK7O6+O qhVWA28YS+sNE+qqd5k3WN9GKDDMDdQOsRAD135pw1hcO4YScDPY/RjEF/Ea9lHCjxC12W ziDeKpIl9w/yKrJfDsa7l8PrPdvzelatvsYxJ18BIJVUl4hY2HkxypuMBciDvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1766978885; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=WM408knut/Im0/FG7TH7niLVgmTDI8llawCovFzL/LY=; b=vCp8h3yKsce1SH5+R7O37UnIks0ShSEgqb/ASjU6Oqj4yztJkaZ8a+h9sQgelCZCJNn+LY qbYwE06Q7WS8lrhuYHIXS5OXguDr1DJsXwI1fMRl+6CKdKyjDVW2X96ZGuV837cYCTKpTZ svLdHrUvvXlPIs90pxRxp1kIcPjg9pHV5c7HDYvXdFSpEpO0DiVGq8CeHCsiVc3017OLqb JkBeFKrjYdR3pd8qKAS6HBQaJAPMfOidlzg2KMY0PaPL8XzEuPb1rEtkzSbASdvB/pIG4Y LyX73+SpA+Bir6Gima2p8/+Bu7eS6kp9EraF9SG/CmWmR4+KVqo1njl2ZnAMdA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1766978885; a=rsa-sha256; cv=none; b=XZN8nsJjOTs+QDEx13a8Y24fDAJO3CpDJi0w1GG0XcpEPlhuvRkPgysSdvaE2cpbx0tLrO QoZrkKIWm7fjVJWzYIn+acOb+AMyuHObbYFXEjQWP9CByxSuM+gQ0rvhyIWiXhvCwdFbya vcU9gSTaMCm/R8B2iTv8DW1b7BBpUbDtZXNj2LpXrqYX2YTm8/Q86bV9/8Yos8M+kUetfJ oGH8N2xwGaz1W3bnlWQ43JjPIhVZ/7ZICToEEVFzgtYm1za5HqQ9tz6ekeZL4x3jqttAP8 7Wvzm9msrh+bpfOk9tXgy2lALhh57oDe0nOSluWXvyBB6U8SpvajTE8Iy6JaSA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dfhW94YZ2z1C6v for ; Mon, 29 Dec 2025 03:28:05 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id c5b3 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 29 Dec 2025 03:28:05 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Cc: Andrew Jorgensen From: Xin LI Subject: git: 86b5e5bb7814 - stable/14 - GCE: Specify the architecture of images List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: delphij X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 86b5e5bb7814f4f972dc29076969d06cd76567cb Auto-Submitted: auto-generated Date: Mon, 29 Dec 2025 03:28:05 +0000 Message-Id: <6951f545.c5b3.4ff315ca@gitrepo.freebsd.org> The branch stable/14 has been updated by delphij: URL: https://cgit.FreeBSD.org/src/commit/?id=86b5e5bb7814f4f972dc29076969d06cd76567cb commit 86b5e5bb7814f4f972dc29076969d06cd76567cb Author: Andrew Jorgensen AuthorDate: 2025-11-14 18:06:52 +0000 Commit: Xin LI CommitDate: 2025-12-29 03:22:19 +0000 GCE: Specify the architecture of images Without a specified architecture, a user can attempt to create an arm64 instance with an amd64 image or vice versa. With the change the API will prevent that mismatch. (cherry picked from commit 0a8ecca4e3156bcd4ebbfcb24d968e67a3a09434) --- release/Makefile.gce | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/release/Makefile.gce b/release/Makefile.gce index f67cc5da8d82..31bed380f56e 100644 --- a/release/Makefile.gce +++ b/release/Makefile.gce @@ -17,6 +17,14 @@ CLEANFILES+= ${GCE_UPLOAD_TGTS} GCE_BUCKET?= GCE_LICENSE?= +.if ${TARGET_ARCH} == "amd64" +GCE_ARCH= X86_64 +.elif ${TARGET_ARCH} == "aarch64" +GCE_ARCH= ARM64 +.else +.error "Unsupported TARGET_ARCH for GCE: ${TARGET_ARCH}. Must be amd64 or aarch64." +.endif + .if !defined(GCE_FAMILY) || empty(GCE_FAMILY) GCE_FAMILY= ${TYPE:tl}-${REVISION:S,.,-,}-${TARGET} .endif @@ -76,6 +84,7 @@ gce-do-upload-${_FS}: /usr/local/bin/gsutil cp ${.OBJDIR}/${GCE_TARGET_${_FS}}.tar.gz \ gs://${GCE_BUCKET}/ /usr/local/bin/gcloud compute images create ${GCE_TARGET_${_FS}} \ + --architecture=${GCE_ARCH} \ --family=${GCE_FAMILY}-${_FS}${GCE_FAMILY_SUFX} ${GCE_LICENSE} \ --guest-os-features=GVNIC,UEFI_COMPATIBLE \ --source-uri gs://${GCE_BUCKET}/${GCE_TARGET_${_FS}}.tar.gz From nobody Mon Dec 29 03:28:06 2025 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dfhWB72F0z6LbKb for ; Mon, 29 Dec 2025 03:28:06 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dfhWB5xXhz3vDZ for ; Mon, 29 Dec 2025 03:28:06 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1766978886; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=sfrb49CbfL0EBNYWQLiniqwbkn3admbbnX1PIJrZV+c=; b=RLgJJE28SZ8BJJsC3g9qeeCV6/uZRwB0hb5Hyp4l854x2esGs5zFzuyTzfp1VXpZgzn4x4 irXUPGXL33C6wdaoEliyhR20FdasL2LQZICCkXyVYYiAjzX+D2A1EjRBLFggGy2XBueDSf Qm6Xce8d8ygVWHJqm3KlVnps32lx5oblNcqhfC1p2Tqytku+85kSNS2T9HegrvHIeq9cCh TwhIba6NweV3LGFvSV03Avg1IbP3xLbbhHUWvfjY5Xuhd+xHqhY7UHq5EA9BK4uqqpsQen Bw3H9PoZDtUrRpaX+fPoesGw8KeH/wz3oXUHhwAZrIFKDkjefE+5QjxFUbNp/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1766978886; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=sfrb49CbfL0EBNYWQLiniqwbkn3admbbnX1PIJrZV+c=; b=NzLiGzBOhEnwBD6Vs+X42wmVbNOzVYCfRM049c2Ok4rZ0xbuApbLNTUZ7i0TgclBj14sW3 ldXVdNVnbr273TE2QAlgXWghtjNxd2ZqNVZlIBKyoj7AOMg8JN9Blx2YxpDXfMNwq0Zx25 VrarwkctvjH8KReX63dB5yFYdhyof4haiKPvKIbfQzKCW7nMElL8/iboCO1bKaXCXgOtAp uUrq5TrFyXdoWdkj1NgZhYy0GQOh87cDpvseyVvPUz0Sskatjw7+dgGfLRxzu74q9xaep9 ltUo8Pj3sH8HjKuI9f9PHP13HjuXKK2/bJZ21cT8lpFddaOxu5c3JD/ptvDPDQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1766978886; a=rsa-sha256; cv=none; b=XkxcDXvZCzsK0U50kZsM5P2t72nzxxpiAZmY7uGq006HDWFp0+BksISH1iLFOpP1AgkvgN FXCUet+gWKQBn+Z3iw88z7u1tMn6Muxv2JFavJPY1KodC4AF0C1f/U7GnzUinhYOYpY+I/ QvHGUPfOTJOjK9mP7sRzIdwTpvcP3piliG3Nmg+/KgfM+GrS/V7xboLlAzNDC7rENieCUF YmF1v7Seswv5Z/B2kUTMfv8K0aTcbMh3qWwinRd2cncw6mU4OcyXfTtn1CD72lJx6oKmIZ KaCnAoNyxrWLJCmlI4kHKpll/NUjksjKImATi0qBIei6YIWPaT1xVqNeBKMfIQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dfhWB5HPLz1CbB for ; Mon, 29 Dec 2025 03:28:06 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id d218 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 29 Dec 2025 03:28:06 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Cc: Colin Percival From: Xin LI Subject: git: 92d80c231d0a - stable/14 - GCE: Don't .error on unsupported targets List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: delphij X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 92d80c231d0a0f53daf6224037181d648b06b632 Auto-Submitted: auto-generated Date: Mon, 29 Dec 2025 03:28:06 +0000 Message-Id: <6951f546.d218.17480e44@gitrepo.freebsd.org> The branch stable/14 has been updated by delphij: URL: https://cgit.FreeBSD.org/src/commit/?id=92d80c231d0a0f53daf6224037181d648b06b632 commit 92d80c231d0a0f53daf6224037181d648b06b632 Author: Colin Percival AuthorDate: 2025-11-15 15:02:27 +0000 Commit: Xin LI CommitDate: 2025-12-29 03:22:19 +0000 GCE: Don't .error on unsupported targets We ingest Makefile.gce even when we're not trying to create GCE images so we don't want to .error here. Instead, set GCE_ARCH to a dummy value which should make the problem clear to anyone who attempts to create GCE images on an unsupported architecture. Reported by: Jenkins Fixes: 0a8ecca4e315 ("GCE: Specify the architecture of images") (cherry picked from commit 787d09753f70bb382a7cbfba742a612fa54069e6) --- release/Makefile.gce | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/release/Makefile.gce b/release/Makefile.gce index 31bed380f56e..e492aef11ba2 100644 --- a/release/Makefile.gce +++ b/release/Makefile.gce @@ -22,7 +22,7 @@ GCE_ARCH= X86_64 .elif ${TARGET_ARCH} == "aarch64" GCE_ARCH= ARM64 .else -.error "Unsupported TARGET_ARCH for GCE: ${TARGET_ARCH}. Must be amd64 or aarch64." +GCE_ARCH= UNSUPPORTED_IN_GCE .endif .if !defined(GCE_FAMILY) || empty(GCE_FAMILY) From nobody Mon Dec 29 09:22:50 2025 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dfrNY4JBsz6M1P6; Mon, 29 Dec 2025 09:22:53 +0000 (UTC) (envelope-from kp@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dfrNY3SQ3z3CXv; Mon, 29 Dec 2025 09:22:53 +0000 (UTC) (envelope-from kp@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767000173; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Tn/lzNnhy+MroI03FXzk9D3uxb52fLGQg81ArSZ7NNo=; b=inW9kBX13ZBeDlpSRpzZXqgqLOR7G1tdJlH97/bxbPGL78jDOSvusfpT0Ha0geVXNiz9BI NNer6MoaI3UN4oKjReztHGsIXNIqwNLjjYHsjdVjuTVF34IgYXh2hPLW7b4vIuv7jo9VOp R1tmKg301iTasJTF3padVG+iJfpRAFiWoBqgDXzdaUk60om3jshrHkE+LtkNWxdqSZZpOH GDt1WMDkvKMk6OGm9ttWXLI6Obwh1yxnUfvdNgRFzrJYpIWMEue+iZk8B5LDmmgAnsm0ED gXLSwushDYO2d3Sh20Q36rhzml9UKB2HFysnbA7IoqUX/aYXDBLLtA0CQgSZFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767000173; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Tn/lzNnhy+MroI03FXzk9D3uxb52fLGQg81ArSZ7NNo=; b=couiuPQrw+d9y1DkoVfUbtU7YbbkQl72JkCMRE9qtCFlfgXpwi337JLDW8hzEPRJELzUKU OiNFXKzk3gla4lX4i4dp2SnTiue6dKZ8kaz2m+6mxLHiwx+qFJwRpbDqmF6sCjjKDUoiSu CpNtATO5Emrjb3pjf/8GXo8NNCDNp6YykOf3fvzHs6ikGqHMNDE53Yu5LFpUWH+5vBhVgb oURhEYwiktRoE0VHZ2eOrprZK5mF1Hv9cNT7KIEuqQTf1XA/6N9qIy2c3DvHSi8gcPoTWS 05QCuoNSYA51/gTWERruN/Ld/n0DATIepqneD5rPnAE6Cep1Uqxtxo+YOWALtQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767000173; a=rsa-sha256; cv=none; b=yw05fibV+OpMzENElSepDqqy8OPrKCqLuWI1RlGnE/3pa6Xg2HEzxyFpKMJsDROStk0Ues jtAsRePi2jAczpZo1u+HtXK+32t3DbEvktoPdM4Qxiz6lvSJPyFwYKOH8k1H2izw0TWi3W EP+SkXaPpbbIjWzNqNpqsX7wcfj/TzB8UZ89ov5/n56jRq7yNIniQlcj0TVl5G0Nkf4GJn PTrYiWL8/YbygE7XY4vMwG3zUf+9EiLiRAH4FhFTNnqUMN7zHPXP7MNavyrpgRhpGYbZqr fda1FdBjwiFIbWpwGjA9MAQ+1idy3NeT9sqG2Ilat7T0LSWjzjWSpdt5jtmbSA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from venus.codepro.be (venus.codepro.be [5.9.86.228]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mx1.codepro.be", Issuer "R13" (verified OK)) (Authenticated sender: kp) by smtp.freebsd.org (Postfix) with ESMTPSA id 4dfrNY1lMSzFbT; Mon, 29 Dec 2025 09:22:53 +0000 (UTC) (envelope-from kp@FreeBSD.org) Received: by venus.codepro.be (Postfix, authenticated sender kp) id 724F11D3E5; Mon, 29 Dec 2025 10:22:51 +0100 (CET) From: Kristof Provost To: Ka Ho Ng Cc: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: Re: git: 112c453ba910 - stable/15 - geom(9): struct bio KBI fix Date: Mon, 29 Dec 2025 10:22:50 +0100 X-Mailer: MailMate (2.0r6272) Message-ID: In-Reply-To: <69489316.252e6.179063dd@gitrepo.freebsd.org> References: <69489316.252e6.179063dd@gitrepo.freebsd.org> List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=_MailMate_8F56F269-AA01-4D4F-8A93-6AC3F4C03A05_=" --=_MailMate_8F56F269-AA01-4D4F-8A93-6AC3F4C03A05_= Content-Type: text/plain; charset=UTF-8; format=flowed; markup=markdown Content-Transfer-Encoding: quoted-printable On 22 Dec 2025, at 1:38, Ka Ho Ng wrote: > The branch stable/15 has been updated by khng: > > URL: = > https://cgit.FreeBSD.org/src/commit/?id=3D112c453ba91012f19ed140c56a3ac= 8fc929ddabb > > commit 112c453ba91012f19ed140c56a3ac8fc929ddabb > Author: Ka Ho Ng > AuthorDate: 2025-12-21 22:45:03 +0000 > Commit: Ka Ho Ng > CommitDate: 2025-12-22 00:37:40 +0000 > > geom(9): struct bio KBI fix > > The struct bio was changed after cb85c2e2e995 on the branch. To = > fix > this, move BIO_ERROR flag to another value, and now = > BIO_ERROR_COMPAT > occupies 0x1 instead. Also, introduce b_error_compat field at the = > place > where the old bio_error was. > > This allows non-CAM(9) disk drivers and software volume manager = > modules > compiled against 15.0-RELEASE kernel to work on 15-STABLE kernel = > again. > > Reviewed by: kib > Differential Revision: https://reviews.freebsd.org/D54327 > > Approved by: re (cperciva) I=E2=80=99m seeing panics on boot now: vtnet0: Ethernet address: 58:9c:fc:0c:60:85 vtnet0: netmap queues/slots: TX 1/1024, RX 1panic: Memory modified = after free 0xfffff800038b51a8 (424, g_bio) + 0 =3D deadc0dedeacc0de cpuid =3D 6 time =3D 1 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame = 0xfffffe008d5679a0 vpanic() at vpanic+0x136/frame 0xfffffe008d567ad0 panic() at panic+0x43/frame 0xfffffe008d567b30 trash_ctor() at trash_ctor+0x74/frame 0xfffffe008d567b40 item_ctor() at item_ctor+0x59/frame 0xfffffe008d567b90 g_clone_bio() at g_clone_bio+0x1d/frame 0xfffffe008d567bb0 g_part_start() at g_part_start+0x96/frame 0xfffffe008d567c40 g_io_request() at g_io_request+0x2ca/frame 0xfffffe008d567c70 g_read_data() at g_read_data+0x95/frame 0xfffffe008d567cb0 g_raid_md_taste_intel() at g_raid_md_taste_intel+0x1d8/frame = 0xfffffe008d567e50 g_raid_taste() at g_raid_taste+0x18e/frame 0xfffffe008d567ea0 g_new_provider_event() at g_new_provider_event+0xaa/frame = 0xfffffe008d567ec0 g_run_events() at g_run_events+0x104/frame 0xfffffe008d567ef0 fork_exit() at fork_exit+0x82/frame 0xfffffe008d567f30 fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe008d567f30 --- trap 0, rip =3D 0, rsp =3D 0, rbp =3D 0 --- KDB: enter: panic [ thread pid 13 tid 100069 ] Stopped at kdb_enter+0x33: movq $0,0x121aa92(%rip) db> With this commit (and the follow-up =E2=80=9Cgeom(9): unset the = BIO_ERROR_COMPAT flag correctly=E2=80=9D) reverted the VM boots again. Best regards, Kristof --=_MailMate_8F56F269-AA01-4D4F-8A93-6AC3F4C03A05_= Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

On 22 Dec 2025, at 1:38, Ka Ho Ng wrote:

The branch stable/15 has been updated by khng:

URL: https://cgit.FreeBSD.org/src/co= mmit/?id=3D112c453ba91012f19ed140c56a3ac8fc929ddabb

commit 112c453ba91012f19ed140c56a3ac8fc929ddabb
Author: Ka Ho Ng khng@FreeBSD.org=
AuthorDate: 2025-12-21 22:45:03 +0000
Commit: Ka Ho Ng khng@FreeBSD.org=
CommitDate: 2025-12-22 00:37:40 +0000

ge=
om(9): struct bio KBI fix

The struct bio was changed after cb85c2e2e995 on the branch. To fix
this, move BIO_ERROR flag to another value, and now BIO_ERROR_COMPAT
occupies 0x1 instead. Also, introduce b_error_compat field at the place
where the old bio_error was.

This allows non-CAM(9) disk drivers and software volume manager modules
compiled against 15.0-RELEASE kernel to work on 15-STABLE kernel again.

Reviewed by:    kib
Differential Revision:  https://reviews.freebsd.org/D54327

Approved by:    re (cperciva)

I=E2=80=99m seeing panics on boot now:

vt=
net0: Ethernet address: 58:9c:fc:0c:60:85
vtnet0: netmap queues/slots: TX 1/1024, RX 1panic: Memory modified after =
free 0xfffff800038b51a8 (424, g_bio) + 0 =3D deadc0dedeacc0de

cpuid =3D 6
time =3D 1
KDB: stack backtrace:
db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe008d5=
679a0
vpanic() at vpanic+0x136/frame 0xfffffe008d567ad0
panic() at panic+0x43/frame 0xfffffe008d567b30
trash_ctor() at trash_ctor+0x74/frame 0xfffffe008d567b40
item_ctor() at item_ctor+0x59/frame 0xfffffe008d567b90
g_clone_bio() at g_clone_bio+0x1d/frame 0xfffffe008d567bb0
g_part_start() at g_part_start+0x96/frame 0xfffffe008d567c40
g_io_request() at g_io_request+0x2ca/frame 0xfffffe008d567c70
g_read_data() at g_read_data+0x95/frame 0xfffffe008d567cb0
g_raid_md_taste_intel() at g_raid_md_taste_intel+0x1d8/frame 0xfffffe008d=
567e50
g_raid_taste() at g_raid_taste+0x18e/frame 0xfffffe008d567ea0
g_new_provider_event() at g_new_provider_event+0xaa/frame 0xfffffe008d567=
ec0
g_run_events() at g_run_events+0x104/frame 0xfffffe008d567ef0
fork_exit() at fork_exit+0x82/frame 0xfffffe008d567f30
fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe008d567f30
--- trap 0, rip =3D 0, rsp =3D 0, rbp =3D 0 ---
KDB: enter: panic
[ thread pid 13 tid 100069 ]
Stopped at      kdb_enter+0x33: movq    $0,0x121aa92(%rip)
db>

With this commit (and the follow-up =E2=80=9Cgeom(9): uns= et the BIO_ERROR_COMPAT flag correctly=E2=80=9D) reverted the VM boots ag= ain.

Best regards,
Kristof

--=_MailMate_8F56F269-AA01-4D4F-8A93-6AC3F4C03A05_=-- From nobody Mon Dec 29 10:13:19 2025 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dfsVl5pNKz6M4sM for ; Mon, 29 Dec 2025 10:13:19 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dfsVl55lXz3H6t for ; Mon, 29 Dec 2025 10:13:19 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767003199; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=54AgvnRIIRARcTgwfYPAaXoWQ1MjB/V4wfQ9jqZz/ek=; b=DahPXxewmM+ktduUuZ6B5b6sAc3D4rjCGhP9G++c6LIzOWrIAbuMcojm2N7JNxMZEqWueb njkiNQ9TC1v+wZ8tsWGCHUdUGTlbyHI4mW/SHw8hSiXhafU9UsFD7bl2pRAkYq+uQLZsUb 5/3f9xx8L7GNltJ0DP11fYCMjLT6UlCkC8o7Ht7xMtS3KHQUCBquDQKOXP7HGunR3F+7Qa XA28tjfmiyE4a98GGf2+ZiQXRUYh7QiCeomQCXGm5YBA+kJI6sLHbuaz7GO8yZC+ZhRKsc 8ckNod/c4gBk2mnB0MTVRdR/LQxJL8VG07eH3gNZTXknSRJpbUqrZeRdEvCGIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767003199; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=54AgvnRIIRARcTgwfYPAaXoWQ1MjB/V4wfQ9jqZz/ek=; b=x9IRC4fOZ9TTQfupWq/gg2a1doLCdGU3MGvVWpcYfaqXU6wm/M4u2+9H8uhPlF1ma49lt/ hvABvi6vygHd0KAP956Gh5k2xyKUzhcTXZDCEEEJE7pQSNqNVwlIgXOAVel7onFDMc7IZ5 gd0vT7i2lcbKO89fpPYBgz0Tj6NfEC4M427zQ0rC4yYmVJ6JHnAPC5taykZHrKftFY2Wyx vNwId9/rDUiG4SYICR8KfDVnMwpnGTKcIdagZYc0556nywtU3NROlGfEDymNrR83o+Opd7 qzb4IKolfFSpJQzs/f8G+CPZE46UJgvQzoI2tTRFIM/YUypv7lllItOyKL1xow== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767003199; a=rsa-sha256; cv=none; b=y3ja7aGBpLHuySIpdYiV+x4wuAKmvd2Yt0kLAcF2dDo/x78+UxOSRxZfZku7i1oPNoH8DI KNkci7jkQKxuiQn7d7fhWeigJyP3C8Ga8tObK6Gkzbn80dUwUvxEbo6RCyccV6SllTQSZX B0nv9yXbmwJmWvs8UeDR1N63Ur0pXGalZxpBybprDH7BKXfLb5SoTUvwkr/dtoUo37UQ9W 0VBBKXP6TLh7jEiGPCnm7O65w6StdyO3xYeopXH1gcCBEfRNl295fMLbnYg5P72uQ1X8wn tG3Erd6Pjz8YZpWM8K7eEgYUdZ0mcDYgn9yAGc7X5h4xUnpx0DJir7to4cso6w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dfsVl4XSXz1PD8 for ; Mon, 29 Dec 2025 10:13:19 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id ddb1 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 29 Dec 2025 10:13:19 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Kristof Provost Subject: git: 261642478c8e - stable/15 - pf: handle TTL expired during nat64 List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kp X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 261642478c8e796679103612c41064f0ac78d13d Auto-Submitted: auto-generated Date: Mon, 29 Dec 2025 10:13:19 +0000 Message-Id: <6952543f.ddb1.10b20b3d@gitrepo.freebsd.org> The branch stable/15 has been updated by kp: URL: https://cgit.FreeBSD.org/src/commit/?id=261642478c8e796679103612c41064f0ac78d13d commit 261642478c8e796679103612c41064f0ac78d13d Author: Kristof Provost AuthorDate: 2025-12-10 16:27:51 +0000 Commit: Kristof Provost CommitDate: 2025-12-29 06:54:56 +0000 pf: handle TTL expired during nat64 If the TTL (or hop limit) expires during nat64 translation we may need to send the error message in the original address family (i.e. pre-translation). We'd usually handle this in pf_route()/pf_route6(), but at that point we have already translated the packet, making it difficult to include it in the generated ICMP message. Check for this case in pf_translate_af() and send icmp errors directly from it. PR: 291527 MFC after: 2 weeks Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D54166 (cherry picked from commit ac4fb06d096d6308b9522f454b68fbfc45bb8531) --- sys/net/pfvar.h | 1 - sys/netpfil/pf/pf.c | 25 ++++++++++++++++++++----- tests/sys/netpfil/pf/nat64.py | 36 ++++++++++++++++++++++++++++++++++++ 3 files changed, 56 insertions(+), 6 deletions(-) diff --git a/sys/net/pfvar.h b/sys/net/pfvar.h index 7e030910e0ec..55b841f970ea 100644 --- a/sys/net/pfvar.h +++ b/sys/net/pfvar.h @@ -2511,7 +2511,6 @@ int pf_socket_lookup(struct pf_pdesc *); struct pf_state_key *pf_alloc_state_key(int); int pf_translate(struct pf_pdesc *, struct pf_addr *, u_int16_t, struct pf_addr *, u_int16_t, u_int16_t, int); -int pf_translate_af(struct pf_pdesc *); bool pf_init_threshold(struct pf_kthreshold *, uint32_t, uint32_t); uint16_t pf_tagname2tag(const char *); #ifdef ALTQ diff --git a/sys/netpfil/pf/pf.c b/sys/netpfil/pf/pf.c index fb67c37b1556..1fdfd6e0f38b 100644 --- a/sys/netpfil/pf/pf.c +++ b/sys/netpfil/pf/pf.c @@ -3605,8 +3605,8 @@ pf_change_icmp(struct pf_addr *ia, u_int16_t *ip, struct pf_addr *oa, } } -int -pf_translate_af(struct pf_pdesc *pd) +static int +pf_translate_af(struct pf_pdesc *pd, struct pf_krule *r) { #if defined(INET) && defined(INET6) struct mbuf *mp; @@ -3617,6 +3617,21 @@ pf_translate_af(struct pf_pdesc *pd) struct pf_fragment_tag *ftag; int hlen; + if (pd->ttl == 1) { + /* We'd generate an ICMP error. Do so now rather than after af translation. */ + if (pd->af == AF_INET) { + pf_send_icmp(pd->m, ICMP_TIMXCEED, + ICMP_TIMXCEED_INTRANS, 0, pd->af, r, + pd->act.rtableid); + } else { + pf_send_icmp(pd->m, ICMP6_TIME_EXCEEDED, + ICMP6_TIME_EXCEED_TRANSIT, 0, pd->af, r, + pd->act.rtableid); + } + + return (-1); + } + hlen = pd->naf == AF_INET ? sizeof(*ip4) : sizeof(*ip6); /* trim the old header */ @@ -9158,7 +9173,7 @@ pf_route(struct pf_krule *r, struct ifnet *oifp, if (pd->dir == PF_IN) { if (ip->ip_ttl <= IPTTLDEC) { - if (r->rt != PF_DUPTO) + if (r->rt != PF_DUPTO && pd->naf == pd->af) pf_send_icmp(m0, ICMP_TIMXCEED, ICMP_TIMXCEED_INTRANS, 0, pd->af, r, pd->act.rtableid); @@ -9483,7 +9498,7 @@ pf_route6(struct pf_krule *r, struct ifnet *oifp, if (pd->dir == PF_IN) { if (ip6->ip6_hlim <= IPV6_HLIMDEC) { - if (r->rt != PF_DUPTO) + if (r->rt != PF_DUPTO && pd->naf == pd->af) pf_send_icmp(m0, ICMP6_TIME_EXCEEDED, ICMP6_TIME_EXCEED_TRANSIT, 0, pd->af, r, pd->act.rtableid); @@ -11299,7 +11314,7 @@ done: *m0 = NULL; break; case PF_AFRT: - if (pf_translate_af(&pd)) { + if (pf_translate_af(&pd, r)) { *m0 = pd.m; action = PF_DROP; break; diff --git a/tests/sys/netpfil/pf/nat64.py b/tests/sys/netpfil/pf/nat64.py index 705de72f5bc4..ba0d2ae01a9e 100644 --- a/tests/sys/netpfil/pf/nat64.py +++ b/tests/sys/netpfil/pf/nat64.py @@ -329,6 +329,42 @@ class TestNAT64(VnetTestTemplate): for r in packets: r.show() + @pytest.mark.require_user("root") + @pytest.mark.require_progs(["scapy"]) + def test_ttl_one(self): + """ + PR 291527: invalid ICMP error generated by nat64 router + """ + ifname = self.vnet.iface_alias_map["if1"].name + gw_mac = self.vnet.iface_alias_map["if1"].epairb.ether + ToolsHelper.print_output("/sbin/route -6 add default 2001:db8::1") + + import scapy.all as sp + + pkt = sp.Ether(dst=gw_mac) \ + / sp.IPv6(dst="64:ff9b::198.51.100.2", hlim=1) \ + / sp.SCTP(sport=1111, dport=2222) \ + / sp.SCTPChunkInit(init_tag=1, n_in_streams=1, n_out_streams=1, \ + a_rwnd=1500, params=[]) + s = DelayedSend(pkt, sendif=ifname) + + found = False + packets = sp.sniff(iface=ifname, timeout=5) + for r in packets: + print("Reply packet:") + r.show() + + ip6 = r.getlayer(sp.IPv6) + icmp6 = r.getlayer(sp.ICMPv6TimeExceeded) + if not ip6 or not icmp6: + continue + assert ip6.src == "2001:db8::1" + assert ip6.dst == "2001:db8::2" + assert icmp6.type == 3 # Time exceeded + assert icmp6.code == 0 # hop limit exceeded in transit + found = True + assert found + @pytest.mark.require_user("root") @pytest.mark.require_progs(["scapy"]) def test_ttl_zero(self): From nobody Mon Dec 29 11:59:05 2025 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dfvrp0klNz6MBTQ for ; Mon, 29 Dec 2025 11:59:06 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dfvrn6lSNz3QG2 for ; Mon, 29 Dec 2025 11:59:05 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767009546; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=MSwsQnihIJHTw1bLbT8nL6p+MecwE2526CfmPxCEm1Q=; b=ATD9sQP7tBLFnHp+IgIvgNa47uR0QKAbd29b3/0tm0xgwFwU9K/HXfY6+SeOHdC8O9fRk2 c3JG8Z8LBXfZH/5604OtY3ncIuuiD5UjE0+1tIHmLpXq5VPUu7ZTEYv9qV9qpb9M8lfZ8z Pm3NGQDlZpoH0Kw3sV+nFfbhU3tukqAkMGmbCSB07jJOyqjfGUl0f6b8MS+JtETk9zGMO5 EQ9/aZG5yJWXEkcgxecIFw0yOXht11/QOQG1y6wAFDJBp5Uyw6WHYmBN1fpTePCb6cPOM4 OqCh3w98vPtqU1FTBt+N1MAXTvGB6V8oQXXSKU7jqWKRd9mNckGz+SMampv/MQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767009546; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=MSwsQnihIJHTw1bLbT8nL6p+MecwE2526CfmPxCEm1Q=; b=HMQSDIm+ANTguQ8lhvgu3IRoRn18L2XbnB5V570QGEEYTikYPxKWgrKg30Y0uDvcZLZgxO 4SIXwc3CsdyHTRVzRqtejkaAfPAEoMIVLumi8fRxaNhIr45VM/epqlTeoMZoLD0ZCPveHc TbzSPJr3kTxeBToz6DMM0zPp4QzFOY8qsS6K2SjMhHm9Jfly+IRLALIPv49nMN6+Jnee4m +NS+fz7SkIaf+LU3hpG1MMrb5qVxLY1WB2OOs0bkAnIlF1yF6bVxmClPPRmh/2yz6A4ah5 Fm2Dn2dbaYLKAZPx1HZZ5D57zFnCliIlKQmQ5LEi6SpTRdM+Qf1CqwIR5AhZVQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767009546; a=rsa-sha256; cv=none; b=fbB2HGQSHklM2UvusW8kv8oyREvLe99yRZmNjO6yezE/AFdV9cBVciHcq+7HtBwJUC4FZx cX/Qf1MrreTIK3wLgp7NlTKTJmt0d62/UBMG7wysCp8rsxU97UOrOO9ztesSPAhM9xn6ep lCEwDnaUlSVSDYQvnyvVXN/VZROdDWFDrlzlyk68MVh7bahR44NpD7xb2rsY8q4Rix1c+S jdUZKFAx+Y48EvCMTDk6t4QSa7EgtwkVbc2k8/F9oxQf5A3RncXk9u6++BGtY+Af2Itb9U jF2ovxzbY91JGLny65iCD+Cw/ZU03i/5yvz7CYt60kRpODn5qVq/YyfICXVa/A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dfvrn6HgXz1RWm for ; Mon, 29 Dec 2025 11:59:05 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 30235 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 29 Dec 2025 11:59:05 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Cc: Alex Richardson From: Dimitry Andric Subject: git: dc28e6534b14 - stable/15 - cdefs.h: Introduce __nonstring attribute List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: dc28e6534b14f1fdbefb1d9ebebce9e9b22197ab Auto-Submitted: auto-generated Date: Mon, 29 Dec 2025 11:59:05 +0000 Message-Id: <69526d09.30235.3adcf971@gitrepo.freebsd.org> The branch stable/15 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=dc28e6534b14f1fdbefb1d9ebebce9e9b22197ab commit dc28e6534b14f1fdbefb1d9ebebce9e9b22197ab Author: Alex Richardson AuthorDate: 2025-12-16 18:03:44 +0000 Commit: Dimitry Andric CommitDate: 2025-12-29 11:41:14 +0000 cdefs.h: Introduce __nonstring attribute This attribute can be used to annotate char arrays that are not supposed to be terminated with a NUL char and is needed to silence clang's new -Wunterminated-string-initialization warning. The name matches linuxkpi. Reviewed by: emaste, jhb MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D52565 (cherry picked from commit 802c6d5d61d15494a54a386dc2ffbcfefc68c8ab) --- sys/sys/cdefs.h | 7 +++++++ tools/build/cross-build/include/common/sys/cdefs.h | 8 ++++++++ 2 files changed, 15 insertions(+) diff --git a/sys/sys/cdefs.h b/sys/sys/cdefs.h index 3bc4389346d2..ea6a92ad0056 100644 --- a/sys/sys/cdefs.h +++ b/sys/sys/cdefs.h @@ -394,6 +394,13 @@ #define __printf0like(fmtarg, firstvararg) #endif +/* To silence warnings about null terminator not fitting into an array. */ +#if __has_attribute(__nonstring__) +#define __nonstring __attribute__((__nonstring__)) +#else +#define __nonstring +#endif + #define __strong_reference(sym,aliassym) \ extern __typeof (sym) aliassym __attribute__ ((__alias__ (#sym))) #ifdef __STDC__ diff --git a/tools/build/cross-build/include/common/sys/cdefs.h b/tools/build/cross-build/include/common/sys/cdefs.h index 3f9b7866141f..8419b53135f6 100644 --- a/tools/build/cross-build/include/common/sys/cdefs.h +++ b/tools/build/cross-build/include/common/sys/cdefs.h @@ -100,6 +100,14 @@ __attribute__((__format__(__printf0__, fmtarg, firstvararg))) #endif +#ifndef __nonstring +#if __has_attribute(__nonstring__) +#define __nonstring __attribute__((__nonstring__)) +#else +#define __nonstring +#endif +#endif + #ifndef __predict_true #define __predict_true(exp) __builtin_expect((exp), 1) #endif From nobody Mon Dec 29 12:00:06 2025 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dfvsy5h2wz6MBm6 for ; Mon, 29 Dec 2025 12:00:06 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dfvsy4M4fz3Qnf for ; Mon, 29 Dec 2025 12:00:06 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767009606; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=5g2gKlP1vm70N/t7cS5bDpUKxpP+By2WOAov1bWVP+s=; b=Y36kzEaoWzL7OD9nYVR3FyxVNsYSyTLffAPptw6SfDK1ZI9Jd+pTfXfNAuIdNvFK5boV4E cl8Yhgf3EFu2bnfv/xGQQQqDNOrrX8+r8EfK1U6ewBezKoTdP41B49PZhH6RT0nUGWX7Xa mId2aO19zqI/XsKP/60AuNgdPqi7jfZ6Kpq3qb7yMvR8vG86vIz+7Sof7/t9xlmLjlZH+J yqMpR8CNXsVCXiHY1lcsWccKVZX35DnGhTc/+1UYWTmWrgRXl65q19zmd2+9H1QMv7ClEm 8+OCpa3qtgdRDkPzz9FSDsNfRM7v5Qkg3qeqKtCP7nqQ+fPkx35JKT0eNA7urQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767009606; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=5g2gKlP1vm70N/t7cS5bDpUKxpP+By2WOAov1bWVP+s=; b=PM2lOW6vZDUdkMOPms0SOeO8SqsvbQ2YG7wnAQJyVAz/pMsPR76CfJSp5TswIxyQWnjE78 GEyid1Bw9DsVTk/hr83nralcswGaz4vn4hYoMDI9GkAxcttP4OjwuNtOTH/GTXx8tn2W3V kVzdzaUrEQzIO8lcXu/K3rEPY78UMMd1q7JuhmImvEWl6Asmo8a63MS3gGMGgGI2wbo6aJ YcsdZm6oDiaw6DUCxYVwufZETWL1f6sx8CyK7P/KKEHb5xpEMc7suG9OnZ6Xz10e03tYjX sP/MUIC3PK7wrrb8HdlV/O38TqonCEEmJsw8uXlnSjMfKFvvzULsOLTYaY729w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767009606; a=rsa-sha256; cv=none; b=RaHEBKQMtS8KCSvgrYFvRT+hanMrhZzD/cnQn1GihK+uGBtlnKAlacQnlNDlwcvlQ/02p/ EVcY2vs3nxEtp5gHwJ0cZod6vPEEoPTU5X1VTa5FDm8Ih0ochSyghooKedP6tDg7TUOE5t r7D5gMQUSmd7IX3JJS4bD4G+ysOUR/jZjn4NHKxly0cj9gggH5ARnxvX/Ajwy2L+dREseZ h7JoivS40P1+CGF8J2sIcjeYO8jq0/ChS9z8TH/XJ7HhKJ7YPDdakTTJCjiq3rc6U+mqCc zy1OdbhCOcTk2JM1Bpxpn6iceGTv/0ACaLfPum2rEbsChAmsvkOWaFr28JLuvA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dfvsy3R3Pz1SKk for ; Mon, 29 Dec 2025 12:00:06 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 24f64 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 29 Dec 2025 12:00:06 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Cc: Alex Richardson From: Dimitry Andric Subject: git: 0925033ac770 - stable/14 - cdefs.h: Introduce __nonstring attribute List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 0925033ac7704279664c0deceaea7835bfb5cc1d Auto-Submitted: auto-generated Date: Mon, 29 Dec 2025 12:00:06 +0000 Message-Id: <69526d46.24f64.718b6c36@gitrepo.freebsd.org> The branch stable/14 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=0925033ac7704279664c0deceaea7835bfb5cc1d commit 0925033ac7704279664c0deceaea7835bfb5cc1d Author: Alex Richardson AuthorDate: 2025-12-16 18:03:44 +0000 Commit: Dimitry Andric CommitDate: 2025-12-29 11:57:38 +0000 cdefs.h: Introduce __nonstring attribute This attribute can be used to annotate char arrays that are not supposed to be terminated with a NUL char and is needed to silence clang's new -Wunterminated-string-initialization warning. The name matches linuxkpi. Reviewed by: emaste, jhb MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D52565 (cherry picked from commit 802c6d5d61d15494a54a386dc2ffbcfefc68c8ab) --- sys/sys/cdefs.h | 7 +++++++ tools/build/cross-build/include/common/sys/cdefs.h | 8 ++++++++ 2 files changed, 15 insertions(+) diff --git a/sys/sys/cdefs.h b/sys/sys/cdefs.h index 4af38941762c..029eff437c8e 100644 --- a/sys/sys/cdefs.h +++ b/sys/sys/cdefs.h @@ -558,6 +558,13 @@ #define __printf0like(fmtarg, firstvararg) #endif +/* To silence warnings about null terminator not fitting into an array. */ +#if __has_attribute(__nonstring__) +#define __nonstring __attribute__((__nonstring__)) +#else +#define __nonstring +#endif + #if defined(__GNUC__) #define __strong_reference(sym,aliassym) \ extern __typeof (sym) aliassym __attribute__ ((__alias__ (#sym))) diff --git a/tools/build/cross-build/include/common/sys/cdefs.h b/tools/build/cross-build/include/common/sys/cdefs.h index 3f9b7866141f..8419b53135f6 100644 --- a/tools/build/cross-build/include/common/sys/cdefs.h +++ b/tools/build/cross-build/include/common/sys/cdefs.h @@ -100,6 +100,14 @@ __attribute__((__format__(__printf0__, fmtarg, firstvararg))) #endif +#ifndef __nonstring +#if __has_attribute(__nonstring__) +#define __nonstring __attribute__((__nonstring__)) +#else +#define __nonstring +#endif +#endif + #ifndef __predict_true #define __predict_true(exp) __builtin_expect((exp), 1) #endif From nobody Mon Dec 29 12:00:22 2025 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dfvtG65Lrz6MBjl for ; Mon, 29 Dec 2025 12:00:22 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dfvtG4tbnz3R3w for ; Mon, 29 Dec 2025 12:00:22 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767009622; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=/dDzUNYC9sZZVTG2pJ1pB51BhUxM92KWqoKGrFHhoDE=; b=HPYBZOiU9+E7PKkK3LM4n/7emILyHWeC7u+05w4cRzPJfmn4iSRNzKiGFiNbuY/zM8JQuY bdgsuJKGO5SBg15CbBz6jlywMJFZaUXZAfei+00i9zf1bpkkpI3pGeB4b8PEOHG5nHQBLJ Czs1C9tb0Hm9EZBpLID490fwjNIC3/e+k8khCThuo3Bwl8ZWiFi6kJbNaM3kqG2sTPNWdK wFhxQw2YALG6SDFrLEnpwiGpQcZSr5jmMgmofGyIFnnS+1c8fwmqM3XCAyqQmMWzQaysDY 0lnt2+Po6hsEPQ31Yd/6pPUEAoss5LQMTNBUjKJ6bj/7ROOM+QMKZ/X2zhaPew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767009622; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=/dDzUNYC9sZZVTG2pJ1pB51BhUxM92KWqoKGrFHhoDE=; b=ZR+66gkGZWmpFiksTh5evHsNYCmm0XRcde5xWtaXAPhbwKg+6KMM7qOomdLZ4GHn5DsPb7 FrmF035BUjtHejeikHccVkFM5q2AljlZ5jrepeDN4rlW8yM6cHuyE3VrLl+FnXyQR1P4kQ A3HEPje37AKQ5ik52YpTnt5Dom1CKRu5Yz/ijOa3pHqG700n05co30iW2JSEVvl41xtnou XsO5RfMxlYKQA9DlN+8EpkPH1n7zQQM0W1FUK5zMZnLsvhrIHyCJgtV9cW9/KzlcrpaYAa LKSMN2vZefxOWNBOqFQGaIdhXIQ4POLJVKR1GNaK66o0zx3pw0WngG2q/JvOHw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767009622; a=rsa-sha256; cv=none; b=eyYGJ9KErgbrJy1f0MWPbgPNf7jleYO/CrdjAC7SGnceSX9HcLoAuY2KeyEDL8DIW79J5Y 1qaNFatWslHGgBQRdmpKqK7z7LbAloLGq6JIyiR83CMaMl288iHTxhRfyvQ9SOprStHsfa nav7hIsQ2VQLXalgb4vUpbtejfeToMSTdnxWmDjW9H3loEG56WgnQGVEprifi9VC4c4/Bq 8gaTty5luREQrd03LGuBi3rPTCE4GviBPGpZs/nb8yj9bV6dCZQO97QIykNChIPdRC6sm+ 8WwoW71GTqQ8Mp2jNUSbzlHJl3HD502Lu25FZkf7t+bTNPQrbfBZbV+/hWCYoQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dfvtG4B6Fz1RsR for ; Mon, 29 Dec 2025 12:00:22 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 27ccc by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 29 Dec 2025 12:00:22 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Cc: Alex Richardson From: Dimitry Andric Subject: git: bb4de3d2cf88 - stable/13 - cdefs.h: Introduce __nonstring attribute List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: bb4de3d2cf88c2e407c2d0ffd9542377f7b0049c Auto-Submitted: auto-generated Date: Mon, 29 Dec 2025 12:00:22 +0000 Message-Id: <69526d56.27ccc.1be128a3@gitrepo.freebsd.org> The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=bb4de3d2cf88c2e407c2d0ffd9542377f7b0049c commit bb4de3d2cf88c2e407c2d0ffd9542377f7b0049c Author: Alex Richardson AuthorDate: 2025-12-16 18:03:44 +0000 Commit: Dimitry Andric CommitDate: 2025-12-29 11:58:35 +0000 cdefs.h: Introduce __nonstring attribute This attribute can be used to annotate char arrays that are not supposed to be terminated with a NUL char and is needed to silence clang's new -Wunterminated-string-initialization warning. The name matches linuxkpi. Reviewed by: emaste, jhb MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D52565 (cherry picked from commit 802c6d5d61d15494a54a386dc2ffbcfefc68c8ab) --- sys/sys/cdefs.h | 7 +++++++ tools/build/cross-build/include/common/sys/cdefs.h | 8 ++++++++ 2 files changed, 15 insertions(+) diff --git a/sys/sys/cdefs.h b/sys/sys/cdefs.h index fbd3c3144596..8fd07ce85a05 100644 --- a/sys/sys/cdefs.h +++ b/sys/sys/cdefs.h @@ -559,6 +559,13 @@ #define __printf0like(fmtarg, firstvararg) #endif +/* To silence warnings about null terminator not fitting into an array. */ +#if __has_attribute(__nonstring__) +#define __nonstring __attribute__((__nonstring__)) +#else +#define __nonstring +#endif + #if defined(__GNUC__) #define __strong_reference(sym,aliassym) \ extern __typeof (sym) aliassym __attribute__ ((__alias__ (#sym))) diff --git a/tools/build/cross-build/include/common/sys/cdefs.h b/tools/build/cross-build/include/common/sys/cdefs.h index 3fa7790841cc..f4dfb1c3fe27 100644 --- a/tools/build/cross-build/include/common/sys/cdefs.h +++ b/tools/build/cross-build/include/common/sys/cdefs.h @@ -100,6 +100,14 @@ __attribute__((__format__(__printf0__, fmtarg, firstvararg))) #endif +#ifndef __nonstring +#if __has_attribute(__nonstring__) +#define __nonstring __attribute__((__nonstring__)) +#else +#define __nonstring +#endif +#endif + #ifndef __predict_true #define __predict_true(exp) __builtin_expect((exp), 1) #endif From nobody Mon Dec 29 12:17:37 2025 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dfwG95sgKz6MCmP for ; Mon, 29 Dec 2025 12:17:37 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dfwG91pLbz3Tkc for ; Mon, 29 Dec 2025 12:17:37 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767010657; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ugkVvpx5VDmhxXX/k5EMRcEHnYwxxp/oMkVSjHlV56Y=; b=uEG17op8J/CYhbBIz4eBHVGgGDVhcr/qcA7N20bD9YN4OIp8V8yvlDji2IF1xn+LmBu3fb gnBNAgIKDxWfs7hlnCx1weclSO6AkMrq2WmhSDxqkZWy+I5Cpws7c1GImsc6nbEyPUlz5w esm+G+oUaOV7IW6/Y/NhHE7kfJiiWGzDTNxargsor8RM8TeFqQ3lq0YbbY+uKqBxBmYftr fydiW5u12PB+Rg6e+iODSJyQbsH0Hdbl0BK9ekeAP1wj/ePnKdfYYByVjscMwN+DApi9rA 6RYuucUzOq8tAr+HNEkvFCgGXMZsDgOdnzVdvcOUkPrz5/+i4l3ikkKmGcDFyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767010657; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ugkVvpx5VDmhxXX/k5EMRcEHnYwxxp/oMkVSjHlV56Y=; b=jfN20o/dLQedzDDxdvOfGHcnKNpIspF2CXKa/hnuV7xuKzlG1t4VJXosOdSpgjnu2oQy0F z/AXL1YQCwG8/SXFqiCg+NmV+Mou8LjyjWJaiF86CQIrAkWJMMrfhBOznzx8Q78rKb0y7+ 9a1VDmI7p4fJHJrrBZzNaeyBi28swL7UACQbYsSAH1W3zyMziptnOSMg/5A76bNbyRBB+y ybPvFwRMxbVGd2bus9QiG9Cq4tRb2DdTr7PwUIUDG1Zj+IeVtuys6Q7t6oBdWggCEhB+mR YUTdouH8f9aQQzCX+KW1zVJNC9dBIi7WRuqjtgLLBjs2j/pYgPrXWCnuP97iHw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767010657; a=rsa-sha256; cv=none; b=QwX0Zul7I5VsiBAdMy3K0HS1WYlSRzn6RVN38yaAmzTRBAC4EJsb8sj2etD2Va9Tgy4fdn 06j4fDtQ8ovuSHInCKETd62sxmmi/aLXoYwxrNEludqb9rmKoIEtb7ONLiDc+WP6YQAbOx 8fn36/jeNY0l+x3Na9YKWOlg+4FcRMMNi/kFrUmQpQ7vmP/7OBAH2JJINpcFgAMSmLaGqd tA/ruiae50d0GOon8mihil4oNePamHTsw9K8G9reEanj6SbvbSv7YfjlAOO7cj7Ahnohg0 7+3TI6dZuHq7364rzOY1ybsWAsvW9lY4L3jeB1j1p9yt0Y9YLwsRXwfPfJ3vqA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dfwG90r5Wz3y for ; Mon, 29 Dec 2025 12:17:37 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 26b7f by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 29 Dec 2025 12:17:37 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: 2d0600671a5d - stable/15 - tools.build: add sys/cdefs.h to SYSINCS, since lots of other headers use it List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 2d0600671a5d7abed848c3bad2ab6601e048b3b4 Auto-Submitted: auto-generated Date: Mon, 29 Dec 2025 12:17:37 +0000 Message-Id: <69527161.26b7f.15a3f723@gitrepo.freebsd.org> The branch stable/15 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=2d0600671a5d7abed848c3bad2ab6601e048b3b4 commit 2d0600671a5d7abed848c3bad2ab6601e048b3b4 Author: Dimitry Andric AuthorDate: 2025-12-26 15:26:13 +0000 Commit: Dimitry Andric CommitDate: 2025-12-29 12:14:46 +0000 tools.build: add sys/cdefs.h to SYSINCS, since lots of other headers use it This is needed to let the legacy stage compile against newer versions of sys/font.h, which transitively includes sys/cdefs.h, and requires the new __nonstring macro from it. Fixes: e2c93ed09f25 MFC after: 3 days (cherry picked from commit 1c9ff80f06350fa44b7e50ce09ad665ab0082abb) --- tools/build/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/build/Makefile b/tools/build/Makefile index bff73fc715ef..e057f0b6c400 100644 --- a/tools/build/Makefile +++ b/tools/build/Makefile @@ -347,6 +347,10 @@ MSDOSFSINCS+= ${SRCTOP}/sys/fs/msdosfs/fat.h MSDOSFSINCS+= ${SRCTOP}/sys/fs/msdosfs/msdosfsmount.h DISKINCS+= ${SRCTOP}/sys/sys/disk/bsd.h +# Needed to build most of the things below, which include sys/cdefs.h either +# directly or transitively +SYSINCS+= ${SRCTOP}/sys/sys/cdefs.h + # Needed to build config (since it uses libnv) SYSINCS+= ${SRCTOP}/sys/sys/_nv.h SYSINCS+= ${SRCTOP}/sys/sys/nv.h ${SRCTOP}/sys/sys/cnv.h \ From nobody Mon Dec 29 12:17:38 2025 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dfwGC17YFz6MCjk for ; Mon, 29 Dec 2025 12:17:39 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dfwGB20WRz3Tpp for ; Mon, 29 Dec 2025 12:17:38 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767010658; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ZWiAuHwuLdmR7JZKFEpiAnsajV4iLzri1M8HAnfiDRk=; b=I/P+HnyOQ6BzrHIA0wxFf/2bs+d0daL8lZBFEDNwCFa5BMIIidOhy3hyb0JRtqGKVsFLKX OeHy9SYCStxAPugK8VFaGj2zuv4p5ik1YufqfqR0Nb+zA0Qk5NPjH9jCQdxEq+hEC5nuOe OjEUamwldZB0ErCTZ3SUu3mugY8Yzr/Hrr+qYAei6Ctwu6UearTBOqtC8UTIn6hyVmpVGe XFjcZvvZQ4+Z1PCpSPfZZ0Q7VZPLLWRysh3trj7qV98FujIezQop2tVbDrNtZquoZhmKLq lYWa6xZk4k6AEYPnaLjVRUX3gODxfwSHpbK/kbT76MK2X6PLkSjD0WQTDmhucg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767010658; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ZWiAuHwuLdmR7JZKFEpiAnsajV4iLzri1M8HAnfiDRk=; b=h13EQDGqCOBbpqZcWhGGRoN5dpj+D7IbwHbOlLOSTyO6sWRnRAhraRaz4b9yZ1+5VtNSvS 3/U9el99yzyo/D1dlKKq+SY7DrU0I8kgftolfwjsOyS3zPKyzuAIvN5cpqY0vAddcJTOuS xJHWUrdy+PE316k6Dj4XxKOybEiFJzTIjhRsO5kAcQJ0rPH+mh9o7Kbhlsbmt9nLPPeSRK u3bhYOzJ7icKCxi9Ey85iT+J5kaYE2O5v3f3AwI/bCY47ZQawd+K7hDWstX6GIjfGErgAR uabw3aR3I0sg/kc2eBEW3+ChHiyLUdbnllZ0jMoxgX+VIS06j5PttrkOdn88/A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767010658; a=rsa-sha256; cv=none; b=E+lDKlEFpmF8VnImkAHmBk8tYFBI9U26xGMXftJUPIgTCxJwb8DQH1DQJ9SJPR4goHyKth YAj5JaqKDfsvlLcdvX3DKFwgTDCTJ79u+Qx7H4lyGAFaw7KnEA9KhXU2+C/Bxy+TeOn3AM bc2X3gw5F6ZMnszF4qrvEvi/3MzSU5tbGcEKkBhNMw05lCK+mKMhCG0szsQyV1CRidROJM S/R2wVby/wIe/qmLk4Sn0hlikVM4EaF6XncOQY9E7C/oZ72C7jfTClYeKgRM4tP/mh0HGT Q9A22lcUsLOGDmN6fhtajBa5gLXJ4LwiITVH69cDYpiNhfmntj2mtt5hHWfJHg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dfwGB1YNJzDx for ; Mon, 29 Dec 2025 12:17:38 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 31f44 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 29 Dec 2025 12:17:38 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: c25ea7290efd - stable/15 - tools.build: also add sys/_visible.h to SYSINCS List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: c25ea7290efd9d4609ecfed5780f524907653a3a Auto-Submitted: auto-generated Date: Mon, 29 Dec 2025 12:17:38 +0000 Message-Id: <69527162.31f44.470e997d@gitrepo.freebsd.org> The branch stable/15 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=c25ea7290efd9d4609ecfed5780f524907653a3a commit c25ea7290efd9d4609ecfed5780f524907653a3a Author: Dimitry Andric AuthorDate: 2025-12-26 23:07:53 +0000 Commit: Dimitry Andric CommitDate: 2025-12-29 12:15:00 +0000 tools.build: also add sys/_visible.h to SYSINCS This is needed since sys/cdefs.h includes sys/_visible.h. Reported by: kib Fixes: 1c9ff80f0635 MFC after: 3 days (cherry picked from commit 086bedb11a853801e82234b8a1a64f0df52d9e52) --- tools/build/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/build/Makefile b/tools/build/Makefile index e057f0b6c400..9fcd458c370c 100644 --- a/tools/build/Makefile +++ b/tools/build/Makefile @@ -349,6 +349,7 @@ DISKINCS+= ${SRCTOP}/sys/sys/disk/bsd.h # Needed to build most of the things below, which include sys/cdefs.h either # directly or transitively +SYSINCS+= ${SRCTOP}/sys/sys/_visible.h SYSINCS+= ${SRCTOP}/sys/sys/cdefs.h # Needed to build config (since it uses libnv) From nobody Mon Dec 29 12:17:39 2025 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dfwGC69l4z6MCpc for ; Mon, 29 Dec 2025 12:17:39 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dfwGC2rc8z3TmW for ; Mon, 29 Dec 2025 12:17:39 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767010659; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=edzHKlwl9B73Tf/ZSsw68K7gIDOv+hzcCZg85KNGcqU=; b=M56pyINnWkGBa7/4CfhDd+E6UG+fBimWzHSPrrUR4co/jMMQU0vgrNBcHQC0gAPu66A9wr pXQSmZTyJbb3OYIW4+Zxp2FbR9BkJVZaodU5naKexZQRrRTWzZl0OWwk/eyKHGTDf+vrot MMUZ8QLYOtGevVCNoysd41JFzmxye9B2oJcIIc11Tmt65p899vuA9ZrtgL449xCRv9vi1D iUob6iCdBmOHn4dIIFQKETSN1Frb8yjRbz3gTiB3+/XKlynpXmawiNkRxfv2o888Jh1uyl 2ATBz0DPg+yCSbdxf53RBt4tkgr+SVd8PZ/zKg6KzbS4I3e1wmgx8Rw/0/a0og== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767010659; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=edzHKlwl9B73Tf/ZSsw68K7gIDOv+hzcCZg85KNGcqU=; b=oiEMSyYyVwAieYebdn3n+ag+cWCZQp9B64V0WplPYt8sWS2EX0vT0Jetr3vzHkOyWb1FS/ VuIIprRXz2DJrWNj16yh1Ou69shGmo9kqIr/jqsnQN9MzzzmDDLZ19w+AyGxPV5hmUgpeq pJqcg33h5+VkWGlr3Nua0nx7X0PoyUZmg7tGwH4xYQ99KXJs+QOiVyJKDSaRespbQL8njh TvB8dHPNhuwVIfGDEIIPxS73GK3mz48tKQS9su5v3i58ilJn1289r+y1AOyoOE46YtyC1T EFggVkHkvju5B53So33St7UzYEeQjzt5SLOHssWOlq54TY+5hBZEUMMedKqC9g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767010659; a=rsa-sha256; cv=none; b=Y/Z9WoQUol3lzLInztq7dcIAOXMBcPL/2djJJC/IdRHSLCbppUoHPk1Fl56LeZxNvsvpW3 xP20WzQN3nT+IgW9He98WNqQxucRxHeE8apcnUjr8rold43FvcuQOavwLNc8n/cMZBUO6d wpD10itElyc3xQrcaHdpryHprmr10Rw65k5y2ov2ypMS4nwKEePJQByi/KVD9ICkBhYF2z ULwU8iCm3E92Do6JZYNcQQ91iVo6ZUifleFdhL82fEA0DRPMVH0tB2vJxtpqkRlS9d6dWT PMxCpcveDRVDJRBI+5V0Y+Ts0mrGuElAcD39Q16Bcl75d+HdYj5oLwhLDqJ5Ng== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dfwGC2NrHzDy for ; Mon, 29 Dec 2025 12:17:39 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3204d by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 29 Dec 2025 12:17:39 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Cc: Ayrton Munoz From: Dimitry Andric Subject: git: 248f879133bf - stable/15 - cross-build: Avoid adding to SYSINCS List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 248f879133bfa4b916421d385afeaf2dc91fcaf3 Auto-Submitted: auto-generated Date: Mon, 29 Dec 2025 12:17:39 +0000 Message-Id: <69527163.3204d.2ec84f71@gitrepo.freebsd.org> The branch stable/15 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=248f879133bfa4b916421d385afeaf2dc91fcaf3 commit 248f879133bfa4b916421d385afeaf2dc91fcaf3 Author: Ayrton Munoz AuthorDate: 2025-12-29 02:02:28 +0000 Commit: Dimitry Andric CommitDate: 2025-12-29 12:15:14 +0000 cross-build: Avoid adding to SYSINCS Summary: The sys/cdefs.h in src is incompatible with glibc's sys/cdefs.h so cross-building broke when the former was added to SYSINCS in 1c9ff80f06. This commit adds a guard around that to only do that when building on FreeBSD. This should fix github CI. Test Plan: Ran buildkernel using tools/build/make.py on linux in github CI and locally on FreeBSD to double check nothing broke. Reviewed by: dim MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D54385 (cherry picked from commit b6672803a1cf10dd1c912fe6571a8d426b8868bd) --- tools/build/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/build/Makefile b/tools/build/Makefile index 9fcd458c370c..676d0bea0936 100644 --- a/tools/build/Makefile +++ b/tools/build/Makefile @@ -347,10 +347,12 @@ MSDOSFSINCS+= ${SRCTOP}/sys/fs/msdosfs/fat.h MSDOSFSINCS+= ${SRCTOP}/sys/fs/msdosfs/msdosfsmount.h DISKINCS+= ${SRCTOP}/sys/sys/disk/bsd.h +.if ${.MAKE.OS} == "FreeBSD" # Needed to build most of the things below, which include sys/cdefs.h either # directly or transitively SYSINCS+= ${SRCTOP}/sys/sys/_visible.h SYSINCS+= ${SRCTOP}/sys/sys/cdefs.h +.endif # Needed to build config (since it uses libnv) SYSINCS+= ${SRCTOP}/sys/sys/_nv.h From nobody Mon Dec 29 12:17:52 2025 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dfwGS4zBFz6MCfw for ; Mon, 29 Dec 2025 12:17:52 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dfwGS29Hhz3TyM for ; Mon, 29 Dec 2025 12:17:52 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767010672; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=JfrznE2E7HTe3493LUFje5GAJSe4PxT9knryHp7V68Q=; b=KZksUwVq/nqaqlmKaYs1vXm3X3QQrCFMb7b+y66w3o2kYBqH5G3XAeQMmp39ltX+lcHVHf 10gfdC3AlxEFQElTIEJveniAJXfyImL9TiSyO7H3TqXhN6pW++p648DjBN1e1zXZEYKH/F aOCGM3TMYICE9qsrzwKtquKMWt6nMLH4q9Sg2B3LG5OMWpdR4vMoBEjCI5EpDuwskbrjFg 9+z4Ts2Ijcdwnn1oOnobnOsEmYff7fUIt3pCLSzR1w58O1bhg7y2tyhU/Zn/IzEEfH21n2 Y0PjRmSEV1k2sYoUCKeCpelkRmpOB+uwTfKIymLOKk34/7NBAVGEPsFZN44s/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767010672; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=JfrznE2E7HTe3493LUFje5GAJSe4PxT9knryHp7V68Q=; b=DbAKQXbUFVw+DGF6jbVB0pDNgVUr2C3F4Ix+rB7jRgxS+uaU6Vk9uO1cBzArcMZTRKC/40 Rqj6xoQebGvkIl9J1H5MLN3u4Zwxa/chmmGHIODvoBwtfdghDoPkqVioA+PgA7Kq8lMJ54 q/IbDXIHj6tNwYY539URslvJ23ZGE0xig9nnGxGF4A1kP7v1r5tSZ26lrJgnqX+fhuXgxK xwc7Ne7eiIyaFysf8u8tuWsqtmeyiEym3muq9PqWiHKjnFgQ2Odh0bxh0RMYIxRIm2z/St qlV28iBOHlNjMgS/2MSzKmQsQtrpOKMyOH3gRUiS18UGhOJ1XujkKgA6+CY/RA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767010672; a=rsa-sha256; cv=none; b=vp70etOhMWhTjfUePfvNXVRCCYJxj35iWRUsW61a2yeRSuvEOWnYcSyTUQvmQWmWrKl9er GgZF5O/Pj6Yg4Gyo7/mtvun2ODlq/cfEd6CnIoASZCbjaOk+uDkANTR9gzWZdjmkS9jahZ uAGT5dKZgXkMC/qkiCxKPrHi4wwY50STc1tCEKNdiDYWwT4wgrmg16iQLaNGhznCGDAIaG lC6CCpmG6qrFzC4yTucgu9NKHnB278ro7/qaS6yiF6nLY3bwZcFfOaDAbqVazMOe6XuFad LVdEKehn21Vs1oLonXu/9IkRJyTNEmVsZCgV8j05aFK1HPX7PZ2kq2aUQchLyQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dfwGS1lyBz1SQF for ; Mon, 29 Dec 2025 12:17:52 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 31d92 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 29 Dec 2025 12:17:52 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: 2ade7285253f - stable/14 - tools.build: add sys/cdefs.h to SYSINCS, since lots of other headers use it List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 2ade7285253fc5dfe0adfc51f7bd342b9293f253 Auto-Submitted: auto-generated Date: Mon, 29 Dec 2025 12:17:52 +0000 Message-Id: <69527170.31d92.5af51114@gitrepo.freebsd.org> The branch stable/14 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=2ade7285253fc5dfe0adfc51f7bd342b9293f253 commit 2ade7285253fc5dfe0adfc51f7bd342b9293f253 Author: Dimitry Andric AuthorDate: 2025-12-26 15:26:13 +0000 Commit: Dimitry Andric CommitDate: 2025-12-29 12:16:00 +0000 tools.build: add sys/cdefs.h to SYSINCS, since lots of other headers use it This is needed to let the legacy stage compile against newer versions of sys/font.h, which transitively includes sys/cdefs.h, and requires the new __nonstring macro from it. Fixes: e2c93ed09f25 MFC after: 3 days (cherry picked from commit 1c9ff80f06350fa44b7e50ce09ad665ab0082abb) --- tools/build/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/build/Makefile b/tools/build/Makefile index cee54fb71403..75b05a4e5b9c 100644 --- a/tools/build/Makefile +++ b/tools/build/Makefile @@ -273,6 +273,10 @@ MSDOSFSINCS+= ${SRCTOP}/sys/fs/msdosfs/fat.h MSDOSFSINCS+= ${SRCTOP}/sys/fs/msdosfs/msdosfsmount.h DISKINCS+= ${SRCTOP}/sys/sys/disk/bsd.h +# Needed to build most of the things below, which include sys/cdefs.h either +# directly or transitively +SYSINCS+= ${SRCTOP}/sys/sys/cdefs.h + # Needed to build config (since it uses libnv) SYSINCS+= ${SRCTOP}/sys/sys/nv.h ${SRCTOP}/sys/sys/cnv.h \ ${SRCTOP}/sys/sys/dnv.h ${SRCTOP}/sys/sys/nv_namespace.h From nobody Mon Dec 29 12:17:53 2025 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dfwGT4mBVz6MCrj for ; Mon, 29 Dec 2025 12:17:53 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dfwGT3Fh5z3TpC for ; Mon, 29 Dec 2025 12:17:53 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767010673; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=lTjFLzbn5J0AIV1wYvrByRCjeCq7bO1P9+SQa6no/vM=; b=vG/ZwRYm3lWUWnU0zIYaPg6czSQ78i/P/l4prS6i9GVQuQmg5f0z19OJQzLR03RLyLUVAJ 1dfCDGGTo0P6gCmBV1VAYoO05LT5khBM5Pxlr+FTY5APVzeiaT7iAyy/3v47HRJdaayh4Y pDS/jtlp1UPzWilAb31m8+piMRfJZZlV9qEasgWPItGIFIxmDngBbkUNvkz5BrgS8l6r+7 8mZ/u+IuglfTUwjfWyyRY+hqtrNX7KrZaXLQW70cd07ylDrB7kr4Lf7Ia9ii8noiKeYOW2 mZARwf0zkaSOyPkqzqddmeycm3RQpZ9ujwzv/XxoEfn5NnnD/J6CI8ZJ1phw3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767010673; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=lTjFLzbn5J0AIV1wYvrByRCjeCq7bO1P9+SQa6no/vM=; b=EkjW1wKuAo9fOKcRBQgnlvjN76Cj+QP4e9TkUSslDdegOWBxTqNuGIWCrn9YoOYSa0FU4E ioKMdmSajv1saVMimyXx2TtEjNxZrboZ+bDlZLxUerVAGcR0wBu3/TuAqKcHGUATFbL7KV QMNJNJoDdAJh5aOn9kwMVGl3hNZqxqoQOG107PnLR2M/n+kmiEcKfjqskWNDYJ0g0V+gND Vsy5ozUpcio6ueVOQZjJByGYQspdgxaXstoFBAQkMRml0SJzkYCAxoIH+HbyNeXypxMnGd ulMOMYwhUUcsbkljZUkSI8wTq15DVkwv8VQZpSF7tR8b1YT86qJOZJ2OUa4NnA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767010673; a=rsa-sha256; cv=none; b=YmcqEG2Yxum8TFL+D7kzUoRwM0K2C/V1P+G+kXXmEb526l/F/8aMRLTnJtN75A7vLYW7wG Vk5uVdH8PZKABVdHTAlFjx6qAYdrJP15Pte7YH3lUQurRZrRhw5Yp+Q5eYSpTUojvp1aFK YWzCmP20U4V0u8CkcuogPL1HGfZTeasFmX2ES+lg16t+Nop6Xoe2E3FKripeo8pmUwMQ8N 9bWIiVnjlXoVaY3EWuaQxE3usDzm+4OVl8CEYdFhj1t/PjiCtQf3FbBDQY+wH6hAOG3dPi veFGp1wvxPWeXxKMGTaJHI/wjx3vj0NCQdFhU8KiRdDHtRq5MqO3kUGbIEhd0Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dfwGT2cmLzDM for ; Mon, 29 Dec 2025 12:17:53 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3094f by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 29 Dec 2025 12:17:53 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Cc: Ayrton Munoz From: Dimitry Andric Subject: git: 9ea1aadfdb30 - stable/14 - cross-build: Avoid adding to SYSINCS List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 9ea1aadfdb306d95e79854ca569aefc7cf993fcb Auto-Submitted: auto-generated Date: Mon, 29 Dec 2025 12:17:53 +0000 Message-Id: <69527171.3094f.2fa31aa3@gitrepo.freebsd.org> The branch stable/14 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=9ea1aadfdb306d95e79854ca569aefc7cf993fcb commit 9ea1aadfdb306d95e79854ca569aefc7cf993fcb Author: Ayrton Munoz AuthorDate: 2025-12-29 02:02:28 +0000 Commit: Dimitry Andric CommitDate: 2025-12-29 12:16:27 +0000 cross-build: Avoid adding to SYSINCS Summary: The sys/cdefs.h in src is incompatible with glibc's sys/cdefs.h so cross-building broke when the former was added to SYSINCS in 1c9ff80f06. This commit adds a guard around that to only do that when building on FreeBSD. This should fix github CI. Test Plan: Ran buildkernel using tools/build/make.py on linux in github CI and locally on FreeBSD to double check nothing broke. Reviewed by: dim MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D54385 (cherry picked from commit b6672803a1cf10dd1c912fe6571a8d426b8868bd) --- tools/build/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/build/Makefile b/tools/build/Makefile index 75b05a4e5b9c..66ac2a4f381c 100644 --- a/tools/build/Makefile +++ b/tools/build/Makefile @@ -273,9 +273,11 @@ MSDOSFSINCS+= ${SRCTOP}/sys/fs/msdosfs/fat.h MSDOSFSINCS+= ${SRCTOP}/sys/fs/msdosfs/msdosfsmount.h DISKINCS+= ${SRCTOP}/sys/sys/disk/bsd.h +.if ${.MAKE.OS} == "FreeBSD" # Needed to build most of the things below, which include sys/cdefs.h either # directly or transitively SYSINCS+= ${SRCTOP}/sys/sys/cdefs.h +.endif # Needed to build config (since it uses libnv) SYSINCS+= ${SRCTOP}/sys/sys/nv.h ${SRCTOP}/sys/sys/cnv.h \ From nobody Mon Dec 29 12:18:07 2025 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dfwGm3thGz6MCk7 for ; Mon, 29 Dec 2025 12:18:08 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dfwGl5SXkz3V46 for ; Mon, 29 Dec 2025 12:18:07 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767010687; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=5+qZog2d7qu0ejV4w6RE4pR34DxQPdbG806rU4VfPig=; b=Jt0NQIKITdDHaeACwkAw/hK2UqppWJo9x5RMF5CUYBoAWsNlhbTDxp3Th+CmTKonL3yQr+ 4NGKz+D/VXSbicbGcM4bkutXFGe+pTlsLdFUe8vew5sveI/tj/s4lBYEYZKA65TMSrczY+ SuI8TtbgcDOTZhb4JuEkPS25KT6U6cNwzhxNtqejHYjvX7ZwHObDxB6mUBWbc+Jq4TbVmI 1ldKEDq1dpTGsEguv8XIuUbtoBurlUFCjzX7Mp0bUhoOoXEn+2HinuI6300XUvsn5kqjjS jjd2eH/SmZtjS+qSMtuX5vnMhvOY6CNj/je3zhkAOcRrhN1ppEmXJOGTkAKf+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767010687; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=5+qZog2d7qu0ejV4w6RE4pR34DxQPdbG806rU4VfPig=; b=DyYfS0YDtLfYds++qIYV2g+V0eqXVMHzGj84b24b+Xx6JG2h8pIuk1ji7clJGWxAkksTBN 2qDeohGiBAyCggTQYWQ7mZwdkPuRmG6Aibxcqd/f+B6T2PC7jPlUCVl45ybW7k7zHZlHU2 /P0NewL5g+truccQzbQAWssv8BiZ7w4OMgMWIb9jSdsXuSBunXX9pJQJ8emO/2q2aOlvRR dK2yxFaG48KKzEe/HXR395ZCjvpaNVEJWIicSlvhtKlS9gnXcp60HV/ceKS3LMxg2jxb+m 2Goa6/UGrub1L6ODQ4TYVw7u8gqwhKFT9Q2oWZxm+aHig+grvXFmSbT6qVZHyw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767010687; a=rsa-sha256; cv=none; b=A2KtC+78F0my8E51VZKAwwxTJMbtW7yyogUvFuHdRMk70D3f5PQlGvf5wuQWMy6lzGMgES 4VQgQDSgu+k+kjTWhJ0mTiavqSfFbrlbf4cJ929jKXJ0Nbc82hCOOGjEykQKmyVT7hQLvP nh40EjYqGuIlm8CMSP74LumbCnd94gjzhsWvzn6obro2sxG65PAK9ECzLst8Qz+KNZKKx0 O5j8XCMoABmDFv908wYwJVTWLxNb2yBM7yrGE+GUL72DnSg9BIk8hF77oMxFdFdF3aHrsb Qn5FUXb22pESsL+GuOuL4HWPoG0+xI4+YuZHsL/WkMXz46lfCJJThEV93gx6iA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dfwGl4nMDz8m for ; Mon, 29 Dec 2025 12:18:07 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 30e5d by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 29 Dec 2025 12:18:07 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: 50c02805f671 - stable/13 - tools.build: add sys/cdefs.h to SYSINCS, since lots of other headers use it List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 50c02805f6711b16a4315ed1bc736a372539604f Auto-Submitted: auto-generated Date: Mon, 29 Dec 2025 12:18:07 +0000 Message-Id: <6952717f.30e5d.27f611aa@gitrepo.freebsd.org> The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=50c02805f6711b16a4315ed1bc736a372539604f commit 50c02805f6711b16a4315ed1bc736a372539604f Author: Dimitry Andric AuthorDate: 2025-12-26 15:26:13 +0000 Commit: Dimitry Andric CommitDate: 2025-12-29 12:16:49 +0000 tools.build: add sys/cdefs.h to SYSINCS, since lots of other headers use it This is needed to let the legacy stage compile against newer versions of sys/font.h, which transitively includes sys/cdefs.h, and requires the new __nonstring macro from it. Fixes: e2c93ed09f25 MFC after: 3 days (cherry picked from commit 1c9ff80f06350fa44b7e50ce09ad665ab0082abb) --- tools/build/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/build/Makefile b/tools/build/Makefile index 990aee424db9..d08406516362 100644 --- a/tools/build/Makefile +++ b/tools/build/Makefile @@ -231,6 +231,10 @@ MSDOSFSINCS+= ${SRCTOP}/sys/fs/msdosfs/fat.h MSDOSFSINCS+= ${SRCTOP}/sys/fs/msdosfs/msdosfsmount.h DISKINCS+= ${SRCTOP}/sys/sys/disk/bsd.h +# Needed to build most of the things below, which include sys/cdefs.h either +# directly or transitively +SYSINCS+= ${SRCTOP}/sys/sys/cdefs.h + # Needed to build config (since it uses libnv) SYSINCS+= ${SRCTOP}/sys/sys/nv.h ${SRCTOP}/sys/sys/cnv.h \ ${SRCTOP}/sys/sys/dnv.h From nobody Mon Dec 29 12:18:08 2025 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dfwGn1cB5z6MCyj for ; Mon, 29 Dec 2025 12:18:09 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dfwGm5r46z3TvS for ; Mon, 29 Dec 2025 12:18:08 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767010688; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=SuF5cgTMnPjo0QPl/jEw0fYi6aJl7/8j/pcRI1FS8Qc=; b=pWnSqlUl8r67ePGEvS5Ki3JGw8Wq4ReDDQFn4AU5RJmxdaAqvayA6R3QNImyW8Ct5RnAK8 PsyUrv4S7JYkM7Fn8APgRjPkoG+wEFsb1Zek4SLuhFBAsGnwrsOGmdsH5RaHPtEb0aMRKs cXNbbo+WIpc4trbpNDJi2hOQ5CcyfXtN5iWHoWq07YdEu7hzRZ8w97teGBxdPMtYzwraNU 2Vg8Ow3pyjmW/LgfbNq7jWuAK5DqmJh6zK2pOUiU+baF63EqlwB9SsrjFkHbWyaKoRFVfp HZKHRYn+6bTXpVuGuutqWu6y5nrxLcGDV0zacRrCoCVbkLTdZLhv5y6Cl9+4Xg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767010688; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=SuF5cgTMnPjo0QPl/jEw0fYi6aJl7/8j/pcRI1FS8Qc=; b=cQB53e9Wq8jCAIghTdmsdOAmDwgejtApOzy/zD9uEm3IV7unUpmZf5Ui5mpsFkjYr7AbXn sc5y9KAvB/xxLyvzKXlBdtL7nDz8SYIt5AQvklMSQ+JKvXvZLBJ57crH0NtUceWOhP0Xtf U9qTrcg8f2JhZ/aczH5GLauxkDsFn5mEGtfPPb2L3LgsC4X4g5KGGIwlh3CI6SbPZsJSSj BW8egyMzBO5YK+md0fu8Xm6RnFhuOd5P6hQ6MjExpiItwIVPD1P+qIkVqIWpMAtyt8nEil 4WNia9Mpx1O5UMTy8JVFPPlqJsjOjKAvip1m2O9bPPPYvXASHRXsYNatLLTEhQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767010688; a=rsa-sha256; cv=none; b=I0TGJwVDSPHGpx0E5rL5BqsBUv6fqI5vF1gjM3PY6wZoxNYdvfViXkrM05G/Po7C5ugIkn xUF3rOdgt6JXRSfEOWcJpPn0Dwi3kirSpPJSjuD8Z/na7ENiKRgDhozt05BXFTkL67Nd7Q XjNAAPkquaFyat/CqMjCcc4hdje8wlqZguZ3HuF6JNJvlLHIp9ZDC2mKP00O0uhhBJAUqZ fTBU3pEmpeqTi0hDIwIFsQshz2kmK9EoIExbTYl6rPfw0ui5K0dXaYpP3j5nKBSK4T70jM o4s/aiaND4JyeXqeVK2gd42WhdNT0Ud0apbHfEeBq18q9/iImXnR/5xBw6Vt7Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dfwGm5N9KzF1 for ; Mon, 29 Dec 2025 12:18:08 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 320d4 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 29 Dec 2025 12:18:08 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Cc: Ayrton Munoz From: Dimitry Andric Subject: git: b354a138c0cb - stable/13 - cross-build: Avoid adding to SYSINCS List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: b354a138c0cb672dc6540917f3fdada49bac4b2c Auto-Submitted: auto-generated Date: Mon, 29 Dec 2025 12:18:08 +0000 Message-Id: <69527180.320d4.3c0658e2@gitrepo.freebsd.org> The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=b354a138c0cb672dc6540917f3fdada49bac4b2c commit b354a138c0cb672dc6540917f3fdada49bac4b2c Author: Ayrton Munoz AuthorDate: 2025-12-29 02:02:28 +0000 Commit: Dimitry Andric CommitDate: 2025-12-29 12:16:55 +0000 cross-build: Avoid adding to SYSINCS Summary: The sys/cdefs.h in src is incompatible with glibc's sys/cdefs.h so cross-building broke when the former was added to SYSINCS in 1c9ff80f06. This commit adds a guard around that to only do that when building on FreeBSD. This should fix github CI. Test Plan: Ran buildkernel using tools/build/make.py on linux in github CI and locally on FreeBSD to double check nothing broke. Reviewed by: dim MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D54385 (cherry picked from commit b6672803a1cf10dd1c912fe6571a8d426b8868bd) --- tools/build/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/build/Makefile b/tools/build/Makefile index d08406516362..b6925688896d 100644 --- a/tools/build/Makefile +++ b/tools/build/Makefile @@ -231,9 +231,11 @@ MSDOSFSINCS+= ${SRCTOP}/sys/fs/msdosfs/fat.h MSDOSFSINCS+= ${SRCTOP}/sys/fs/msdosfs/msdosfsmount.h DISKINCS+= ${SRCTOP}/sys/sys/disk/bsd.h +.if ${.MAKE.OS} == "FreeBSD" # Needed to build most of the things below, which include sys/cdefs.h either # directly or transitively SYSINCS+= ${SRCTOP}/sys/sys/cdefs.h +.endif # Needed to build config (since it uses libnv) SYSINCS+= ${SRCTOP}/sys/sys/nv.h ${SRCTOP}/sys/sys/cnv.h \ From nobody Mon Dec 29 12:23:15 2025 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dfwNg6qPBz6MD8n for ; Mon, 29 Dec 2025 12:23:15 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dfwNg48lvz3X4H for ; Mon, 29 Dec 2025 12:23:15 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767010995; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=6C+kUsaF99tamFq/rSDelkPELExJp310mPmYmHkBTmY=; b=UWNa8urMEso+92+ZyO9XIJls9q+5e+LAhQTbCHVhmkmGuuh8M5REV29WOUN1VYxFKrTUh3 OCTJpCu0ER1v5pahNwhxWWqjLIWxAvcf99qO3BejBsiAz7SuuusL1bXNCUzM9zH9Z8ubhf J795LDbrDYkbqatQqny9h7ZG4XBJV4ZstKqoXrIUFMH/qRFOR7G8sQdvhPiCYZiiECUQ5/ jnEhdg0vUOWg9IK1/AaQGe6tT4es5otBc/2Q+Pt9J2l08ZX9rhe+ZuW079Anb/CzQbzOaa hzUIjkPURIICESJUeorKk98p/LLjHZOWBopLHhOEXNEnozpH9VjlAojF47udnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767010995; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=6C+kUsaF99tamFq/rSDelkPELExJp310mPmYmHkBTmY=; b=h8RTZD/Jhkq6PB0/1w1yNBHM8jPXkTKtPEpib7p5QwwFlE+Jrm9bGsTh0Eg9QJKX/bRkIT ttsa4/FJhgheKPlgtqYGUDH4FgiS3jcK42zkYDP/zNcP/0O6v2GqFNQkKXN3vL9iGZ/cTz NjXrtx0fIKkWKRm5ddv4rRmxPJGw6qkyP3EbXodvl9PMc4T+lku0ZO9UxZ7gvZhreYllFO f4kNY98oHeBmbJrdeYI+7p/MXeybme1VPVmNGrTggmAx4ZjIkVtE7zpGwpDpo+q8ozX2L6 F9eB5da+sr46Ql1xZm4L+u+UsfyQ4DYexjs2coxdtWZsks0x/sJIZ9dokfI49A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767010995; a=rsa-sha256; cv=none; b=PkG2q9LPyVfxzrVg2h0bof1Bsv87UGW1uBxN01joMK3Huo1Gr3eJmQoDtXSLvqru1T2CHl xKaQsbq2V3H6GD4gi+xaZQKL9RjqOVt9rODGMAZFeIpCEqKSS2XxOb/a18nDw99BahSXbz juFXqOsCKZz/OC5S2PLhjyN+h2kVikVZsKxTG1Jw/kzw6eVXdAtxlm6gHVh1v1U6AVu8kM bnqVBEaSkgHdiLy74OLPY8L1TVDS/eGTtLrgWAl3Sje6EHk4DvV0dcV9QalI3HJj6Gx2eM siID1oynQ5oDHocpnZmfowTY8PtTBCUJ2rb7EI2W41sMeTk7l1q6AMtSQr5Zgw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dfwNg3lg0zRl for ; Mon, 29 Dec 2025 12:23:15 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 32a05 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 29 Dec 2025 12:23:15 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: 7d9c6b28e14a - stable/15 - m4: avoid warnings about too-long initializer strings List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 7d9c6b28e14ac4ef6cd175365b21eb624c4a7936 Auto-Submitted: auto-generated Date: Mon, 29 Dec 2025 12:23:15 +0000 Message-Id: <695272b3.32a05.35624780@gitrepo.freebsd.org> The branch stable/15 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=7d9c6b28e14ac4ef6cd175365b21eb624c4a7936 commit 7d9c6b28e14ac4ef6cd175365b21eb624c4a7936 Author: Dimitry Andric AuthorDate: 2025-12-26 00:30:25 +0000 Commit: Dimitry Andric CommitDate: 2025-12-29 12:19:34 +0000 m4: avoid warnings about too-long initializer strings Mark `digits` as `__non_string`, to avoid warnings from clang 21 similar to: usr.bin/m4/misc.c:123:27: error: initializer-string for character array is too long, array size is 36 but initializer has size 37 (including the null terminating character); did you mean to use the 'nonstring' attribute? [-Werror,-Wunterminated-string-initialization] 123 | static char digits[36] = "0123456789abcdefghijklmnopqrstuvwxyz"; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ MFC after: 3 days (cherry picked from commit a3394b6a23fb66ccb7e588129d2465ef8ea26d30) --- usr.bin/m4/misc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr.bin/m4/misc.c b/usr.bin/m4/misc.c index 1870323ccb30..3091f2ad1f9e 100644 --- a/usr.bin/m4/misc.c +++ b/usr.bin/m4/misc.c @@ -120,7 +120,8 @@ pbnum(int n) void pbnumbase(int n, int base, int d) { - static char digits[36] = "0123456789abcdefghijklmnopqrstuvwxyz"; + static char digits[36] __nonstring = + "0123456789abcdefghijklmnopqrstuvwxyz"; unsigned int num; int printed = 0; From nobody Mon Dec 29 12:23:16 2025 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dfwNj04pmz6MDNK for ; Mon, 29 Dec 2025 12:23:17 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dfwNh50wGz3WvF for ; Mon, 29 Dec 2025 12:23:16 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767010996; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=dP5Tjq+Q6jlpA6tkTUA8Bu/63PFhDDZUI2Kwg/3HiFo=; b=w7mNdhNAF7r14feNG30hzfyNu5JcryZj10XH74BcClcADD74ypmJilj0b8xNxzoB7EKykV mc1AVFScFZ/BPPeLyspdZMeqRhrkVJ+cFqEGHHXdrUYesqCSukoU1D+828/0rqHwMI2O03 DQsTri50LHZddBdZFFZqHL6p0qPQ0htYgIDv4JfTtvxn3hplg5rMDMfrNfnuPArXsoGbdl rIuLFIcqAdvXP6jexGh4vCJHE7XdtAw8Ru68HkB+wJr+t2nE6kH2+qFfz62N4noAQDlncR SHA3T/zDgQqOMYiipaVYvuFY55UIhvBFMzOWd0zrYo51iWoUw+nphwUam8k27A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767010996; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=dP5Tjq+Q6jlpA6tkTUA8Bu/63PFhDDZUI2Kwg/3HiFo=; b=Fb/kwtvJ3qKNEZW1bVb2XFlRatWmg7w5dcyxT9QcmYYS1AISGLPLpyprU/4nelaos9r/sa rSOE0lcS6F45K+WsPyHQr8Tamwt9d6tMXZNR4X9LTtSXPzkTokXlTDQfNJ88oOglfw/QI4 zKN9kqtt5iDoPQEsKSSnOKKc4Y76xLIPdwzD8pdowEegtkWM3UbJmboU78psB5LpW6oKlz DU4iBiclHr7uk7zVILy/wMpbVdqno3wQx7SzRDKAx6NSnA7ClSpyXC+ksdXg8yFGm01kJ0 grZBdcINZl1/3tgBlm6LY+unlN5+pb4bgho+JjLLaLQ40EU9pJT7U5UzsWD6Rg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767010996; a=rsa-sha256; cv=none; b=AEPmcf2JQkq3Owot43HlUrDXP+W6pzqfRp6Y5vzCafYhwMFH0fUNG8l3dLXKDWvkYtiRjC jMDH2odY1SwP8FJlBPdzt7y31iPTSJFOXnCsBTAgx/lYnDM363Rte0W6hCt4uautDR9LCH QQh3MEK3jqTKCi97lk+s7hV9hb8l+OXRFClLtwd/QVIBr7BD3yNBEej0/0mNh/TN2gfAuK mix7nCsz6hIPVcPwnCL1kks7QZI0Wqo8oqYf0nu4yYdbmIy0PNFOg7i4ICDIssCGrkMj84 mVlW4rZBMln7mliC2rGyHkmZb8zy/gJpq2Re7ZdWSqIlNreH222/Yg1d4y81qA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dfwNh4ZPwzHb for ; Mon, 29 Dec 2025 12:23:16 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 31ed4 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 29 Dec 2025 12:23:16 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: 0e8b2ab13317 - stable/15 - makefs: avoid warnings about too-long initializer strings List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 0e8b2ab133172da471d6f817a4ebc6bdac15a09b Auto-Submitted: auto-generated Date: Mon, 29 Dec 2025 12:23:16 +0000 Message-Id: <695272b4.31ed4.49a64d44@gitrepo.freebsd.org> The branch stable/15 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=0e8b2ab133172da471d6f817a4ebc6bdac15a09b commit 0e8b2ab133172da471d6f817a4ebc6bdac15a09b Author: Dimitry Andric AuthorDate: 2025-12-26 00:22:03 +0000 Commit: Dimitry Andric CommitDate: 2025-12-29 12:20:50 +0000 makefs: avoid warnings about too-long initializer strings Mark `direntry::deName` as `__non_string`, to avoid warnings from clang 21 similar to: usr.sbin/makefs/msdos/msdosfs_vnops.c:512:4: error: initializer-string for character array is too long, array size is 11 but initializer has size 12 (including the null terminating character); did you mean to use the 'nonstring' attribute? [-Werror,-Wunterminated-string-initialization] 512 | { ". ", /* the . entry */ | ^~~~~~~~~~~~~ usr.sbin/makefs/msdos/msdosfs_vnops.c:522:4: error: initializer-string for character array is too long, array size is 11 but initializer has size 12 (including the null terminating character); did you mean to use the 'nonstring' attribute? [-Werror,-Wunterminated-string-initialization] 522 | { ".. ", /* the .. entry */ | ^~~~~~~~~~~~~ MFC after: 3 days (cherry picked from commit ba0a11512237681fc621670023d56195cb8c82ad) --- usr.sbin/makefs/msdos/direntry.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/makefs/msdos/direntry.h b/usr.sbin/makefs/msdos/direntry.h index 9d6c65dfcc7d..675a70e26474 100644 --- a/usr.sbin/makefs/msdos/direntry.h +++ b/usr.sbin/makefs/msdos/direntry.h @@ -55,7 +55,7 @@ * Structure of a dos directory entry. */ struct direntry { - uint8_t deName[11]; /* filename, blank filled */ + uint8_t deName[11] __nonstring; /* filename, blank filled */ #define SLOT_EMPTY 0x00 /* slot has never been used */ #define SLOT_E5 0x05 /* the real value is 0xe5 */ #define SLOT_DELETED 0xe5 /* file in this slot deleted */ From nobody Mon Dec 29 12:23:17 2025 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dfwNk3DPzz6MD6X for ; Mon, 29 Dec 2025 12:23:18 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dfwNk04srz3XDh for ; Mon, 29 Dec 2025 12:23:18 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767010998; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=sFkGWxF7+pjUIf0M0Gw5zqmm4T4iWFZ799NR4P9CUUk=; b=DWGv8m532jWuxxWJ0wPC9PFp6mK8Eq6bgsbeMXbhp465SQ51wQ+wGOSBvR3ncjaJYZa851 27IBP/Nqu9QOf0TqIQDy1x8EfwfD1jHNv29WW1Wgvc1bCJ6AlYqMJXKplpPFhAOX67WguC im+1LI5zI291R1SlOU0dUt5gahR+wZJp4fsoVrXfdWotLyMbRXaBvUJXstOlCnPjj8s4K7 BqyoNnCm2KjUJAEfH0V2WTqL1iJwJH7Fpg16flpk7uPReK41dmIWzvKSVfxEOPuJfmUE/1 D/KHRTw0fj20oQt14rpoMj4UXsOY0kt9nxuGFMHzAmE1AJ44026iXbJLfD1Zaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767010998; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=sFkGWxF7+pjUIf0M0Gw5zqmm4T4iWFZ799NR4P9CUUk=; b=oKeeaScL4qFcUF5QSl+ScH9TKOAnPSgQAgwQI3SxU3NNEcqBT+zfzP3nbOSjKauGxhW7zz ydeLWnjpM32Mi30vCqRETRGpTVFitkUrmFTdJHojq5FC6duN88GbEVnj3j19iWETmA3L/I KNJdB5DeRhfvLlsnZ40XUmlaQQjegM+ea8xC6tFnB3rT2gCfnqUKfDwh5i6FLn3AEgTA+5 5FPgkx94a16uDAnCBtLi8OIbDdqs1ZO1v267MBzE/wmOGYEKwx9OwlI2GU1jWqVB/5zqRV +cuyG/A2r1oUhgQCIyya48ugPaicBTW9uz2OyDFA6EUw1OjlPEPGcclf0xCDFg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767010998; a=rsa-sha256; cv=none; b=Gc9zrxm4m9cAC+jta211PlHyOApAEGfxbIhkdA2T86khQgcbw3l80CSIqYHCuhtreOdp0O 5ns6XR/kR2lAhMC1YnK5ycznHSgyKFupoUfT6VHAQDvwFmYiEFmiyOUErQrhkaSFyjo6+g U5ZOI3dLk5iR7pV0nIyvGdj3e8j+o7x5eNoxQHe7wz24BZ3wVUUT3mDlO35U2HtBJnqwdw QoWV4KGnNCGw1WdJlus0n8fSeWzC2I6gOFyAr98dEeAjq9+W2XQNXMtxEEOc/ERF0ZyBkM KHhDhihCA6k3a8BUMr2uXsHam2A6XXu7WBwGjvBkQrG4wt4J/kCrB+a9PoXAcg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dfwNj5Sy7z1S77 for ; Mon, 29 Dec 2025 12:23:17 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 33696 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 29 Dec 2025 12:23:17 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: 1b9ab283da73 - stable/15 - bsnmpd: avoid warnings about too-long initializer strings List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 1b9ab283da73aa1807ef29008dd793f3986ae762 Auto-Submitted: auto-generated Date: Mon, 29 Dec 2025 12:23:17 +0000 Message-Id: <695272b5.33696.49ed11ae@gitrepo.freebsd.org> The branch stable/15 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=1b9ab283da73aa1807ef29008dd793f3986ae762 commit 1b9ab283da73aa1807ef29008dd793f3986ae762 Author: Dimitry Andric AuthorDate: 2025-12-26 13:27:08 +0000 Commit: Dimitry Andric CommitDate: 2025-12-29 12:21:15 +0000 bsnmpd: avoid warnings about too-long initializer strings Mark `UTC` as `__non_string`, to avoid a warning from clang 21 similar to: usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptc.c:339:29: error: initializer-string for character array is too long, array size is 3 but initializer has size 4 (including the null terminating character); did you mean to use the 'nonstring' attribute? [-Werror,-Wunterminated-string-initialization] --- all_subdir_usr.sbin --- 339 | static const char UTC[3] = "UTC"; | ^~~~~ MFC after: 3 days (cherry picked from commit 3054e22e4524df24908d7e9379681c1ccf829b93) --- usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptc.c b/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptc.c index 354ea2ece83a..3957e03a0fe3 100644 --- a/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptc.c +++ b/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptc.c @@ -336,7 +336,7 @@ static char * snmp_date2asn_oid(char *str, struct asn_oid *oid) { char *endptr, *ptr; - static const char UTC[3] = "UTC"; + static const char UTC[3] __nonstring = "UTC"; int32_t saved_errno; uint32_t v; From nobody Mon Dec 29 12:23:14 2025 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dfwNl5qlnz6MDNM for ; Mon, 29 Dec 2025 12:23:19 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dfwNl446fz3XBZ for ; Mon, 29 Dec 2025 12:23:19 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767010999; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=qbgMQqeQavRW2aF8HOq0LJbgfje3CpellkaMxCdQJU0=; b=pJepQNOsz4XlgqXGp/SX46smrOFCAEvx4EbyuvGZ1HfZgZ8N4ZQmeTzDa3HQXB4K/ppE2P 0a+03KTZHpq8CtINdlU408HPh0QV6W8DUhY1gDhJkPi49dZPyGir+W/8SzT2mv5ubvHoRb eGz49JUDY0EjXVg9Sro/OwE5lDh57MDfKNrkt36dHyvLvlH3ltwdBqpzrYddo1z4YjQ2i9 CrSKl94M/TIcy3DkA/iOtu73b5TxlqQrpjea1siUTsTWjtlwPX5QU5Nw53yQyEbNsIhvjz 7jXUZ6jfSrFsUDiTpa3JurriGpgs4mAyAY6Ftu+3RommGYfNexnaBh06h6QwrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767010999; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=qbgMQqeQavRW2aF8HOq0LJbgfje3CpellkaMxCdQJU0=; b=TUJvEy/UAgcndio24klIGaGL1LutmSlv2CUNa6Xa0NgE1gCHta3dgHh6weiJ/r7bgQ654Y XU6gie8qyW4sDtSSAjFvo3AQVvP+TWoMNOVvs+WsgUG2kKdAF35aAl9xVYLu2NmvaEuKca S8jvJgDpV8HHPnxBBvI6VOJqa06uBDTyvy1uArk4BhbDJgFc7BhoYecYRESyvsBxz8gS2d 1M/vccN7nyiZ9aXrb/3/nH0i+8kJUz2pe2Cw7M9Q9KmSsnaszr7liOxwJKzMuVX2iJjhG5 MfJktUWMpoFQJ1okvARvs8de63VEQfXY1u2jBQ8tD0GVLqr98dr+Ubg1Y8GXZw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767010999; a=rsa-sha256; cv=none; b=SoNCa1ulw/STWoky0smlRJmX4G+qQ8rc5qhO9snGbk/br+MuRxwJKl5Uf5env90LClbiDw kFm6thC4oZXMuO5FcOSPpBYat3zNtbL5cAKAFfE6nORWtQzR88s4qqU598irTa38wIZRvc yZJj3BgE667DRgkFDcuITXAlGGeFf7t62tEAxezvXOo+qaNKrfnlCDQSIKV+0LunLRnP0F c0vsXfeUb0FqxvdJ8KiCSV2mUpz4bdNANe0fTdxj5QK3ojECVTcTuALCmDNdWXbv89jSYd WzO/mK3mPZ5x19aytvoOd4WCxhZ6+YW3MkV/KhtyR47F5AXyEJgYYUS0KXnW9w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dfwNl3fG7zRn for ; Mon, 29 Dec 2025 12:23:19 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3262f by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 29 Dec 2025 12:23:14 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: 026647c72e82 - stable/15 - fsck_msdosfs: avoid warnings about too-long initializer strings List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 026647c72e825b0d779a6ae8919b1254c142a8e5 Auto-Submitted: auto-generated Date: Mon, 29 Dec 2025 12:23:14 +0000 Message-Id: <695272b2.3262f.5f15947d@gitrepo.freebsd.org> The branch stable/15 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=026647c72e825b0d779a6ae8919b1254c142a8e5 commit 026647c72e825b0d779a6ae8919b1254c142a8e5 Author: Dimitry Andric AuthorDate: 2025-12-25 20:28:14 +0000 Commit: Dimitry Andric CommitDate: 2025-12-29 12:19:10 +0000 fsck_msdosfs: avoid warnings about too-long initializer strings Mark `dot_name` and `dotdot_name` as as `__non_string`, to avoid warnings from clang 21 similar to: sbin/fsck_msdosfs/dir.c:466:39: error: initializer-string for character array is too long, array size is 11 but initializer has size 12 (including the null terminating character); did you mean to use the 'nonstring' attribute? [-Werror,-Wunterminated-string-initialization] 466 | static const u_char dot_name[11] = ". "; | ^~~~~~~~~~~~~ sbin/fsck_msdosfs/dir.c:467:39: error: initializer-string for character array is too long, array size is 11 but initializer has size 12 (including the null terminating character); did you mean to use the 'nonstring' attribute? [-Werror,-Wunterminated-string-initialization] 467 | static const u_char dotdot_name[11] = ".. "; | ^~~~~~~~~~~~~ MFC after: 3 days (cherry picked from commit 98c3d868fb5a7da7356c58e8c51423975bbd078b) --- sbin/fsck_msdosfs/dir.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sbin/fsck_msdosfs/dir.c b/sbin/fsck_msdosfs/dir.c index 19516d882e2a..2d7e4bcdc38f 100644 --- a/sbin/fsck_msdosfs/dir.c +++ b/sbin/fsck_msdosfs/dir.c @@ -463,8 +463,8 @@ checksize(struct fat_descriptor *fat, u_char *p, struct dosDirEntry *dir) return FSOK; } -static const u_char dot_name[11] = ". "; -static const u_char dotdot_name[11] = ".. "; +static const u_char dot_name[11] __nonstring = ". "; +static const u_char dotdot_name[11] __nonstring = ".. "; /* * Basic sanity check if the subdirectory have good '.' and '..' entries, From nobody Mon Dec 29 12:23:18 2025 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dfwNl3SYHz6MDNL for ; Mon, 29 Dec 2025 12:23:19 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dfwNk6vTFz3X73 for ; Mon, 29 Dec 2025 12:23:18 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767010999; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=QzGnLaIcHaja4RavutDscUtXPL7BpOxEBRvGsKEl9a8=; b=nt0EfmZDCRLOGkMfKeOLPp+gEI08EEkjUAS8jj3M3Rnx30PXFx0k9mLuO+0mhqGlmvJDLj afAFotPWqHoBAPMBySwT0ki4VYJVYFXe4ifScQTz4k7cKby08NGUtvmmKw6MkEhQCfefPs wJMwfAD8cqKdqkHAuHqmC+kkp1LjoHcYFsv3jC6v7zEFnk84Za6k3JYI1yHQez/sTVlPZz hIBsydxaZBkxr8Udb51jS8PET2fq2UkgMjurZTkglkiQoc61htEWe7sPooJNU7fiAWdn5F BspnB15UHVUSfJJi3f/HgSH0aC5BMu54z4pdwSoDxQm8ynU3dNlrvcYXokvL9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767010999; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=QzGnLaIcHaja4RavutDscUtXPL7BpOxEBRvGsKEl9a8=; b=ov0rAam8zUXxD2+xmrudKk1XBn7d3rN/PDZeJOEx5YrW3jyCfrcVFaNKjADw3Ek8c0Nhg7 /dyVuHfEa4CGclUr5rH1NsqiWmJ/SihyilHyW1WJWYY/ITRW0SxuHajAytUmbxzF1z/Vf4 3l1xSCLOoOVSWWpRnLnL1oBM3ySNaUGU1+3z0QPEHq8a6LaoBngdNmyjIqj/shTd2i16VK ePUaGLGHamwD11HmjO03yGH5jwDNHD/771FY00zrrbuZWl82okBBQAisqbWzR66YqIHHFB LlkTYT9ZGuboKoXqbTsMK+SvmgWVufrL7yXKR7rcOoc3ch9+06PpiwmMc9LCsg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767010999; a=rsa-sha256; cv=none; b=TSItYdZwp6pPDV5mL1k8ww+Uw0hmD4Ry/vRvpaVycNzQYRYV0qznluslEod+0b83klAX3S Itp3tILfzcmxDvOQGxikBo4RNL0kK8UAECY6UOhgcXoBj9KOwTP5k0a7yMCkkpsoAstoDM mEWWrk77osRejz7mP2n2hPfsICauk42NMTcp5z1C0SC0MnE2Rp92rQGKL9gmzQAdXbPIia 3KYuWlZX/ZupOeysx7Q7HzmAqrIQBPN6uKeGXCNCqjpzsu0VZYZ3JmJNhC6P9JCJYLne5S CysVfInJO0WwfbiFVMa4hbRRo4OCZ7rSyvMMFFErLxQuhgbexZlgO4GVPhpkcA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dfwNk6K2yzRm for ; Mon, 29 Dec 2025 12:23:18 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 32a09 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 29 Dec 2025 12:23:18 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: 05924176b7d5 - stable/15 - sys/font.h: avoid warnings about too-long initializer strings List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 05924176b7d57f837f95ae1d1325e67edb7ceeb7 Auto-Submitted: auto-generated Date: Mon, 29 Dec 2025 12:23:18 +0000 Message-Id: <695272b6.32a09.24d8ffe@gitrepo.freebsd.org> The branch stable/15 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=05924176b7d57f837f95ae1d1325e67edb7ceeb7 commit 05924176b7d57f837f95ae1d1325e67edb7ceeb7 Author: Dimitry Andric AuthorDate: 2025-12-26 14:31:43 +0000 Commit: Dimitry Andric CommitDate: 2025-12-29 12:22:53 +0000 sys/font.h: avoid warnings about too-long initializer strings Mark `font_header::fh_magic` as `__non_string`, to avoid a warning from clang 21 similar to: /usr/src/usr.bin/vtfontcvt/vtfontcvt.c:763:15: error: initializer-string for character array is too long, array size is 8 but initializer has size 9 (including the null terminating character); did you mean to use the 'nonstring' attribute? [-Werror,-Wunterminated-string-initialization] 763 | .fh_magic = FONT_HEADER_MAGIC, | ^~~~~~~~~~~~~~~~~ /usr/obj/usr/src/amd64.amd64/tmp/usr/include/sys/font.h:109:27: note: expanded from macro 'FONT_HEADER_MAGIC' 109 | #define FONT_HEADER_MAGIC "VFNT0002" | ^~~~~~~~~~ MFC after: 3 days (cherry picked from commit e2c93ed09f259ed049923bdaa9b697b3586e2f1a) --- sys/sys/font.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/sys/font.h b/sys/sys/font.h index fb5fbbc9e557..d486dbc3a011 100644 --- a/sys/sys/font.h +++ b/sys/sys/font.h @@ -108,7 +108,7 @@ typedef STAILQ_HEAD(font_list, fontlist) font_list_t; #define FONT_HEADER_MAGIC "VFNT0002" struct font_header { - uint8_t fh_magic[8]; + uint8_t fh_magic[8] __nonstring; uint8_t fh_width; uint8_t fh_height; uint16_t fh_pad; From nobody Mon Dec 29 12:23:29 2025 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dfwNx58jMz6MDRQ for ; Mon, 29 Dec 2025 12:23:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dfwNx1tbjz3XWw for ; Mon, 29 Dec 2025 12:23:29 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767011009; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ZqkAQILj2ESSOOAOlCWT8o5U2FvccMfNevl8T8I1L/g=; b=cTEH01sPSV9kZ06vWpXHC4JvOS4E35PlJuk5FTYmvz+m+BqblDmLi3aAUGyOuz5ahtGVNF R6bqJSU3kUzbFgaMmTBivmQxZkbS3i2ctL/Xo5zPbcdDd3d9bqnQxXJjMIkTbkXNOP+zeR UbE+puc45n5AZOd0sFdo2hguiZ2lW5ZCREunPTb9/I+UAN9jvC/UROVaDNMnYgSqR14ODN oZLTzrIpDWXdn2fFy/hkiN3v7KOUO7jN/a8F4MBkLS/2/UGyi2kDe1mnCwNZWQFk0QCOJt 4k6rDMa14AHPIpLPdgT1Jvo/5LH1n5EWxYyYru1ZV7S7ezcAJC5DhEskBD651w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767011009; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ZqkAQILj2ESSOOAOlCWT8o5U2FvccMfNevl8T8I1L/g=; b=w4anipsjA0FA9DbLlanfIB2KX1MJZ032jICWyov28TqqmxQl4QS5M09rAf8RR5fQu/eBPg iEPhqewEFQeXwKpGIRRp7rFp2sc8QRPh79iGcGQnuhJbCs+61dlcpkhptubv48t+X3Cc8e daxkY2avu1M2x1SJRyjoxq21x7x41Ypfc+Pg/iUM1tFCsu0BAinJUD48u87MlswfsZfHAl Wi1E6rKVWoJItLPb4Hd9euA6FgrbPLZpT+npe2AnyeJtyOxziEwbUI3tbLBRIMe9hK5PE3 AAWNXJHIJYm7W/w3UyTMDjKZvGx7ED8hAOxKYtCJIxNNoCMcvyceFLQRDHJCZw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767011009; a=rsa-sha256; cv=none; b=jTmqzfmgLC+okkFhpMw5YLJjKVoH0MHYx0notcMWOx7ukqloJpI3bMDq+T0fIE7/pHeuKp Q/sw3y4dEszcgtyz0bU3jJWD+VekEFccZ4z3Xe+bHzSMv2ArpXgSS8+nORe+UFyPtgATf1 H6sVnpmzqHofNT3aO4PKwRVkebKxYUjZSry2cQIDqQBalw1AIQVhGtA65FQVtmLidDYTPj Uh4vEAKaOFf1nXn4R7VZgME9PzjdBmtmIerQZ1trymBP1BlbenHNvTlR7gUo19+04Eabn6 mQnEn4PiKzLDWVvRXBAtBGYeZLr36o/2yOB2EykHU6iUTreKoyUoI5ZNoBkcRw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dfwNx1SHTz1S78 for ; Mon, 29 Dec 2025 12:23:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 319b7 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 29 Dec 2025 12:23:29 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: 5402a4d73fe7 - stable/14 - fsck_msdosfs: avoid warnings about too-long initializer strings List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 5402a4d73fe7f26d9ae7d6a9a5937c87ad06b5a2 Auto-Submitted: auto-generated Date: Mon, 29 Dec 2025 12:23:29 +0000 Message-Id: <695272c1.319b7.7067835e@gitrepo.freebsd.org> The branch stable/14 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=5402a4d73fe7f26d9ae7d6a9a5937c87ad06b5a2 commit 5402a4d73fe7f26d9ae7d6a9a5937c87ad06b5a2 Author: Dimitry Andric AuthorDate: 2025-12-25 20:28:14 +0000 Commit: Dimitry Andric CommitDate: 2025-12-29 12:19:14 +0000 fsck_msdosfs: avoid warnings about too-long initializer strings Mark `dot_name` and `dotdot_name` as as `__non_string`, to avoid warnings from clang 21 similar to: sbin/fsck_msdosfs/dir.c:466:39: error: initializer-string for character array is too long, array size is 11 but initializer has size 12 (including the null terminating character); did you mean to use the 'nonstring' attribute? [-Werror,-Wunterminated-string-initialization] 466 | static const u_char dot_name[11] = ". "; | ^~~~~~~~~~~~~ sbin/fsck_msdosfs/dir.c:467:39: error: initializer-string for character array is too long, array size is 11 but initializer has size 12 (including the null terminating character); did you mean to use the 'nonstring' attribute? [-Werror,-Wunterminated-string-initialization] 467 | static const u_char dotdot_name[11] = ".. "; | ^~~~~~~~~~~~~ MFC after: 3 days (cherry picked from commit 98c3d868fb5a7da7356c58e8c51423975bbd078b) --- sbin/fsck_msdosfs/dir.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sbin/fsck_msdosfs/dir.c b/sbin/fsck_msdosfs/dir.c index 19516d882e2a..2d7e4bcdc38f 100644 --- a/sbin/fsck_msdosfs/dir.c +++ b/sbin/fsck_msdosfs/dir.c @@ -463,8 +463,8 @@ checksize(struct fat_descriptor *fat, u_char *p, struct dosDirEntry *dir) return FSOK; } -static const u_char dot_name[11] = ". "; -static const u_char dotdot_name[11] = ".. "; +static const u_char dot_name[11] __nonstring = ". "; +static const u_char dotdot_name[11] __nonstring = ".. "; /* * Basic sanity check if the subdirectory have good '.' and '..' entries, From nobody Mon Dec 29 12:23:30 2025 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dfwNz37vvz6MDCY for ; Mon, 29 Dec 2025 12:23:31 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dfwNy2qVPz3XX2 for ; Mon, 29 Dec 2025 12:23:30 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767011010; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ttIMTWInr96Dt6/F4TekfRi+ePPVfqk/fAKbYFsYqlE=; b=qWORJX0ZrJ2wYyvJSPQWu4+YySzHI2avz66LRmkuQMwzs1AixhjolCA16NGm5d3yT1AgsU ljNdKPJfpxGYEixpOQOhfL9W3YWmA0K4wC80qnVjGnT4g9KxiRWekkb9HO4JVrL50dm0Nr YM4Q9yTM377ay1dj6/tbnikM6y+/0h30aEXfB2sGedGUTLRbe3+F7gOwPPk+jaT6ToqKCR miAOFgUcW3vTEfruQXnPqBd87FzaTiPk+up75pMkb2JT9cY+zDcEYhoo0D7vn8JTHH/UHc /P1lVZaoJGyLd6OhINL5d4pP9GwJE9J7oEZy429uTu+EtTjugFCwZaOY+opLoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767011010; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ttIMTWInr96Dt6/F4TekfRi+ePPVfqk/fAKbYFsYqlE=; b=KwAuigYuAQFay+cRsVQWGV5skpUbiMhE4t7KqQTCUoaSTEHRGiUYF+tkDMb5EVXueaYU4b yEMqd2xQrT5F3Ghg5j/vjfIaQoNk/F8bqH6FKRBFPHDdq8PGxQECvBEpHcnUBbbBOfMowF q/LVLrts72ylXDmPGihIsx7tvITIZwDcZTDhZNnubEJx3dcY7YarS5pzM1pHzhAw7HBVsL 5wES1aJP7vhbhwkdCbtkLmNXHYnAQHvwwvuxBW6GJuvGX7KoWVzE2jiGeCLReAiQ/L+3Gb f9pRv9BVl/5vVo38xuzEHdhJV8HV7bqF8MBNlhOq85mYG8rhamuQZeXYVLsCUg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767011010; a=rsa-sha256; cv=none; b=iHn6iUuXGoTWoP8OO6nJUQU1yANbyN80J778aCYn8m1jB2qzCI+NpCitA2OvpUPk8h6MdM 2/7SwisnOgzzQamsG3ZMHwu4svVNVfRdc1cCXpXMa2PpQe6eXoc3/87kJ1WOkrNvUIIhG0 xPc66pnP2NXdFKL/6ctRy1Z64pjAgfzvM33flKhzZvxyim+qohi2Hf9IK2n5cDFsl7hemI jGxOpfyImZPFghIGoAwgLQgg+Cn0PnoiOIUUYgXWDCQ1V3Yyt0YNymG5aQtbq91RI4sYvv nQgyO2JpH401otgpf24ScFLP/NQSY9EIcH91iAvmkeI7CwRxPOFezkJ9YDOZgQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dfwNy2Hz8zLD for ; Mon, 29 Dec 2025 12:23:30 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3191d by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 29 Dec 2025 12:23:30 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: 9f60c9b76fa4 - stable/14 - m4: avoid warnings about too-long initializer strings List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 9f60c9b76fa4b45c73531073c306e0ddeb32cd16 Auto-Submitted: auto-generated Date: Mon, 29 Dec 2025 12:23:30 +0000 Message-Id: <695272c2.3191d.4c3c5256@gitrepo.freebsd.org> The branch stable/14 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=9f60c9b76fa4b45c73531073c306e0ddeb32cd16 commit 9f60c9b76fa4b45c73531073c306e0ddeb32cd16 Author: Dimitry Andric AuthorDate: 2025-12-26 00:30:25 +0000 Commit: Dimitry Andric CommitDate: 2025-12-29 12:19:40 +0000 m4: avoid warnings about too-long initializer strings Mark `digits` as `__non_string`, to avoid warnings from clang 21 similar to: usr.bin/m4/misc.c:123:27: error: initializer-string for character array is too long, array size is 36 but initializer has size 37 (including the null terminating character); did you mean to use the 'nonstring' attribute? [-Werror,-Wunterminated-string-initialization] 123 | static char digits[36] = "0123456789abcdefghijklmnopqrstuvwxyz"; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ MFC after: 3 days (cherry picked from commit a3394b6a23fb66ccb7e588129d2465ef8ea26d30) --- usr.bin/m4/misc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr.bin/m4/misc.c b/usr.bin/m4/misc.c index 73ced384466c..7d2473f88168 100644 --- a/usr.bin/m4/misc.c +++ b/usr.bin/m4/misc.c @@ -121,7 +121,8 @@ pbnum(int n) void pbnumbase(int n, int base, int d) { - static char digits[36] = "0123456789abcdefghijklmnopqrstuvwxyz"; + static char digits[36] __nonstring = + "0123456789abcdefghijklmnopqrstuvwxyz"; unsigned int num; int printed = 0; From nobody Mon Dec 29 12:23:31 2025 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dfwP046r0z6MD2Q for ; Mon, 29 Dec 2025 12:23:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dfwNz4v5mz3XXH for ; Mon, 29 Dec 2025 12:23:31 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767011011; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=6kXpwZ30cGk8nYmZK2sENd5SXfRQklC22KT7sTxFLlI=; b=keuo5/krYH4uzOxC4+1W+HQikzpjGBk6wJO7bWQgKqTQhrZi4fVpNxh5PyT1MkPfpLrl5R t3y8upHL0ANn0bMLUUCHW6hsEguNzRmJYzmPJsyMRrU9M2XAj4t9XpSdmtES0MAs5zaJk8 Ahni5SKD45yy62cx/fq+Kvn/Qr2/HCKVIiqzdmgkxkuOYLOJV/4mj02Vfgc8G/K0GkDUVa rY06tFFR8nGPDm4PIvuVD2CjEmsqBWXCA6HjmDUhcaFhXJwHa/j9eK52vmHk1Yox1BU/VV L+k5qJC6uRLw8MvBLJ/QYNn/D8mdagX7LSfPDmLLZa1eoMWhQ+QLEc4LUIQgBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767011011; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=6kXpwZ30cGk8nYmZK2sENd5SXfRQklC22KT7sTxFLlI=; b=Vk3RCWRp3PlGwr9uAj7BKuI6vgM9ZXjLeEK6CJ1Z6G7IxO+h+96evjrDtEbdUroRUZWKww wqygJuD6HdtSWNC5F4BMrjd+4yBcYi1JhO0fs6EDnwi4vIY5xlsi6YePXt6xEdg4nOoTSI QoENZslC6iAF99f9dNrXI5RjTT+qCZQBp3THvl8AXsRjA4iYD4I0AHvMHF4XgghvZgoCMa Nu5LmtzN8rdFexQUIhfxIxFTu7XW7McwM5EBMHYo7qrdnDHgG++i+0FGhmsKwJYwYMrKW9 ZXuLtJaD3259dYna9n5s/fRo5f/kADWPAWTqb1cAox06tiofIoYQk3kcoz5d8A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767011011; a=rsa-sha256; cv=none; b=KjSWQAzx53HDZLlDXypLEbCd1m6hTecNuBVf+olz1b5VMclzXK1GcGxbqwWQuZ+LdAgsPZ dbz0oB+Kx55kEqSoRIqDuF6w5CvjZnj5V1ThKsJ9EDAEVTA0gfgnaUJwlV1sB+gF7HaHRo mdbQKLMGx0ud+OuDIHM3phLZgg00ZhfPxCDfn8igk6ixGwg0/jNzlZnyGYC+aOmBudN1bv xa6LBUJfr0bb93jRlhiUdSqfrx7floxFT1UwdX3rrJy4TY5oplw7uGCZkewtug52nBMtlb jX7Scqo6Ejsg6q+ROS7fd5LhHlr7DFLIyot+5YRuLg15qN3S4CtH9nSipEWq0A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dfwNz4BQGzTn for ; Mon, 29 Dec 2025 12:23:31 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 32e0b by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 29 Dec 2025 12:23:31 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: 43d41e72fa2d - stable/14 - makefs: avoid warnings about too-long initializer strings List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 43d41e72fa2d3365241346c8b122c1a5215f2723 Auto-Submitted: auto-generated Date: Mon, 29 Dec 2025 12:23:31 +0000 Message-Id: <695272c3.32e0b.6e84bced@gitrepo.freebsd.org> The branch stable/14 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=43d41e72fa2d3365241346c8b122c1a5215f2723 commit 43d41e72fa2d3365241346c8b122c1a5215f2723 Author: Dimitry Andric AuthorDate: 2025-12-26 00:22:03 +0000 Commit: Dimitry Andric CommitDate: 2025-12-29 12:20:53 +0000 makefs: avoid warnings about too-long initializer strings Mark `direntry::deName` as `__non_string`, to avoid warnings from clang 21 similar to: usr.sbin/makefs/msdos/msdosfs_vnops.c:512:4: error: initializer-string for character array is too long, array size is 11 but initializer has size 12 (including the null terminating character); did you mean to use the 'nonstring' attribute? [-Werror,-Wunterminated-string-initialization] 512 | { ". ", /* the . entry */ | ^~~~~~~~~~~~~ usr.sbin/makefs/msdos/msdosfs_vnops.c:522:4: error: initializer-string for character array is too long, array size is 11 but initializer has size 12 (including the null terminating character); did you mean to use the 'nonstring' attribute? [-Werror,-Wunterminated-string-initialization] 522 | { ".. ", /* the .. entry */ | ^~~~~~~~~~~~~ MFC after: 3 days (cherry picked from commit ba0a11512237681fc621670023d56195cb8c82ad) --- usr.sbin/makefs/msdos/direntry.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/makefs/msdos/direntry.h b/usr.sbin/makefs/msdos/direntry.h index 9d6c65dfcc7d..675a70e26474 100644 --- a/usr.sbin/makefs/msdos/direntry.h +++ b/usr.sbin/makefs/msdos/direntry.h @@ -55,7 +55,7 @@ * Structure of a dos directory entry. */ struct direntry { - uint8_t deName[11]; /* filename, blank filled */ + uint8_t deName[11] __nonstring; /* filename, blank filled */ #define SLOT_EMPTY 0x00 /* slot has never been used */ #define SLOT_E5 0x05 /* the real value is 0xe5 */ #define SLOT_DELETED 0xe5 /* file in this slot deleted */ From nobody Mon Dec 29 12:23:32 2025 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dfwP1080jz6MDNW for ; Mon, 29 Dec 2025 12:23:33 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dfwP048c7z3XRy for ; Mon, 29 Dec 2025 12:23:32 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767011012; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=tGLUkGxuqq9iTCwexYsoNIr1hjAaRHhGgDCBq9KkhmY=; b=ASZ4i3+JNfE33GnL4B1QNPAdmRT5dKIJXyxEpi7X6epWp+Ui9lCco6c7axtf2E+37zrC5T +PPQhvNDzy1/QyM7AsFYsrznnR3jYf0EMp6gN083rU258/RZx9RYPbxzzcl7eBLwiIWVWk UfWmPlfebpLeOsoguc2I6w83MH2VPmXwRInEAoQld7svzDE1booGq4msTKqxR2/RHVaBFO CCPIZUKB3IW8upIgsb4xNaogo894oLoo2C9MUmMkmtUkEKwMzB7icFUTZsXSuQpC7Rs0t7 AYguokmQhSZVKrjhWUOPS/q2e1xCmYXQ9prkGZFYG0VDvb3bHy5/xfedgzyx0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767011012; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=tGLUkGxuqq9iTCwexYsoNIr1hjAaRHhGgDCBq9KkhmY=; b=A09H/MgpWcP25/UD5doH6aOL2m0dXwTjz05nA5r8lVkQ339vCtKmP7K8XCiARUJev5bVjq zLikaVHpZWWWCTMVIIb0clLqYfiSltfqak2fbjyPKhsQKZVN3mzTmSbw16eb4BF+YFjZQE MLua739UQKj/byZvXKy/wimHC1vcFhlAfWAyibjilBpZBKiPp1IUEPGh4upqVOE7pvE74x OOw+FZkUkMcvwAELVyiEaNZWc9oETqHjAWx2DwsEwYXQkVs0R53n8VFhHlQbzvFer100Jk 4m7uQIhT/WM68AzRgRig0LNfSKIVn/TtCHmeWav6kuiirOC1gdvJQMdg88AJGA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767011012; a=rsa-sha256; cv=none; b=mNM1UNY+6osnO15c9XOnhLouK8zw8dcmhdqVcP+mG6PESkEsUFBfOTon4zSAss+9Av6NlP GzBzG6VvGG95iFOeqSj3Fz3395hvYqdVXjuVTGuJitLbjRBo0QuWErHQL0q5Mu/qQeFDv/ ltdDD8SBmrVPjLeI81VCg0B9sDSAc7noDcqMSD1tN2LL9giLvCPyMuO1yPxdBppoj0SNgb Kvs6qF/eRIaMnCWEGDeHhFnx39e0LyTS0o290JmW5jHfnjouKg6J86uZd7qwM+8ojRkFvs bgdP+nc6Xda2r5GbEucL0FZY+qexWIqaLu2bcdkVXQoZOK8QkAOpJLE4TqvLlA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dfwP03bl6zLF for ; Mon, 29 Dec 2025 12:23:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 31ed8 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 29 Dec 2025 12:23:32 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: 4f8f0941c285 - stable/14 - bsnmpd: avoid warnings about too-long initializer strings List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 4f8f0941c285a897beefe1c9795be8d9bbdcf724 Auto-Submitted: auto-generated Date: Mon, 29 Dec 2025 12:23:32 +0000 Message-Id: <695272c4.31ed8.6875ab34@gitrepo.freebsd.org> The branch stable/14 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=4f8f0941c285a897beefe1c9795be8d9bbdcf724 commit 4f8f0941c285a897beefe1c9795be8d9bbdcf724 Author: Dimitry Andric AuthorDate: 2025-12-26 13:27:08 +0000 Commit: Dimitry Andric CommitDate: 2025-12-29 12:21:17 +0000 bsnmpd: avoid warnings about too-long initializer strings Mark `UTC` as `__non_string`, to avoid a warning from clang 21 similar to: usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptc.c:339:29: error: initializer-string for character array is too long, array size is 3 but initializer has size 4 (including the null terminating character); did you mean to use the 'nonstring' attribute? [-Werror,-Wunterminated-string-initialization] --- all_subdir_usr.sbin --- 339 | static const char UTC[3] = "UTC"; | ^~~~~ MFC after: 3 days (cherry picked from commit 3054e22e4524df24908d7e9379681c1ccf829b93) --- usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptc.c b/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptc.c index 354ea2ece83a..3957e03a0fe3 100644 --- a/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptc.c +++ b/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptc.c @@ -336,7 +336,7 @@ static char * snmp_date2asn_oid(char *str, struct asn_oid *oid) { char *endptr, *ptr; - static const char UTC[3] = "UTC"; + static const char UTC[3] __nonstring = "UTC"; int32_t saved_errno; uint32_t v; From nobody Mon Dec 29 12:23:33 2025 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dfwP21L0Dz6MD6r for ; Mon, 29 Dec 2025 12:23:34 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dfwP14smgz3XPH for ; Mon, 29 Dec 2025 12:23:33 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767011013; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=2sWGEwgdJpbdRGzOBLVJOEq2un7nE3lhqaZcg2K/02M=; b=HZX9Q8Xp4gFTPhPE1emqwzZj6yKeHqVIhN/yVKZYczjgybT/l/wToEmFRI/WyodByyf2yt HLQCEfxScN/vBGCmBvK5Lyz0/fs6+Kkz53OYjrTs3XF8Cz6nzG6rvLMGH9DTU8EI5xtION LK1HXZEF7xuNzouNrv9bdpiXaoJfyPUZcVTOrHP2P7r5cPyRpSuL4T6XilF6bWc1i6BxpE hLO7d+90PVDUpnPFQsQjQpK/IEQxIs3l0fvcJeOJDtFgZcjGOvfOG8x2VzyTHM7wxlychz pk2utce7QhlSKSCEnZAmgliuNs54ouZ3iIFciOt+kVES8SCU9zqacNfW7QTDmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767011013; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=2sWGEwgdJpbdRGzOBLVJOEq2un7nE3lhqaZcg2K/02M=; b=gLjVjsrGW/RWeTEQ19b+2KCh+4vBG0cJn/Bfr2C+ix6X9YMfD53VaeHpIvWZ7qtzJ6lZw4 vlToksES9msufV5Q7UxrSXfxSrivGu43SzA7AVLENh2VHjuX4pttrdCz/a7PwkakDmOGau xGtvz3Zk3oOaqyQcHwHx2nz2jj1AFOzSiH2g0dxRjKaB2RQHsDaD/8I19JLVe8/C1wVjNm AVydK9yabIEAq0+WLd+GczELWKlIt4KH86KjAednmVToUBNdDPt2vPaIH7BIWZUwPDShul VJnwEtm6D2NyYbah/XYePj/riAxWL9UUl3sy1LG+QD20hqjyjDDWhd0HUyHetQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767011013; a=rsa-sha256; cv=none; b=VyyuyAyKTM+AOq6HhKUx/cED6U9+t1jx1622OvVCAZt6wf8fnePXpQvXj8M0L2nsAWek/L k+nobmVChe+NMmI6Zo+xuDSLoVgmpXqjuPHHOI0WqjT1iGOrGva86IyCkppe11VoviZt0K IdeJYe8Hm8IxfIBQ4YMLctFJbr7SiiOnB5RuW6fwAOPwvKOLt6UUCtTUNuGLb8AY5P5Xgl 57LRi0GLbzdVz1nIbE7D6rxKsO9KvNgyOJQ7GMwTFBovf17akfR4mA7IGaoTtUT9zghp6Y M9zOhzKYz44eoFUYMvNKSwECC4ySFJ2EXly2ZVQutpMQ7c9xZWnQRdwZcP+sIg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dfwP14PZ0zLG for ; Mon, 29 Dec 2025 12:23:33 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 326b4 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 29 Dec 2025 12:23:33 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: 143273854faa - stable/14 - sys/font.h: avoid warnings about too-long initializer strings List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 143273854faae2ad27193ce58cab773356a70e2a Auto-Submitted: auto-generated Date: Mon, 29 Dec 2025 12:23:33 +0000 Message-Id: <695272c5.326b4.23f86431@gitrepo.freebsd.org> The branch stable/14 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=143273854faae2ad27193ce58cab773356a70e2a commit 143273854faae2ad27193ce58cab773356a70e2a Author: Dimitry Andric AuthorDate: 2025-12-26 14:31:43 +0000 Commit: Dimitry Andric CommitDate: 2025-12-29 12:22:58 +0000 sys/font.h: avoid warnings about too-long initializer strings Mark `font_header::fh_magic` as `__non_string`, to avoid a warning from clang 21 similar to: /usr/src/usr.bin/vtfontcvt/vtfontcvt.c:763:15: error: initializer-string for character array is too long, array size is 8 but initializer has size 9 (including the null terminating character); did you mean to use the 'nonstring' attribute? [-Werror,-Wunterminated-string-initialization] 763 | .fh_magic = FONT_HEADER_MAGIC, | ^~~~~~~~~~~~~~~~~ /usr/obj/usr/src/amd64.amd64/tmp/usr/include/sys/font.h:109:27: note: expanded from macro 'FONT_HEADER_MAGIC' 109 | #define FONT_HEADER_MAGIC "VFNT0002" | ^~~~~~~~~~ MFC after: 3 days (cherry picked from commit e2c93ed09f259ed049923bdaa9b697b3586e2f1a) --- sys/sys/font.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/sys/font.h b/sys/sys/font.h index fb5fbbc9e557..d486dbc3a011 100644 --- a/sys/sys/font.h +++ b/sys/sys/font.h @@ -108,7 +108,7 @@ typedef STAILQ_HEAD(font_list, fontlist) font_list_t; #define FONT_HEADER_MAGIC "VFNT0002" struct font_header { - uint8_t fh_magic[8]; + uint8_t fh_magic[8] __nonstring; uint8_t fh_width; uint8_t fh_height; uint16_t fh_pad; From nobody Mon Dec 29 12:23:59 2025 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dfwPY4NjFz6MDCl for ; Mon, 29 Dec 2025 12:24:01 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dfwPX06bCz3Y1D for ; Mon, 29 Dec 2025 12:24:00 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767011040; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=SmEIH2r4zORI/E7/nMw2nhA6dUggNjEYEoBqWhb1dzw=; b=UDJ8QlT2MWjX4iErX7XvllkCofUwQA3kP/ZgCGWOV9LT2Opw2Ft3WHg+7y5p4szvBFnu3G KoSXRjnZOCFLcXIJmn1+otGMG3z0Jq6uERlavJiQpPVl6EL58eyoxOFQ7IUvx78stNtadJ MVQoRYeI3pTrK1E22wP7ggJWrokEpPu6uFoMHL2E/C+5Vo21fJfSdt4Y8yIjCLS5z23Wtn u9XE4CunP0zXPkBRPnawB45AK9niyAer15mhXRlgN/gSjGjDVcO3/mtn5EWaWnEG23lakj Ktkxvtegh9odsACF00BF8/7DS37HUYFZcoF6uDtRt4/8jc3b9PP5kva2DOHOMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767011040; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=SmEIH2r4zORI/E7/nMw2nhA6dUggNjEYEoBqWhb1dzw=; b=s6truREsQQU7iKXvM0fZG5klB1d0KHlp0peRhgsXofywzENrfx9NoUqrNzXl9rokrMxAVP Nyv9VW5OD5USiBR/AqKuw86s1rlGl0ZwDhC6hqIPo09ycc3ACapgofUcybTYGk2sJwB83d D1Pnou9lIvvaDiAYQq4nDbulX1Cy3SoiM6zRD+p9dwZhTxSyblMk8NZA+rBScmv/su9HHf 93m7bfyJRO8yP9Zg3PfM48EhRHgJQ6H4qs+znTMl5cpBa40Zg2oqxmIUXDDW44FE90YLSD OpLBKyA7N70B/7YHesdOCIc79Di/blAjEVW4gV/Nc+kY/t8uhGbN4iTJdgAyLA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767011040; a=rsa-sha256; cv=none; b=F73PHZDxtyeRScLOq5D0K5oPvFFYcy5Lr7uClgGGh7XSMmxpkCttcQfL0tOrV10g4qYxAe QRN7vXumjqoHiKjSTlq++/RmxDEUyi+654VYmbqyZ6So7EKwjk94NMxpSYxJA4UZonDay6 w3WNY1ZSGOHeAPCl1w6MF0IeWjgXMmcn37Dv57TIeL95TjDK0fnr5M8iw8tib5bf3/U+ns rrlytrNjR3Uc7vCytGLaMU0gOm61WenH6lxK/egal2/TYBwM1ZQlAoS5KAS6NsNAdopk+w 5ZROf1QTE2CDr/HbFRTGYo9/jI/WbZ3/d6YqClfXWHAOfGJ9O6PMv2te+j0BIA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dfwPW6YTrz1S7B for ; Mon, 29 Dec 2025 12:23:59 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 31f66 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 29 Dec 2025 12:23:59 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: 21708f480a10 - stable/13 - fsck_msdosfs: avoid warnings about too-long initializer strings List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 21708f480a10738f1930c312c500d9a2a25cb5b8 Auto-Submitted: auto-generated Date: Mon, 29 Dec 2025 12:23:59 +0000 Message-Id: <695272df.31f66.2bb34fce@gitrepo.freebsd.org> The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=21708f480a10738f1930c312c500d9a2a25cb5b8 commit 21708f480a10738f1930c312c500d9a2a25cb5b8 Author: Dimitry Andric AuthorDate: 2025-12-25 20:28:14 +0000 Commit: Dimitry Andric CommitDate: 2025-12-29 12:19:16 +0000 fsck_msdosfs: avoid warnings about too-long initializer strings Mark `dot_name` and `dotdot_name` as as `__non_string`, to avoid warnings from clang 21 similar to: sbin/fsck_msdosfs/dir.c:466:39: error: initializer-string for character array is too long, array size is 11 but initializer has size 12 (including the null terminating character); did you mean to use the 'nonstring' attribute? [-Werror,-Wunterminated-string-initialization] 466 | static const u_char dot_name[11] = ". "; | ^~~~~~~~~~~~~ sbin/fsck_msdosfs/dir.c:467:39: error: initializer-string for character array is too long, array size is 11 but initializer has size 12 (including the null terminating character); did you mean to use the 'nonstring' attribute? [-Werror,-Wunterminated-string-initialization] 467 | static const u_char dotdot_name[11] = ".. "; | ^~~~~~~~~~~~~ MFC after: 3 days (cherry picked from commit 98c3d868fb5a7da7356c58e8c51423975bbd078b) --- sbin/fsck_msdosfs/dir.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sbin/fsck_msdosfs/dir.c b/sbin/fsck_msdosfs/dir.c index fbd1929f17f4..d4e9df8f05c8 100644 --- a/sbin/fsck_msdosfs/dir.c +++ b/sbin/fsck_msdosfs/dir.c @@ -450,8 +450,8 @@ checksize(struct fat_descriptor *fat, u_char *p, struct dosDirEntry *dir) return FSOK; } -static const u_char dot_name[11] = ". "; -static const u_char dotdot_name[11] = ".. "; +static const u_char dot_name[11] __nonstring = ". "; +static const u_char dotdot_name[11] __nonstring = ".. "; /* * Basic sanity check if the subdirectory have good '.' and '..' entries, From nobody Mon Dec 29 12:24:03 2025 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dfwPb418Hz6MDRj for ; Mon, 29 Dec 2025 12:24:03 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dfwPb20B1z3Y7p for ; Mon, 29 Dec 2025 12:24:03 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767011043; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=S0ovJ/z6D+8FPFZJeYdVUFIU0a+7T0YK0/9zKFsGEX4=; b=Jdmv3vSDp2z5JWQgKMneRUD+zSJgIGXXhKS/L3WVple2oSVTm/AxJNW9R5HdYGXXKEDUfk xF6QHbMiY6Gp4dIwGe4Jno+Dq3QCutzpeei1hoSxPXL1gD5Lc4sqqAsaZOcS6hnAo8lfC9 dr1qTHX1n8TY6lV5F/rj6jjpOkNAGEM/dd/AGcV3xh2uGHqp0VX7SXocXnBgHXvZjqznAw Czn15KVN0qBQH660X2h139TEdd6aGyePAR1puBeeUQJ/JOOZLgrLheWDDiKII11sZuNItc oDcWW9ewOnpWpggLo1mY/1S27tme2Xpvd0GeZCV7JLrNNtGFIlkCXznBTpz6OA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767011043; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=S0ovJ/z6D+8FPFZJeYdVUFIU0a+7T0YK0/9zKFsGEX4=; b=A9/sJ6kPa3OJjzShjxccIkqlpVL+NCcmxViCS9t70bcxv7t/mA9g/HC52Lqrsk9dPYGKDv RiJtxznWeKufXDuJXP4i+tYJaa8BH2gbiANqxX3dNOXFENHsMKLMqumTEGmn5E+bpCMsN+ gAtwy9AnpUOu2amy3fd4myigp361jzEljz3ZUDhBrRM3Z3pCMW7WvLG6ryqbkihDjaobVy Pnrs7HM/hw+v7S/HZV8sUM8SQY7AkvHgco7/bjg2WGKu+Q/fL6AdIFXfiMvWa4Rb11g32N gFvLCO3+rYOJPcCNSMnIpbriXVAbs102TFkRzrEBt3uQBs7aY1FDa6tgs0kAmQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767011043; a=rsa-sha256; cv=none; b=PZjrfpbLgiJKjq9z5bsRWLfUiv7GyRH7mt/iatFTBOSPGQlICsFUkXtGcVJ2jkb6aBbc3B n92lkocYwnfLKw6z4sLMj7oVheouSIKnPbzeEDI7Cln666WhB/TCMNb71ebW7CP1v71puC B6/t4b9TxmwkNa6i9LmwMlwF3RDxINCHhT6o7lTXiWdCnZmG6eVkGd1KaScgTMUP6lFMuE M/bj/TCx6GCIC9IitIHbwKt+JMp0HwFrh5eDN2nYGONDUZqAdQ+wMr7ZRqpSuz7pkcWDoH T4WFcrVNytcBL09cADQyCKKA164LPEFZKB4w3mcV9pgMGsBUo/dNKnO4fuRPsQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dfwPb1bQ6zRt for ; Mon, 29 Dec 2025 12:24:03 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 32a0d by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 29 Dec 2025 12:24:03 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: 8a620bd70880 - stable/13 - makefs: avoid warnings about too-long initializer strings List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 8a620bd7088075808103639338e35f730ac93f3b Auto-Submitted: auto-generated Date: Mon, 29 Dec 2025 12:24:03 +0000 Message-Id: <695272e3.32a0d.4739ee2@gitrepo.freebsd.org> The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=8a620bd7088075808103639338e35f730ac93f3b commit 8a620bd7088075808103639338e35f730ac93f3b Author: Dimitry Andric AuthorDate: 2025-12-26 00:22:03 +0000 Commit: Dimitry Andric CommitDate: 2025-12-29 12:20:56 +0000 makefs: avoid warnings about too-long initializer strings Mark `direntry::deName` as `__non_string`, to avoid warnings from clang 21 similar to: usr.sbin/makefs/msdos/msdosfs_vnops.c:512:4: error: initializer-string for character array is too long, array size is 11 but initializer has size 12 (including the null terminating character); did you mean to use the 'nonstring' attribute? [-Werror,-Wunterminated-string-initialization] 512 | { ". ", /* the . entry */ | ^~~~~~~~~~~~~ usr.sbin/makefs/msdos/msdosfs_vnops.c:522:4: error: initializer-string for character array is too long, array size is 11 but initializer has size 12 (including the null terminating character); did you mean to use the 'nonstring' attribute? [-Werror,-Wunterminated-string-initialization] 522 | { ".. ", /* the .. entry */ | ^~~~~~~~~~~~~ MFC after: 3 days (cherry picked from commit ba0a11512237681fc621670023d56195cb8c82ad) --- usr.sbin/makefs/msdos/direntry.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/makefs/msdos/direntry.h b/usr.sbin/makefs/msdos/direntry.h index 9d6c65dfcc7d..675a70e26474 100644 --- a/usr.sbin/makefs/msdos/direntry.h +++ b/usr.sbin/makefs/msdos/direntry.h @@ -55,7 +55,7 @@ * Structure of a dos directory entry. */ struct direntry { - uint8_t deName[11]; /* filename, blank filled */ + uint8_t deName[11] __nonstring; /* filename, blank filled */ #define SLOT_EMPTY 0x00 /* slot has never been used */ #define SLOT_E5 0x05 /* the real value is 0xe5 */ #define SLOT_DELETED 0xe5 /* file in this slot deleted */ From nobody Mon Dec 29 12:24:02 2025 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dfwPZ3rBSz6MDNl for ; Mon, 29 Dec 2025 12:24:02 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dfwPZ1FM7z3XvS for ; Mon, 29 Dec 2025 12:24:02 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767011042; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=9L3StOTZPuLY/TMnI7QV+2b9w2WJQukdAwBsifEjaz0=; b=CiAfa+i4/lzEO328n+NCkq/BZyNtS/inhZxZoCIJBJThO67wHhVSVsf6jibCJBJ2zEIbbm iZsZjQIo4Xdem9Nr8xc0rU2pe6RcGUiXN9PFTq8s9rSlRcM3v6/QIJokFKIaoBoVeu0yXZ 4vPIJMSHlIDV/ZGyyYfOIWecKNXndqaTPv1WSdbB9X8MiRe4CIrUq+uQOBiWIGaUnplHVn vKXJmGMCslB52UU6LdBgTZpBtq5St1CF3VrzqrQEKB8KmP8hzpYrEJbKhVNLkJ7oY8Bl/m VPhgHMj9eqGnTFv4BlclKImzBlPivHZXIdphLc/8y7I5qDr1zWT6GLIaP1qjcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767011042; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=9L3StOTZPuLY/TMnI7QV+2b9w2WJQukdAwBsifEjaz0=; b=gj1GyPRf5VqJ6WwR9HEJKHVQEuHZOh2fW0OVLdQ6yAeL5L8LxnZgDlNnVsx1XjcQGlkbeH rW1Jsf0cEI2K9PeQ0o5xgYQDL+HDqLrAthYYtLPAtb1hucAFFN4oOzQFlbd8aYMdWLbA9a kL6gonmOQ9784jDButlgfz/s5FILwzXu/Cba7f/5WFwAmIFsDJK/WuqfjVPh77xgBjmv6e 7urT4n/l8VM0lt8Q4GwfdlA7c86osdeGClG6QXxLA3k/JFWh5RO6Yb3GKFtaCP3hhJQrBJ hSzuB4XqXo6Irvb65qQ94xEOo2TICVjnyTTdK007D63xQzVLbmRMgMlXsEU2Ew== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767011042; a=rsa-sha256; cv=none; b=bt2hs2vp+pSjQUZJ+dooTIeu161BKUT0IkJObK74Gb+1Oqb1gTbW6FYkeFUaarJiXe02ZW UvEcbqZiVWICaqN5sBwouj8P/bqgaG5Lgeit0OCypQyOVUCOAHeVHTJhoyKppyAHUo2oZX 96+/LCNCrNckbClpok6Z7O+zG5RGsfWudmQZUPYB9nHhxnhW8RDMALQ7NIvT12zNAhYlZE GG8IhQnuy9nIbnT5p9bxlnzVCt4LceiFNl/3LH+8MbElscddTZu57e/3Q23BhrwjDF/2AP ufRIxztPFMLh3r3pUJi0BV16n96V9j/0Kv5dwd/sg3u+ix09OrzCu6o2eYUB3Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dfwPZ0pRQz2S for ; Mon, 29 Dec 2025 12:24:02 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 31dc6 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 29 Dec 2025 12:24:02 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: c765646beedb - stable/13 - m4: avoid warnings about too-long initializer strings List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: c765646beedb49441f6fa782cf90a305417758f8 Auto-Submitted: auto-generated Date: Mon, 29 Dec 2025 12:24:02 +0000 Message-Id: <695272e2.31dc6.4a5dc520@gitrepo.freebsd.org> The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=c765646beedb49441f6fa782cf90a305417758f8 commit c765646beedb49441f6fa782cf90a305417758f8 Author: Dimitry Andric AuthorDate: 2025-12-26 00:30:25 +0000 Commit: Dimitry Andric CommitDate: 2025-12-29 12:20:37 +0000 m4: avoid warnings about too-long initializer strings Mark `digits` as `__non_string`, to avoid warnings from clang 21 similar to: usr.bin/m4/misc.c:123:27: error: initializer-string for character array is too long, array size is 36 but initializer has size 37 (including the null terminating character); did you mean to use the 'nonstring' attribute? [-Werror,-Wunterminated-string-initialization] 123 | static char digits[36] = "0123456789abcdefghijklmnopqrstuvwxyz"; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ MFC after: 3 days (cherry picked from commit a3394b6a23fb66ccb7e588129d2465ef8ea26d30) --- usr.bin/m4/misc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr.bin/m4/misc.c b/usr.bin/m4/misc.c index 73ced384466c..7d2473f88168 100644 --- a/usr.bin/m4/misc.c +++ b/usr.bin/m4/misc.c @@ -121,7 +121,8 @@ pbnum(int n) void pbnumbase(int n, int base, int d) { - static char digits[36] = "0123456789abcdefghijklmnopqrstuvwxyz"; + static char digits[36] __nonstring = + "0123456789abcdefghijklmnopqrstuvwxyz"; unsigned int num; int printed = 0; From nobody Mon Dec 29 12:24:01 2025 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dfwPZ1XCXz6MDNj for ; Mon, 29 Dec 2025 12:24:02 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dfwPY0h4Wz3XvL for ; Mon, 29 Dec 2025 12:24:01 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767011041; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=kmrbiTezFele2C07I2cgeM6Vrx2dKVmBhCm1SrfHMr4=; b=fgvNquvUawQGSXg9WimSsmUWDMOa2FT4IkN3tN5pWwzlE/zEq40caJ2SiGr+EKwU12u8D+ loorILsyUCJvfJkS0KkyT51L/XVf90JhYKgsNhLE/vfBVQ0nK2Qs0G8zKZtsPavCWXhh+v j2NZLHGdQtf1mGMsakWrfcUnEObcQtcQNA9+LIXudWuVZ+bdh5AtU6jkNnUuUKErCjJB5W QabbYw0wLGXrt6zie8bcRlhNE2Aw+xryHd5t5MlC5tsniran92GzBNUeEYTWAuN9kEFBoZ wqqDezHK4xF1hLYQdFpqhmFxKiXPyXrhfJqcEYZ/E0TgVCdYWPJsA2bUc0pZxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767011041; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=kmrbiTezFele2C07I2cgeM6Vrx2dKVmBhCm1SrfHMr4=; b=v/WVkWlp0Dfi2+rtmZIHQhxRVDJwQiPP2VA12D/ia91F2tELocIX1sVX1kuorXqi61cHu+ 0W+fUFAP0GTyayiTGhefKW2M9enfW2U3hXpvz/97IT3EXGR44KsHk7QsX2lXqJGwhbnPhi aeYMcwhAS6HkgBHpz+0JSxA1YLT5zLstnArC9kn/Xj/GCbuoAv785RHQ3WdTjILQvr26tT TvVzfLizhEZjVyu+o6FjhqzYW47OdgSd4DXdvzNYcWHbNw/tp+j4zmvm8PDkkDqF5+9kYM vwxZ5unXw+dFB6jaZrMVA9CavYfYXNs+RRISUpA3826RMdPFRMoEKqbFsW0zMQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767011041; a=rsa-sha256; cv=none; b=eEjVni+a8zoNv5qLQMYnuvhlOdF5kuKQfS6RWtb7uEOhD8mJmiI60v0NC8NnvF9PrPNx3Y aZENQvDWxgtI4ZfQ2E8k/uT+sPvSJuwkE/tfIDKVXYGUlT/nnOrviNKpa4SBTYtEaios5I 2gJq46oEoPC+TivDeI3E7oMjMMs+2e6VjM6O5ybvv3z2Av/UG5wMDUKp3FXrCfkDGrYWcU pM5pSexFqSc0XY66PwRaLOVnuQin884UGwFMaLIZ/zjIoYd4OlodmjEaVSz4TwpuqGgFIc Un43zw3uymISYd1j1FmoK67vxlgIljqUXbKkfP74nk0Gp2d995HlviETYVJNWA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dfwPY04JTz1S7C for ; Mon, 29 Dec 2025 12:24:01 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 32892 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 29 Dec 2025 12:24:01 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Cc: Eric Blake From: Dimitry Andric Subject: git: 4cea8771f773 - stable/13 - m4: Fix OOB access displaying MIN_INT List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 4cea8771f77330537c99da8d3db2bde315954759 Auto-Submitted: auto-generated Date: Mon, 29 Dec 2025 12:24:01 +0000 Message-Id: <695272e1.32892.7716401@gitrepo.freebsd.org> The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=4cea8771f77330537c99da8d3db2bde315954759 commit 4cea8771f77330537c99da8d3db2bde315954759 Author: Eric Blake AuthorDate: 2025-05-24 17:21:38 +0000 Commit: Dimitry Andric CommitDate: 2025-12-29 12:20:29 +0000 m4: Fix OOB access displaying MIN_INT Previously displaying INT_MIN resulted in an out of bounds access to digits[-8]. In twos-complement -INT_MIN is still negative. PR: 287013 Reviewed by: emaste (cherry picked from commit ab4edcd552c967a400e85afc0fd3e6729fa9ee2c) --- usr.bin/m4/misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/m4/misc.c b/usr.bin/m4/misc.c index 4533e106a37f..73ced384466c 100644 --- a/usr.bin/m4/misc.c +++ b/usr.bin/m4/misc.c @@ -122,7 +122,7 @@ void pbnumbase(int n, int base, int d) { static char digits[36] = "0123456789abcdefghijklmnopqrstuvwxyz"; - int num; + unsigned int num; int printed = 0; if (base > 36) From nobody Mon Dec 29 12:24:04 2025 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dfwPd4GbSz6MDTP for ; Mon, 29 Dec 2025 12:24:05 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dfwPc3Bl6z3Y3N for ; Mon, 29 Dec 2025 12:24:04 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767011044; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=xxhIT48WahwlLQZhpaKiJaYTmcDXTI9s4sStoSXUaPg=; b=SujM8sPBzMvf6DyVVOVIFX8eTiKyYjPBIz1/f4AnQ8eL9FhivsHFv8Qe/3WD3gC+hSHqFI /RhmHYTFpAYGvyK6aQ+belNu0PUmItSj+A+l4UJpBAeSP2LnJ0pFRnyZh7fEmqGMaIR/fi vnqi8zq5uu9h3db/xR6DpnLlqzFZDVSjsqbm6EtyMDrHSyzvXEzFoPjyu07+hvEYgVy6sl z+BI42lSB8diIeV83BZAKZPppdM0loXU04bn5TlHojkR075OFjn+hyST+PZr77VctZjI6U bZQzRRKD0ZILKATLjVCzjb2k7Q1AZwPyv85i0zqEGrxKA15c9KYZ5h6gGe/QKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767011044; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=xxhIT48WahwlLQZhpaKiJaYTmcDXTI9s4sStoSXUaPg=; b=qVnjWXi/y405254JkeZE6q3c4wRbzwyN1O37EvqWtTGQpDE2r4SyNW16mNLadGB6G7VnPn M34JCsk1lvd89HfQSfmah/ln+lKxnxk5/l3/fNquybOoff7HcmO0w49zUthS6K7ipIhOV/ DUuDsHRBkx8KgHrVRMYwV61h+lVPfXcRO2C6WVV88cHAeeDvnEVNN56aLR0G/Xy79h6S/g I3zZMxqOwcPyE0aswGsN/bTzGrI04LcVTzPy07RnViELZsNEIKbu+ra5C3M5vDzmMzp2D7 JG2AXg5A9p4B35hZltAzncxcvkuk7LB8NGQ52wDFTF19cBklQAR2kP7rgQwGZw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767011044; a=rsa-sha256; cv=none; b=uWpGSWy5VGgEkCyAff703fYUC1AH+FLzGveymRh/1TnPk7dLH0nEREEEwyM6T40Uv++uSV caP63RVWCcwcvfrJl0UMdV0P91sjtYzr+8BFRGvywJypMFQDlVFGFUdaCBS41VUKEaUUhh ZsE6So98PWSWV4RRGrsLU0MbEzYeuBUlYwc3tH7fOYGKakO/q68trmF4qNjiMoqf20H93x UNQGoRtPtNRqZl3L2l65gViGywlZMSaPdeNY4U3DxIYB1kcbvMl4V7NwdHAnjMMpOyaln9 eKfRxns3IHh7sVh/DYa100MMYHGVvlWhdze9qfR0/IoySjSW2ZE1tRZjyyDXlg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dfwPc2P6Qz2T for ; Mon, 29 Dec 2025 12:24:04 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 32795 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 29 Dec 2025 12:24:04 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: 497aab21bd59 - stable/13 - bsnmpd: avoid warnings about too-long initializer strings List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 497aab21bd59ee2b0d02970079ab556b15914578 Auto-Submitted: auto-generated Date: Mon, 29 Dec 2025 12:24:04 +0000 Message-Id: <695272e4.32795.61c311dc@gitrepo.freebsd.org> The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=497aab21bd59ee2b0d02970079ab556b15914578 commit 497aab21bd59ee2b0d02970079ab556b15914578 Author: Dimitry Andric AuthorDate: 2025-12-26 13:27:08 +0000 Commit: Dimitry Andric CommitDate: 2025-12-29 12:21:20 +0000 bsnmpd: avoid warnings about too-long initializer strings Mark `UTC` as `__non_string`, to avoid a warning from clang 21 similar to: usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptc.c:339:29: error: initializer-string for character array is too long, array size is 3 but initializer has size 4 (including the null terminating character); did you mean to use the 'nonstring' attribute? [-Werror,-Wunterminated-string-initialization] --- all_subdir_usr.sbin --- 339 | static const char UTC[3] = "UTC"; | ^~~~~ MFC after: 3 days (cherry picked from commit 3054e22e4524df24908d7e9379681c1ccf829b93) --- usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptc.c b/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptc.c index 354ea2ece83a..3957e03a0fe3 100644 --- a/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptc.c +++ b/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptc.c @@ -336,7 +336,7 @@ static char * snmp_date2asn_oid(char *str, struct asn_oid *oid) { char *endptr, *ptr; - static const char UTC[3] = "UTC"; + static const char UTC[3] __nonstring = "UTC"; int32_t saved_errno; uint32_t v; From nobody Mon Dec 29 12:24:05 2025 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dfwPd6mX6z6MD78 for ; Mon, 29 Dec 2025 12:24:05 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dfwPd3mq3z3Y1k for ; Mon, 29 Dec 2025 12:24:05 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767011045; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=5dc5mTGEu6nFyR5VMjBmyRdptzr5AvGx6pCE/eETGOM=; b=AQ7NUdLVksHOP1I6VOx3AWR7t3P7/HsuVCxiv+6dEvdJGXab3535vxUv8T6pzJxwQr71xJ w3lo44OeW7IEqikK/7iiiDaKkSsLPkfpUDvok7r02bUqjTArvYZR4SuDHWUnV4f01I07Vb qIfgbGwoZKEIsHMW5alSh2oT3H+PEek6IU2+cEMzt6UX41b2jakep+VyNkeXWjGjb2doae io38VEfjTA7rh7k52BoJoBQJV9qNitrgIRze847qW9W1cM+M6y4JjDLNAmOC5xJUqlZvZk Jp+TKxhf9gArnrVl4fsDt/1ec5kSikwimO2EFa+WWZG8PLOppqKh0OIrKuPxJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767011045; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=5dc5mTGEu6nFyR5VMjBmyRdptzr5AvGx6pCE/eETGOM=; b=LjYgpZ646VoM1m8cRL7VyJarUK4JpT1XPs2wgwKlikQH+lCvJEP3Ukh00aWvVbGRPALb2p 81VpmLiABv31xAG8YqOicn0+Xib0cyCQxwXOO/kpnD8aPNGdEeDarYCzFP4viFHSbor6OI 6UzAcckZLP5vgf750pmGAeIR/7sIAl6C1taPgq9OgsJGBDkRs9rdAfGt7Tstl1gmi37Al5 nTgU+HD/GfpTeZB6em8DNVfWIwMjxAh3wCZZEemmVZk/P63jxw3o89EjWARBC5aDBG7t2P /QCHPdZjaWPCfpfJCTcN4DNTgrCg3zNQfHdDq/bLDq4AVRkJcIygzC57I6I5sw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767011045; a=rsa-sha256; cv=none; b=LXR6sjLCSDrxM2cvRTK3JxnFcs4Ik6ss1nwzCLlgMsMSOhAuCSa36jap93NJhBLjddIWDo giuXqoZwXUKQNY3VRRaAI0CFft5kX/KiQLhFdjZR1G29GAZkngQzM+sMfcgY9lHtS3LUNL RECP451uD2bbsh36mFMw9zxiWUUGdCGWalwr5f9IPQ1KnOHZcHxPhKC9AQLoCfM8A6WmYL DwLsvL56ub730umYIoESb1WXDAUkB/ZTiltk9l60eyNLXDi7CLbwopwU82vMjrs2eP2NqF tGl+uSFJZKyZBIF6BAmIgtjpTliBshuW5lCVcsx/Adse03ZE5j5Z85JF/K3tGw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dfwPd3CqkzRv for ; Mon, 29 Dec 2025 12:24:05 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 31f6a by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 29 Dec 2025 12:24:05 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: d8c35dc1df47 - stable/13 - sys/font.h: avoid warnings about too-long initializer strings List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: d8c35dc1df476a6fe4666f6dbbb9d6c540eb2423 Auto-Submitted: auto-generated Date: Mon, 29 Dec 2025 12:24:05 +0000 Message-Id: <695272e5.31f6a.15e0371b@gitrepo.freebsd.org> The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=d8c35dc1df476a6fe4666f6dbbb9d6c540eb2423 commit d8c35dc1df476a6fe4666f6dbbb9d6c540eb2423 Author: Dimitry Andric AuthorDate: 2025-12-26 14:31:43 +0000 Commit: Dimitry Andric CommitDate: 2025-12-29 12:23:01 +0000 sys/font.h: avoid warnings about too-long initializer strings Mark `font_header::fh_magic` as `__non_string`, to avoid a warning from clang 21 similar to: /usr/src/usr.bin/vtfontcvt/vtfontcvt.c:763:15: error: initializer-string for character array is too long, array size is 8 but initializer has size 9 (including the null terminating character); did you mean to use the 'nonstring' attribute? [-Werror,-Wunterminated-string-initialization] 763 | .fh_magic = FONT_HEADER_MAGIC, | ^~~~~~~~~~~~~~~~~ /usr/obj/usr/src/amd64.amd64/tmp/usr/include/sys/font.h:109:27: note: expanded from macro 'FONT_HEADER_MAGIC' 109 | #define FONT_HEADER_MAGIC "VFNT0002" | ^~~~~~~~~~ MFC after: 3 days (cherry picked from commit e2c93ed09f259ed049923bdaa9b697b3586e2f1a) --- sys/sys/font.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/sys/font.h b/sys/sys/font.h index fb5fbbc9e557..d486dbc3a011 100644 --- a/sys/sys/font.h +++ b/sys/sys/font.h @@ -108,7 +108,7 @@ typedef STAILQ_HEAD(font_list, fontlist) font_list_t; #define FONT_HEADER_MAGIC "VFNT0002" struct font_header { - uint8_t fh_magic[8]; + uint8_t fh_magic[8] __nonstring; uint8_t fh_width; uint8_t fh_height; uint16_t fh_pad; From nobody Mon Dec 29 17:07:10 2025 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dg2hG3xg7z6M3rB for ; Mon, 29 Dec 2025 17:07:10 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dg2hG2CPDz46h1 for ; Mon, 29 Dec 2025 17:07:10 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767028030; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=n+EcrzBJrXsAMt+XGCbQizm/OMjB+u8i6pZrjuQJT6A=; b=R2c9n3ZcaRAXM1iQ2S70wQ47sGWQ4tTomi/V6J60jaVEbwFRM3rq6sJYPARY1nvICdN9/D 6lmaiI49ryepzdFkQAokVyphh24E9cvvSgD3nDdWIUDNqJN30PlP1WQ3c4FfvX0f5DY48c sUN4/P4VBGedjePHz6anLRHxmWu+cN1mDKiHavymdPKDESQndWkcKSDHYrL+7eFHYcMmz0 a66ZXR2WPku6ecz9PeGKaXuAiNwAzsktwdrBow2e4lyMfwfzSHJ11p8AtueybwK3Z4Sn+K A0OLSa9cwTnLUerCorl+/K5tRV/glDrd2xTEQeDxrN3v2cH7ou24kBZNTRssKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767028030; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=n+EcrzBJrXsAMt+XGCbQizm/OMjB+u8i6pZrjuQJT6A=; b=RfJezHvmQKRnnir/t7N5hPHz5IpmDAzmiIUvCTDlgZdbGB0kkFi47ADaD3hPUFTfpt7wd3 oiu76d6VqWaUBeI5X8Mumao5jDuCZIu6zvJODyc1sal+zHGGDUZwueQaa8einO5oTgRt3j 67dw8FNOiRAfch+PReXudVobfeQnKvsPHd/KoLexqUu7qHMzs2hABVaiOU2qSmv44DnLFq GkcA450TOqkInSW3uD9UhpN9swehURHBIXNG0iUqDp//sdJmYQBFTiGHpE1EaMf8X4uXNd qeeMxxWkazIO4nqgRhYK/wgzYo8wQ7rvHB9iZChd8FeA107z+Aney6VxgA56fQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767028030; a=rsa-sha256; cv=none; b=Sx87cde+q/FHUZMMxh2wvSn/WHHKs5oHj8Xm7W5cc/vL5PBdGdsxWHtVp50gWvLx7fAxhY SG1OvUh9S2vvI237taK1njxTXO0XUChOuls6GnUMUQutz5Cjv7tarDt4Ej62WJ0GIQnGcw MxCvlJ1/rqhSj/oFohjn8GIvlzi7lGYUTksITwI3unDY4Hk2mwqJZlNJo50vJ1KkemNzLq SmhTd6b2AG7omLj15hY4aJveKBH5eajyYH5ahqTuaw2qttRp/uWOdh821+Eszqno3T3N2i fIH5BNUWWp8W4p84KFZLoHnQYfC1GrAyYBbMaKsGvfEVhs0HjoIzfsdI/CkuMA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dg2hG1ZFsz7gk for ; Mon, 29 Dec 2025 17:07:10 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 251d9 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 29 Dec 2025 17:07:10 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mark Johnston Subject: git: 13b9f78e33c9 - stable/15 - netmap: Let memory allocator parameters be settable via loader.conf List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 13b9f78e33c9cdbcd7312afff9f1d5f1bd29f400 Auto-Submitted: auto-generated Date: Mon, 29 Dec 2025 17:07:10 +0000 Message-Id: <6952b53e.251d9.233113ff@gitrepo.freebsd.org> The branch stable/15 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=13b9f78e33c9cdbcd7312afff9f1d5f1bd29f400 commit 13b9f78e33c9cdbcd7312afff9f1d5f1bd29f400 Author: Mark Johnston AuthorDate: 2025-12-14 15:47:48 +0000 Commit: Mark Johnston CommitDate: 2025-12-29 14:31:30 +0000 netmap: Let memory allocator parameters be settable via loader.conf This is useful when dev.netmap.port_numa_affinity is set to 1. When interfaces attach, they get a memory allocator that is copied from nm_mem. Parameters in nm_mem can be set using sysctls, but this happens after their values are copied. To work around this, we can make it possible to set these memory parameters as tunables. Reviewed by: vmaffione MFC after: 1 week Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D54178 (cherry picked from commit c694122f3cfb7d52b882fa79086d49f45a2c7fd2) --- sys/dev/netmap/netmap_mem2.c | 34 +++++++++++++++++++--------------- 1 file changed, 19 insertions(+), 15 deletions(-) diff --git a/sys/dev/netmap/netmap_mem2.c b/sys/dev/netmap/netmap_mem2.c index d69e9305f6f0..865a663da364 100644 --- a/sys/dev/netmap/netmap_mem2.c +++ b/sys/dev/netmap/netmap_mem2.c @@ -628,22 +628,26 @@ static const struct netmap_mem_d nm_blueprint = { #define STRINGIFY(x) #x -#define DECLARE_SYSCTLS(id, name) \ - SYSBEGIN(mem2_ ## name); \ - SYSCTL_INT(_dev_netmap, OID_AUTO, name##_size, \ - CTLFLAG_RW, &nm_mem.params[id].size, 0, "Requested size of netmap " STRINGIFY(name) "s"); \ - SYSCTL_INT(_dev_netmap, OID_AUTO, name##_curr_size, \ - CTLFLAG_RD, &nm_mem.pools[id]._objsize, 0, "Current size of netmap " STRINGIFY(name) "s"); \ - SYSCTL_INT(_dev_netmap, OID_AUTO, name##_num, \ - CTLFLAG_RW, &nm_mem.params[id].num, 0, "Requested number of netmap " STRINGIFY(name) "s"); \ - SYSCTL_INT(_dev_netmap, OID_AUTO, name##_curr_num, \ - CTLFLAG_RD, &nm_mem.pools[id].objtotal, 0, "Current number of netmap " STRINGIFY(name) "s"); \ - SYSCTL_INT(_dev_netmap, OID_AUTO, priv_##name##_size, \ - CTLFLAG_RW, &netmap_min_priv_params[id].size, 0, \ +#define DECLARE_SYSCTLS(id, name) \ + SYSBEGIN(mem2_ ## name); \ + SYSCTL_INT(_dev_netmap, OID_AUTO, name##_size, \ + CTLFLAG_RWTUN, &nm_mem.params[id].size, 0, \ + "Requested size of netmap " STRINGIFY(name) "s"); \ + SYSCTL_INT(_dev_netmap, OID_AUTO, name##_curr_size, \ + CTLFLAG_RD, &nm_mem.pools[id]._objsize, 0, \ + "Current size of netmap " STRINGIFY(name) "s"); \ + SYSCTL_INT(_dev_netmap, OID_AUTO, name##_num, \ + CTLFLAG_RWTUN, &nm_mem.params[id].num, 0, \ + "Requested number of netmap " STRINGIFY(name) "s"); \ + SYSCTL_INT(_dev_netmap, OID_AUTO, name##_curr_num, \ + CTLFLAG_RD, &nm_mem.pools[id].objtotal, 0, \ + "Current number of netmap " STRINGIFY(name) "s"); \ + SYSCTL_INT(_dev_netmap, OID_AUTO, priv_##name##_size, \ + CTLFLAG_RWTUN, &netmap_min_priv_params[id].size, 0, \ "Default size of private netmap " STRINGIFY(name) "s"); \ - SYSCTL_INT(_dev_netmap, OID_AUTO, priv_##name##_num, \ - CTLFLAG_RW, &netmap_min_priv_params[id].num, 0, \ - "Default number of private netmap " STRINGIFY(name) "s"); \ + SYSCTL_INT(_dev_netmap, OID_AUTO, priv_##name##_num, \ + CTLFLAG_RWTUN, &netmap_min_priv_params[id].num, 0, \ + "Default number of private netmap " STRINGIFY(name) "s"); \ SYSEND SYSCTL_DECL(_dev_netmap); From nobody Mon Dec 29 17:07:11 2025 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dg2hH5mtnz6M3nM for ; Mon, 29 Dec 2025 17:07:11 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dg2hH2zJ3z46kn for ; Mon, 29 Dec 2025 17:07:11 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767028031; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=dSBGRaIM7HxssVCsNeIw7nH5lDBO1xk2vxt1IArQqjM=; b=FQqFNIltF8jJj/W5id6KknRVH0riG1iE9skXXLvt98Zms5VvHcdA9km4T6CILzaQbqfU4v dOSTq2VGiP5r0f4nPgQURnNDPw/uxH2xmhyUy545CzhxIyOhDp55rdoTalz+yeP8swN8Bq aIBY25uwu9ojE2LIn5Gn4lAtu1lBuOuSgfudrDSeYBGpJEQTZcHOjrXvDdmxaY32I2KFkm xJ8JsOr6l0TOFch7EKyljwmqUl14cVd+7bJUoMoUJMoZtKZBYglopXWwPNr+axisJoC3RU AdcVuVEzyrz5P6GHCzrbyJj4+wX1+dS7/ua49YpCK/++uYd5P4rYt+2wGSyYPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767028031; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=dSBGRaIM7HxssVCsNeIw7nH5lDBO1xk2vxt1IArQqjM=; b=ymU/syHmgZLE/9c/1B02UJAiiHhcwuBmUGE2Z34TRlwMeANYOB39IzG1OL8iporlLZgzPt el3vhP4CQDW9GwXQ3BP4xPecZqDj3vHbI0v/HCp1BbOY+fQwDp+fExCfPqHL6Or4/8yRt2 kNqsPmCfXwG0ujhSHw4+VQBSnuzRe/tx/l4F/HFKx1WOBdt2rGxI2SKEDgURA1A4Y0F7yo GY9ZocCVyGQVweVyQ7+E3o/sSXlADd7g5BtpAGQGoqEXp345g18uCIcZO9s5/Hu/Fjp4fp +GeuYovKqd/t1FzjpNINDqj1+YSVvVmtKzAmfsrSMbAdVVoO4iCr7uxjCkFxqA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767028031; a=rsa-sha256; cv=none; b=OsCiWwwGNnN/C2CKbcq2RpVy0aQan2WZIpBEs3Jqv/43j+B2N1amdVmIn8Dpsn+l5jdcsd yIlpHLLvU/W9I9iFx3mCXTC5cT4GVwilQjqwmYhy3GN7QhJ1UNAtglCPa6TqfqiccC7T7k PnV7opxWsIyK0zPXHnFjVkOvDmbxiggbM+oA1HIpE7hhrh26YiMEMcZdkx4ICPdwZ/UYEX Bl415EHUom4TBajwJyn2hemscPL++eXs2aF+35F3gTeej3HxEHWSumGoo/xG4zahTm95V4 t+cpAkSYj/kWJa39AvIRLR89Z8ELZP2XAv7eKeHcX5BZnyCxGKWMVo229+MA8w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dg2hH2Ll1z7pQ for ; Mon, 29 Dec 2025 17:07:11 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 2455b by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 29 Dec 2025 17:07:11 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mark Johnston Subject: git: 26ebe093f414 - stable/15 - socket: Fix the name of a parameter in a comment List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 26ebe093f414099d331c7366e979a4cbf5103c12 Auto-Submitted: auto-generated Date: Mon, 29 Dec 2025 17:07:11 +0000 Message-Id: <6952b53f.2455b.372ab3ec@gitrepo.freebsd.org> The branch stable/15 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=26ebe093f414099d331c7366e979a4cbf5103c12 commit 26ebe093f414099d331c7366e979a4cbf5103c12 Author: Mark Johnston AuthorDate: 2025-12-14 15:47:38 +0000 Commit: Mark Johnston CommitDate: 2025-12-29 14:31:30 +0000 socket: Fix the name of a parameter in a comment Reported by: des Fixes: 0a68f644dca1 ("socket: Split up soreceive_generic()") MFC after: 1 week (cherry picked from commit a0d607957533c7fbefaac5cd81d34c037cc27344) --- sys/kern/uipc_socket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/uipc_socket.c b/sys/kern/uipc_socket.c index 9eba3ad2e082..b7e4646fea68 100644 --- a/sys/kern/uipc_socket.c +++ b/sys/kern/uipc_socket.c @@ -2749,7 +2749,7 @@ sockbuf_pushsync(struct sockbuf *sb, struct mbuf *nextrecord) * time. * * The caller may receive the data as a single mbuf chain by supplying an - * mbuf **mp0 for use in returning the chain. The uio is then used only for + * mbuf **mp for use in returning the chain. The uio is then used only for * the count in uio_resid. */ static int From nobody Mon Dec 29 17:07:14 2025 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dg2hM1Ks9z6M3rK for ; Mon, 29 Dec 2025 17:07:15 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dg2hL5kRMz46vW for ; Mon, 29 Dec 2025 17:07:14 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767028034; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=6lirmJSlSx18/moTueoOHKyut+RMSI2QfuHGDdmU/GU=; b=C85MdnLgWaw0Q/kyNMDmIIDZRzlVxtgdNB+u2r91A6bU1bp6R2/wELL4wIYuyzZsTbCs/w UBcpnVKkbfAghFrkphzqUaaA1Up8ZJoJXx5H2naUyalBWSzW/w8MxKyFNDoGF/NWHWnmgN AJu6QL5Pso12CQjV6lIa0Hppfk4j50EOPHRavI9jVSkpC0WVmu3kLvRjn5romwtCiQE09c SyBSdC6BKVuTYKRTN6H/vEj3t3xgQh5f0EdN2oPxxj2mOvNRmRkXe9k49s6RjYBtNyjJGE exemEXpCj/fL9uqZcqQxideZIO2BPrFkHt6dwT2NqYtpn9N7wjzr4ZSer3WxbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767028034; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=6lirmJSlSx18/moTueoOHKyut+RMSI2QfuHGDdmU/GU=; b=R0/5ru7BliXXt1Z0C4VutkdHsvDzaMwYfpabuV0D8+aIr+6CZJP4iy43pVPbcHtkwyVsve 14ttOsulYFxgsw5Nx//XcrpTdv3igeKDDKIeKAvx44YzuOZpW6SpzOYa1z8yFyR5HkXQWb Db+Eiz2b1soeRJsfGosO1py7RTIJrXKnuXpG8hOlVCxBJx/NgTI44iMEuaiVSboHNR7oKb isM6+CpoRHzhSWnNhKim9vIyyPEa5WQrCmhK64neVxfAJsxnuhOqw5uVOZQQRAFn/KYfUr UqrryojTuBE/rWm62aWI4PPFZmYR/2SkuoUSSmkydmGrX7kqj78NNx90ggopKA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767028034; a=rsa-sha256; cv=none; b=JW6WsI6FeoZBfaW5oZy07q7TqrOASuka7+kE1njoPpHryESBHiz+pD8E+oQTobX8MhoGNb ZFTti4hXKgUQ0fX3u9WwVwlWFbBN42hY7vnN94Wcemc1kuxP5Zp5lOCtAFp9uKmCAuA2G2 JZv0FSS2jPllrxitnGGf/2RMMLrSL+HPCd/5ahMfSuz1nXtH5dVOXK4VcrR9lsmqwduFU0 WP9zqJ17qCqp+jrNEhyMqMQRn2y5efePmXBMAmybVD+EGJ7EZZ+c+m+5YymN0VeKQioMV3 V9bEeNkRYOf0ZTZDOaCq9pQagVb/GqWFgJKaFtvxkm/hWeb2PK6tRXbWGEEiYg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dg2hL4Tk2z83G for ; Mon, 29 Dec 2025 17:07:14 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 262be by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 29 Dec 2025 17:07:14 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mark Johnston Subject: git: 75293aaeea78 - stable/15 - inotify: Avoid resetting the cookie List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 75293aaeea785b342da41aac811213889ea0512c Auto-Submitted: auto-generated Date: Mon, 29 Dec 2025 17:07:14 +0000 Message-Id: <6952b542.262be.7670f0d2@gitrepo.freebsd.org> The branch stable/15 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=75293aaeea785b342da41aac811213889ea0512c commit 75293aaeea785b342da41aac811213889ea0512c Author: Mark Johnston AuthorDate: 2025-12-21 23:49:26 +0000 Commit: Mark Johnston CommitDate: 2025-12-29 14:31:33 +0000 inotify: Avoid resetting the cookie The IN_MOVED_FROM and _TO events only apply to names in a watched directory, never to a watched directory itself. So, the cookie value there is always zero, and in particular we should not reset the caller-provided cookie value, as it may be used later. Add a regression test. Reported by: arrowd MFC after: 1 week (cherry picked from commit da8ab13249420e85935b89794f333f0755e56385) --- sys/kern/vfs_inotify.c | 7 ++----- tests/sys/kern/inotify_test.c | 31 +++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+), 5 deletions(-) diff --git a/sys/kern/vfs_inotify.c b/sys/kern/vfs_inotify.c index fd1ef39b13f7..716fdc96e5fb 100644 --- a/sys/kern/vfs_inotify.c +++ b/sys/kern/vfs_inotify.c @@ -723,7 +723,6 @@ vn_inotify(struct vnode *vp, struct vnode *dvp, struct componentname *cnp, } break; case IN_MOVED_FROM: - cookie = 0; selfevent = IN_MOVE_SELF; break; case _IN_ATTRIB_LINKCOUNT: @@ -734,10 +733,8 @@ vn_inotify(struct vnode *vp, struct vnode *dvp, struct componentname *cnp, break; } - if ((selfevent & ~_IN_DIR_EVENTS) != 0) { - inotify_log(vp, NULL, 0, selfevent | isdir, - cookie); - } + if ((selfevent & ~_IN_DIR_EVENTS) != 0) + inotify_log(vp, NULL, 0, selfevent | isdir, 0); } /* diff --git a/tests/sys/kern/inotify_test.c b/tests/sys/kern/inotify_test.c index 713db55afc22..0a4df4e5fcaa 100644 --- a/tests/sys/kern/inotify_test.c +++ b/tests/sys/kern/inotify_test.c @@ -761,6 +761,36 @@ ATF_TC_BODY(inotify_event_move, tc) close_inotify(ifd); } +ATF_TC_WITHOUT_HEAD(inotify_event_move_dir); +ATF_TC_BODY(inotify_event_move_dir, tc) +{ + char dir[PATH_MAX], subdir1[PATH_MAX], subdir2[PATH_MAX]; + uint32_t cookie1, cookie2; + int error, ifd, wd1, wd2; + + ifd = inotify(IN_NONBLOCK); + + wd1 = watch_dir(ifd, IN_MOVE, dir); + snprintf(subdir1, sizeof(subdir1), "%s/subdir", dir); + error = mkdir(subdir1, 0755); + ATF_REQUIRE(error == 0); + wd2 = inotify_add_watch(ifd, subdir1, IN_MOVE); + ATF_REQUIRE(wd2 != -1); + + snprintf(subdir2, sizeof(subdir2), "%s/newsubdir", dir); + error = rename(subdir1, subdir2); + ATF_REQUIRE(error == 0); + + cookie1 = consume_event_cookie(ifd, wd1, IN_MOVED_FROM, IN_ISDIR, + "subdir"); + cookie2 = consume_event_cookie(ifd, wd1, IN_MOVED_TO, IN_ISDIR, + "newsubdir"); + ATF_REQUIRE_MSG(cookie1 == cookie2, + "expected cookie %u, got %u", cookie1, cookie2); + + close_inotify(ifd); +} + ATF_TC_WITHOUT_HEAD(inotify_event_open); ATF_TC_BODY(inotify_event_open, tc) { @@ -858,6 +888,7 @@ ATF_TP_ADD_TCS(tp) ATF_TP_ADD_TC(tp, inotify_event_create); ATF_TP_ADD_TC(tp, inotify_event_delete); ATF_TP_ADD_TC(tp, inotify_event_move); + ATF_TP_ADD_TC(tp, inotify_event_move_dir); ATF_TP_ADD_TC(tp, inotify_event_open); ATF_TP_ADD_TC(tp, inotify_event_unmount); return (atf_no_error()); From nobody Mon Dec 29 17:07:12 2025 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dg2hK0R5sz6M3ls for ; Mon, 29 Dec 2025 17:07:13 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dg2hJ3bZZz46h2 for ; Mon, 29 Dec 2025 17:07:12 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767028032; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=cVozPFnFpwqaLCKH296/FP9Dqa+EXcrNKrCYnZpnEcc=; b=y0loMwhVEr70YtaXkdRVhAtRDy3EiD+LibkHkKCaxwzKmE/AB311VYZpVzRlU+N5RW1xzL 5fW2IqbxxcM1eTNPk3T2F52c+zjZ7JKcPSNUNJ9q0OR8oNNrGSsE3TOlRQThVKoa09DEGg 9cvfWPieXNXo+mRDVrW+VOdeyhHhHd81sVGuMB1vpQAupqQAuPHwzpWUBNJlq8rKppZedL Cj+aH0yP3mtvpaWyB5x8bUKJ8XU9SFnxtHXf/RDIw7RrdgjmmTijnXHTVntDUXjhT7KMes Efp8MwSWIwapb/gA0gn0F5NCI7LSRt9nrAuaQ7rYuLmwLBsZPJO7Dsp/wYtBzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767028032; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=cVozPFnFpwqaLCKH296/FP9Dqa+EXcrNKrCYnZpnEcc=; b=WRJuvaUuG4KMOtKRIc3LcDC5/g/AEWok8krn2NycAPsNgw/Yj0wq99dmwL+5o7DBJKakES N8EXuVonus6oRHKcFjshwN+1UWDnvHH2LaPHq8BE4p7iyt5EHXki2anxLdBxXGHQIDhCjB m6hGF3E7wbIBvwjOLnBLmuPfRd9WA5Nyyso1X5O4meM5nyJIKCJ/Rm8kMI+/lv0S1E5xda ekIOwek78R1fY5q7WIdNoq9S0BYsgeaCOZi4BGmQgMZglJKN9p2ELq7TUDEYFKzOL6ANn5 m6IpRasqRLzCt2CNawpkTADtNTJe/DgK+ZoX2hk/oMDIin/HVJhOJNxwvPx3mg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767028032; a=rsa-sha256; cv=none; b=iXT3cgGIj4QCTGoyUDo0kpMsKlajnxrJFK1e3YeKKhuR1AaOamFrqbTBiHmiTL0ovCpBmH nms1g506Hje8sdYjhEIGmTGtZGNKTE89WKMKAqAlp28zU/ImJ7il/Lj2oVm8Tege6BBBnK gis+LS/45wnBWXl2bgLh1WSzStnM6d3IbXbUv7AnGoOWIfV/tdi/nWL0fpXXZ5AAxr4bwh OnXC910FcJqGQSth+Y8UWUee+rnIOyN8gubzLwQMGdxDrn2G0Zyn65/JSnp/jSatHNpIqD 6zgSomNU0LzAlJzvYIEN9TWBL0M0livsUwENubnK62/sGeEBYEhhur7WYhE4bg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dg2hJ39B4z7jc for ; Mon, 29 Dec 2025 17:07:12 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 26c1f by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 29 Dec 2025 17:07:12 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mark Johnston Subject: git: 0eb81bd89dcb - stable/15 - pfsync: Avoid zeroing the state export union List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 0eb81bd89dcbbf21ff4722aca01a7559dc7bcf9f Auto-Submitted: auto-generated Date: Mon, 29 Dec 2025 17:07:12 +0000 Message-Id: <6952b540.26c1f.3b0ae512@gitrepo.freebsd.org> The branch stable/15 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=0eb81bd89dcbbf21ff4722aca01a7559dc7bcf9f commit 0eb81bd89dcbbf21ff4722aca01a7559dc7bcf9f Author: Mark Johnston AuthorDate: 2025-12-14 15:48:27 +0000 Commit: Mark Johnston CommitDate: 2025-12-29 14:31:30 +0000 pfsync: Avoid zeroing the state export union pfsync_state_export() takes a pointer to a union that is in reality a pointer to one of the three state formats (1301, 1400, 1500), and zeros the union. The three formats do not have the same size, so zeroing is wrong when the format isn't that which has the largest size. Refactor a bit so that the zeroing happens at the layer where we know which format we're dealing with. Reported by: CHERI Reviewed by: kp MFC after: 1 week Sponsored by: CHERI Research Centre (EPSRC grant UKRI3001) Differential Revision: https://reviews.freebsd.org/D54163 (cherry picked from commit 796abca7e281f0d4b7f72f48da4f941e1c8b139c) --- sys/net/pfvar.h | 8 ++++++-- sys/netpfil/pf/if_pfsync.c | 15 +++++++++------ sys/netpfil/pf/pf_ioctl.c | 33 +++++++++++++++++++++++++++------ 3 files changed, 42 insertions(+), 14 deletions(-) diff --git a/sys/net/pfvar.h b/sys/net/pfvar.h index 55b841f970ea..a6b2f8f11e0f 100644 --- a/sys/net/pfvar.h +++ b/sys/net/pfvar.h @@ -1336,8 +1336,12 @@ VNET_DECLARE(pflow_export_state_t *, pflow_export_state_ptr); #define V_pflow_export_state_ptr VNET(pflow_export_state_ptr) extern pfsync_detach_ifnet_t *pfsync_detach_ifnet_ptr; -void pfsync_state_export(union pfsync_state_union *, - struct pf_kstate *, int); +void pfsync_state_export_1301(struct pfsync_state_1301 *, + struct pf_kstate *); +void pfsync_state_export_1400(struct pfsync_state_1400 *, + struct pf_kstate *); +void pfsync_state_export_1500(struct pfsync_state_1500 *, + struct pf_kstate *); void pf_state_export(struct pf_state_export *, struct pf_kstate *); diff --git a/sys/netpfil/pf/if_pfsync.c b/sys/netpfil/pf/if_pfsync.c index b571734b4250..3edf08aefeb5 100644 --- a/sys/netpfil/pf/if_pfsync.c +++ b/sys/netpfil/pf/if_pfsync.c @@ -1900,25 +1900,28 @@ pfsyncioctl(struct ifnet *ifp, u_long cmd, caddr_t data) static void pfsync_out_state_1301(struct pf_kstate *st, void *buf) { - union pfsync_state_union *sp = buf; + struct pfsync_state_1301 *sp; - pfsync_state_export(sp, st, PFSYNC_MSG_VERSION_1301); + sp = buf; + pfsync_state_export_1301(sp, st); } static void pfsync_out_state_1400(struct pf_kstate *st, void *buf) { - union pfsync_state_union *sp = buf; + struct pfsync_state_1400 *sp; - pfsync_state_export(sp, st, PFSYNC_MSG_VERSION_1400); + sp = buf; + pfsync_state_export_1400(sp, st); } static void pfsync_out_state_1500(struct pf_kstate *st, void *buf) { - union pfsync_state_union *sp = buf; + struct pfsync_state_1500 *sp; - pfsync_state_export(sp, st, PFSYNC_MSG_VERSION_1500); + sp = buf; + pfsync_state_export_1500(sp, st); } static void diff --git a/sys/netpfil/pf/pf_ioctl.c b/sys/netpfil/pf/pf_ioctl.c index 856bbd6cb9cb..e2b63965d1e1 100644 --- a/sys/netpfil/pf/pf_ioctl.c +++ b/sys/netpfil/pf/pf_ioctl.c @@ -4120,8 +4120,7 @@ DIOCCHANGERULE_error: goto fail; } - pfsync_state_export((union pfsync_state_union*)&ps->state, - s, PFSYNC_MSG_VERSION_1301); + pfsync_state_export_1301(&ps->state, s); PF_STATE_UNLOCK(s); break; } @@ -4187,8 +4186,7 @@ DIOCGETSTATES_retry: if (s->timeout == PFTM_UNLINKED) continue; - pfsync_state_export((union pfsync_state_union*)p, - s, PFSYNC_MSG_VERSION_1301); + pfsync_state_export_1301(p, s); p++; nr++; } @@ -5797,11 +5795,10 @@ fail: return (error); } -void +static void pfsync_state_export(union pfsync_state_union *sp, struct pf_kstate *st, int msg_version) { const char *tagname; - bzero(sp, sizeof(union pfsync_state_union)); /* copy from state key */ sp->pfs_1301.key[PF_SK_WIRE].addr[0] = st->key[PF_SK_WIRE]->addr[0]; @@ -5934,6 +5931,30 @@ pfsync_state_export(union pfsync_state_union *sp, struct pf_kstate *st, int msg_ pf_state_counter_hton(st->bytes[1], sp->pfs_1301.bytes[1]); } +void +pfsync_state_export_1301(struct pfsync_state_1301 *sp, struct pf_kstate *st) +{ + bzero(sp, sizeof(*sp)); + pfsync_state_export((union pfsync_state_union *)sp, st, + PFSYNC_MSG_VERSION_1301); +} + +void +pfsync_state_export_1400(struct pfsync_state_1400 *sp, struct pf_kstate *st) +{ + bzero(sp, sizeof(*sp)); + pfsync_state_export((union pfsync_state_union *)sp, st, + PFSYNC_MSG_VERSION_1400); +} + +void +pfsync_state_export_1500(struct pfsync_state_1500 *sp, struct pf_kstate *st) +{ + bzero(sp, sizeof(*sp)); + pfsync_state_export((union pfsync_state_union *)sp, st, + PFSYNC_MSG_VERSION_1500); +} + void pf_state_export(struct pf_state_export *sp, struct pf_kstate *st) { From nobody Mon Dec 29 17:07:13 2025 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dg2hL1bRkz6M3mG for ; Mon, 29 Dec 2025 17:07:14 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dg2hK4hqHz46vM for ; Mon, 29 Dec 2025 17:07:13 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767028033; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=geYcUi6uJ04BYpSU7qt0k/4ucMDmmddxakilAi71jro=; b=Y7AiBAUC4Gr8otFq0kLxwEQCvyF49LmakUn4qH9ZOvdhYLqAvZS3scr1sP3ZpFzSBI0KJA ohhqDCv0Q21IKW4n4HfFvrAKs7pRzWhPuteHul71+L6W423IzBpelX9spGUwerkm931frE JuAgp+FRBP00WpEowRwbTsvr4LYHpBACz8hr6cC5ssUizOGJvyRtylY59romZlWwBQ7AR5 rHJV/K1oEKR0cVSfPSpKGrA/tXcrSmVFFCwNTXKFiVnKCXuAfa3DZr2XJz9fFQ2AxVil+3 DSYOIBHDs3mbM4B1H5Asp1jq5e1EMgi9PE22M/jNaKsqfWpT5ggdKE7IE7+vwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767028033; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=geYcUi6uJ04BYpSU7qt0k/4ucMDmmddxakilAi71jro=; b=vbNgIR0EMCu7Jg/Nh8XP6nCwvkPV5ZMypnnyWsBGg0Q3cbtYHFRIaj5jVdljhssTf9/T8f CWaBonrguvzcFiEUcEBCM3iuCSIsb5RXdNak+E/ICdQQM+KkPNhmiulqiFZSziXqU2LZhB hN99fPQIr8P7WGEn8DzyuDC9mmxC74Gv26t+eDZdm/HwHQ2HMUyBc3s00z+lmVzPkAR9YZ NgAkA6ykkvdXrS1UnIT2A9D5vIOtLpVQ/dYV6/6aJ6QVMuGbgZnwjqMnJCrO4U1QiQdshJ d6o4L5JqqHko0QOpjdEF9+DcQbxRDZ9zpQtb83uYd5a040KtpfaqhLmTF5kSlw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767028033; a=rsa-sha256; cv=none; b=BxPO6zJJdavqiOaudzfi13y36IaHMIDi7DgF/6QcvpYIuhz9BaoBL1pZ95EV9fTTwfbY8f l0fw3RyGRqSZfru+5vlg9WxwXsfq0RZsL0wBiS+KEDhJJeL2ISJENHfIKjjg5AUcvQ3ndv QoXnMBq8DIuB1xS6LW3pcjc+roPMXpGBIoodkD8CPpYJPtXRm+4EJCU9CZDqhiYuuKrOca tGf4tqH8ONcTywWc9/TDcLVKWfkvZsW2RQ6Qwzq5Y76bZSmO2CiyPxCw6hkah4rvHyssyE LPZX+I3xhxIU85Pin5yCv8PqYq6AVVj4GetBXMa49oIAdXOLH/cSVh3bi1nPiQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dg2hK3y7jz83F for ; Mon, 29 Dec 2025 17:07:13 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 2705f by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 29 Dec 2025 17:07:13 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mark Johnston Subject: git: 7999ce0d290a - stable/15 - rc.subr: Use the variable we defined to invoke setaudit(8) List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 7999ce0d290a5e996e7d4b1dafc22a5da8a72414 Auto-Submitted: auto-generated Date: Mon, 29 Dec 2025 17:07:13 +0000 Message-Id: <6952b541.2705f.1338c97c@gitrepo.freebsd.org> The branch stable/15 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=7999ce0d290a5e996e7d4b1dafc22a5da8a72414 commit 7999ce0d290a5e996e7d4b1dafc22a5da8a72414 Author: Mark Johnston AuthorDate: 2025-12-14 15:47:06 +0000 Commit: Mark Johnston CommitDate: 2025-12-29 14:31:31 +0000 rc.subr: Use the variable we defined to invoke setaudit(8) Reported by: gtetlow Fixes: 39ee24182b92 ("rc.subr: Support setting the audit user when starting services") MFC after: 1 week (cherry picked from commit 9dda51f13cd85791c0f18782461219f5a88e2d67) --- libexec/rc/rc.subr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libexec/rc/rc.subr b/libexec/rc/rc.subr index c6f29c6b0c99..4e19d10f5e4e 100644 --- a/libexec/rc/rc.subr +++ b/libexec/rc/rc.subr @@ -1151,7 +1151,7 @@ run_rc_command() fi _setauditcmd= if [ -n "$_audit_user" ]; then - _setauditcmd="setaudit -U -a $_audit_user" + _setauditcmd="$SETAUDIT -U -a $_audit_user" fi # If a specific jail has a specific svcj request, honor it (YES/NO). From nobody Mon Dec 29 17:07:17 2025 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dg2hQ4skdz6M3Pn for ; Mon, 29 Dec 2025 17:07:18 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dg2hP70Zvz46vq for ; Mon, 29 Dec 2025 17:07:17 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767028038; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=syX97FnSp3rX8eRuonVXIUS4wjwc/mDfLMrubjs+6h8=; b=vWoRI7c5MgIZnNkD6cY9G0oCF5Eejug/c6fxEnlACbEMEU4xW1nnSwxz2mAQGXiPsH+6ya ogNsh6dZ7bs2s1Re3v49KUyXHQaXFX1qfFBGGbX+6hfn9nx9jFF1IuEET7k2XUkrnY0382 Bg7lbjl24eyU7nHcl/v55ypd+O6eeIkKz5lOOdYOETBuKOy/lTKHaz30G+8Rn3qKQPMyaM h6lLq9880nf/xI8lF81perMsgpk3ihySGF7UCLzOOzb+8iLTHvFhCuv5Z66XcGiKSCtHlK YcQxwQkAZND+PBEyt2y5dOZjS+T9p92PRmhNl1uVA3dAQNsw3BsC6XdrbWHBlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767028038; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=syX97FnSp3rX8eRuonVXIUS4wjwc/mDfLMrubjs+6h8=; b=naai77rxmXHZNarwTE7X9sMHzPocgB/bELe+UWDHYA4uEbMxQ98J82n0fmTYbzclM7qWOX sN0gSMAz3/9WV9Gd/e/CsFNvA0xugFqjCoomWlzHps1blGvYfNgtxEJ/oLTzFqwTE7+6ad 6KzbGFdXzukPUoVlkak3oRKDAVnotYb8bO+pFbvgz39mEq6rQanqmaV6maCHlSw5GpIAT5 2E8uelcJgb8t/pBlFz7ClSJuNSUA+m+AR/qy1XAyvRe/WabgikFGM+05qyNiOsh0KvRlAH wJaeJb6QH6Dvw/xRZjvDm5uvZd0GbCFxk543horgkSQBJPSWzG6KS5fOGOesbQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767028038; a=rsa-sha256; cv=none; b=JdzDl6bMyLG1nFU0/+bTCjPzEhAVpiRIrMjGYSY0HfQtbaLqw5RWZkuPh+fo84At56GfyD +qN13fazF4OoBvPokI/wM3U9PLSGnc+5wcDMMxucbS9z4piRM/bxnhVTqzU3NcDgjgkV+L 7df1+J9PxU2+DoPzSikriRaIXyHaZD61Z1R5X/s4bVjJI3jlpHYyeu/bIG3/XxHXOB5sjl YLonU9sibgreyAUkU7cdEDYD/nZ+rrXQUQKV3PGHs0HKw0XJTM7FrffwCsqJDkQ1h6sDTr CYNtaZb8VsYNaNbouB83pLEMvJILWAHt+CfwPMqSxQG7Qd80P/6Jz+B4J++CSw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dg2hP6cTFz7jg for ; Mon, 29 Dec 2025 17:07:17 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 255a5 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 29 Dec 2025 17:07:17 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mark Johnston Subject: git: 108e4f31420d - stable/15 - armv8rng: Fix an inverted test in random_rndr_read_one() List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 108e4f31420d8c765d883afaece49a782d35943d Auto-Submitted: auto-generated Date: Mon, 29 Dec 2025 17:07:17 +0000 Message-Id: <6952b545.255a5.3550ef2@gitrepo.freebsd.org> The branch stable/15 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=108e4f31420d8c765d883afaece49a782d35943d commit 108e4f31420d8c765d883afaece49a782d35943d Author: Mark Johnston AuthorDate: 2025-12-18 14:17:20 +0000 Commit: Mark Johnston CommitDate: 2025-12-29 14:50:34 +0000 armv8rng: Fix an inverted test in random_rndr_read_one() If we get a random number, the NZCV is set to 0b0000. Then "cset %w1, ne" will test whether Z == 0 and set %w1 to 1 if so. More specifically, "cset %w1, ne" maps to "csinc %w1, wzr, wzr, eq", which stores 0 in %w1 when NZCV == 0b0100 and 1 otherwise. Thus, on a successful read we expect ret != 0, so the loop condition needs to be fixed. In practice this means that we would end up trying to fetch entropy up to ten times in a row. If all attempts are successful, the last will be returned, otherwise no entropy will be returned. Reported by: Kevin Day Reviewed by: andrew Fixes: 9eecef052155 ("Add an Armv8 rndr random number provider") MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D54259 (cherry picked from commit 93811883500b99f9f1fb4ffd6e764226d37dcfd0) --- sys/dev/random/armv8rng.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/random/armv8rng.c b/sys/dev/random/armv8rng.c index 524d80317681..9573c09aa77a 100644 --- a/sys/dev/random/armv8rng.c +++ b/sys/dev/random/armv8rng.c @@ -64,7 +64,7 @@ random_rndr_read_one(u_long *buf) /* 1 on success, 0 on failure */ "cset %w1, ne\n" : "=&r" (val), "=&r"(ret) :: "cc"); - } while (ret != 0 && --loop > 0); + } while (ret == 0 && --loop > 0); if (ret != 0) *buf = val; From nobody Mon Dec 29 17:07:16 2025 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dg2hP37lyz6M3tX for ; Mon, 29 Dec 2025 17:07:17 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dg2hN6fpFz46qw for ; Mon, 29 Dec 2025 17:07:16 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767028036; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=mfBfp7TucXloGaDgdVNsnxRwBiTw+9C4sR95F4Z4naM=; b=INO2a+f7eeEP9Oi8S+dCit5mq1dUmr9gotJCpzeHRt7m44313SQNbFwa3HGgdd57aP7xWb KIzz9qqyk4PxMBra/OHcEtU89wOArB3/nu90QzdnKkmgYGyDzW2HXqbreoDqnYN0Miabwi GDc79qbeVnOYyugA9yxy3Yn6dlBGF2TtH8KRRZSSAJ1Qz7Tdd0SY5WNoSIFe7xJvcaK+2f 5YVcykzZejuFyIYxVyXOXl4FgPRJTMhOnxCLqz05K2+WZtVEY5hGV+xuCAIWpSyI6qESWJ VHCE2vZmDOJ3wUqNs9PMi9iXFMxLaYXXHdTV6pfA4e4SgDFYXFw9y4vE+OoTAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767028036; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=mfBfp7TucXloGaDgdVNsnxRwBiTw+9C4sR95F4Z4naM=; b=CHQyL6hsfBkxnIYbptfnPuoydGztb4aiEyxZK6LxabTYML77hOWaQ4ZO1REzMtcMaOQSIa C2TaUaYXbpHlFHEPHeioHXb1NK45CzZYl529ooVdF+87d+/sP2z0dc644ypNoEDGYRZFku wdH6GrD9r+AcJE276K87FbUw9gBMa2LOvNRsKToeuO+G20H1GdCvXQ0stLH6ktAIcpxyXM 7YzIZkqN61KGNRC/oTts3FyT3ehNns3SMC9a/Wvrv3oHFlyV+P2WkIIffgQAeDKz8VdWee 6yQOEKJaXo7+Gb05P/ArShz882qZ0ibhFDw593FoWItC4qycP0EzYlnOndceiA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767028036; a=rsa-sha256; cv=none; b=ur1fGHFo0IHQKVBjXXe2f3fsspkKOb0v2r9eLeHT5rGvF4l7h1nK5kaT/4Gr/2X9AROMVt qrHVAZQNvcSsalGsiGahy5cIvl6JuJYptpNf3WB+1DB5avTtu4kUONubVO2NRdJm3m9gaF I/l6HpQ6KYpqQ3FnBKMD2lZaXtxHbNLPhfE0HF1lVuperm2lQgFAPhiKWSIlBcGSfwrYxx V+Ei+CRI/Fbm2Lghqs+rwzhGIKHuFH37jtCqhPzLY6htA8a0pp7NgZONr74evonpwm0kzq KykiKHaxLFHouyeQGeJjUurZk69eSHaitAg9L/hwuM15UgE1kmkLVj4Fjfeh4Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dg2hN5dM0z83w for ; Mon, 29 Dec 2025 17:07:16 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 261cf by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 29 Dec 2025 17:07:16 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mark Johnston Subject: git: 859fcbb91908 - stable/15 - vmem: Fix the gcc build List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 859fcbb9190827a62b1410f5f7ddcb87ef28ce6e Auto-Submitted: auto-generated Date: Mon, 29 Dec 2025 17:07:16 +0000 Message-Id: <6952b544.261cf.77819cbe@gitrepo.freebsd.org> The branch stable/15 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=859fcbb9190827a62b1410f5f7ddcb87ef28ce6e commit 859fcbb9190827a62b1410f5f7ddcb87ef28ce6e Author: Mark Johnston AuthorDate: 2025-12-17 20:54:40 +0000 Commit: Mark Johnston CommitDate: 2025-12-29 14:50:12 +0000 vmem: Fix the gcc build gcc complains when building libuvmem because the last two operands of ?: in ORDER2SIZE and SIZE2ORDER have different signs. Add explicit casts to address this. Reported by: Jenkins Reviewed by: alc, kib MFC after: 1 week Fixes: 1ecf01065b45 ("libuvmem: usermode port of vmem(9)") Differential Revision: https://reviews.freebsd.org/D54268 (cherry picked from commit 377e6050c1cb9edce90d2a3caa2833fcc09b8c68) --- sys/kern/subr_vmem.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/sys/kern/subr_vmem.c b/sys/kern/subr_vmem.c index afc327c512ce..8b834a2e2a79 100644 --- a/sys/kern/subr_vmem.c +++ b/sys/kern/subr_vmem.c @@ -285,10 +285,12 @@ static LIST_HEAD(, vmem) vmem_list = LIST_HEAD_INITIALIZER(vmem_list); #define VMEM_CROSS_P(addr1, addr2, boundary) \ ((((addr1) ^ (addr2)) & -(boundary)) != 0) -#define ORDER2SIZE(order) ((order) < VMEM_OPTVALUE ? ((order) + 1) : \ - (vmem_size_t)1 << ((order) - (VMEM_OPTVALUE - VMEM_OPTORDER - 1))) -#define SIZE2ORDER(size) ((size) <= VMEM_OPTVALUE ? ((size) - 1) : \ - (flsl(size) + (VMEM_OPTVALUE - VMEM_OPTORDER - 2))) +#define ORDER2SIZE(order) ((order) < VMEM_OPTVALUE ? \ + (vmem_size_t)((order) + 1) : \ + (vmem_size_t)1 << ((order) - (VMEM_OPTVALUE - VMEM_OPTORDER - 1))) +#define SIZE2ORDER(size) ((size) <= VMEM_OPTVALUE ? \ + (int)((size) - 1) : \ + (flsl(size) + (VMEM_OPTVALUE - VMEM_OPTORDER - 2))) /* * Maximum number of boundary tags that may be required to satisfy an From nobody Mon Dec 29 17:07:15 2025 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dg2hN1Jq4z6M3Pm for ; Mon, 29 Dec 2025 17:07:16 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dg2hM5gpWz46vg for ; Mon, 29 Dec 2025 17:07:15 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767028035; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=5cTpxOBRPb3MDy7xwbKDIMnNGTp9YUURrtud6YpKfQA=; b=kDeXymSXCW/L4JtTFXJI0QcrmONR4G8UZReTVgA0dpkg//Sz29OOAdGNWC35HXnFr7GFd4 UwKsPx0IBU3o9JcwiOrYakiKym/a5TbqIqphqTWk41Crih/zgraf78p+7viRAWmFAX1gDY UCQZFqvM+WAdvwWtrKd53dfDg4UKgHbq1ma/p5NsnTFCtGfrglnXZzho/dEyAIN7p+P2Nk 5KKZGckVC4iuJoH/6mJMJtWXU+U0Wxugj3B1blLaysFXh6H8anreuQGtlodiUJJFU++Edg vV9k3FkZAyV+uPJ6BgA2m8X/L5hk+l0UwPvgWXSJ4etWMjm/SN0Vd69U7H/NiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767028035; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=5cTpxOBRPb3MDy7xwbKDIMnNGTp9YUURrtud6YpKfQA=; b=E8j/wkkfsbCOVkGFaC8YzkHJwvC+fFqe/utfT0k1fo8p48Za3PHvBD4RjyJeErKMk5EYeD YqGw3ed36mbxb9sJNu8RaU3sZApBgPiLCSxc71aykeK+6BIJQO0FEYG5iUJMtVYA3q7j/h 5xn9qkrgFyD7r1c4d2ju2NAIQ5gbXrK/ixHCuSO7+I0ad80C8+dUPncLdtYR5tmvaDcXpR V8C4nEYoSyVMHzSrS85xIunG0TED7FsUCq59AQRp22GMKUCcja6uTASh64Xl6n4P3cvtRm AXKo+MTD22qks3Znw+z+OWzhByn6CJNipSGCL0fnAfcBxiNr1EsVN02kKCB1MA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767028035; a=rsa-sha256; cv=none; b=nlVWsB9WRlwFWsOVHGYmWgJdACwrfC37IWZWHt+vV4nlDpRRMu9ZektdgcFjq9vQGmZAQY 2k8MbaDnN4Uy2dWBH9EIqLxEmIECRLkMvkH5ktHcNEcdwydag8Au6l8RdoVrkpgrHzUeFK rqicqQN0se+eNoH2gt0ZzN9XMkbX1124uYrODxhYP+PGau1Pk4edSCH2DnPSDRvN5b0xaF Q0m0GeeXM2slnBq8/HfZ+s8GJPMT1SB6TUnzhPMxajaF1lKkiW7Zdb2URpWolp79L9Wf6M 6EJWUFQRnGKw8i04oKeA1Vv7Gb25gOSUQ+NJk1mV4jbRniQXC2V5njfvSWHUSA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dg2hM5FB5z7gm for ; Mon, 29 Dec 2025 17:07:15 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 26c23 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 29 Dec 2025 17:07:15 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mark Johnston Subject: git: eb92fbcadeec - stable/15 - telnet: Remove usage of ALIGN List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: eb92fbcadeecb677d90e3cac572b64b862545015 Auto-Submitted: auto-generated Date: Mon, 29 Dec 2025 17:07:15 +0000 Message-Id: <6952b543.26c23.461e27e7@gitrepo.freebsd.org> The branch stable/15 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=eb92fbcadeecb677d90e3cac572b64b862545015 commit eb92fbcadeecb677d90e3cac572b64b862545015 Author: Mark Johnston AuthorDate: 2025-12-22 15:18:52 +0000 Commit: Mark Johnston CommitDate: 2025-12-29 14:31:40 +0000 telnet: Remove usage of ALIGN gcc doesn't like ALIGN() being applied to an array type. Just use __aligned instead. Reported by: Jenkins Reviewed by: brooks Fixes: 80203a27e964 ("Add sys/_align.h replacing machine/_align.h") MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D54290 (cherry picked from commit 3a4275a5f1f5dccd6918c4eff3b84488e322ad5d) --- contrib/telnet/telnet/commands.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/telnet/telnet/commands.c b/contrib/telnet/telnet/commands.c index ca3460e455ad..2005362b5326 100644 --- a/contrib/telnet/telnet/commands.c +++ b/contrib/telnet/telnet/commands.c @@ -2848,7 +2848,7 @@ cmdrc(char *m1, char *m2) static int sourceroute(struct addrinfo *ai, char *arg, unsigned char **cpp, int *lenp, int *protop, int *optp) { - static char buf[1024 + ALIGNBYTES]; /*XXX*/ + static char buf[1024] __aligned(sizeof(void *)); /*XXX*/ unsigned char *cp, *cp2, *lsrp, *ep; struct sockaddr_in *_sin; #ifdef INET6 @@ -2888,7 +2888,7 @@ sourceroute(struct addrinfo *ai, char *arg, unsigned char **cpp, int *lenp, int lsrp = *cpp; ep = lsrp + *lenp; } else { - *cpp = lsrp = (char *)ALIGN(buf); + *cpp = lsrp = buf; ep = lsrp + 1024; } From nobody Mon Dec 29 18:12:42 2025 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dg47v3rDDz6M7p4 for ; Mon, 29 Dec 2025 18:12:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dg47v0F3Dz3JZw for ; Mon, 29 Dec 2025 18:12:43 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767031963; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=cwjcXAzW6Alx/imrgkvOj++uehq5lOpQ3vR/AQc4XVQ=; b=tFakjg9r2V/8uNZ7ZEZsAM+Wl0L7VHyJc7dCJgBElJCqOTQ73chxybyC5RxX8Ir1qfJFJ8 XtliQjY0GnQEEDUh64ru2YG6wMz+9FpZ+d/X+YqpLF1ROTfCXNcDTEufUUmzQYzIlzIo1v EdcV8Gz/0f+WfsV0vwCgzlbvu4mGsa54FHFPtsdLg+ktsytOrMdNgDaEfYHGvcB2vkZgFY MItZCPyOBub6Ygpqsar0lBi4vVAWOrrq/QknTbZzIMDT6cGa/TCB0lgS5mdgvUsmhf+Ogk g3Yb9maaHwbM94fjXhEVKSOjXO9vByHZTV0avniU9QQcD3DUz7o+Z5cpLqbvNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767031963; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=cwjcXAzW6Alx/imrgkvOj++uehq5lOpQ3vR/AQc4XVQ=; b=By6nOX2PL13LPoXhKumgN/RtF7Hvl7rbGttmIFJWMEoJk7aR1rrUquILSLaeUDqKCPybi+ Ur9hhU2zMYJP8pT2HXDLY2pf0N9BAcBXETafTkCQBneb/OB1Ba+v5sHwOcQiWDyLwZnl1D 92psyhxPwrAoWoOWtuqvLngetx9jarsH+ZGRyhxxuNnvUX63KvtF6aB1ni0OPYp4JniZ9C XGhqtRLea0GiwxkIy/AQvte6borumcpi0FX3MK5xz1gNNgOhUb5vpbuXaVk6nA0+3+kidz G3wDypL+6kuTlhwQdb6bD76Na06TeUOFPhSly1FtR0K4z/ykUx3Rc3oCVtKF2A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767031963; a=rsa-sha256; cv=none; b=i5pqj2dE3MIGB4Bv81r6hBjvYRDOpGzD+sBOia96LTc5UFyBnGZHJA2t5kjrKnlPfjQ0Rr kredrn/1TvhALluHgQqPsrfEqz6ZmrTqPl7ARPhSX82wSpBIb11YlVosRqneMXpcIOWu09 7i3mbmslTDk8HAILqc/Np2uKn0HX7CJgoVvB2Z86hvYb+PZYttibkgNh6AHYFtfFNjGdvC xAGvbNNMXhlNtIRN4taISz/IYUD4AzqHZP22jW2EKHgUFcPjKBA6zifx6iF198VgMR5GPX 7ud1vjCYKggKJQG5yIdcpvh9z8Q9ufKdwujOHpUUIfQb71b+iB8fzb4E0ta9wA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dg47t6rf0z9VN for ; Mon, 29 Dec 2025 18:12:42 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3572b by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 29 Dec 2025 18:12:42 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dmitry Salychev Subject: git: 22f8973d1e5a - stable/15 - dpaa2: Setup interface caps on attach List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dsl X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 22f8973d1e5abb8413ae859fa3b805a35702e490 Auto-Submitted: auto-generated Date: Mon, 29 Dec 2025 18:12:42 +0000 Message-Id: <6952c49a.3572b.41be8898@gitrepo.freebsd.org> The branch stable/15 has been updated by dsl: URL: https://cgit.FreeBSD.org/src/commit/?id=22f8973d1e5abb8413ae859fa3b805a35702e490 commit 22f8973d1e5abb8413ae859fa3b805a35702e490 Author: Dmitry Salychev AuthorDate: 2025-10-28 22:30:05 +0000 Commit: Dmitry Salychev CommitDate: 2025-12-29 18:12:29 +0000 dpaa2: Setup interface caps on attach 39d4094173f9 ("epair: add support for checksum offloading") revealed that HW checksum offloading is not enabled when the dpaa2_ni driver is attached despite being declared and enabled on the dpni interface. I modified dpaa2_ni_setup_if_caps to take into account both IPv4 and IPv6 checksum offloading capabilities and added a call to re-configure interface capabilities on attach to fix it. Reviewed by: bz Fixes: 39d4094173f9 ("epair: add support for checksum offloading") MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D53436 (cherry picked from commit a731cb93a66271713d6ea197946e4a307e5b0837) --- sys/dev/dpaa2/dpaa2_ni.c | 52 +++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 45 insertions(+), 7 deletions(-) diff --git a/sys/dev/dpaa2/dpaa2_ni.c b/sys/dev/dpaa2/dpaa2_ni.c index 698b440376e3..98a6c6047188 100644 --- a/sys/dev/dpaa2/dpaa2_ni.c +++ b/sys/dev/dpaa2/dpaa2_ni.c @@ -559,7 +559,8 @@ dpaa2_ni_attach(device_t dev) if_settransmitfn(ifp, dpaa2_ni_transmit); if_setqflushfn(ifp, dpaa2_ni_qflush); - if_setcapabilities(ifp, IFCAP_VLAN_MTU | IFCAP_HWCSUM | IFCAP_JUMBO_MTU); + if_setcapabilities(ifp, IFCAP_VLAN_MTU | IFCAP_HWCSUM | + IFCAP_HWCSUM_IPV6 | IFCAP_JUMBO_MTU); if_setcapenable(ifp, if_getcapabilities(ifp)); DPAA2_CMD_INIT(&cmd); @@ -627,6 +628,12 @@ dpaa2_ni_attach(device_t dev) __func__, error); goto close_ni; } + error = dpaa2_ni_setup_if_caps(sc); + if (error) { + device_printf(dev, "%s: failed to setup interface capabilities: " + "error=%d\n", __func__, error); + goto close_ni; + } ether_ifattach(sc->ifp, sc->mac.addr); callout_init(&sc->mii_callout, 0); @@ -1569,8 +1576,7 @@ dpaa2_ni_setup_msi(struct dpaa2_ni_softc *sc) static int dpaa2_ni_setup_if_caps(struct dpaa2_ni_softc *sc) { - const bool en_rxcsum = if_getcapenable(sc->ifp) & IFCAP_RXCSUM; - const bool en_txcsum = if_getcapenable(sc->ifp) & IFCAP_TXCSUM; + bool en_rxcsum, en_txcsum; device_t pdev = device_get_parent(sc->dev); device_t dev = sc->dev; device_t child = dev; @@ -1582,6 +1588,17 @@ dpaa2_ni_setup_if_caps(struct dpaa2_ni_softc *sc) DPAA2_CMD_INIT(&cmd); + /* + * XXX-DSL: DPAA2 allows to validate L3/L4 checksums on reception and/or + * generate L3/L4 checksums on transmission without + * differentiating between IPv4/v6, i.e. enable for both + * protocols if requested. + */ + en_rxcsum = if_getcapenable(sc->ifp) & + (IFCAP_RXCSUM | IFCAP_RXCSUM_IPV6); + en_txcsum = if_getcapenable(sc->ifp) & + (IFCAP_TXCSUM | IFCAP_TXCSUM_IPV6); + error = DPAA2_CMD_RC_OPEN(dev, child, &cmd, rcinfo->id, &rc_token); if (error) { device_printf(dev, "%s: failed to open resource container: " @@ -1627,6 +1644,13 @@ dpaa2_ni_setup_if_caps(struct dpaa2_ni_softc *sc) goto close_ni; } + if (bootverbose) { + device_printf(dev, "%s: L3/L4 checksum validation %s\n", + __func__, en_rxcsum ? "enabled" : "disabled"); + device_printf(dev, "%s: L3/L4 checksum generation %s\n", + __func__, en_txcsum ? "enabled" : "disabled"); + } + (void)DPAA2_CMD_NI_CLOSE(dev, child, &cmd); (void)DPAA2_CMD_RC_CLOSE(dev, child, DPAA2_CMD_TK(&cmd, rc_token)); return (0); @@ -2574,13 +2598,27 @@ dpaa2_ni_ioctl(if_t ifp, u_long c, caddr_t data) break; case SIOCSIFCAP: changed = if_getcapenable(ifp) ^ ifr->ifr_reqcap; - if (changed & IFCAP_HWCSUM) { - if ((ifr->ifr_reqcap & changed) & IFCAP_HWCSUM) { - if_setcapenablebit(ifp, IFCAP_HWCSUM, 0); + if (changed & (IFCAP_RXCSUM | IFCAP_RXCSUM_IPV6)) { + if ((ifr->ifr_reqcap & changed) & + (IFCAP_RXCSUM | IFCAP_RXCSUM_IPV6)) { + if_setcapenablebit(ifp, + IFCAP_RXCSUM | IFCAP_RXCSUM_IPV6, 0); } else { - if_setcapenablebit(ifp, 0, IFCAP_HWCSUM); + if_setcapenablebit(ifp, 0, + IFCAP_RXCSUM | IFCAP_RXCSUM_IPV6); } } + if (changed & (IFCAP_TXCSUM | IFCAP_TXCSUM_IPV6)) { + if ((ifr->ifr_reqcap & changed) & + (IFCAP_TXCSUM | IFCAP_TXCSUM_IPV6)) { + if_setcapenablebit(ifp, + IFCAP_TXCSUM | IFCAP_TXCSUM_IPV6, 0); + } else { + if_setcapenablebit(ifp, 0, + IFCAP_TXCSUM | IFCAP_TXCSUM_IPV6); + } + } + rc = dpaa2_ni_setup_if_caps(sc); if (rc) { printf("%s: failed to update iface capabilities: " From nobody Mon Dec 29 18:15:43 2025 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dg4CN0hGpz6M884 for ; Mon, 29 Dec 2025 18:15:44 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dg4CM4S8lz3KYk for ; Mon, 29 Dec 2025 18:15:43 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767032143; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=VB6PPHWhuR1FzcjhFSAsOwhY6Wf1FEbwCxR2n3u0mb4=; b=qalxryn234jAWS89gNz/T26hDTvcwLA9GJa2egAh1PGj2d7JaLMDroD9IuNKnLxdEk1n1s a5ZQiwGGphoZSxO1n8RQhh7X5yFL1eFdcSx1i97QGYqr365k+b7PyhmAC1N2lyz8NRRmEe ty3pK/PFiJSWCyC1htTuYlQgiK9ngXOic17/22qOwvkBAta/oG3pARSa+Wi0g7M2wmncS/ DZp3LRhwAzZm8q/Temme0lsVFVClRhyHR1DXJ2HS9t1YMVmfXpI1ARZ7kFysNCtoj0tOhr YkjJZ5HHN2H8nEnrC9nFuqDqwQxco1Wlw7iF2ynfCO8ATh46T3wqz+wDCP7tLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767032143; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=VB6PPHWhuR1FzcjhFSAsOwhY6Wf1FEbwCxR2n3u0mb4=; b=ZqdOvYISfNGRksDMVkNOiKcQX6C0RRuRe+oEUshQv5+FsATBNeo3NqgDh/bInnfJYhoDKl 7FgoPv6PUkxQoafuV7I7OscYF5FjF6GVdlL5H5wJGpVn/yIw16Y9I5gMePWWBuwfG/4Bq9 0jnUc1vj6LXGyuKGtDv2IwobmeRr9m8TBJcgb2vKRaF6TmcSnI181kQDJIZ/4fD61JXf9k m7TwRjpQbRHpm2CZcpQQje2lj7aLrlXhc+1qxrW+zKwJ8upYchi2QsRCp1YScdIKm4Uoxb /lderzUyBKwtfZBHePzfWn8B+GOqygL8dKCBQreoMK9cXKNDbo4hL3ti/7h6uA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767032143; a=rsa-sha256; cv=none; b=W+vV5H9qpxMl1vYNt8hPQwELUiJEewvJp4FvuuoXIdnOHtYXggFkZh5WYrpvo4gBSPuBhN /tmI8Z6pYJ/z3fytJoLKghR7jOJTsVJg1QbwYxTHqHp82zqu9CU2zr70IH2jZwxzs9THAV RY6sT0eS2ounNQ7UZ4n21+TAIdYFzAfegVdO0I5E+76vnbbeb1j6eMs5UPitfjtFjM6zPc prbDPs9hydalpzDKVfJUAM7JhiD6YiQH+NWYZ9AZVvEX74VytBX9evFqdXU1Ppy9umq2th o/EBSYEa6Ziyv0LIHOMjUZ1SjKiBhx6yOyYPucvHNiQCIHOzm9A25DH3DxLnEw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dg4CM29xjz9pS for ; Mon, 29 Dec 2025 18:15:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3336c by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 29 Dec 2025 18:15:43 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dmitry Salychev Subject: git: 23b83bfeb767 - stable/14 - dpaa2: Setup interface caps on attach List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dsl X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 23b83bfeb767eaf04ea15bf65aaa6a47761186b9 Auto-Submitted: auto-generated Date: Mon, 29 Dec 2025 18:15:43 +0000 Message-Id: <6952c54f.3336c.33ce34a4@gitrepo.freebsd.org> The branch stable/14 has been updated by dsl: URL: https://cgit.FreeBSD.org/src/commit/?id=23b83bfeb767eaf04ea15bf65aaa6a47761186b9 commit 23b83bfeb767eaf04ea15bf65aaa6a47761186b9 Author: Dmitry Salychev AuthorDate: 2025-10-28 22:30:05 +0000 Commit: Dmitry Salychev CommitDate: 2025-12-29 18:14:52 +0000 dpaa2: Setup interface caps on attach 39d4094173f9 ("epair: add support for checksum offloading") revealed that HW checksum offloading is not enabled when the dpaa2_ni driver is attached despite being declared and enabled on the dpni interface. I modified dpaa2_ni_setup_if_caps to take into account both IPv4 and IPv6 checksum offloading capabilities and added a call to re-configure interface capabilities on attach to fix it. Reviewed by: bz Fixes: 39d4094173f9 ("epair: add support for checksum offloading") MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D53436 (cherry picked from commit a731cb93a66271713d6ea197946e4a307e5b0837) --- sys/dev/dpaa2/dpaa2_ni.c | 52 +++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 45 insertions(+), 7 deletions(-) diff --git a/sys/dev/dpaa2/dpaa2_ni.c b/sys/dev/dpaa2/dpaa2_ni.c index 698b440376e3..98a6c6047188 100644 --- a/sys/dev/dpaa2/dpaa2_ni.c +++ b/sys/dev/dpaa2/dpaa2_ni.c @@ -559,7 +559,8 @@ dpaa2_ni_attach(device_t dev) if_settransmitfn(ifp, dpaa2_ni_transmit); if_setqflushfn(ifp, dpaa2_ni_qflush); - if_setcapabilities(ifp, IFCAP_VLAN_MTU | IFCAP_HWCSUM | IFCAP_JUMBO_MTU); + if_setcapabilities(ifp, IFCAP_VLAN_MTU | IFCAP_HWCSUM | + IFCAP_HWCSUM_IPV6 | IFCAP_JUMBO_MTU); if_setcapenable(ifp, if_getcapabilities(ifp)); DPAA2_CMD_INIT(&cmd); @@ -627,6 +628,12 @@ dpaa2_ni_attach(device_t dev) __func__, error); goto close_ni; } + error = dpaa2_ni_setup_if_caps(sc); + if (error) { + device_printf(dev, "%s: failed to setup interface capabilities: " + "error=%d\n", __func__, error); + goto close_ni; + } ether_ifattach(sc->ifp, sc->mac.addr); callout_init(&sc->mii_callout, 0); @@ -1569,8 +1576,7 @@ dpaa2_ni_setup_msi(struct dpaa2_ni_softc *sc) static int dpaa2_ni_setup_if_caps(struct dpaa2_ni_softc *sc) { - const bool en_rxcsum = if_getcapenable(sc->ifp) & IFCAP_RXCSUM; - const bool en_txcsum = if_getcapenable(sc->ifp) & IFCAP_TXCSUM; + bool en_rxcsum, en_txcsum; device_t pdev = device_get_parent(sc->dev); device_t dev = sc->dev; device_t child = dev; @@ -1582,6 +1588,17 @@ dpaa2_ni_setup_if_caps(struct dpaa2_ni_softc *sc) DPAA2_CMD_INIT(&cmd); + /* + * XXX-DSL: DPAA2 allows to validate L3/L4 checksums on reception and/or + * generate L3/L4 checksums on transmission without + * differentiating between IPv4/v6, i.e. enable for both + * protocols if requested. + */ + en_rxcsum = if_getcapenable(sc->ifp) & + (IFCAP_RXCSUM | IFCAP_RXCSUM_IPV6); + en_txcsum = if_getcapenable(sc->ifp) & + (IFCAP_TXCSUM | IFCAP_TXCSUM_IPV6); + error = DPAA2_CMD_RC_OPEN(dev, child, &cmd, rcinfo->id, &rc_token); if (error) { device_printf(dev, "%s: failed to open resource container: " @@ -1627,6 +1644,13 @@ dpaa2_ni_setup_if_caps(struct dpaa2_ni_softc *sc) goto close_ni; } + if (bootverbose) { + device_printf(dev, "%s: L3/L4 checksum validation %s\n", + __func__, en_rxcsum ? "enabled" : "disabled"); + device_printf(dev, "%s: L3/L4 checksum generation %s\n", + __func__, en_txcsum ? "enabled" : "disabled"); + } + (void)DPAA2_CMD_NI_CLOSE(dev, child, &cmd); (void)DPAA2_CMD_RC_CLOSE(dev, child, DPAA2_CMD_TK(&cmd, rc_token)); return (0); @@ -2574,13 +2598,27 @@ dpaa2_ni_ioctl(if_t ifp, u_long c, caddr_t data) break; case SIOCSIFCAP: changed = if_getcapenable(ifp) ^ ifr->ifr_reqcap; - if (changed & IFCAP_HWCSUM) { - if ((ifr->ifr_reqcap & changed) & IFCAP_HWCSUM) { - if_setcapenablebit(ifp, IFCAP_HWCSUM, 0); + if (changed & (IFCAP_RXCSUM | IFCAP_RXCSUM_IPV6)) { + if ((ifr->ifr_reqcap & changed) & + (IFCAP_RXCSUM | IFCAP_RXCSUM_IPV6)) { + if_setcapenablebit(ifp, + IFCAP_RXCSUM | IFCAP_RXCSUM_IPV6, 0); } else { - if_setcapenablebit(ifp, 0, IFCAP_HWCSUM); + if_setcapenablebit(ifp, 0, + IFCAP_RXCSUM | IFCAP_RXCSUM_IPV6); } } + if (changed & (IFCAP_TXCSUM | IFCAP_TXCSUM_IPV6)) { + if ((ifr->ifr_reqcap & changed) & + (IFCAP_TXCSUM | IFCAP_TXCSUM_IPV6)) { + if_setcapenablebit(ifp, + IFCAP_TXCSUM | IFCAP_TXCSUM_IPV6, 0); + } else { + if_setcapenablebit(ifp, 0, + IFCAP_TXCSUM | IFCAP_TXCSUM_IPV6); + } + } + rc = dpaa2_ni_setup_if_caps(sc); if (rc) { printf("%s: failed to update iface capabilities: " From nobody Mon Dec 29 18:35:46 2025 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dg4fW0hM3z6M8vY for ; Mon, 29 Dec 2025 18:35:47 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dg4fV5FKKz3NjX for ; Mon, 29 Dec 2025 18:35:46 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767033346; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=m8mGiO8rAO6f4srKvZkV177K96gQXzi8Jddubt78eUw=; b=aJ/mgPWl66FjyUA0AGcX+1nn1hgPoQARmHRp8LIRdwOKgEyGwm7cdojqN0jzzd6s+RH4rK 1lN9PC2O/xQgmugJeNU93d0QDBi2XqJd9HgMIdXpqwtB8X3A60jgm1l8uJxv05AwilrcT3 p9FpKkG8xFMTLCU7/i27SxiQBf6MjTNydjWB37MOsrhsHcujJOLtav95Br3+Wqe80Sk+9T tjpWD0lcPCq1Vdf6ZU/HmHcN+axSohg6BGBT738EmgYJnDh7DCS1Vm6KWmZdJ/X2YuIZmA EU1fb8+TXgvU8sFbUfozaOvCWZu7/PH7Fu0KXtIP8auQQ7t07IT7YeRSXhiINA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767033346; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=m8mGiO8rAO6f4srKvZkV177K96gQXzi8Jddubt78eUw=; b=Qjsi+j6ZifWFwvkhNnCOelSWn0GLp/EQeN+HlHZxy8283YiN8XKAW2pAnrnzps1BAQDLKX nVLeKV3dU7K+aKf4hNdi5RHwh3FMGetdVHZBLkR1VsQjb6zuWEjYaYepemZ5P8u0FEFpfp Uz+VtoROcOhv2TaMjWeMy+6xYIoJxV1TwkBdd4/sn80ziLA5I4Ir6dbVwXI5L2p+30M9ol 5cthkanNKNmmlVWDV0jjmFWpaAZ3veHcEdrfjTg+tVbap94z2WYouak1Ncf6jDYK/GOHz0 zA3IepGkLpnzB735bvsQem5kKxni48GNpGrTlIWNAGZc0CpbMbXl2SX8oM3qhg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767033346; a=rsa-sha256; cv=none; b=wHSJtEzEsJY8ayrASPSazQ9SsH7zjZJc+kZyHQZPdsDW6ToEKb6v76rDjMX0Ii3d1nw9Uk Qf2xd/4ZadAYWK45b58if6KoWecgzmqnrW4rteEdsZj4KHqqMAjuBSJwJHT8QeGtSqzUHU SFp6qPLwL8BvearGxPc82Jc2Ba6ypgoIox9bpB2BHtxBKzwgawyvTCuPGRd+UsGjTR9c+d VofJUy2QfDMUhUGUKjqKmaAHab3b6CFJs0FM8hKGo8L7Tb0IDN0HDZw8NFHgkRtn5yzM1g MZi8gYU179npOzWOWB3gG5oMBHCyViCU8ZVdx6d+P4pR6mdHGlJJCxjiExrVbg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dg4fV3w0vzBMZ for ; Mon, 29 Dec 2025 18:35:46 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 35ecd by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 29 Dec 2025 18:35:46 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Michael Osipov Subject: git: 919cb70724d1 - stable/15 - bhyve_config.5: Fix consistency and terms in manpage List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: michaelo X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 919cb70724d1ddc40db111e54eee9c42e7409ac4 Auto-Submitted: auto-generated Date: Mon, 29 Dec 2025 18:35:46 +0000 Message-Id: <6952ca02.35ecd.78875190@gitrepo.freebsd.org> The branch stable/15 has been updated by michaelo: URL: https://cgit.FreeBSD.org/src/commit/?id=919cb70724d1ddc40db111e54eee9c42e7409ac4 commit 919cb70724d1ddc40db111e54eee9c42e7409ac4 Author: Michael Osipov AuthorDate: 2025-12-26 12:12:03 +0000 Commit: Michael Osipov CommitDate: 2025-12-29 18:34:53 +0000 bhyve_config.5: Fix consistency and terms in manpage Correct inconsistent spelling of terms and duplication. Reviewed by: ziaee MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D54370 (cherry picked from commit 66604463e737f4754ae6268171031ceefc226837) --- usr.sbin/bhyve/bhyve_config.5 | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/usr.sbin/bhyve/bhyve_config.5 b/usr.sbin/bhyve/bhyve_config.5 index 3dd24ca5fe69..b511d5ef6bfd 100644 --- a/usr.sbin/bhyve/bhyve_config.5 +++ b/usr.sbin/bhyve/bhyve_config.5 @@ -23,7 +23,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd August 21, 2024 +.Dd December 26, 2025 .Dt BHYVE_CONFIG 5 .Os .Sh NAME @@ -135,10 +135,10 @@ All variables will be persistent even on reboots of the guest. Generate ACPI tables. .It Va acpi_tables_in_memory Ta bool Ta true Ta .Xr bhyve 8 -always exposes ACPI tables by FwCfg. +always exposes ACPI tables by fw_cfg. For backward compatibility bhyve copies them into the guest memory as well. This can cause problems if the guest uses the in-memory version, since certain -advanced features, such as TPM emulation, are exposed only via FwCfg. +advanced features, such as TPM emulation, are exposed only via fw_cfg. Therefore, it is recommended to set this flag to false when running Windows guests. .It Va destroy_on_poweroff Ta bool Ta false Ta Destroy the VM on guest-initiated power-off. @@ -284,7 +284,7 @@ Intel e82545 network interface. VGA framebuffer device attached to VNC server. .It Li lpc LPC PCI-ISA bridge with COM1-COM4 16550 serial ports, -a boot ROM, and, optionally, a TPM module, a fwcfg type, +a boot ROM, and, optionally, a TPM module, a fw_cfg type, and a debug/test device. This device must be configured on bus 0. .It Li hda @@ -494,7 +494,8 @@ or .Dq hd . .It Va nmrr Ta integer Ta 0 Ta Nominal Media Rotation Rate, also known as RPM. -A value 1 of indicates a device with no rate such as a Solid State Disk. +A value 1 of indicates that the device is a solid state drive, i.e, +non-rotational. .It Va ser Ta string Ta generated Ta Serial number of up to twenty characters. A default serial number is generated using a hash of the backing @@ -574,12 +575,12 @@ Settings for the COM3 serial port device. .It Va com4 Ta node Ta Ta Settings for the COM4 serial port device. .It Va fwcfg Ta string Ta bhyve Ta -The fwcfg type to be used. +The fw_cfg type to be used. Supported values are .Dq bhyve for fwctl and .Dq qemu -for fwcfg. +for fw_cfg. .It Va pc-testdev Ta bool Ta false Ta Enable the PC debug/test device. .It Va pcireg.* Ta integer Ta Ta @@ -656,7 +657,7 @@ IEEE Extended Unique Identifier. If an EUI is not provided, a default is generated using a checksum of the device's PCI address. .It Va dsm Ta string Ta auto Ta -Whether or not to advertise DataSet Management support. +Whether or not to advertise Dataset Management support. One of .Dq auto , .Dq enable , From nobody Mon Dec 29 18:35:48 2025 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dg4fY1sbQz6M8vd for ; Mon, 29 Dec 2025 18:35:49 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dg4fX6XmZz3NrR for ; Mon, 29 Dec 2025 18:35:48 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767033348; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=jW2gR2y/pjASHMt/TnPcPya0FIaTDaRrQSw7Qfc8GuM=; b=mYCLTC/nTn9Q56PbH14e8Jcs+XxrzW1yOFrKC9/wdNTGkGAolpOEE0l/TVX3wd4g6VyuXB Nk0hY7/PpJSCB36EowQ23ds7xXMh+qX6PVte7SNqX7mnWwklgyjRQ3k+oW2WH+LvE3ZGqI dTSfW/9XNeYJtRfBqcGhQ94Dzl+GQ2T+oqq1wfsEd+IQ/eZdHv02S+w5K1XAcZrbVctCnH 8027rsNOeV7aECPEx/XXG/Zi1b2hKcTMGLBe8WbDrKDJ8yzyjxkU0Imp7KiCpiTnbW+/my AzRMDPVN3EMIAF8OSUaV0WE5mkPumZJBC29SAye6KBov3BkphHDOHIXPeHH89g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767033349; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=jW2gR2y/pjASHMt/TnPcPya0FIaTDaRrQSw7Qfc8GuM=; b=Cq3Ioe0mZ2oVkFZBrv68wx7r+6BCmCYFPd7uDZnW5YBvBYbtrCokitCRyWFu1Lxni9hK+w /f/2JWnZpNB+x/UVmNq5wLpFmj52Gc2xHsslrkAmudUHeJkYe98fJ5NsjcQIh7ll704VA+ 02GM4KUviR8iBRxQbxa4obrTj+j/GvUa9WkcETbXtz0+ofJ+mxLJAldn/35ZNB6xwui33W rBmFyT/eAHdzVaDw2Sw/zgzNdzxesANB70e5R98IjOSmndz9wKWGuoyMmKbuZ8yc10vHVq VF+TvKRhPZRdRh3IFd+gNgeNrY1QAig9WKPqdBKE4kWo03adya/7+Uj+PtykRg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767033349; a=rsa-sha256; cv=none; b=EXZXQOuluk+d+mOwi0Q0HmddufGWJWAC511tLj8Pz+EoYx3pWr15GVFCvjAMIXYSWASWG5 SqlveYf5MF2D5+7kD/JKsak449D2NveH1usTlJwEUgyvxpFgOHchtoGhqMAVAtBwzZts4x DGdRFGNoaX9dA/oeHjSZE+ekAKAu/SwO48vCY1U1euo6GaO25BeMWJAeN6Zlv5S1O1d0n9 IxYbhCCUWPfgSc4nv9eaaI1seb0pYHAeq/JuKZ3++cnCQ93rD5UEUrS/D+mj8M2Ifo1WX5 gA39Rxn9BFD/y+bKplAxi1N02vBDExVm3VdOOXSWiAzkQz7X+MWPHg7KG/IMPA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dg4fX5TPfzBHB for ; Mon, 29 Dec 2025 18:35:48 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 35f45 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 29 Dec 2025 18:35:48 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Michael Osipov Subject: git: ad6381a6ebf4 - stable/15 - linprocfs.4: Improve docs around pid/self entries List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: michaelo X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: ad6381a6ebf434a6e84a4b1862f6538a763e1ea3 Auto-Submitted: auto-generated Date: Mon, 29 Dec 2025 18:35:48 +0000 Message-Id: <6952ca04.35f45.7bf7d298@gitrepo.freebsd.org> The branch stable/15 has been updated by michaelo: URL: https://cgit.FreeBSD.org/src/commit/?id=ad6381a6ebf434a6e84a4b1862f6538a763e1ea3 commit ad6381a6ebf434a6e84a4b1862f6538a763e1ea3 Author: Michael Osipov AuthorDate: 2025-12-24 18:12:25 +0000 Commit: Michael Osipov CommitDate: 2025-12-29 18:35:32 +0000 linprocfs.4: Improve docs around pid/self entries Mark as a placeholder and document that self is a symlink to a directory. PR: 283080 Reviewed by: ziaee MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D54358 (cherry picked from commit 0d31189cbce4de142a43b65037beb7bf8c09cf26) --- share/man/man4/linprocfs.4 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/share/man/man4/linprocfs.4 b/share/man/man4/linprocfs.4 index dcd1c642b409..043dedbd723a 100644 --- a/share/man/man4/linprocfs.4 +++ b/share/man/man4/linprocfs.4 @@ -1,7 +1,7 @@ .\" Written by Garrett Wollman .\" This file is in the public domain. .\" -.Dd May 29, 2025 +.Dd December 26, 2025 .Dt LINPROCFS 4 .Os .Sh NAME @@ -126,11 +126,11 @@ Information about the swap device if any. Time since the last boot and time spent in idle state. .It Pa /compat/linux/proc/version Version of the emulated linux system. -.It Pa /compat/linux/proc/pid +.It Pa /compat/linux/proc/ Ns Ao Ar pid Ac A directory containing process information for process -.Pa pid . +.Ar pid . .It Pa /compat/linux/proc/self -A directory containing process information for the current process. +A symlink to a directory containing process information for the current process. .El .Sh EXAMPLES To mount a From nobody Mon Dec 29 18:35:47 2025 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dg4fX3f8Bz6M9ZW for ; Mon, 29 Dec 2025 18:35:48 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dg4fW5MRwz3Nlf for ; Mon, 29 Dec 2025 18:35:47 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767033347; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=TSVRg6PcbFx3TnpjshGKyp3+L0hG0A2gIroORBn5Whc=; b=e/Ga5h1hLQD+MiqQG2VcJkK+BjEwTqYNiJDmZ7sDfcLGaeNt4t9FHUPy3vxtlxonp18Z6l wPBspRMbx5KB9te8FzM3r0ILIhV3msDCNowXxpLt/sIyKYM7JnMY7IDz78drGbzLzfnvHa Yh02ERliAOZtMhVrK66TiGG0J+Kz0oQo0cKBnaQFiwkw1wLXbwQ2YDKzcLB0oaiT7Ey1PZ tl+H/kAxy/Z0w6Y8gBMP6NvY/MOx+f8yn975ZsDj7fZTTEd9o7l64Kr4JRUpseMs4rV+x+ yidr3uJAQW1z9g2A05T2GBjmv8bi2F1XGiMdj/1zOdzyzAeDV1RvTD7nw0Nqzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767033347; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=TSVRg6PcbFx3TnpjshGKyp3+L0hG0A2gIroORBn5Whc=; b=mlzmdD/roKJg5pShYi6F8NbumZ8ylRZ7Zm98fKQld/sFOmdt52Zf4y5V5R4PzmKzYp6kiw 8k8yDbQaUHn+TRRqdM9KVTmAa5xjiYQftW36Ac23u39mA7CT8Mkv8pszOXDwiWY6FF89pW gYD4cf3pB4A5XVkOb5FzcNmO0ea3R0+G/1Luf7cI64JhoBQ12BI43V8+JESedC5bYqXodQ imG+71n5ciAH4PBHJaLW3O5hNwCyzBKiELDnvdxnscjg8ouwiGItZ/6bxLlzuH9448jvJ6 dBQlqatV4//ZrFgqUJBTXxwl6TXeAQHzjZoRlvv8XpljBYSgBnEPc1XR+XY3Gw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767033347; a=rsa-sha256; cv=none; b=aM8oxQWPNwA7bbb0Jspy2+v2Ta73L64z2JJ+Q9Q6HlSZrBJ6WVnnWFrF5Saj771tP+jk9g GzayBpDci1yKqkX6scUd+wfhfpz/M5VDODO0DPjpgeUbpEzj7KBoA1vrK5lOfDkFp67hVS UtCdM5OsRBfoirgW5viJuFKnYtDX0UBVxShore6nAeG0BudN0ZYd2Om+rRtDjUMzduc1kY vnSgd7J4PRu4xsz/HprqBSJU+KfmWxvAi/XeJ3xcNTj/DiGm2nwvsv69rpsaJ7+1ShfXSc CgiYfGCmqGNTlb5+S09hbzLDagBXQErQAKFz5VmkpTmfZNnHLOfJfnFvcQnmKw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dg4fW4fcYz9r2 for ; Mon, 29 Dec 2025 18:35:47 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 37550 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 29 Dec 2025 18:35:47 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Michael Osipov Subject: git: 980c44df42fe - stable/15 - bhyve: Document that MAC address has to be unicast List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: michaelo X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 980c44df42fe1fcb29a4ef24af5e4e5c27cc2370 Auto-Submitted: auto-generated Date: Mon, 29 Dec 2025 18:35:47 +0000 Message-Id: <6952ca03.37550.52927dda@gitrepo.freebsd.org> The branch stable/15 has been updated by michaelo: URL: https://cgit.FreeBSD.org/src/commit/?id=980c44df42fe1fcb29a4ef24af5e4e5c27cc2370 commit 980c44df42fe1fcb29a4ef24af5e4e5c27cc2370 Author: Michael Osipov AuthorDate: 2025-12-26 13:40:37 +0000 Commit: Michael Osipov CommitDate: 2025-12-29 18:35:08 +0000 bhyve: Document that MAC address has to be unicast bhyve accepts any MAC address even foreign as long it is a unicast one. Reviewed by: ziaee MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D54372 (cherry picked from commit e1bfd541c7cdee1e184cacb2ea3bbebb3a500dfb) --- usr.sbin/bhyve/bhyve.8 | 3 ++- usr.sbin/bhyve/bhyve_config.5 | 12 ++++++++---- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/usr.sbin/bhyve/bhyve.8 b/usr.sbin/bhyve/bhyve.8 index 483462e0b98b..1d81280b8f75 100644 --- a/usr.sbin/bhyve/bhyve.8 +++ b/usr.sbin/bhyve/bhyve.8 @@ -25,7 +25,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd December 23, 2025 +.Dd December 26, 2025 .Dt BHYVE 8 .Os .Sh NAME @@ -542,6 +542,7 @@ If is not specified, the MAC address is derived from a fixed OUI, and the remaining bytes from an MD5 hash of the slot and function numbers and the device name. +If specified, it must be a unicast MAC address. .Pp The MAC address is an ASCII string in .Xr ethers 5 diff --git a/usr.sbin/bhyve/bhyve_config.5 b/usr.sbin/bhyve/bhyve_config.5 index b511d5ef6bfd..4ead94690d91 100644 --- a/usr.sbin/bhyve/bhyve_config.5 +++ b/usr.sbin/bhyve/bhyve_config.5 @@ -517,8 +517,10 @@ Intel e82545 network interfaces support the following variables: .It Sy Name Ta Sy Format Ta Sy Default Ta Sy Description .It Va mac Ta MAC address Ta generated Ta MAC address. -If an explicit address is not provided, -a MAC address is generated from a hash of the device's PCI address. +If not specified, the MAC address is derived from a fixed OUI, and the +remaining bytes from an MD5 hash of the slot and function numbers and +the device name. +If specified, it must be a unicast MAC address. .El .Ss Frame Buffer Settings .Bl -column "password" "[IP:]port" "127.0.0.1:5900" @@ -746,8 +748,10 @@ VirtIO network interfaces support the following variables: .It Sy Name Ta Sy Format Ta Sy Default Ta Sy Description .It Va mac Ta MAC address Ta generated Ta MAC address. -If an explicit address is not provided, -a MAC address is generated from a hash of the device's PCI address. +If not specified, the MAC address is derived from a fixed OUI, and the +remaining bytes from an MD5 hash of the slot and function numbers and +the device name. +If specified, it must be a unicast MAC address. .It Va mtu Ta integer Ta 1500 Ta The largest supported MTU advertised to the guest. .El From nobody Mon Dec 29 18:44:29 2025 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dg4rZ2qDSz6M9yN for ; Mon, 29 Dec 2025 18:44:30 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dg4rY6W1dz3RL4 for ; Mon, 29 Dec 2025 18:44:29 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767033869; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=SISbKmEgNmGs6xvUJ3TsXmgDfUecmimB7gyUHdSKseo=; b=XjrpqghbQozSHamFHaRcLbAFvqR9YA0AEOMYdygXKDOcmlrYs1X7V/edZFxYli0xGxFURG gwNE7SRC9HtKXZtdWdwQeQNysA6hDYwabVmvWCIxfdU9rUVVOVLIXgWam3f6WiH1Ue/z9v CNI+lFXF7rYLd3nRCcY/l92hJdZ/AxPGDi3CB02rbYGghPmaj3FBUEeDECHV82WQg14/HO T3Q0Lh8o1Tnk6/QIao0sgEaXuh4ANi5wZGucyEOjRy/gepkiVMcxkPhOfDUmREGTOvh5/N bwoccLGMzxS7tM7pgP66AR4D7ymNnAOjHdZpVPuAIkADXWTFNUyflRDd71/WIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767033869; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=SISbKmEgNmGs6xvUJ3TsXmgDfUecmimB7gyUHdSKseo=; b=HUV7wjwm33wu/TTZg3XOXfru4/6/ias2EVcBt5o7EvYyw0CBBxwxhB1Hka4nj0dM7XmlEQ ZhYHz8Z7bZrkDBVDmZU2u4SosVccgn/E9LwL22s46DPmMzWp7+ZAzR2tD3ie3lJXxatss/ 9IbzUobk48JzAGpIgV7PztRb2gL9upMSFJ04fJcCP36BTy5/S1ZVtXZPxdAP+QPO/kVEro 4V8tHuKnJQtpXW9cJeLlEHLW3THu7RCOVKf/XVUWE3gt/n+Qu2wPCClZSctZ5PfDN+wxIW TSiRo3A8Pf3kUYu4AAREof+jqK1Gzrkz9S774cZNY+CmTqCnRP74co2HKbimpQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767033869; a=rsa-sha256; cv=none; b=Kn/Y07RFH8rbyo3RfP+kLgUITJ8udq/bacrfinkOrSowNW8U/hjvToE5MOjHr/1fGeUpWF oxqc+8n0Qhho5gew8JnFxlo7LzpENqT3y85kCWMIgpkZmoW33JlebOQT71t4ou30j9HMud cuzrZm1DmJzCqC1hmTlokjznj3yVV4EFhRGqklouKn/mGiFqGZANVhHELQ9APYs8PNVUHF 0BtSgstJSabSMVpn7Glfg5nxLvqREO68tsWu4/1kDuRdEEC9kwDj1Ww16oJ2jPW4KAQi9t i3kcYCklc4nsEJSVHE0wmQk7zvaYGjH0nSlyDHLow9/AonhRNgvw7g8LthT7xA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dg4rY54DHzBcB for ; Mon, 29 Dec 2025 18:44:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 382b2 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 29 Dec 2025 18:44:29 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Michael Osipov Subject: git: c847ea5418e2 - stable/14 - bhyve_config.5: Fix consistency and terms in manpage List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: michaelo X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: c847ea5418e23d4f103882ad35c710af59061cfa Auto-Submitted: auto-generated Date: Mon, 29 Dec 2025 18:44:29 +0000 Message-Id: <6952cc0d.382b2.1587ffd1@gitrepo.freebsd.org> The branch stable/14 has been updated by michaelo: URL: https://cgit.FreeBSD.org/src/commit/?id=c847ea5418e23d4f103882ad35c710af59061cfa commit c847ea5418e23d4f103882ad35c710af59061cfa Author: Michael Osipov AuthorDate: 2025-12-26 12:12:03 +0000 Commit: Michael Osipov CommitDate: 2025-12-29 18:40:31 +0000 bhyve_config.5: Fix consistency and terms in manpage Correct inconsistent spelling of terms and duplication. Reviewed by: ziaee MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D54370 (cherry picked from commit 66604463e737f4754ae6268171031ceefc226837) --- usr.sbin/bhyve/bhyve_config.5 | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/usr.sbin/bhyve/bhyve_config.5 b/usr.sbin/bhyve/bhyve_config.5 index 38a52b635ec8..c2c13c845117 100644 --- a/usr.sbin/bhyve/bhyve_config.5 +++ b/usr.sbin/bhyve/bhyve_config.5 @@ -23,7 +23,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd November 20, 2023 +.Dd December 26, 2025 .Dt BHYVE_CONFIG 5 .Os .Sh NAME @@ -124,10 +124,10 @@ Wire guest memory. Generate ACPI tables. .It Va acpi_tables_in_memory Ta bool Ta true Ta .Xr bhyve 8 -always exposes ACPI tables by FwCfg. +always exposes ACPI tables by fw_cfg. For backward compatibility bhyve copies them into the guest memory as well. This can cause problems if the guest uses the in-memory version, since certain -advanced features, such as TPM emulation, are exposed only via FwCfg. +advanced features, such as TPM emulation, are exposed only via fw_cfg. Therefore, it is recommended to set this flag to false when running Windows guests. .It Va destroy_on_poweroff Ta bool Ta false Ta Destroy the VM on guest-initiated power-off. @@ -265,7 +265,7 @@ Intel e82545 network interface. VGA framebuffer device attached to VNC server. .It Li lpc LPC PCI-ISA bridge with COM1-COM4 16550 serial ports, -a boot ROM, and, optionally, a TPM module, a fwcfg type, +a boot ROM, and, optionally, a TPM module, a fw_cfg type, and a debug/test device. This device must be configured on bus 0. .It Li hda @@ -469,7 +469,8 @@ or .Dq hd . .It Va nmrr Ta integer Ta 0 Ta Nominal Media Rotation Rate, also known as RPM. -A value 1 of indicates a device with no rate such as a Solid State Disk. +A value 1 of indicates that the device is a solid state drive, i.e, +non-rotational. .It Va ser Ta string Ta generated Ta Serial number of up to twenty characters. A default serial number is generated using a hash of the backing @@ -560,12 +561,12 @@ Settings for the COM3 serial port device. .It Va com4 Ta node Ta Ta Settings for the COM4 serial port device. .It Va fwcfg Ta string Ta bhyve Ta -The fwcfg type to be used. +The fw_cfg type to be used. Supported values are .Dq bhyve for fwctl and .Dq qemu -for fwcfg. +for fw_cfg. .It Va pc-testdev Ta bool Ta false Ta Enable the PC debug/test device. .It Va pcireg.* Ta integer Ta Ta @@ -642,7 +643,7 @@ IEEE Extended Unique Identifier. If an EUI is not provided, a default is generated using a checksum of the device's PCI address. .It Va dsm Ta string Ta auto Ta -Whether or not to advertise DataSet Management support. +Whether or not to advertise Dataset Management support. One of .Dq auto , .Dq enable , From nobody Mon Dec 29 18:49:27 2025 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dg4yJ3tsYz6MBKH for ; Mon, 29 Dec 2025 18:49:28 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dg4yJ1L27z3SQD for ; Mon, 29 Dec 2025 18:49:28 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767034168; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=tPB5/K9sr4dwRE7XcVUbw+ssLBLdCgKtdBY8UHUEzgM=; b=siRVYcgrim57jinBjxpsbv04Fzcetj0h2JDV+tEjXKmD7eMENbISqhM/B8zyPCQNZLlLua KQMcBT8w7mBjYfo0ywzkuq5uQk6Db5NvHZv4Onw2RBqhv/+7fJZMLPne8XJFJSqdq7A8xU yq6cMIxoomqCTJEs+T5voV9BzqqUfmETYQSaI4QBIjdAIcEA2/Rsmvwj1wvAvC6uI1gqVx 4flXR6byLeRSvOdmtSWg7oXS3S8dL2IRXS6B57iPW5j72w1T4zoO6DQEzfFXtCVYMY+30k HnRo89B8CQVR3LrU3mWyXsxLagi5d0OxON32Ca1v9hN5sjwyetTbx8zKKFcXkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767034168; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=tPB5/K9sr4dwRE7XcVUbw+ssLBLdCgKtdBY8UHUEzgM=; b=CGh9wgtPZ7U8IAezlMZeW6GZEDaSmyf///vLv/TA63mqXhSYz1AUvcYCX3eK8yj9Io5W0X eUEgXFW5NLpdaOYlGD16Ia1sHEjrnKMDjRK4b4IKcE+DJiokyYWsGHhJYIoa235Q1tdpwD bS7N0NWPNerLDJnHEKpUAO84BHQMl3O/zBA/nH1VTPSsawctVIK2Ncbk2lFnz0JCLt/wZy 1fbLnSFC4ktX4vYnBM8LusuktPyQMXG6OMRaRD4xoIyVKcj8IaSwJrdXcPyUj+t3nP2mv8 QjwoSXHJB/RWy5k1fr6aAawFftJlmxvvuGKceiVw2nDfYFLW/+i/dqS8JdFdlg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767034168; a=rsa-sha256; cv=none; b=yxRxVolrDlH4KP7NFMf+a7gWpgBZacjX2oRx+f7NFiEqbTFrKp5JPmJFR3+m/2vAhWPdL2 0LR1PDjT3opK5tuxBMZqQhHL9pud0aHYIiRFbugEZbgAVK9cXeuxZe5AR7mnK5IT1HnniX zVcthjpSm+oTQOf+owgi5mu1MKJgifeaL30xsj7tV06N5SC2xvYGB9l02zpYe4MG07IbWA Jhp5upWALGxjXTDFQJZ2v79kWPc500ZcV+2yxs7HX4zcfHiwYq/nZwwX6Zk0qgmFNHoUHD 4SWD2/hkRgFlOzNyYHE9+jK31xJbWp7hjrkmHxEkoBqSV7SxyuJUfGWNTxPxgg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dg4yH5srrzBNL for ; Mon, 29 Dec 2025 18:49:27 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 38c94 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 29 Dec 2025 18:49:27 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Ka Ho Ng Subject: git: 9cfd75a6f88f - stable/15 - bio: Fix KASAN invalid access report in biodone List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: khng X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 9cfd75a6f88f2076d7cd7e18acc9d89f6055e8fe Auto-Submitted: auto-generated Date: Mon, 29 Dec 2025 18:49:27 +0000 Message-Id: <6952cd37.38c94.200e44cd@gitrepo.freebsd.org> The branch stable/15 has been updated by khng: URL: https://cgit.FreeBSD.org/src/commit/?id=9cfd75a6f88f2076d7cd7e18acc9d89f6055e8fe commit 9cfd75a6f88f2076d7cd7e18acc9d89f6055e8fe Author: Ka Ho Ng AuthorDate: 2025-12-29 15:49:29 +0000 Commit: Ka Ho Ng CommitDate: 2025-12-29 18:47:56 +0000 bio: Fix KASAN invalid access report in biodone Do not touch the bio fields after calling the bio_done callback. The bio might have been freed after the callback returns. Fixes: 725f4b108d54 Reported by: kp, markj --- sys/kern/vfs_bio.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c index dc90bd3add22..2368f863a248 100644 --- a/sys/kern/vfs_bio.c +++ b/sys/kern/vfs_bio.c @@ -4523,8 +4523,6 @@ biodone(struct bio *bp) bp->bio_flags |= BIO_ERROR_COMPAT; } done(bp); - bp->bio_error_compat = 0; - bp->bio_flags &= ~BIO_ERROR_COMPAT; } } From nobody Mon Dec 29 18:52:03 2025 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dg51H5vjJz6MBLt for ; Mon, 29 Dec 2025 18:52:03 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dg51H30F3z3TMZ for ; Mon, 29 Dec 2025 18:52:03 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767034323; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=xFLDZ2oYt4LoS/hgNaiwAsEJSkQtMQ2bLqt4liHtKUM=; b=xaMyQ2xvSzsoUs/eXGIqQfptrXGdRbho1JNnUxYNQrKpqgRtS//ESXJIez7A5pyfiHVP2R oBn+YDdNKKj9/FcWrlPKsJGqcMYAcCU3+CO9lucW+jFdAf5Zil5LHqODE6P6hpFFakTRqn aMsL9JmH2GRAL1b1pfsbMR09r/MW7cA+ZBnrwBD++fUWcOxhQ8PsRKgFLpxaa2VLmD40HJ SS/gFwUSNYjU6xqcSu+7/4sB9124jMGXLsah5oUlzY2FxA9sOJJk+qMatjF/X27YxH+Pax 0gjiPTQRFCPV8GzifMB43dtj9wsrRnNRpveHhXNP8phhOiVUSMOxEWio/bdySg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767034323; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=xFLDZ2oYt4LoS/hgNaiwAsEJSkQtMQ2bLqt4liHtKUM=; b=x7VYJeksTjxrVIs6Mi2JAkZTlftfHEJVzYdIuWYp+gMYgqpWx6zo9IhqxolvTUxnMGm8fl FRpk12ceWKg11l1IbZgEZpxHbtK4GaUjbkB3nKp+PbENODlKuzHdYxJdU0NXT3gReiC0Fq 9qb9zWLRz+B4qW0n6Wl3+F+2RizjWjJqZ0AFYQ0Nzp0puBqGXgXS5wfdhUFokDU9J6OcdP cMY2viQId3QSm7HzcWmRCCyMB3cKg0IJWzmZTwBAMVmHu0gYyeQICXNJiaRrZVL++m3H0J EHWtbiJGNCUhYOYSxN8p6X5+MJrbrYcH7xSPZqPKiNvtXWfbvSB/PtMFA7/HNA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767034323; a=rsa-sha256; cv=none; b=k2+9b2kEQrN9IhiWmwjuDuRJeEr7gmc98c7E1+tVtajwq/ztPKLBC54J2YXMlhwm/QUzIO bRSe5F3A2M0zku9e0Ut7P5nm26Ls/2bJyo42APB9MWq/n9vqzpimxBLzT6RCpN1mpkjRs1 7DSoSfG2BeKYXckzfxDGhAubFFvlrnAEnX1JfBow0BHaYCa4SiWzdsQ06QvQvPYMq9ww9p NEaBSHQ33M6SbdRuF0K6G8wjZZ3E9qVRylA3iLW/RTWPlYx5ElW319GxYABwMhbtedObUy yo2E7uqNWG2gjJL8gER9pv0Rr3nQ5Nn5XpP3AwePaw+XrP5af6snqGzJSXkQ1Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dg51H2Zp9zBM0 for ; Mon, 29 Dec 2025 18:52:03 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 38272 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 29 Dec 2025 18:52:03 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Michael Osipov Subject: git: b4f84b19b482 - stable/13 - bhyve: Document that MAC address has to be unicast List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: michaelo X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: b4f84b19b4826e8af2b20af95c5f2b63a826f40d Auto-Submitted: auto-generated Date: Mon, 29 Dec 2025 18:52:03 +0000 Message-Id: <6952cdd3.38272.1b86a1b1@gitrepo.freebsd.org> The branch stable/13 has been updated by michaelo: URL: https://cgit.FreeBSD.org/src/commit/?id=b4f84b19b4826e8af2b20af95c5f2b63a826f40d commit b4f84b19b4826e8af2b20af95c5f2b63a826f40d Author: Michael Osipov AuthorDate: 2025-12-26 13:40:37 +0000 Commit: Michael Osipov CommitDate: 2025-12-29 18:51:50 +0000 bhyve: Document that MAC address has to be unicast bhyve accepts any MAC address even foreign as long it is a unicast one. Reviewed by: ziaee MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D54372 (cherry picked from commit e1bfd541c7cdee1e184cacb2ea3bbebb3a500dfb) --- usr.sbin/bhyve/bhyve.8 | 3 ++- usr.sbin/bhyve/bhyve_config.5 | 12 ++++++++---- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/usr.sbin/bhyve/bhyve.8 b/usr.sbin/bhyve/bhyve.8 index f3cec8e121a5..aba7b1767e48 100644 --- a/usr.sbin/bhyve/bhyve.8 +++ b/usr.sbin/bhyve/bhyve.8 @@ -22,7 +22,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd December 23, 2025 +.Dd December 26, 2025 .Dt BHYVE 8 .Os .Sh NAME @@ -423,6 +423,7 @@ If is not specified, the MAC address is derived from a fixed OUI and the remaining bytes from an MD5 hash of the slot and function numbers and the device name. +If specified, it must be a unicast MAC address. .Pp The MAC address is an ASCII string in .Xr ethers 5 diff --git a/usr.sbin/bhyve/bhyve_config.5 b/usr.sbin/bhyve/bhyve_config.5 index 26387da0d59e..5b77caa75726 100644 --- a/usr.sbin/bhyve/bhyve_config.5 +++ b/usr.sbin/bhyve/bhyve_config.5 @@ -465,8 +465,10 @@ Intel e82545 network interfaces support the following variables: .It Sy Name Ta Sy Format Ta Sy Default Ta Sy Description .It Va mac Ta MAC address Ta generated Ta MAC address. -If an explicit address is not provided, -a MAC address is generated from a hash of the device's PCI address. +If not specified, the MAC address is derived from a fixed OUI, and the +remaining bytes from an MD5 hash of the slot and function numbers and +the device name. +If specified, it must be a unicast MAC address. .El .Ss Frame Buffer Settings .Bl -column "password" "[IP:]port" "127.0.0.1:5900" @@ -674,8 +676,10 @@ VirtIO network interfaces support the following variables: .It Sy Name Ta Sy Format Ta Sy Default Ta Sy Description .It Va mac Ta MAC address Ta generated Ta MAC address. -If an explicit address is not provided, -a MAC address is generated from a hash of the device's PCI address. +If not specified, the MAC address is derived from a fixed OUI, and the +remaining bytes from an MD5 hash of the slot and function numbers and +the device name. +If specified, it must be a unicast MAC address. .It Va mtu Ta integer Ta 1500 Ta The largest supported MTU advertised to the guest. .El From nobody Mon Dec 29 19:19:09 2025 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dg5cY2v7Qz6MDL8 for ; Mon, 29 Dec 2025 19:19:09 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dg5cY23cXz3WCn for ; Mon, 29 Dec 2025 19:19:09 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767035949; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=60bOg62U90+jPByCOYOruGfCjHcvtjb2GeR5OMo6i54=; b=Covrkb39MnB9cl0PK1yYDBFh5JfCWO879tbNV2L8LUjpcsfzpIvkI4S5PWzVuoben4I+LU JqxEWSCaDGstKPfGe0Ba84vB2ruvPa+USt13Bojp/9nV6wNGJtNvwyVodfsDR05TPALAvq aIA8lpmmNl+zT1Z4za3D7W0Lp27/Uifk4C3v2fwRClLGWbFwxdJzYwsnVAUyCHm0DQVagV OQxxsIEWjbShBIjLKgVg+4D/CHuhnkjNjggAH7/3TZekCeyT1XwyV8FjlIfPSu0CZT4933 tpy7U1TcPYivaPPDTdB87oExZvA+6k1e5bJ0TfiJi30E8W2oNYVsBGVuKROFVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767035949; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=60bOg62U90+jPByCOYOruGfCjHcvtjb2GeR5OMo6i54=; b=xvTersSBeROFndHNgulti5sBrE/ardthsSxjMvMpWa7xy9bsiW0jhn1QAnUPK5lIN21JwQ 5YbDvZdUQGcfp9tpf/hcllyXONR6hZ3x/tVJemd4/afcvP7z5RmRGxmn6VzUWXaRmlNknV yv21xSflXro4ZL6/n991OTGhGV9351MINnIvfmWJOWx+n403OquIddgvmlNdUIhy6vDVs8 hrx858IvANcO23dFZfZVwigGKykNv1LFloiUMvnNFNAth5wEXevmcNnx8BBG/H7BWWqZiv f8RumiRkSoO6dvY3rzxi6oDOKCKPXwNYIcmOeT8oIFrU+HK7juqw3bNOcevF0g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767035949; a=rsa-sha256; cv=none; b=FAyMXmAVBmsA2gZZpFf0E2S7K9BC7Hp1Mkjg0b/wR8Vo18Uh2P55oXB4sQooSMSCWFOIxB 0aBMWwyHE5Nx9yC9HcCFxrhRGAO02U1nxzC7pdFJeGK6Y+2nryVlQwPtTzJMjXOqGGU7FZ v3DSMqm5Xh1/kkMO7mV3sPjM8eo8HFr3E2JzZfiuhqwvqFXDniNsY1fhJSMvi4/JTWn9uE cgMl9pYL69zBp+4recaCMujB91car8kIXyPFvUEp7TWgwYDMQ/ejf8NPPLUBorguBRnrMv kokEzyOPlqtxjE83mkk+Wti4BztxP3FJy6lMIUm3eia/cgqPMjlW1IM06gUv/g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dg5cY1NXpzC9S for ; Mon, 29 Dec 2025 19:19:09 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3b009 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 29 Dec 2025 19:19:09 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Michael Osipov Subject: git: 0487408a76c6 - stable/13 - bhyve_config.5: Fix consistency and terms in manpage List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: michaelo X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 0487408a76c66b8bf7edddf1ec8025f60c6d0474 Auto-Submitted: auto-generated Date: Mon, 29 Dec 2025 19:19:09 +0000 Message-Id: <6952d42d.3b009.50ceed7e@gitrepo.freebsd.org> The branch stable/13 has been updated by michaelo: URL: https://cgit.FreeBSD.org/src/commit/?id=0487408a76c66b8bf7edddf1ec8025f60c6d0474 commit 0487408a76c66b8bf7edddf1ec8025f60c6d0474 Author: Michael Osipov AuthorDate: 2025-12-26 12:12:03 +0000 Commit: Michael Osipov CommitDate: 2025-12-29 19:18:00 +0000 bhyve_config.5: Fix consistency and terms in manpage Correct inconsistent spelling of terms and duplication. Reviewed by: ziaee MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D54370 (cherry picked from commit 66604463e737f4754ae6268171031ceefc226837) --- usr.sbin/bhyve/bhyve_config.5 | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/usr.sbin/bhyve/bhyve_config.5 b/usr.sbin/bhyve/bhyve_config.5 index 5b77caa75726..c0e235e02276 100644 --- a/usr.sbin/bhyve/bhyve_config.5 +++ b/usr.sbin/bhyve/bhyve_config.5 @@ -23,7 +23,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd December 8, 2022 +.Dd December 26, 2025 .Dt BHYVE_CONFIG 5 .Os .Sh NAME @@ -259,7 +259,7 @@ VGA framebuffer device attached to VNC server. .It Li lpc LPC PCI-ISA bridge with COM1-COM4 16550 serial ports, a boot ROM, -an optional fwcfg type, +an optional fw_cfg type, and an optional debug/test device. This device must be configured on bus 0. .It Li hda @@ -443,7 +443,8 @@ or .Dq hd . .It Va nmrr Ta integer Ta 0 Ta Nominal Media Rotation Rate, also known as RPM. -A value 1 of indicates a device with no rate such as a Solid State Disk. +A value 1 of indicates that the device is a solid state drive, i.e, +non-rotational. .It Va ser Ta string Ta generated Ta Serial number of up to twenty characters. A default serial number is generated using a hash of the backing @@ -536,12 +537,12 @@ Settings for the COM3 serial port device. .It Va com4 Ta node Ta Ta Settings for the COM4 serial port device. .It Va fwcfg Ta string Ta bhyve Ta -The fwcfg type to be used. +The fw_cfg type to be used. Supported values are .Dq bhyve for fwctl and .Dq qemu -for fwcfg. +for fw_cfg. .It Va pc-testdev Ta bool Ta false Ta Enable the PC debug/test device. .It Va pcireg.* Ta integer Ta Ta @@ -587,7 +588,7 @@ IEEE Extended Unique Identifier. If an EUI is not provided, a default is generated using a checksum of the device's PCI address. .It Va dsm Ta string Ta auto Ta -Whether or not to advertise DataSet Management support. +Whether or not to advertise Dataset Management support. One of .Dq auto , .Dq enable , From nobody Mon Dec 29 20:58:32 2025 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dg7qG6X1pz6MLZF; Mon, 29 Dec 2025 20:58:34 +0000 (UTC) (envelope-from markj@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dg7qG2tsLz3nVN; Mon, 29 Dec 2025 20:58:34 +0000 (UTC) (envelope-from markj@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767041914; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=sIFiGcbyyNO0Nsv63hp+ky9RFIsZJqVe+P0vdJJ5Bhc=; b=up8aV/mwnXyEba8T84d3+0A80Lh6c+KVna5jHrO5Va83nEpuAGfrY+AfaYUTkj9T91VxN0 /HnIqMIXoeLl0P2QMKY7txGP8FGbXB5zxA5KCQ25MqHu8y+AzjSoM1wN5+lvErDX68aIdW u8U56bPEe7gaj2SsPtpR3qptrI5ISqSlJnq6sfKDz4cGmRS9IpUxlfivjX0AokN3Hktt/t oFGS/I1TOsbjB70bS1s3GB8laTClyPciW5y0HhG3MFsOU2Ef1Dsy1sc9mDOQHJ/gk/y8uh HLPjbP66tN57Y8YChevJRFaYyD0HtNGWJrDygR1Dot6lwcKvU51cuqcq5/SCSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767041914; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=sIFiGcbyyNO0Nsv63hp+ky9RFIsZJqVe+P0vdJJ5Bhc=; b=SV8yZm+oKP/5iL6jI4KdihMYnnSxTg9VQNYGKZbgBhojV4ktZBAuFfvTDtHglNxCX8Xyye Otjf7iKxJsrIz+nn6JD2drdMQpci90iT0kZElGAsYHj1DzyfAhczInakh5V0ZFwFeXbQX6 zYgc9hCOQxUHDyvGaMlo2ZEToh+HQl5BzsmMi4Vz5MZvK2wbahqQOthZeJ/DGIqHq0sNt4 U0JkLa5bIbvAGuW7rsA7FM6vxgUf7dGpNPabYuINENUyqtmQRmMZJJ7E9WaXktGlpwOghX oeufjnvp2B21zvB4prUV+xAyjEhXbFNZ3K6q194DxTfiR+BNmCf9V5dHUvkNKA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767041914; a=rsa-sha256; cv=none; b=o1Ao74fajaGET/KcDrdQjPuvKG7kBHdTcWzTY4CIj7IzbuXdM4I9AXREpgrDzFQy7JgOX6 3Za3x6LbpA/rJiJ5e9+zBSzw/8wgmKtsLTOMJRfDvpVjo+R2RbFtfLIhG7okCc23glPbXz gvulf58UllY5L67mVt0TFH7/9Lr7ExkiiRnx2UP5UNE1u3XNdoBk32Gh/Lr7vStGB8EfgH tQ5y5bJuAQJqFPv2tpSQQFt+efJcPxNA9ARn7UxHrI8PCgZJPxVHgslt2vB9IB43fW1gte AOAl6rv2ziFPhJ9EqdKlfua2gI2jBwjYEzlyiNSu+S4C5dguORYApbdH3tdQFQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from nuc (192-0-220-237.cpe.teksavvy.com [192.0.220.237]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: markj) by smtp.freebsd.org (Postfix) with ESMTPSA id 4dg7qG0qY0zmq9; Mon, 29 Dec 2025 20:58:34 +0000 (UTC) (envelope-from markj@freebsd.org) Date: Mon, 29 Dec 2025 15:58:32 -0500 From: Mark Johnston To: Dimitry Andric Cc: src-committers@freebsd.org, dev-commits-src-all@freebsd.org, dev-commits-src-branches@freebsd.org Subject: Re: git: 2ade7285253f - stable/14 - tools.build: add sys/cdefs.h to SYSINCS, since lots of other headers use it Message-ID: References: <69527170.31d92.5af51114@gitrepo.freebsd.org> List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <69527170.31d92.5af51114@gitrepo.freebsd.org> On Mon, Dec 29, 2025 at 12:17:52PM +0000, Dimitry Andric wrote: > The branch stable/14 has been updated by dim: > > URL: https://cgit.FreeBSD.org/src/commit/?id=2ade7285253fc5dfe0adfc51f7bd342b9293f253 > > commit 2ade7285253fc5dfe0adfc51f7bd342b9293f253 > Author: Dimitry Andric > AuthorDate: 2025-12-26 15:26:13 +0000 > Commit: Dimitry Andric > CommitDate: 2025-12-29 12:16:00 +0000 > > tools.build: add sys/cdefs.h to SYSINCS, since lots of other headers use it > > This is needed to let the legacy stage compile against newer versions of > sys/font.h, which transitively includes sys/cdefs.h, and requires the > new __nonstring macro from it. > > Fixes: e2c93ed09f25 > MFC after: 3 days > > (cherry picked from commit 1c9ff80f06350fa44b7e50ce09ad665ab0082abb) Hi Dimitry, After this commit, I can't build stable/14 on main (commit 88b04633c29e to be exact) anymore. Here's the output from a buildworld, it fails pretty much immediately: https://reviews.freebsd.org/P683 The same seems to be true on stable/13, but not on stable/15. From nobody Mon Dec 29 21:21:34 2025 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dg8Kq6pN1z6MMWC; Mon, 29 Dec 2025 21:21:35 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dg8Kq5zrPz3rdW; Mon, 29 Dec 2025 21:21:35 +0000 (UTC) (envelope-from dim@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767043295; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=EEWMJl75m8269Xs371tNmH8aHhLOdm8PexcpV1b+xy8=; b=xISDyhn4vQlV3c1/2xOpQINXx4z+D6P/rv6rzEXJkjF8VuWqwMCLNgVMdrxryGJxmKaoAZ R/Dhj1WyYVLmd9Xenuo1tt6SZ3WJDrI9eD2GjW/Jy549uH6l7Wzd7Qqi/yC+5KhAZJY93D 7DcKN3r0BLuCWUHGRw6itp+0jwQ42sOrbPkdCVWjOB45zKzn4M9w7AyxrJGXDVnTlCiIiu rfTTQwywqhiY0nJhFxNNDkSWwZmhCuzvh3cEtHxMRX4u6iWCna9aOo8gVS+yK6LFcbwGnJ 3Z7sbDpjLC7LTOXZre/QFF/OVrmGX+CPjuAUCEUffnQxBCWzKJXMnWR2IyeOsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767043295; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=EEWMJl75m8269Xs371tNmH8aHhLOdm8PexcpV1b+xy8=; b=m7pD032Qfa+RYyGxlGym0aDlRlkSTv81CaJblobdU2omM4xBFh6U/wpwJMa2ijbocikCuY qv3o5PAGQ+IwUoPlQ1iJa2rzFlA4AiypsiFxjjE9sL5IzvGuQZfw+QPQZ3RTQyT48xscVg AqV5Ee8sghBVVCwauuffCpLYq4Rk/TaJt9n9xVIL3IOpliZuuTnIJnhzrYR3DI0xIQSJMH rUJ3ACP7UtrYeKaVFg/TBZA4tHUfBV2zewN5GE5TXwCveRNhErPwWyciMpvagTH4EJ1JiA sAG3r9cIlOKr2kb+zYsiC8imOiFoiJd4oCtiJFj5riMvy6yupygB1Iblaxio8w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767043295; a=rsa-sha256; cv=none; b=wM/ZADUGa0+PtBD6SlqIPW2Vu4J8JWdxe33xI58Ra79hYKxxz33z6aeIB44eSzo9I9bJOx LXqt25mY1Yp9F79LkyNk5LtAWlhMruXhPYzQjv1yk3FCxjtikaQltrKgWeD3m596bPk2Mo twSJ6vuRPIUOOUPQW1vBo5pPR8OXEF/c3lj2ENKEB5eHit5G9Nd3xhXR7hE5aPQw38kdFj wrq2p6bUC0XVdZWKapeoVEH/xAJSJxj+95QJ3UwtvtHSXeeloKi1h10sXZpT52CyOncs0Y LBgThX8KXiH6ttbgMq5hdVbTT+5hanM0+QSItS6Xq+siWT0Np3u7zXs94Lxhcg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature ECDSA (prime256v1) client-digest SHA256) (Client CN "tensor.andric.com", Issuer "E7" (verified OK)) (Authenticated sender: dim) by smtp.freebsd.org (Postfix) with ESMTPSA id 4dg8Kq4bbbzn4X; Mon, 29 Dec 2025 21:21:35 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtpclient.apple (bladnoch.home.andric.com [192.168.0.20]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 5E09E5B1D6; Mon, 29 Dec 2025 22:21:34 +0100 (CET) Content-Type: text/plain; charset=us-ascii List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.700.81.1.4\)) Subject: Re: git: 2ade7285253f - stable/14 - tools.build: add sys/cdefs.h to SYSINCS, since lots of other headers use it From: Dimitry Andric In-Reply-To: Date: Mon, 29 Dec 2025 22:21:34 +0100 Cc: src-committers@freebsd.org, dev-commits-src-all@freebsd.org, dev-commits-src-branches@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <69527170.31d92.5af51114@gitrepo.freebsd.org> To: Mark Johnston X-Mailer: Apple Mail (2.3826.700.81.1.4) On 29 Dec 2025, at 21:58, Mark Johnston wrote: >=20 > On Mon, Dec 29, 2025 at 12:17:52PM +0000, Dimitry Andric wrote: >> The branch stable/14 has been updated by dim: >>=20 >> URL: = https://cgit.FreeBSD.org/src/commit/?id=3D2ade7285253fc5dfe0adfc51f7bd342b= 9293f253 >>=20 >> commit 2ade7285253fc5dfe0adfc51f7bd342b9293f253 >> Author: Dimitry Andric >> AuthorDate: 2025-12-26 15:26:13 +0000 >> Commit: Dimitry Andric >> CommitDate: 2025-12-29 12:16:00 +0000 >>=20 >> tools.build: add sys/cdefs.h to SYSINCS, since lots of other = headers use it >>=20 >> This is needed to let the legacy stage compile against newer = versions of >> sys/font.h, which transitively includes sys/cdefs.h, and requires = the >> new __nonstring macro from it. >>=20 >> Fixes: e2c93ed09f25 >> MFC after: 3 days >>=20 >> (cherry picked from commit = 1c9ff80f06350fa44b7e50ce09ad665ab0082abb) >=20 > Hi Dimitry, >=20 > After this commit, I can't build stable/14 on main (commit = 88b04633c29e > to be exact) anymore. Here's the output from a buildworld, it fails > pretty much immediately: > https://reviews.freebsd.org/P683 >=20 > The same seems to be true on stable/13, but not on stable/15. Hmm, this turns out to be a bit deeper rabbit hole than I anticipated. = The cdefs.h header on stable/14 and stable/13 are quite behind the one = on main and stable/15. This causes issues like the above, when = __noexcept, __deprecated1 and others are not defined during the legacy = stage, and it picks up _some_ headers from the host system, and others = from the location installed by tools/build/Makefile. I think I will rollback the MFCs for now, until I can figure out a = solution. Ideally we would not have to copy cdefs.h for this bootstrap = part, but that leads to other issues. -Dimitry From nobody Mon Dec 29 23:29:56 2025 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dgC9w3VXLz6MVM4 for ; Mon, 29 Dec 2025 23:29:56 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dgC9w2yjMz43Pf for ; Mon, 29 Dec 2025 23:29:56 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767050996; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=uDFRrK602R8RTZ713fMi/CXzA8qBRZvD+RqAdSwvns8=; b=Y3GpvED5a/74rr6+k/9wKWhaojeZ03zyNWy4pJgLtI8vvWQ6zEgl/xnuPWvuq6f6OBjAmZ H7kWzHeh3jTDlumxKngjKqdoOSnUbXTx08GmEXGbr9CZWvza+oIA75pCe0VER7DtTDywYS ngFPnR4Bku4w4rRtwoFdjr66v/0KCkBW1hAeWCK5f/1t9dvIs4LzL7wVbyt5L9IjjR3/uR wU5gKnDnrCdo5tNGaa7Vd5dCLPlu2vePhQQkVcREVnDz4macirx4RhgHq3WU65QYdr7BBl ry8heZhHs71vc92q2MEMeDAtLm46tW6HexSvrra/AmUH1rff3WTYiNCpDNgwVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767050996; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=uDFRrK602R8RTZ713fMi/CXzA8qBRZvD+RqAdSwvns8=; b=KuZOXnMweLI4+DbLosLv6FCgFkxW3u5RDYrdJ8S2gojL9x1fVploZ4VAm9q3+ars/ZCjAT i9QKuySCrxM3K6oUgYHeIxA6bwoxjnkT1AR1ws+qPt7DKsD1EQLnarEfQ8gBN51wiC5Dd1 VL2tTK4P8cJM2nn1eAE7Ss3QiQEqxhdMjZfna6RE0I2M3ubQdPQP3Pdo6Q9aZd/eUhJsAO Z1qtrHtBk5YY3TWuYYCqVDNdXinOywmfhCmNDZ9v2cFTDWQUwo+74PuQ8YafRZusDL3+YZ 5ORa4DjH6W03HJZ5QaojoAZlP1ikOVoZjfjerS/tXwBqfMNcGqS2YAaPuFE3WQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767050996; a=rsa-sha256; cv=none; b=H6+VDGBlgBoDJ/OWlFBRak0kl2TaHAIOosmthMqzk95Szpdv8TrX5lukCZhPfB2YgiYQkS vLwFZ1jIUy2NwIrQhIZ2clfkcWyCl/J9m1AD/0Z7euTSmTfLJeoZHN848umLOl+kf7ZAv2 CGt6Xf5jmBhkEVE79Huew5MJ9YJ57nAa5DxbnyuICnuAnO0t/621/J6s8VtcWT8uC83m8S i4VJ4OTvJkmR1jOru1sn2MXac1H//LjKmE7frTMWzF7hgi9XpLFUkoUcgV+wSn93/b4p8B pQzI/FkeJP1jIet8PLz47h0gaUg6sX1BapjJuQ8nmkFsvFJxwMovyBBRF6il7w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dgC9w2W8Xzc6q for ; Mon, 29 Dec 2025 23:29:56 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 23a87 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 29 Dec 2025 23:29:56 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Cc: Lexi Winter From: Dimitry Andric Subject: git: c4290c35857d - stable/14 - sys/cdefs.h: add __noexcept and __noexcept_if List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: c4290c35857d46a880ae3873fef58aa98a20c087 Auto-Submitted: auto-generated Date: Mon, 29 Dec 2025 23:29:56 +0000 Message-Id: <69530ef4.23a87.f893d3b@gitrepo.freebsd.org> The branch stable/14 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=c4290c35857d46a880ae3873fef58aa98a20c087 commit c4290c35857d46a880ae3873fef58aa98a20c087 Author: Lexi Winter AuthorDate: 2024-02-02 16:41:40 +0000 Commit: Dimitry Andric CommitDate: 2025-12-29 21:47:53 +0000 sys/cdefs.h: add __noexcept and __noexcept_if These macros provide the C++11 noexcept and noexcept(...) keywords if we're compiling in a C++11 environment. Otherwise, they expand to an empty string. This will be used to add the required noexcept specifier to several libc functions as required in C++11. MFC after: 2 weeks Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/1085 (cherry picked from commit 02b0d4b688cc4deb14cb6e7534a2a4958e48b753) --- sys/sys/cdefs.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/sys/sys/cdefs.h b/sys/sys/cdefs.h index 029eff437c8e..ed759029a53f 100644 --- a/sys/sys/cdefs.h +++ b/sys/sys/cdefs.h @@ -393,6 +393,17 @@ #endif #endif +/* + * noexcept keyword added in C++11. + */ +#if defined(__cplusplus) && __cplusplus >= 201103L +#define __noexcept noexcept +#define __noexcept_if(__c) noexcept(__c) +#else +#define __noexcept +#define __noexcept_if(__c) +#endif + /* * nodiscard attribute added in C++17 and C23, but supported by both LLVM and * GCC in earlier language versions, so we use __has_c{,pp}_attribute to test From nobody Mon Dec 29 23:29:57 2025 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dgC9x4m3Wz6MTxJ for ; Mon, 29 Dec 2025 23:29:57 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dgC9x3qPFz43gG for ; Mon, 29 Dec 2025 23:29:57 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767050997; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=XeMUX04ns1u0QIxs/vyO61tI6DyyOhNjmNTcus/9b4c=; b=g5ldUDf0hqAb4hm/L3yz/s1stsQvO0qDavP3Xx51Wf7ID3c7PL6vq4NCTc0ZOVsz7wp1L1 +p5yAmUqY1Gf6jkNtBTh2qgw85QeduLjMHnMBkjfKDdz07bNLUwzxYZCaHiyg2rY3zFWGt D6HVwZ5IkQiXRNidPo5auhVhKrXMRfwBTqrb0py5qTPNYg5WlM3bR0ur35yAXcC/bcqKYU ChK9HoicUTcNG+/V82ncUZ97aOQyOsuZy3o2znZ9KyFKOiFigjzgOHmo3FlUxjl4ZMzI9U gC1iZ035jY6iR8HmVebPY93HDmurmf9FeG+cp4MLZZjWBdLZYybWYu3FKCL6WQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767050997; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=XeMUX04ns1u0QIxs/vyO61tI6DyyOhNjmNTcus/9b4c=; b=Ko7darpKWXcXXHOhV49o7lmqN1Kg1HbXs2upEV1o6mNWALyUS9uI4FpvsL2Kk9VsoWFTNZ c+wF84dlXrgOlY+iCJAw2Ea56kAhoGIDQhH4aFFhniX6WSSQz3vJQY79MbSmigzsu0pnW+ /tUl+D2nbNgpS3sfAJSj0Nyxec4GUBa3nl9KdIOn9Fx2Qhn4XGIVid8oKm2RHUP+Hrp2/A SsusaRIOk/aSynxa8ARP4IU/fNG6ecOevGadqVOR8zaV+H+ieQ4p9m8SjTykiICilyRUVZ 7lZ8P8M81Vhq7gtf0BukYhey+6ZdAhV9nrnFZqwwB9yIpAtR7O6/U25Xo+Br6Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767050997; a=rsa-sha256; cv=none; b=cFaFFICN83fprRMMp86MvizvvXzqxar5CapReh1tlD5JNtUihxbVghU+hqChxrnFbRZdee RISiEp5VWnZLxuqk5P6jWr9fB3CKDpeUPGkXYZimK+cwTHqd5fbIaOp7LUFPiBeaH96kC5 gSmRa4lRnmOSYuLJ60jXBu/xpjC68bpAj0EzSGGA3ZPQcX23gaVB3wZqDMo69SIvtaHahL KX/UhI1saXyYng9DsxlG98wrt+huaz+3MzPL4r3pK/niMSeeynn0WsZ+DZOqDh2qFUn0R2 to/hGBYCSvoJGVBZQRWGKByMT88Vrgzpg79az+7k7rlgOa4HooIGzctDcoQxZQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dgC9x3Hstzc7p for ; Mon, 29 Dec 2025 23:29:57 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 24687 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 29 Dec 2025 23:29:57 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Cc: Warner Losh From: Dimitry Andric Subject: git: 4ff445d3723a - stable/14 - cdefs: Add __deprecated List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 4ff445d3723a58ef8a5d34e4e33c4f40d217e1ab Auto-Submitted: auto-generated Date: Mon, 29 Dec 2025 23:29:57 +0000 Message-Id: <69530ef5.24687.1b039e31@gitrepo.freebsd.org> The branch stable/14 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=4ff445d3723a58ef8a5d34e4e33c4f40d217e1ab commit 4ff445d3723a58ef8a5d34e4e33c4f40d217e1ab Author: Warner Losh AuthorDate: 2024-10-15 19:49:53 +0000 Commit: Dimitry Andric CommitDate: 2025-12-29 21:48:19 +0000 cdefs: Add __deprecated Add __deprecated decorator. This is for a deprecated interface. copystr is tagged with this today in copy(9), but don't actually provide it or use it. copystr is a #define so adding it will have to wait. LinuxKPI was defining this away completely in compiler.h. Since this is shared between Linux KPI consumers and OpenZFS, if it's already defined, use the FreeBSD sys/cdefs.h version, otherwise define it away. For OpenZFS this will retain it, while for Linux KPI it will tend to drop it (I think always, but I didn't look at everything). Sponsored by: Netflix Reviewed by: jhb, emaste Differential Revision: https://reviews.freebsd.org/D46137 (cherry picked from commit 16672453f12586703f1c51d909bd1900691bf884) --- sys/compat/linuxkpi/common/include/linux/compiler.h | 2 ++ sys/sys/cdefs.h | 1 + 2 files changed, 3 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/compiler.h b/sys/compat/linuxkpi/common/include/linux/compiler.h index c82b9acd53fb..fb5ad3bf4fe4 100644 --- a/sys/compat/linuxkpi/common/include/linux/compiler.h +++ b/sys/compat/linuxkpi/common/include/linux/compiler.h @@ -48,7 +48,9 @@ #define __cond_lock(x,c) (c) #define __bitwise #define __devinitdata +#ifndef __deprecated #define __deprecated +#endif #define __init #define __initconst #define __devinit diff --git a/sys/sys/cdefs.h b/sys/sys/cdefs.h index ed759029a53f..fc0a6c2f294c 100644 --- a/sys/sys/cdefs.h +++ b/sys/sys/cdefs.h @@ -214,6 +214,7 @@ #define __pure2 __attribute__((__const__)) #define __unused __attribute__((__unused__)) #define __used __attribute__((__used__)) +#define __deprecated __attribute__((__deprecated__)) #define __packed __attribute__((__packed__)) #define __aligned(x) __attribute__((__aligned__(x))) #define __section(x) __attribute__((__section__(x))) From nobody Mon Dec 29 23:29:58 2025 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dgC9z2HTfz6MV31 for ; Mon, 29 Dec 2025 23:29:59 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dgC9y6cy2z43pH for ; Mon, 29 Dec 2025 23:29:58 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767050999; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=cMeRJ9B+tGXEPHvUcAv8Pr1tA59RcRi7S2ahCi97Og8=; b=XMqjWIB1UATtH4q9W4V2mqBEaNqtGDqBtCkOsRH/JwhWtDSCVNilhWL975CD8CjnsWMl8f kQU5QKgEs+mTVXqwhfXEWI3m99Iub5YprZKp1448MGmOOm4VwOFjqHVWtngXQX0vD/7psE VTEv8eHlsRuu0FQIMIvYqiPcFSpw68u63d80wY6scxo37u012PhfPSGo0SeBw2wBycsSul /vkvH5rSmMbRKgUqpBkXs6vUX8yMTgA4EhgAwcdopDJTuhx1FGRLbxtPIRI5Ujphs0qGnf zf0AuAXFRaiFKi7+YwH728Yy2fWv3UhdBH1y0QfLq/fQDLSLAYrBTPBhdoZSBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767050999; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=cMeRJ9B+tGXEPHvUcAv8Pr1tA59RcRi7S2ahCi97Og8=; b=C4Q/5OcbovZx+iT23rOKSXGbgGsz/5N8aFWjS4knfH46ILB9vWlmea2OuOzfslZ9slJLxD HmkA1AkaMF1M/5aZoZf9sQw5XhtgKDvPU/2VoRXA2RSdcBN5pUwBieqbILUcyNHr4GqUkR uqMVM3XwXSM2yEUJRO1yxhNg7nuYlUmvYbTLqKVolHykvFbO0UksG1d7G37GfK3sPSRENc kw1mywU0U6AxJ9os+gmXCrdPtlKHFlONFj/PiTNDQS+aOq0YvtM4EMQPBrFS3IilIc2A7j mN6iqq8GXtdrDjWdof4AO1AOlhgr1MTR7XVQuVwbkT6ib8Iv6ERQfJwxT5Rbhg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767050999; a=rsa-sha256; cv=none; b=Lr6VOEszs4pgB0D91TfU/edKzTIjNBmkktNUeHg+JU1LbJThcapUy/p1bbbKsNKnDabdDm IRoUlLKsqhUsJ2b09XnPg90YZJN/cbuxtlhYtDd7ZWX/VPEbghw81G8iy0UV24wn6LWPXI busJJbzejgmvVNk/RFTaP59OddtEfqiXCUU2cj10+ezKvXJklpgzG581jgKaUOCuJtk7MS tvW5Ebmkst27JJj767dFqv/CL+x4f54WMxURyJloZfBObcP1LQN6Rdvgp7eoUFZI0AJTah 0kxdAnLslvNrRfO6HYzlOWqwqs5fELDwj3Z++kqjWJ+/+jAFagyvacw9vVamwg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dgC9y3l5szcMr for ; Mon, 29 Dec 2025 23:29:58 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 23712 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 29 Dec 2025 23:29:58 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Cc: John Baldwin From: Dimitry Andric Subject: git: 85e0cdeeb75a - stable/14 - cdefs: Add __deprecated1 which accepts a message as an argument List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 85e0cdeeb75a8fffc7910032d409417124dfee26 Auto-Submitted: auto-generated Date: Mon, 29 Dec 2025 23:29:58 +0000 Message-Id: <69530ef6.23712.6eec208c@gitrepo.freebsd.org> The branch stable/14 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=85e0cdeeb75a8fffc7910032d409417124dfee26 commit 85e0cdeeb75a8fffc7910032d409417124dfee26 Author: John Baldwin AuthorDate: 2024-12-06 22:26:27 +0000 Commit: Dimitry Andric CommitDate: 2025-12-29 21:48:36 +0000 cdefs: Add __deprecated1 which accepts a message as an argument This message will be included in any warning issued by the compiler for use of the deprecated function. Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D47701 (cherry picked from commit 6da04bcff9efedeae7d4046553002b9e3b2bc24f) --- sys/sys/cdefs.h | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/sys/cdefs.h b/sys/sys/cdefs.h index fc0a6c2f294c..1a91b8de567b 100644 --- a/sys/sys/cdefs.h +++ b/sys/sys/cdefs.h @@ -215,6 +215,7 @@ #define __unused __attribute__((__unused__)) #define __used __attribute__((__used__)) #define __deprecated __attribute__((__deprecated__)) +#define __deprecated1(msg) __attribute__((__deprecated__(msg))) #define __packed __attribute__((__packed__)) #define __aligned(x) __attribute__((__aligned__(x))) #define __section(x) __attribute__((__section__(x))) From nobody Mon Dec 29 23:48:57 2025 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dgCbs5FPqz6MW3t for ; Mon, 29 Dec 2025 23:48:57 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dgCbs4YTCz456x for ; Mon, 29 Dec 2025 23:48:57 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767052137; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Jt+eJS98wn0xPiCeyBlyG0NPdXbnzYAFpWrR6rH6m0A=; b=K6BYqIYk/d/Hq1JFY5h8c00MXpdbhrfpqRuJOobu0bTOZv70W7bY+3OVqd5qvuU6W6Kx4B u5JXooZmx+JFwuJJz2lL0885bgBqLr80+3O0X9c8yru+ZuqeGlsluhfCy/pOKzvUWh94MM p64cqjB4BrfrHRiFVXltKLOothT2AiscWNEgj2HJy4OOShc4FU8+TwJSe+ZdgK51jmSR9/ 20cnfP2imxAxYe8haQeZQkXrt8Dl1f0ixG61PGnpB0c6FWjQ2nsS7bG24F+Rn13cf9/Y8n jYCwu0qWRU9GRDU2V/mtYLZq46n9nxaRN0iyDTFv4ycKCBly9wuUsgc4Gemu7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767052137; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Jt+eJS98wn0xPiCeyBlyG0NPdXbnzYAFpWrR6rH6m0A=; b=XkUZn1OYk6h3DDkIzkJQlXKJ8EeBIY7tJ7FANaxjXv41yh2K/OpipIyg2g5vy1c+tgMkkM qt+5ByfpmKwFxoLP3hXkcIXXh+9iQ9iYJ2rEQ+z/ddjI9GlbZwPd+lrK8PcHx4W0pWGNFf GszqB8Jw3ZrmAZjSOe7PQbphpufpPA6Tgk6H9Ccab6LXFWDmRUgYY1NgUtnNBIRQV9mYQt Jz+HWTiSxK6CvxqyqNKUZ0t6l9PhRmyqRGeZJ7QwGaFw/TxZweX7YW3KBug7O9bRRCaOEA p8yAw74IF7puJnGW5FTJRxwkNHP4o+1kL/a3BFIF3pISZVs3M56EI9JqOHF75A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767052137; a=rsa-sha256; cv=none; b=YEwRu7esTeBWNqWTObx2eWESg+FrS55FiX6+91mnp1aUz+jWBQmaQQIVrt6i6HObTPLSzr UEdcXGwIbuqNzM+wYI2tsVQh4MUha3BFTy1eEx9Vu79ndGLq4SGysMW7ohdaK1eF/0wm7J jqe/s17Jdgx/LDJdZKAiHvQz4xUbAuNvldB9BwLCprhtyiKTPJa4IwnhfcFQu3VZ6Ov2pP eiBt2V3hxf3/y5W63W6PfRP8fP+zjCd4r16Rxwu682IL/VjXSLJVQrufi3FE7dr7bwAa7D ANnkTXBbXFLIUWk6yHaBD/Z6gg4nOxsTIrwoq/NyaZz8BN3oZ6Mc9KTIi2hKGQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dgCbs3r3GzcHh for ; Mon, 29 Dec 2025 23:48:57 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 255c8 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 29 Dec 2025 23:48:57 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Cc: Lexi Winter From: Dimitry Andric Subject: git: cd2a65a60701 - stable/13 - sys/cdefs.h: add __noexcept and __noexcept_if List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: cd2a65a60701d806e8ebbf97b6c77c880e0c9746 Auto-Submitted: auto-generated Date: Mon, 29 Dec 2025 23:48:57 +0000 Message-Id: <69531369.255c8.54a75166@gitrepo.freebsd.org> The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=cd2a65a60701d806e8ebbf97b6c77c880e0c9746 commit cd2a65a60701d806e8ebbf97b6c77c880e0c9746 Author: Lexi Winter AuthorDate: 2024-02-02 16:41:40 +0000 Commit: Dimitry Andric CommitDate: 2025-12-29 23:46:45 +0000 sys/cdefs.h: add __noexcept and __noexcept_if These macros provide the C++11 noexcept and noexcept(...) keywords if we're compiling in a C++11 environment. Otherwise, they expand to an empty string. This will be used to add the required noexcept specifier to several libc functions as required in C++11. MFC after: 2 weeks Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/1085 (cherry picked from commit 02b0d4b688cc4deb14cb6e7534a2a4958e48b753) --- sys/sys/cdefs.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/sys/sys/cdefs.h b/sys/sys/cdefs.h index 8fd07ce85a05..96a3742c4a1d 100644 --- a/sys/sys/cdefs.h +++ b/sys/sys/cdefs.h @@ -394,6 +394,17 @@ #endif #endif +/* + * noexcept keyword added in C++11. + */ +#if defined(__cplusplus) && __cplusplus >= 201103L +#define __noexcept noexcept +#define __noexcept_if(__c) noexcept(__c) +#else +#define __noexcept +#define __noexcept_if(__c) +#endif + /* * nodiscard attribute added in C++17 and C23, but supported by both LLVM and * GCC in earlier language versions, so we use __has_c{,pp}_attribute to test From nobody Mon Dec 29 23:48:58 2025 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dgCbt5dJyz6MWHx for ; Mon, 29 Dec 2025 23:48:58 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dgCbt4Q1wz45Cr for ; Mon, 29 Dec 2025 23:48:58 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767052138; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=pr0MGgRlNcFW+KEPXOGGy0teNeBA5Mmb9mBla6JY8yI=; b=nW+ex1m3NL/jn7s8VHAB2llNyzULF79cDyPmeBCoRs5vpQc26oLBPp5gAJPt9FvfvinvZP 2Ga5AGzot2AyKI9GHaFTL5lyjAuppwd9tr/v0jf5SuOPgcouHyFwnLw7q3/kCqy+4ix/yM 2zNr8VZYaPIG6Vai+0kK6E7eGjuZiDtRKnspMP+d4rkUX9TkDQW2YPygRaRW2f1vjvgH+P Pxp7ZRVf+IN3suENT5gVRn1idX0Rb/Wj3vfTR/WS+Ks+91jsPKc0At+7iGWryOgRRDzDur 6RgoIjAFoltq6nseOve2oMjurCpPp+iRGV6iw7qUs70+ZqwYFAFLKzKWq++Q8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767052138; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=pr0MGgRlNcFW+KEPXOGGy0teNeBA5Mmb9mBla6JY8yI=; b=o6+FNfI/JbTpXxpnAc5i4Z1aeQrsTAQHVCjRb9M8eRV0q8RE8RtWdD9e00WmPPGh0KJBNi kFcy8Vxb7NN0GupsqFPAIbxg0VefJ7Yuf5WhcVL05URWTHEmbyIJYl7fjqyckDXYrETl+F AigVCTyXecYJ6ac2tpvfFtk+ADRd+8HFAZyApsUALn1MWm89T4phP/wg0YxKkEyhPbTaVb /9R0DBm/GC3WcEc9nR41lOzTAHej1tpROJBNMilGf7DQnsfxUUWPzkg4QBX7h3k1IG/gfD dwWM9AuIM7hLg5MnLetCZaxZ0a8UtRFii4pt6SMoSD+7hM29949CLu//aHaazQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767052138; a=rsa-sha256; cv=none; b=vFKP8h7wsFg9doNPqtv8iCEIAey3DgiKTjmSPjDnAkmchqAor/a2OzFWcOwx6dG1+KJfey D8ByJJXegFaS6dAw1XUnob/8E/9vhM65iWCwwfYUVFOzBJSGOjB5rHp4LFMt9o/3aCgWPm zsr54T5o0NPBxJxhz9EBnn/8CHI9UOPWRv4Y205P35DW1jqB0AO6d/Jka1EZwvNOxKfrdY HcvQ55hpbSK23IfTtfBE1iCfTHo3+NhHG6fL994nEnnMHMpFECu61XixJIEsVc31VPQ/do iE5Q43gp2gNsh+VQOQHEgVzP0AkMRzSmvNFc9lZ47LOU+JKDSZz9Gu5s1p1Gpw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dgCbt41hBzcvp for ; Mon, 29 Dec 2025 23:48:58 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 265ae by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 29 Dec 2025 23:48:58 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Cc: Warner Losh From: Dimitry Andric Subject: git: 9622eff37fbd - stable/13 - cdefs: Add __deprecated List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 9622eff37fbd62b2c5227c959973c565dbf774e6 Auto-Submitted: auto-generated Date: Mon, 29 Dec 2025 23:48:58 +0000 Message-Id: <6953136a.265ae.57da709a@gitrepo.freebsd.org> The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=9622eff37fbd62b2c5227c959973c565dbf774e6 commit 9622eff37fbd62b2c5227c959973c565dbf774e6 Author: Warner Losh AuthorDate: 2024-10-15 19:49:53 +0000 Commit: Dimitry Andric CommitDate: 2025-12-29 23:46:49 +0000 cdefs: Add __deprecated Add __deprecated decorator. This is for a deprecated interface. copystr is tagged with this today in copy(9), but don't actually provide it or use it. copystr is a #define so adding it will have to wait. LinuxKPI was defining this away completely in compiler.h. Since this is shared between Linux KPI consumers and OpenZFS, if it's already defined, use the FreeBSD sys/cdefs.h version, otherwise define it away. For OpenZFS this will retain it, while for Linux KPI it will tend to drop it (I think always, but I didn't look at everything). Sponsored by: Netflix Reviewed by: jhb, emaste Differential Revision: https://reviews.freebsd.org/D46137 (cherry picked from commit 16672453f12586703f1c51d909bd1900691bf884) --- sys/compat/linuxkpi/common/include/linux/compiler.h | 2 ++ sys/sys/cdefs.h | 1 + 2 files changed, 3 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/compiler.h b/sys/compat/linuxkpi/common/include/linux/compiler.h index 94595b2e8c50..c5a88dc2efa4 100644 --- a/sys/compat/linuxkpi/common/include/linux/compiler.h +++ b/sys/compat/linuxkpi/common/include/linux/compiler.h @@ -48,7 +48,9 @@ #define __cond_lock(x,c) (c) #define __bitwise #define __devinitdata +#ifndef __deprecated #define __deprecated +#endif #define __init #define __initconst #define __devinit diff --git a/sys/sys/cdefs.h b/sys/sys/cdefs.h index 96a3742c4a1d..9ba91054e923 100644 --- a/sys/sys/cdefs.h +++ b/sys/sys/cdefs.h @@ -215,6 +215,7 @@ #define __pure2 __attribute__((__const__)) #define __unused __attribute__((__unused__)) #define __used __attribute__((__used__)) +#define __deprecated __attribute__((__deprecated__)) #define __packed __attribute__((__packed__)) #define __aligned(x) __attribute__((__aligned__(x))) #define __section(x) __attribute__((__section__(x))) From nobody Mon Dec 29 23:48:59 2025 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dgCbw1t53z6MWHy for ; Mon, 29 Dec 2025 23:49:00 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dgCbv5tVNz459r for ; Mon, 29 Dec 2025 23:48:59 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767052139; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=07WnUzHDwtocVb4/KKdCkRHi4aAqOUfC5FFtM594cc8=; b=g/XUWGQFH7esavCrujz/km5QbWOHGTflUnQlpwKIK315gstWMvx1gbYC9H52YbHwLnyTX6 JYF6k1fEXk1s2d2aKhrM26dNkL9ifysBN081NpdNSVRBBmihzLtCE0dnxnBDMTJchXNDEw Ko+Fg1y81OVC4KjJVmQipCaJ7ufOl108rJnbVjHuKGtCfC/e+IhYD+KTmQiSUet8R4ZGau lTC+ww2gjinJksEM1p9D1DyKnZVXhXamTTVpuNfK6k+K+PvSXs4a9scpMNzn3YfuNoO+Jm 8IE84ZYqDZXNWxjw9uw5REPwIILEP6XzBRCczKfsAe4vbSjhZvKiPbYX6S/Dww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767052139; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=07WnUzHDwtocVb4/KKdCkRHi4aAqOUfC5FFtM594cc8=; b=LhPnq7JkIc8x3sYJFYnmirlTwHpi3mqeTBntVyPtfaYCZVjwiONXBAsuQrYJP2HZTakIBL cUs1qbljM3kOaKRCfAXMmZNR/cH3dhFeF4UPu27L70O5CuvdQtgwIm1Qag8b7qa4Ujvpw6 8fzWxkIE/pfkJwJaUhvtor8ykJmAOSA5/ANSOiPs1qk4L2p20o0q/wd8sifg8zQ72qJNYy YT1Hv3SNcShd9yJdRBdolwSCyX4HIe03Jw3aGc8Gve17rmAlMsZgqNjlX+c//6hQN1CUoC v6W30pn3AjwFwrP9q+xR3CkXDWYxcPHUMEzBfvUIBKckTMyBi80BVm0naqXsXg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767052139; a=rsa-sha256; cv=none; b=Mn7XfPZGdXchVpR4my/wpQ8kLdfw9TuCxAOO0KsRP+SDEZ13hcn6eViiPSBHH8HxX7yoX+ vnirSM+WrZeTSf99yrtjjjVJHoEvscgHbqZEk3AvABxurDahkqjxVFzgRCU37R8Wl+fT+b XV1jjhWVUY99Cxj5ZlJryLUt7NIO9fUxHcaMWKoceT2E6oClVrsrh6kBELAJ0RvuurVWMp ONjzKNg70HOy0WqQGwLz0gAwd68esTNAsvdjSv62Uzvh3WMudUXhnjiFxMm/2OX1+DeTIr 6EL/W50xARB7xKxBENAX9MwQFKhIs3tD6BQWZKSVnlZay2Y75hiRnMIqCzbLBg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dgCbv4ngxzcjr for ; Mon, 29 Dec 2025 23:48:59 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 25797 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 29 Dec 2025 23:48:59 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Cc: John Baldwin From: Dimitry Andric Subject: git: c7826c81fe43 - stable/13 - cdefs: Add __deprecated1 which accepts a message as an argument List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: c7826c81fe43995910b58e01f948faaa41d82fa6 Auto-Submitted: auto-generated Date: Mon, 29 Dec 2025 23:48:59 +0000 Message-Id: <6953136b.25797.4d805d6e@gitrepo.freebsd.org> The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=c7826c81fe43995910b58e01f948faaa41d82fa6 commit c7826c81fe43995910b58e01f948faaa41d82fa6 Author: John Baldwin AuthorDate: 2024-12-06 22:26:27 +0000 Commit: Dimitry Andric CommitDate: 2025-12-29 23:46:49 +0000 cdefs: Add __deprecated1 which accepts a message as an argument This message will be included in any warning issued by the compiler for use of the deprecated function. Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D47701 (cherry picked from commit 6da04bcff9efedeae7d4046553002b9e3b2bc24f) --- sys/sys/cdefs.h | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/sys/cdefs.h b/sys/sys/cdefs.h index 9ba91054e923..d3b196869ed2 100644 --- a/sys/sys/cdefs.h +++ b/sys/sys/cdefs.h @@ -216,6 +216,7 @@ #define __unused __attribute__((__unused__)) #define __used __attribute__((__used__)) #define __deprecated __attribute__((__deprecated__)) +#define __deprecated1(msg) __attribute__((__deprecated__(msg))) #define __packed __attribute__((__packed__)) #define __aligned(x) __attribute__((__aligned__(x))) #define __section(x) __attribute__((__section__(x))) From nobody Mon Dec 29 23:49:00 2025 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dgCbx5McYz6MVsx for ; Mon, 29 Dec 2025 23:49:01 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dgCbx0Y38z45Y6 for ; Mon, 29 Dec 2025 23:49:01 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767052141; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=eQOQw5AXhlVOLbyUjQIEZMJ/RY1qDnqZwIiledEP5LU=; b=ug7Upc0BttUvbwt/hzqHYD4m8mpiLuCeiR0CBdpAULEbZMuJAoQHIa86bLENiUMyqsQIRx vgqs8KfWb8QLMaMQ3dU6qGj8noSPtPrvy+Z1CS86Z8bxMl8L5x3Ykomj4XHnX2JqJZ4qnS CCE5YmLpXrqbxto+RjyNv13k5mCnn8kcuEeq0F1NqT+/9mPguMcWtX1lEbjZu34IAMZX5G mCDg+AvUNSjAfbPzfqbfHsYMpu5pvJTgjYUqTljA8hsGSqO7luIfj8SbQDcwekkCuiFxDU FAHxDTWRGESef6zyLEnuxHpcKOBxXER4K4jYR50UfvrWPwckrumYC3d6JizLoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767052141; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=eQOQw5AXhlVOLbyUjQIEZMJ/RY1qDnqZwIiledEP5LU=; b=stkEXC6MpLRUVlldj1rOHxEL+MvnpbZDyAhsFoKwpc86jgMpFlRcyaI8z6aAeOQf83kxO1 VL9UG6vpmfWQR+UQprGjxB2BHzJEWtt0DtQOAPK0zb0hk34iOPkb9m6sqssojBGKcP+7tl Ph/PQUm93gkuoap3nFXEwq7Zgq693aunhvCanTtkmj6gjMwRUWgxLqrJBJ92IrPIkh8c1n 8AaMfw6v3jcC9Emd/YhW7JFF2kxhqivL78VH6IK5zAuRFSwlluro0qGfV8XoeJG4ttf1jo 5iyoGOFNvfhdIIJZEknIw7RbAGt7wrqK8pfXT1tKQ+C4LIwppeTfi8G22Dhz4w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767052141; a=rsa-sha256; cv=none; b=W3NK5iHQz9wyRYiw+dH9VKiQvPFXiNlnmUKDQNACCWIJ+gmoVACzGHaKJWRCN5/Ts8HWYU qIVgxfDgd+rFs+1SMX8w+RUrzl5knZWSDr1dJaOpMyxd5QAooOZfqee/FAfKuAGOB9ftxN l+LTc7XpyVDYFjikEhaX3e5Ginj54z76yNHvNb9ajnB7aMHlLkqWiKZ+ogn+vUBRAdW92c m4UZFbZxtCPhaf6a/aK80PCmMWpPlqDaL/jTAjD1ohGmhNR/SYTim3b5odN7oD7Zd+hd0d Sdfv8KvzfgGCrSy18s+ZlywjCf5W3wcYFSsCwksh7BxGuTZ5URN3K5MfM7HLKA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dgCbw5dTxzc9M for ; Mon, 29 Dec 2025 23:49:00 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 25ab2 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 29 Dec 2025 23:49:00 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: 68c94c3bc0de - stable/13 - Remove __deprecated definition from OpenZFS compiler.h List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 68c94c3bc0decf90f7173587e370cffa473c58a3 Auto-Submitted: auto-generated Date: Mon, 29 Dec 2025 23:49:00 +0000 Message-Id: <6953136c.25ab2.50de701d@gitrepo.freebsd.org> The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=68c94c3bc0decf90f7173587e370cffa473c58a3 commit 68c94c3bc0decf90f7173587e370cffa473c58a3 Author: Dimitry Andric AuthorDate: 2025-12-29 23:48:21 +0000 Commit: Dimitry Andric CommitDate: 2025-12-29 23:48:21 +0000 Remove __deprecated definition from OpenZFS compiler.h Since it is now provided by . Direct commit to stable/13, since OpenZFS compiler.h has been substantially changed in newer branches. --- sys/contrib/openzfs/include/os/freebsd/linux/compiler.h | 1 - 1 file changed, 1 deletion(-) diff --git a/sys/contrib/openzfs/include/os/freebsd/linux/compiler.h b/sys/contrib/openzfs/include/os/freebsd/linux/compiler.h index 79f9b2d8a96a..b60c8d419d58 100644 --- a/sys/contrib/openzfs/include/os/freebsd/linux/compiler.h +++ b/sys/contrib/openzfs/include/os/freebsd/linux/compiler.h @@ -50,7 +50,6 @@ #define __cond_lock(x, c) (c) #define __bitwise #define __devinitdata -#define __deprecated #define __init #define __initconst #define __devinit From nobody Tue Dec 30 01:06:27 2025 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dgFKL12Pkz6Mbs9; Tue, 30 Dec 2025 01:06:30 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dgFKL0M64z3Dx0; Tue, 30 Dec 2025 01:06:30 +0000 (UTC) (envelope-from dim@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767056790; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=GconGVcI4NGhBcp52vbLd2vnuN/lBh9HcTriwKQD+qM=; b=B0AQSSVW7TjOTW2vdyFjrc7tYd/XcEtcNzd1uBIT3gFn8yHXvAZ9ouuPoXsM7GVAmDdKX3 2bve/wKT/BducwECeRDTy3CWctQjzUGgnM6ilmWEL9Ksm+/Ju0KkV7Y3hf8yntcALdl3sQ A8avXwlMjTPcMueGyopoqyb8vt0Wu8S14UOpKFytUYU85O3xS0CLIdZJlZCRTluadSegJ4 uRwtfqYlpnhPn7gbpGuD2Nsq8SDsH984kqmC1Ge7pUvZk83O8o5sxKEbvIF8TvbcrSeJ3x k7+ZcgXiFgzzzcEx1VI6YddtCTZcoea/E4xPvfz220sGsn7WFeBWYFEd1ERVNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767056790; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=GconGVcI4NGhBcp52vbLd2vnuN/lBh9HcTriwKQD+qM=; b=j6F8NFYUdt3N6sT79Q1pPuR0Cdz9rXbQ+r3ompqMIs6g210/cM8dY6wcE8/6LvpyHOlpg6 BsKWdusne+ACtnQ4/19mjdUvW3UGWvjTIFLCn86j2nDbQugEbUDZ4IIH8/m2TE0pZYbMw3 Y3XsyZMpeG5qE0MfKM96tiUtwbNwFqnqvy3E9CaFSsUH9QWj2VnvLBAdmer6dnkvaNlCV4 hJBvkS/6zBKfsCzI3XUjHkZNGD5txOif5WuwsBBDVkLYW85GCUWIH1d/FX6S+wG0t8qHfP 3nRSl/1hfeMRsyc+mj38uGOrl7CtDOSPM98lP/2AOQnfXiHyAMxZy0k4vohb+Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767056790; a=rsa-sha256; cv=none; b=SsDs/3PQFrQsRaSIgVsQZgr61T0plMJca82zXQhaDetMNE12ysbTcCNbL9IV2N0vVkZ7gI BRX2SRl3x43vhHTZ3sYa3GMsEkNoseGicTg0iSl14m2AFRpagwMcwgFyxl0eLpD3zm/r1Y UTKHCTVq+eP7VfAASlQ+QiBpwt0w9hMit+mhWfxTeILNnP+8NaO7T35f9t3jeDi2LeL11x 72i+u5n47soMp4KLympst5+Uf3W2dKoVbh1L/VytxTsliSIldFRZjHcfmfPUKds4m0CvYn ajCkBitUeQ3FDr8foHeyfHt+VoIyRIN2Zr3lXEEzlqpBzn0cOd+ihaceyQGSOw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature ECDSA (prime256v1) client-digest SHA256) (Client CN "tensor.andric.com", Issuer "E7" (verified OK)) (Authenticated sender: dim) by smtp.freebsd.org (Postfix) with ESMTPSA id 4dgFKK5y5czs3s; Tue, 30 Dec 2025 01:06:29 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtpclient.apple (bladnoch.home.andric.com [192.168.0.20]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id A25EC5B781; Tue, 30 Dec 2025 02:06:27 +0100 (CET) Content-Type: text/plain; charset=us-ascii List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.700.81.1.4\)) Subject: Re: git: 2ade7285253f - stable/14 - tools.build: add sys/cdefs.h to SYSINCS, since lots of other headers use it From: Dimitry Andric In-Reply-To: Date: Tue, 30 Dec 2025 02:06:27 +0100 Cc: src-committers@freebsd.org, dev-commits-src-all@freebsd.org, dev-commits-src-branches@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <69527170.31d92.5af51114@gitrepo.freebsd.org> To: Mark Johnston X-Mailer: Apple Mail (2.3826.700.81.1.4) On 29 Dec 2025, at 22:21, Dimitry Andric wrote: >=20 > On 29 Dec 2025, at 21:58, Mark Johnston wrote: >>=20 >> On Mon, Dec 29, 2025 at 12:17:52PM +0000, Dimitry Andric wrote: >>> The branch stable/14 has been updated by dim: >>>=20 >>> URL: = https://cgit.FreeBSD.org/src/commit/?id=3D2ade7285253fc5dfe0adfc51f7bd342b= 9293f253 >>>=20 >>> commit 2ade7285253fc5dfe0adfc51f7bd342b9293f253 >>> Author: Dimitry Andric >>> AuthorDate: 2025-12-26 15:26:13 +0000 >>> Commit: Dimitry Andric >>> CommitDate: 2025-12-29 12:16:00 +0000 >>>=20 >>> tools.build: add sys/cdefs.h to SYSINCS, since lots of other = headers use it >>>=20 >>> This is needed to let the legacy stage compile against newer = versions of >>> sys/font.h, which transitively includes sys/cdefs.h, and requires = the >>> new __nonstring macro from it. >>>=20 >>> Fixes: e2c93ed09f25 >>> MFC after: 3 days >>>=20 >>> (cherry picked from commit = 1c9ff80f06350fa44b7e50ce09ad665ab0082abb) >>=20 >> Hi Dimitry, >>=20 >> After this commit, I can't build stable/14 on main (commit = 88b04633c29e >> to be exact) anymore. Here's the output from a buildworld, it fails >> pretty much immediately: >> https://reviews.freebsd.org/P683 >>=20 >> The same seems to be true on stable/13, but not on stable/15. >=20 > Hmm, this turns out to be a bit deeper rabbit hole than I anticipated. = The cdefs.h header on stable/14 and stable/13 are quite behind the one = on main and stable/15. This causes issues like the above, when = __noexcept, __deprecated1 and others are not defined during the legacy = stage, and it picks up _some_ headers from the host system, and others = from the location installed by tools/build/Makefile. >=20 > I think I will rollback the MFCs for now, until I can figure out a = solution. Ideally we would not have to copy cdefs.h for this bootstrap = part, but that leads to other issues. As an alternative solution, I have MFC'd support for __noexcept, = __deprecated, and __deprecated1 to stable/14 and stable/13, with a small = additional patch to stable/13. I believe both branches should now build = fine on main. -Dimitry From nobody Tue Dec 30 01:36:10 2025 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dgFzc6ZFyz6MdNY; Tue, 30 Dec 2025 01:36:12 +0000 (UTC) (envelope-from markj@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dgFzc5wFSz3Jmr; Tue, 30 Dec 2025 01:36:12 +0000 (UTC) (envelope-from markj@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767058572; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=tHngZTcYScJyktyL0Om+OU1jx58ibU9XQEUyVpNJkr0=; b=RYL/jkvBxV9pTOaI7X9hXzlweU2iY0w165BNgFUzg7BbfgJxvMZw3PqcGh57XU4GDrRg7f 6hJcVrP6yNZUz28cTiuK8MUSfCj45seTlkjBH5THIYVL8FR9+jMMduX+oCNA1RZ8MIzcRI xqlku/XdveVto5QsauhVhN6WZ92uk54il1VenlgduZG0UPEAGpD2D9Q4Q+ipbZf+zK8rxk nTLw8qfJpR7HCVaxN6y+pql+C6OkEHB4I5SkkSl20aA2DSPFPdaQxWFFWYkL9lvWCn8763 7qOaTs0YekRomu2xNNCaf7y/RKVxRO+269XbuCWAdVoctMRGYZDtwC12bIrZCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767058572; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=tHngZTcYScJyktyL0Om+OU1jx58ibU9XQEUyVpNJkr0=; b=mPW2jBnutNYPz6vMqkQR0rEKDVxHfMtNFDfUikRvAjiyZ9AwMlX6MWxekKXgNR+ZGqROER m7ty6W/T+Cqg887hmJJ1hgdyA6fEbyl5kTHa4cq80STjhp86savWpSi2DCATm1ww6Gczsf diivyDFb/ia3n0UKQN11JF9HR1dniFkGFd0X4uksQK1mgUKPIM4ZX6NBbYu9HFrdk1XIGw INlYintBNOp8wM8Y7i1TWQNAFEHvLQqVv9bjJUvFV4ZaKLI1alIWyWyQeNsLlXWqGQ+GgE 4tApVUe8UpTLvgnt3fxIaNtho/B7I3CbgyF8mVO/GjkrzH2d711j6HzI/HB3XQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767058572; a=rsa-sha256; cv=none; b=eMI/P7ASANf7HiF7yUi1QqXqU57cCVv1WP0pbypQU7gsh7gkLwp5y8Finlfh1NrbBAy8zY fIGPRnsBetukMbG8J31Mc8NVxn1C88PS2ngYckYt8ZEOJ1S8E9L7mT5X1GgZnvvAY5PaN4 UZULATCBPgzw+l4y43e7W47GdNut6hPsJobR+R8gyoHvAvXXVzibTyu1dNYXGle4t9a4RF RCen7Cre+bmKWxdslal0uhwr1XZhYJAdBLx6kz1R9ST2i0P1rQBOV0fRdgRzYvajdGP/rt PVrzxfihgPjwCCUkGTzr3KkJ95MH9Mhi9r95QoP4Jc0CeUWNsa3QfzCkM5ZskA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from nuc (192-0-220-237.cpe.teksavvy.com [192.0.220.237]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: markj) by smtp.freebsd.org (Postfix) with ESMTPSA id 4dgFzc3ZsGzskR; Tue, 30 Dec 2025 01:36:12 +0000 (UTC) (envelope-from markj@freebsd.org) Date: Mon, 29 Dec 2025 20:36:10 -0500 From: Mark Johnston To: Dimitry Andric Cc: src-committers@freebsd.org, dev-commits-src-all@freebsd.org, dev-commits-src-branches@freebsd.org Subject: Re: git: 2ade7285253f - stable/14 - tools.build: add sys/cdefs.h to SYSINCS, since lots of other headers use it Message-ID: References: <69527170.31d92.5af51114@gitrepo.freebsd.org> List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Tue, Dec 30, 2025 at 02:06:27AM +0100, Dimitry Andric wrote: > On 29 Dec 2025, at 22:21, Dimitry Andric wrote: > > > > On 29 Dec 2025, at 21:58, Mark Johnston wrote: > >> > >> On Mon, Dec 29, 2025 at 12:17:52PM +0000, Dimitry Andric wrote: > >>> The branch stable/14 has been updated by dim: > >>> > >>> URL: https://cgit.FreeBSD.org/src/commit/?id=2ade7285253fc5dfe0adfc51f7bd342b9293f253 > >>> > >>> commit 2ade7285253fc5dfe0adfc51f7bd342b9293f253 > >>> Author: Dimitry Andric > >>> AuthorDate: 2025-12-26 15:26:13 +0000 > >>> Commit: Dimitry Andric > >>> CommitDate: 2025-12-29 12:16:00 +0000 > >>> > >>> tools.build: add sys/cdefs.h to SYSINCS, since lots of other headers use it > >>> > >>> This is needed to let the legacy stage compile against newer versions of > >>> sys/font.h, which transitively includes sys/cdefs.h, and requires the > >>> new __nonstring macro from it. > >>> > >>> Fixes: e2c93ed09f25 > >>> MFC after: 3 days > >>> > >>> (cherry picked from commit 1c9ff80f06350fa44b7e50ce09ad665ab0082abb) > >> > >> Hi Dimitry, > >> > >> After this commit, I can't build stable/14 on main (commit 88b04633c29e > >> to be exact) anymore. Here's the output from a buildworld, it fails > >> pretty much immediately: > >> https://reviews.freebsd.org/P683 > >> > >> The same seems to be true on stable/13, but not on stable/15. > > > > Hmm, this turns out to be a bit deeper rabbit hole than I anticipated. The cdefs.h header on stable/14 and stable/13 are quite behind the one on main and stable/15. This causes issues like the above, when __noexcept, __deprecated1 and others are not defined during the legacy stage, and it picks up _some_ headers from the host system, and others from the location installed by tools/build/Makefile. > > > > I think I will rollback the MFCs for now, until I can figure out a solution. Ideally we would not have to copy cdefs.h for this bootstrap part, but that leads to other issues. > > As an alternative solution, I have MFC'd support for __noexcept, __deprecated, and __deprecated1 to stable/14 and stable/13, with a small additional patch to stable/13. I believe both branches should now build fine on main. This seems to work, thank you! From nobody Tue Dec 30 02:19:59 2025 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dgGy74pmbz6MgpJ for ; Tue, 30 Dec 2025 02:19:59 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dgGy74Lvkz3N7C for ; Tue, 30 Dec 2025 02:19:59 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767061199; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=+WosGBOq+MkGV3CWraFXWMi7AG6jLUDZeV8Tn8mF478=; b=j13swGixFd8XwVlLrUy/RU0FfQi6RZYpqOeO/DRZpsHjWsaGIe19lUy7PsR89grpm2t59Z Lfm42Sa6qlHz1QUNxYd96lKd5B1a6NaIU5KAWxzV0cagoX2HkyhbSBUeiYb1Pwyv50swM1 Hfh11xanG8HWm6IqyPkU7RCGzrLrb175homEeMoAMRDgiDR58ZDESxoOvYyAi9ZQEghNi7 zgrmKnKmVVm6TsyCLn8rwoxhrmmYnwvT/wxiGuSWDkRJgDpnPdevuotVP5OHAVo4T4tM2j 0AyCFU/zGZrLzHYP7SvG7q+Bn4HtY41Yj+S7VyFBApIcm799OZHwAIjqnzUJlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767061199; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=+WosGBOq+MkGV3CWraFXWMi7AG6jLUDZeV8Tn8mF478=; b=hjiOuJ3GfOJIuX5mMPfUh6srfXdd53rIKzbsvgn2v3X+9X1xOGX2R0oEhaSAtPPvOetNlU sErtETokT+8Vh6TLH8wa8RYTMAlL5v0RfX+GPB8RUQttfcAO1ljpNze983vutVF2AXmJeu mjHC+55sBTqeG8OLuMyrwvjprv95jgCOrU81e2difJnFC2TMIcG4uI19Zvy2UReXlGzrZH SeO/ip3CQOS6rrae82X3ZGCdmRMBsdjIuKeP/XOX9GRE4hbc9ihsQfYHxzN1U52//eiwkJ gfwO4tLVWAvbFvoKvoMoTkhu2trUil2qYub19eaGrDPf9vom/2AD/rPeabrC1g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767061199; a=rsa-sha256; cv=none; b=kEQLD99NBYFKa+xuW+x5i9OP6Y70WBsrHNPMowIR4aJ9u/o3As5lLJ+ePJXsbBKbKVE2Lr urJzpTrtNbydg3IMbd6diWpKoSwxkUgDqi26WPfOsHC3LCE7/joqZs1jz0wayZRi6MzOZn +BEloczQrKj2vepyf/jYRyLQoQOqeM8o4/5H9XP68nc+/p6pum4G9rUS4eeS2J+GSm5t7c G9fg6lcf0PwBARO7tadUFUKU9+m6Ztm15YfLKCUVbjSYoT4j5WpYYzUycpmUldMpK7+QT6 yrLxmlfhRDXsFQfZC2+SrvQ73CvbATZG3HemlNpjoqq3ezgMUcNG84miYDeTrg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dgGy73YyHzhQg for ; Tue, 30 Dec 2025 02:19:59 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3b323 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Tue, 30 Dec 2025 02:19:59 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Xin LI Subject: git: 4e48e50ea598 - stable/15 - MFV 762f11d98d5cd57ebbe85c36e9e86a557a91fe4e: xz 5.8.2. List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: delphij X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 4e48e50ea5982387a1c9f164953315f7fe1f76a3 Auto-Submitted: auto-generated Date: Tue, 30 Dec 2025 02:19:59 +0000 Message-Id: <695336cf.3b323.314f61a@gitrepo.freebsd.org> The branch stable/15 has been updated by delphij: URL: https://cgit.FreeBSD.org/src/commit/?id=4e48e50ea5982387a1c9f164953315f7fe1f76a3 commit 4e48e50ea5982387a1c9f164953315f7fe1f76a3 Author: Xin LI AuthorDate: 2025-12-23 08:24:13 +0000 Commit: Xin LI CommitDate: 2025-12-30 02:19:14 +0000 MFV 762f11d98d5cd57ebbe85c36e9e86a557a91fe4e: xz 5.8.2. (cherry picked from commit ae12432049e7873ab3912643ae5d08297b8cbc49) --- contrib/xz/ChangeLog | 1586 +++++++++++++++++++++ contrib/xz/THANKS | 402 +++--- contrib/xz/doxygen/Doxyfile | 8 +- contrib/xz/src/common/my_landlock.h | 45 +- contrib/xz/src/common/mythread.h | 3 +- contrib/xz/src/liblzma/api/lzma/base.h | 6 +- contrib/xz/src/liblzma/api/lzma/container.h | 38 +- contrib/xz/src/liblzma/api/lzma/version.h | 2 +- contrib/xz/src/liblzma/check/crc32_arm64.h | 5 +- contrib/xz/src/liblzma/check/crc32_fast.c | 2 +- contrib/xz/src/liblzma/check/crc64_fast.c | 10 +- contrib/xz/src/liblzma/check/crc_common.h | 19 +- contrib/xz/src/liblzma/common/alone_decoder.c | 6 +- contrib/xz/src/liblzma/common/filter_common.c | 4 +- contrib/xz/src/liblzma/common/lzip_decoder.c | 3 +- contrib/xz/src/liblzma/common/outqueue.h | 1 + contrib/xz/src/liblzma/common/stream_decoder_mt.c | 79 +- contrib/xz/src/liblzma/common/vli_decoder.c | 2 +- contrib/xz/src/liblzma/lzma/lzma_common.h | 4 +- contrib/xz/src/liblzma/lzma/lzma_decoder.h | 11 +- contrib/xz/src/liblzma/rangecoder/range_decoder.h | 6 +- contrib/xz/src/liblzma/validate_map.sh | 4 +- contrib/xz/src/xz/args.c | 1 - contrib/xz/src/xz/file_io.c | 3 +- contrib/xz/src/xz/hardware.c | 72 + contrib/xz/src/xz/list.c | 2 + contrib/xz/src/xz/message.h | 4 + contrib/xz/src/xz/sandbox.c | 26 +- contrib/xz/src/xz/signals.c | 17 +- contrib/xz/src/xz/util.c | 4 + contrib/xz/src/xz/xz.1 | 9 +- contrib/xz/src/xzdec/xzdec.c | 2 +- lib/liblzma/config.h | 12 +- 33 files changed, 2072 insertions(+), 326 deletions(-) diff --git a/contrib/xz/ChangeLog b/contrib/xz/ChangeLog index 577dce5e12a2..bd7fad97695d 100644 --- a/contrib/xz/ChangeLog +++ b/contrib/xz/ChangeLog @@ -1,3 +1,1589 @@ +commit 3d078b52adbff566ccfc51067dfbf742ecf3ef86 +Author: Lasse Collin +Date: 2025-12-17 13:36:42 +0200 + + Bump version and soname for 5.8.2 + + src/liblzma/Makefile.am | 2 +- + src/liblzma/api/lzma/version.h | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +commit fb14afd5c9bf14d8c67ee11e4139885072071ddd +Author: Lasse Collin +Date: 2025-12-17 13:36:35 +0200 + + Add NEWS for 5.8.2 + + NEWS | 72 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + 1 file changed, 72 insertions(+) + +commit 590f4713b29f0236ab944487f40069355a515dbc +Author: Lasse Collin +Date: 2025-12-16 11:30:35 +0200 + + CMake: Bump maximum policy version to 4.2 + + CMP0186 is curious but we aren't affected. + + CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 26d22ed16b6e38ce8ed45cb29076f454cd488762 +Author: Lasse Collin +Date: 2025-12-10 19:20:05 +0200 + + tuklib_integer/CMake: Log a message about unaligned access check + + cmake/tuklib_integer.cmake | 8 ++++++++ + 1 file changed, 8 insertions(+) + +commit f7381cf927576164c17be4e4c1edeec3cdaca7cf +Author: Lasse Collin +Date: 2025-12-10 19:11:27 +0200 + + tuklib_integer/CMake: Don't run unaligned access checks unnecessarily + + If the cache variable TUKLIB_FAST_UNALIGNED_ACCESS is already set, + the autodetection result isn't needed because the option() command + does nothing when the cache variable is already set. + + This is largely white space change to indent the if...endif block. + + cmake/tuklib_integer.cmake | 226 +++++++++++++++++++++++---------------------- + 1 file changed, 117 insertions(+), 109 deletions(-) + +commit dc1a421ce35f10b9a0c00d1bd42f1fdac0c3e9eb +Author: Lasse Collin +Date: 2025-12-10 16:49:55 +0200 + + tuklib_integer: Use CMAKE_C_COMPILER_ARCHITECTURE_ID when available + + CMake >= 4.1 sets CMAKE__COMPILER_ARCHITECTURE_ID on many + platforms. The list of possible values are documented. Use this + variable when available. On older CMake versions CMAKE_SYSTEM_PROCESSOR + is still used, thus the regexes have to include values like ^amd64 still. + + With old CMake versions, checking CMAKE_C_COMPILER_ARCHITECTURE_ID + is somewhat useful with MSVC because CMAKE_SYSTEM_PROCESSOR might + not match the target architecture. + + cmake/tuklib_integer.cmake | 13 ++++++++++++- + 1 file changed, 12 insertions(+), 1 deletion(-) + +commit c690101dddd784b75224a8935f56cd163d3e90a3 +Author: Lasse Collin +Date: 2025-12-10 16:49:55 +0200 + + tuklib_integer: Autodetect when -mstrict-align is used with GCC on ARM64 + + On ARM64, support for fast unaligned memory access was autodetected by + checking if __ARM_FEATURE_UNALIGNED is defined. However, at least GCC + versions up to 15.2.0 define the macro even when -mstrict-align has + been specified. Thus, autodetection with GCC doesn't work correctly, + and binaries built using -mstrict-align can be much slower than they + need to be, unless the user also passes --disable-unaligned-access + to configure or -DTUKLIB_FAST_UNALIGNED_ACCESS=OFF to cmake. + + See the GCC bug: + + https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111555 + + Workaround the issue by using heuristics with GCC on ARM64. + + With Clang, the detection using __ARM_FEATURE_UNALIGNED works. + It also works with GCC on 32-bit ARM. + + Fixes: e5f13a66567b ("tuklib_integer: Autodetect support for unaligned access on ARM.") + + cmake/tuklib_integer.cmake | 63 ++++++++++++++++++++++++++++++------- + m4/tuklib_integer.m4 | 78 +++++++++++++++++++++++++++++++++++----------- + 2 files changed, 110 insertions(+), 31 deletions(-) + +commit d9b318f5b8a3524e90ac17471e79db7de012caf5 +Author: Lasse Collin +Date: 2025-12-09 18:02:23 +0200 + + CI: Update MSYS2 + + .github/workflows/msys2.yml | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +commit 700e32f1b7dd6d674f12bbdabc35a3bc4a2860f5 +Author: Lasse Collin +Date: 2025-12-09 18:02:05 +0200 + + CI: Update DragonFly BSD + + .github/workflows/dragonflybsd.yml | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit a7b749389c64dfbee1c29d88e61e71186b472784 +Author: Lasse Collin +Date: 2025-12-09 17:58:52 +0200 + + CI: Update Solaris + + .github/workflows/solaris.yml | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit e0b3c6ee0ab3243e48291e5f9b6333c3d052311d +Author: Lasse Collin +Date: 2025-12-09 17:56:58 +0200 + + CI: Update NetBSD + + .github/workflows/netbsd.yml | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit fbc1046248cfe3c730437ba7d98dde89b0eced3e +Author: Lasse Collin +Date: 2025-12-09 17:54:54 +0200 + + CI: Update OpenBSD + + .github/workflows/openbsd.yml | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 8f0579ba5650bbbfa88a04adf8115b8fb4aff476 +Author: Lasse Collin +Date: 2025-12-09 17:52:01 +0200 + + CI: Update FreeBSD + + .github/workflows/freebsd.yml | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +commit f8424b0416266c393c84a315e3bdedbc19efa0a8 +Author: Lasse Collin +Date: 2025-12-09 17:40:05 +0200 + + Update THANKS + + THANKS | 1 + + 1 file changed, 1 insertion(+) + +commit c4340692d4490ff80e897d4840fadc033c46d81a +Author: Lasse Collin +Date: 2025-12-09 13:01:36 +0200 + + Translations: Add src/xz/sandbox.c to POTFILES.in + + There are no strings to translate in that file now, but it's good to + list it anyway in case translatable strings are added in the future. + + Fixes: 374868d81d47 ("xz: Move sandboxing code to sandbox.c and improve Landlock sandbox.") + + po/POTFILES.in | 1 + + 1 file changed, 1 insertion(+) + +commit b8af36920b0857c0329f61414df5989093386db1 +Author: Lasse Collin +Date: 2025-12-09 12:55:45 +0200 + + xz: Never translate "Failed to enable the sandbox" + + This was already the case in practice because I had forgotten to list + src/xz/sandbox.c in po/POTFILES.in. However, it seems better to never + translate this particular error message. It should almost never occur + and if it does, an untranslated message is should make it easier to + find bug reports about it. + + src/xz/sandbox.c | 24 +++++++++++++++--------- + 1 file changed, 15 insertions(+), 9 deletions(-) + +commit 5a7fc1af3d9ec115f796cba110eb78e63ff1df5c +Author: Lasse Collin +Date: 2025-12-09 12:27:15 +0200 + + Translations: Update the Swedish man page translations + + po4a/sv.po | 15 +++++---------- + 1 file changed, 5 insertions(+), 10 deletions(-) + +commit 88531e5463d9f028387a11b78d53c9c269e6a3a0 +Author: Lasse Collin +Date: 2025-12-09 12:26:24 +0200 + + Translations: Update the Romanian man page translations + + po4a/ro.po | 18 +++++++----------- + 1 file changed, 7 insertions(+), 11 deletions(-) + +commit 8a817277192e6379a8c6f2eefbaed65c6b7d92fa +Author: Lasse Collin +Date: 2025-12-09 12:13:36 +0200 + + Update THANKS + + THANKS | 1 + + 1 file changed, 1 insertion(+) + +commit 1ec43aa7810d159ed76a6188b17c0bb474ca5ab5 +Author: Lasse Collin +Date: 2025-12-09 12:13:36 +0200 + + CMake: Autodetect unaligned access support on LoongArch + + This still relies on CMAKE_SYSTEM_PROCESSOR. CMake 4.1 added more + CMAKE__COMPILER_ARCHITECTURE_ID values to detect the arch in + a more defined manner, but 4.1 is too new to require for now. + + Thanks-to: Li Chenggang + Closes: https://github.com/tukaani-project/xz/pull/186 + + cmake/tuklib_integer.cmake | 81 ++++++++++++++++++++++++++++++++++++++++++++++ + 1 file changed, 81 insertions(+) + +commit 7971566247914ec1854b125ff99c2a617f5c1e3a +Author: Lasse Collin +Date: 2025-12-09 12:13:36 +0200 + + Autotools: Autodetect unaligned access support on LoongArch + + According to [1] sections 7.4, 8.1, and 8.2, desktop and server + processors support fast unaligned access, but embedded systems likely + don't. + + It's important that TUKLIB_FAST_UNALIGNED_ACCESS isn't defined when + -mstrict-align is in use because it will result in slower binaries + even if running on a processor that supports fast unaligned access. + It's because compilers will translate multibyte memcpy() to multiple + byte-by-byte instructions instead of wider loads and stores. The + compression times from [2] show this well: + + Unaligned access CFLAGS Compression time + enabled -O2 -mno-strict-align 66.1 s + disabled -O2 -mno-strict-align 79.5 s + disabled -O2 -mstrict-align 79.9 s + enabled -O2 -mstrict-align 129.1 s + + There currently (GCC 15.2) is no preprocessor macro on LoongArch + to detect if -mstrict-align or -mno-strict-align is in effect (the + default is -mno-strict-align). Use heuristics to detect which of the + flags is in effect. + + [1] https://github.com/loongson/la-softdev-convention/blob/v0.2/la-softdev-convention.adoc + [2] https://github.com/tukaani-project/xz/pull/186#issuecomment-3494570304 + + Thanks-to: Li Chenggang + Thanks-to: Xi Ruoyao + See: https://github.com/tukaani-project/xz/pull/186 + + m4/tuklib_integer.m4 | 68 ++++++++++++++++++++++++++++++++++++++++++++++++++++ + 1 file changed, 68 insertions(+) + +commit 338f952c0039b153a1fbdf6a535c4bd6a61f33cd +Author: Lasse Collin +Date: 2025-11-26 13:50:57 +0200 + + xz: Silence clang -Wunreachable-code-break + + Fixes: a165d7df1964 ("xz: Add a new --filters-help option.") + + src/xz/args.c | 1 - + 1 file changed, 1 deletion(-) + +commit 723cee44d076281bce9c3d7bd2c17b0680bd8884 +Author: Lasse Collin +Date: 2025-11-26 13:50:57 +0200 + + liblzma: Remove unwanted semicolons + + These didn't affect control flow. + + src/liblzma/common/vli_decoder.c | 2 +- + src/liblzma/lzma/lzma_common.h | 4 ++-- + src/liblzma/rangecoder/range_decoder.h | 6 +++--- + 3 files changed, 6 insertions(+), 6 deletions(-) + +commit 524f6a7384f15e52ec13c72adbdf18ddeecbc735 +Author: Lasse Collin +Date: 2025-11-26 13:50:57 +0200 + + Tests: Remove an unwanted semicolon from a macro definition + + It didn't affect control flow. + + Fixes: fe3bd438fb11 ("Tests: Fix memory leaks in test_block_header.") + + tests/test_block_header.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 0f41a28bfab98d1f5171ee5c9da6dfdc15f62549 +Author: Lasse Collin +Date: 2025-11-26 13:50:57 +0200 + + Build: Use -Wextra-semi-stmt when supported + + CMakeLists.txt | 1 + + configure.ac | 1 + + 2 files changed, 2 insertions(+) + +commit 91170c8cab72b94a697f5228f4df13483ef5be91 +Author: Lasse Collin +Date: 2025-11-26 13:50:57 +0200 + + CI: Add clang-cl + + Fixes: https://github.com/tukaani-project/xz/issues/18#issuecomment-3577456136 + + .github/workflows/msvc.yml | 46 ++++++++++++++++++++++++++++++++++++++++++++++ + 1 file changed, 46 insertions(+) + +commit a3c6cb09113de978b971cbdacf5c4890d4237c28 +Author: Lasse Collin +Date: 2025-11-26 13:50:57 +0200 + + xz/Windows: Add a missing #include to fix the build with clang-cl + + Fixes: https://github.com/tukaani-project/xz/issues/18#issuecomment-1986829734 + Fixes: https://github.com/tukaani-project/xz/issues/18#issuecomment-3577456136 + + src/xz/util.c | 4 ++++ + 1 file changed, 4 insertions(+) + +commit c410ccc62511ec95b20639defb10650ef9b75e8c +Author: Lasse Collin +Date: 2025-11-25 21:05:37 +0200 + + xz: Check return value of sigaction() before calling raise() + + Fixes: Coverity CID 456022 + + src/xz/signals.c | 10 ++++++++-- + 1 file changed, 8 insertions(+), 2 deletions(-) + +commit 6cc2da0a4b180b71cb6e781c897052def103ad3e +Author: Lasse Collin +Date: 2025-11-02 12:57:00 +0200 + + liblzma: Refactor a loop in lzma_filters_copy() + + Arguably it's nicer if i doesn't wrap around when the loop terminates. + + Fixes: Coverity CID 464589 + Fixes: 6d118a0b9def ("Add lzma_filters_copy().") + + src/liblzma/common/filter_common.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +commit 90b67853d57562c5ad4fdb3215ceb9b9bd3958bf +Author: Lasse Collin +Date: 2025-11-02 12:17:50 +0200 + + liblzma: Silence two Coverity warnings + + lzma_lzma_decoder_memusage() returns UINT64_MAX if lc/lp/pb aren't + valid. alone_decoder.c and lzip_decoder.c didn't check the return + value because in both it is known that lc/lp/pb are valid. Make them + call the _nocheck() variant instead which skips the validation (it + already existed for LZMA2's internal use). + + Fixes: Coverity CID 464658 + Fixes: Coverity CID 897069 + + src/liblzma/common/alone_decoder.c | 6 ++++-- + src/liblzma/common/lzip_decoder.c | 3 ++- + src/liblzma/lzma/lzma_decoder.h | 11 ++++++----- + 3 files changed, 12 insertions(+), 8 deletions(-) + +commit be365b701024b9acbfef4035c6433a0fbb4be823 +Author: Lasse Collin +Date: 2025-11-02 12:17:50 +0200 + + liblzma: Fix a harmless read of shared variable without mutex + + The partial_update_mode enumeration had three states, _DISABLED, + _START, and _ENABLED. Main thread changed it from _DISABLED to _START + while holding a mutex. Once set to _START, worker thread changed it + to _ENABLED without a mutex. Later main thread read it without a mutex, + so it could see either _START or _ENABLED. However, it made no + difference because the main thread checked for != _DISABLED, so + it didn't matter if it saw _START or _ENABLED. + + Nevertheless, such things must not be done. It's clear it was a mistake + because there were two comments that directly contradicted each + other about how the variable was accessed. + + Split the enumeration into two booleans: + + - partial_update_enabled: A worker thread locks the mutex to read + this variable and the main thread locks the mutex to change the + value. Because only the main thread modifies the variable, the + main thread can read the value without locking the mutex. + This variable replaces the _DISABLED -> _START transition. + + - partial_update_started is for worker thread's internal use and thus + needs no mutex. This replaces the _START -> _ENABLED transition. + + Fixes: Coverity CID 456025 + Fixes: bd93b776c1bd ("liblzma: Fix a deadlock in threaded decoder.") + + src/liblzma/common/stream_decoder_mt.c | 79 +++++++++++++++------------------- + 1 file changed, 34 insertions(+), 45 deletions(-) + +commit 2686554da0103580a472919220931c397b1d1f7a +Author: Lasse Collin +Date: 2025-11-02 12:17:50 +0200 + + CI: Add Coverity Scan + + Co-authored-by: Lasse Collin + Fixes: https://github.com/tukaani-project/xz/issues/198 + + .github/workflows/coverity.yml | 38 ++++++++++++++++++++++++++++++++++++++ + 1 file changed, 38 insertions(+) + +commit 1b30734c9c08a3f628574d172f1a6034277a2163 +Author: Lasse Collin +Date: 2025-11-25 13:55:35 +0200 + + Change the sorting order in THANKS + + In short, sort the names with this command (-k1,1 isn't needed because + the lines with names start with " -"): + + LC_ALL=en_US.UTF-8 sort -k2,2 -k3,3 -k4,4 -k5,5 + + When THANKS was created, I wrote the names as "First Last" and attempted + to keep them sorted by last name / surname / family name. This works + with many names in THANKS, but it becomes complicated with names that + don't fit that pattern. For example, names that are written as + "Last First" can be manually sorted by family name, but only if one + knows which part of the name is the family name.[*] And of course, + the concept of first/last name doesn't apply to all names. + + [*] xz had a co-maintainer who could help me with such names, + but fortunately he isn't working on the project anymore. + + Adding the names in chronological order could have worked too, although + if something is contributed by multiple people, one would still have to + decide how to sort the names within the batch. Another downside would + be that if THANKS is updated in more than one work-in-progress branch, + merge conflicts would occur more often. + + Don't attempt to sort by last name. Let's be happy that people tend to + provide names that can be expressed in a reasonable number of printable + Unicode characters. In practice, people have been even nicer: if the + native language doesn't use a Latin script alphabet, people often provide + a transliterated name (only or in addition to the original spelling), + which is very much appreciated by those who don't know the native script. + + Treat the names as opaque strings or space-separated strings for sorting + purposes. This means that most names will now be sorted by first name. + There still are many choices how to sort: + + (1) LC_ALL=en_US.UTF-8 sort + + The project is in English, so this may sound like a logical choice. + However, spaces have a lower weight than letters, which results in + this order: + + - A Ba + - Ab C + - A Bc + - A Bd + + (2) LC_ALL=en_US.UTF-8 sort -k2,2 + + This first sorts by the first word and then by the rest of the + string. It's -k2,2 instead of -k1,1 to skip the leading dash. + + - A Ba + - A Bc + - A Bd + - Ab C + + I like this more than (1). One could add -k3,3 -k4,4 -k5,5 ... too. + With current THANKS it makes no difference but it might some day. + + NOTE: The ordering in en_US.UTF-8 can differ between libc versions + and operating systems. Luckily it's not a big deal in THANKS. + + (3) LC_ALL=en_US.UTF-8 sort -f -k2,2 + + Passing -f (--ignore-case) to sort affects sorting of single-byte + characters but not multibyte characters (GNU coreutils 9.9): + + No -f With -f LC_ALL=C + Aa A.A A.A + A.A Aa Aa + Ää Ää Ä.Ä + Ä.Ä Ä.Ä Ää + + In GNU coreutils, the THANKS file is sorted using "sort -f -k1,1". + There is also a basic check that the en_US.UTF-8 locale is + behaving as expected. + + (4) LC_ALL=C sort + + This sorts by byte order which in UTF-8 is the same as Unicode + code point order. With the strings in (1) and (2), this produces + the same result as in (2). The difference in (3) can be seen above. + + The results differ from en_US.UTF-8 when a name component starts + with a lower case ASCII letter (like "von" or "de"). Worse, any + non-ASCII characters sort after ASCII chars. These properties might + look weird in English language text, although it's good to remember + that en_US.UTF-8 sorting can appear weird too if one's native + language isn't English. + + The choice between (2) and (4) was difficult but I went with (2). + + ;-) + + THANKS | 414 ++++++++++++++++++++++++++++++++--------------------------------- + 1 file changed, 207 insertions(+), 207 deletions(-) + +commit 8bb516887c1912106a72db96216cab46954e6190 +Author: Lasse Collin +Date: 2025-11-23 20:39:28 +0200 + + Landlock: Add missing #ifdefs + + The build was broken on distros that have an old . + + Fixes: 2b2652e914b1 ("Landlock: Workaround a bug in RHEL 9 kernel") + + src/common/my_landlock.h | 6 ++++++ + 1 file changed, 6 insertions(+) + +commit 23c95c6a7c374962103dbd35cb79fdd5a6fe8b52 +Author: Lasse Collin +Date: 2025-11-23 20:13:50 +0200 + + Update THANKS + + THANKS | 2 ++ + 1 file changed, 2 insertions(+) + +commit 2b2652e914b1c38d4c009a8dcac11dfee9c7e008 +Author: Lasse Collin +Date: 2025-11-23 20:13:49 +0200 + + Landlock: Workaround a bug in RHEL 9 kernel + + If one runs xz 5.8.0 or 5.8.1 from some other distribution in a container + on RHEL 9, xz will fail with the message "Failed to enable the sandbox". + + RHEL 9 kernel since 5.14.0-603.el9 (2025-07-30) claims to support + Landlock ABI version 6, but it lacks support for LANDLOCK_SCOPE_SIGNAL. + The issue is still present in 5.14.0-643.el9 (2025-11-22). Red Hat is + aware of the issue, but I don't know when it will be fixed. + + The sandbox is meant to be transparent to users, thus there isn't and + won't be a command line option to disable it. Instead, add a workaround + to keep xz working on the buggy RHEL 9 kernels. + + Reported-by: Richard W.M. Jones + Thanks-to: Pavel Raiskup + Tested-by: Orgad Shaneh + Tested-by: Richard W.M. Jones + Fixes: https://github.com/tukaani-project/xz/issues/199 + Link: https://issues.redhat.com/browse/RHEL-125143 + Link: https://bugzilla.redhat.com/show_bug.cgi?id=2407105 + Link: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/65BDSY56R5ZJRTUC4B6CIVCVLY4LG4ME/ + + src/common/my_landlock.h | 27 ++++++++++++++++++++++++++- + 1 file changed, 26 insertions(+), 1 deletion(-) + +commit ee75c76958dd891906745125590563ab64e85995 +Author: Lasse Collin +Date: 2025-11-23 20:13:37 +0200 + + Landlock: Cache the ABI version + + In xz it can avoid up to two syscalls that query the ABI version. + + src/common/my_landlock.h | 14 +++++++++++++- + 1 file changed, 13 insertions(+), 1 deletion(-) + +commit f57b1716cd0853474980c90a892204dee9bdea1a +Author: Lasse Collin +Date: 2025-11-03 14:52:45 +0200 + + Update THANKS + + THANKS | 1 + + 1 file changed, 1 insertion(+) + +commit 211cde09236165dbd379644753337be1de64b151 +Author: Lasse Collin +Date: 2025-11-03 12:41:31 +0200 + + mythread.h: Fix the build on Emscripten when threading is disabled + + To make a non-threaded liblzma-only build work with WASI SDK, + and mythread_sigmask() were omitted from mythread.h in the commit + 81db3b889830. This broke non-threaded full build with Emscripten because + src/xz/signals.c needs mythread_sigmask() (liblzma-only build was fine). + + If __wasm__ is defined, omit and mythread_sigmask() in + non-threaded builds only when __EMSCRIPTEN__ isn't defined. + + Reported-by: Marcus Tillmanns + Thanks-to: ChanTsune + Fixes: https://github.com/tukaani-project/xz/issues/161 + Fixes: 81db3b889830 ("mythread.h: Disable signal functions in builds targeting Wasm + WASI.") + + src/common/mythread.h | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +commit cbf50a99e3f0c2735fd573e166baf37df063b37b +Author: Lasse Collin +Date: 2025-11-03 11:56:32 +0200 + + Translations: Update the Serbian man page translations + + The earlier bug fixes are now included in the Translation Project. + + po4a/sr.po | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +commit 68d1591187512d8872615c8a904d43073440d93f +Author: Lasse Collin +Date: 2025-11-02 19:40:55 +0200 + + xz: Silence a compiler warning when signals_block_count is unused + + Move the static variable signals_block_count to the #ifndef block + that already has the functions that need the variable. + + src/xz/signals.c | 7 ++++--- + 1 file changed, 4 insertions(+), 3 deletions(-) + +commit beca015891fbd22657663ec23809184dda0677cd +Author: Lasse Collin +Date: 2025-11-02 17:45:20 +0200 + + xz: Silence a warning from Clang on glibc systems + + Fixes: e8838b2f5922 ("xz: Look at resource limits when determining the default memlimit") + + src/xz/hardware.c | 13 +++++++++++++ + 1 file changed, 13 insertions(+) + +commit 3e394278ed537575b5db43c09989c6ca99f762de +Author: Lasse Collin +Date: 2025-11-02 14:37:52 +0200 + + Translations: Update the Serbian man page translations + + Preserve the bug fixes made in 71ad5e82888f and 4f52e7387012 because + upstream hasn't included them. + + po4a/sr.po | 17 ++++++----------- + 1 file changed, 6 insertions(+), 11 deletions(-) + +commit ace28e35732fc43f58ea1aac146fdb73084f2548 +Author: Lasse Collin +Date: 2025-11-02 14:27:10 +0200 + + Translations: Update the Korean man page translations + + po4a/ko.po | 17 ++++++----------- + 1 file changed, 6 insertions(+), 11 deletions(-) + +commit ffd14a099f0d8c92d4f74018d3a52bd2327df4db +Author: Lasse Collin +Date: 2025-11-02 14:24:43 +0200 + + Translations: Update the Italian man page translations + + po4a/it.po | 15 +++++---------- + 1 file changed, 5 insertions(+), 10 deletions(-) + +commit 6f3152874ee375b581aa858fccab7865dcbf6403 +Author: Lasse Collin +Date: 2025-11-02 14:12:23 +0200 + + Translations: Update the Ukrainian man page translations + + po4a/uk.po | 15 +++++---------- + 1 file changed, 5 insertions(+), 10 deletions(-) + +commit ef67e051d71938a23713d9782a3f0c470ac51b1e +Author: Lasse Collin +Date: 2025-09-28 18:32:05 +0300 + + liblzma: Fix build on old Linux/glibc on ARM64 + + getauxval() can be available even if HWCAP_CRC32 isn't #defined, so + both have to be checked. HWCAP_CRC32 was added in glibc 2.24 (2016). + + Fixes: https://github.com/tukaani-project/xz/issues/190 + + CMakeLists.txt | 7 +++++++ + configure.ac | 6 +++++- + src/liblzma/check/crc32_arm64.h | 5 +++-- + src/liblzma/check/crc_common.h | 3 ++- + 4 files changed, 17 insertions(+), 4 deletions(-) + +commit 71c2ede383f6dc6661b8a9d844f4bcf81c563643 +Author: Lasse Collin +Date: 2025-10-31 14:36:26 +0200 + + CI: Update Solaris + + .github/workflows/solaris.yml | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 02da8de0edddd31a3e9818c2200b97c446d6eb5b +Author: Lasse Collin +Date: 2025-10-31 14:32:47 +0200 + + CI: Update DragonFly BSD + + .github/workflows/dragonflybsd.yml | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +commit 75b18d325f6a993eac2d5f44c7aad941aa20df94 +Author: Lasse Collin +Date: 2025-10-31 14:30:24 +0200 + + CI: Update NetBSD + + .github/workflows/netbsd.yml | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 0102072915f38e747ee55aa9c52351dfe81b8c14 +Author: Lasse Collin +Date: 2025-10-31 14:21:37 +0200 + + CI: Update FreeBSD + + .github/workflows/freebsd.yml | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 83419783a67a6097c7d5ed5663734c04eb8c8b55 +Author: Lasse Collin +Date: 2025-10-31 14:17:30 +0200 + + CI: Update OpenBSD + + .github/workflows/openbsd.yml | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +commit 3b5f5af9bcd9b5752608a099fcfab331c0c613b3 +Author: Lasse Collin +Date: 2025-10-26 12:07:34 +0200 + + Update THANKS + + THANKS | 2 ++ + 1 file changed, 2 insertions(+) + +commit e8838b2f59221f46bf34c79431d286e8ac34fb8b +Author: Kirill A. Korinsky +Date: 2025-10-26 12:07:34 +0200 + + xz: Look at resource limits when determining the default memlimit + + When no memory usage limits have been set by the user, the default + for multithreaded mode has been 1/4 of total RAM. If this limit is + too high and memory allocation fails, liblzma (and xz) fail. Perhaps + liblzma should handle it better by reducing the number of threads + and continuing with the amount of memory it can allocate, but currently + that isn't the case. + + If resource limits were set to about 1/4 of RAM or lower, then xz + could fail for the above reason. This commit makes xz look at + RLIMIT_DATA, RLIMIT_AS, and RLIMIT_VMEM when they are available, + and set the limit 64 MiB below the lowest of those limits. This is + more or less a hack just like the 1/4-of-RAM method is, but this is + simple and quick to implement. + + On Linux, there are other limits like cgroup v2 memory.max which + can still make xz fail. The same is likely possible with FreeBSD's + rctl(8). + + Co-authored-by: Lasse Collin + Thanks-to: Fangrui Song + Fixes: https://github.com/tukaani-project/xz/issues/195 + Closes: https://github.com/tukaani-project/xz/pull/196 + + CMakeLists.txt | 3 +++ + configure.ac | 4 ++-- + src/xz/hardware.c | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ + 3 files changed, 64 insertions(+), 2 deletions(-) + +commit 8d26b72915e0d373f898b55935505857c30dbdb3 +Author: Lasse Collin +Date: 2025-10-01 12:46:26 +0300 + + CI: Remove windows-2019 (which had VS 2019) + + GitHub has removed the runner image. + + A breakage with CLMUL CRC code occurred with VS 2019 but not 2022, + see b5a5d9e3f702. MS supports VS 2019 for a few more years, so it's + unfortunate that it can no longer be tested on GitHub. + + .github/workflows/msvc.yml | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 32412bd2a42fda639765c3046e91f964e286b6d9 +Author: Lasse Collin +Date: 2025-09-29 19:34:58 +0300 + + Update THANKS + + THANKS | 3 +++ + 1 file changed, 3 insertions(+) + +commit eaa150df9803c982adf28d4533c7a4264ea17757 +Author: Lakshmi-Surekha +Date: 2025-07-17 23:27:06 -0500 + + xz: Don't fsync() directories on AIX + + It fails with EBADF. + + Fixes: https://github.com/tukaani-project/xz/issues/188 + Closes: https://github.com/tukaani-project/xz/pull/189 + + src/xz/file_io.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +commit 61b114e92f53b7977aad69f8a7130fc25d8a80e5 +Author: Lasse Collin +Date: 2025-09-29 18:37:19 +0300 + + liblzma: Document that lzma_allocator.free(opaque, NULL) is possible + + It feels better to fix the docs than change the code because this + way newly-written applications will be forced to be compatible with + the lzma_allocator behavior of old liblzma versions. It can matter + if someone builds the application against an older liblzma version. + + Fixes: https://github.com/tukaani-project/xz/issues/183 + + src/liblzma/api/lzma/base.h | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +commit 6d287a3ae90e1b990294f3d5264003d81e853c5e +Author: Simon Josefsson +Date: 2025-08-26 09:41:02 +0200 + + Update GPLv2 and LGPLv2.1 copies from gnu.org + + Closes: https://github.com/tukaani-project/xz/pull/194 + + COPYING.GPLv2 | 9 ++++----- + COPYING.LGPLv2.1 | 9 ++++----- + 2 files changed, 8 insertions(+), 10 deletions(-) + +commit 41a421dbadf13af2a59aaafa43836026b83340a7 +Author: Lasse Collin +Date: 2025-05-24 12:07:13 +0300 + + tests/test_suffix.sh: Avoid variables in printf format string + + tests/test_suffix.sh | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +commit a2c6aa8764a2e5248572d461305bd05c5950bf94 +Author: Lasse Collin +Date: 2025-05-24 12:02:09 +0300 + + build-aux/manconv.sh: Add quotes + + build-aux/manconv.sh | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +commit 8e4153253eea2b5a9466467b2ce0249e56277c9a +Author: Lasse Collin +Date: 2025-05-24 12:01:35 +0300 + + windows/build.bash: Add quotes + + In this case they aren't needed but it's better style. + + windows/build.bash | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +commit 37a57a926dd1ae6cde1544d8487e27982d2db4a4 +Author: Lasse Collin +Date: 2025-05-24 12:00:13 +0300 + + po4a/update-po: Ensure that a glob won't expand to a command line option + + po4a/update-po | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit e3ba73034a3f8e414882af39d62f479e9717e061 +Author: Lasse Collin +Date: 2025-05-24 11:57:23 +0300 + + liblzma: validate_map.sh: Catch some unlikely errors + + src/liblzma/validate_map.sh | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +commit 067cecdea69067973e44dc1afb9be763faccecb2 +Author: Lasse Collin +Date: 2025-05-24 11:55:59 +0300 + + CI: Catch unsupported arguments in ci_build.bash + + build-aux/ci_build.bash | 4 ++++ + 1 file changed, 4 insertions(+) + +commit 4fc6208abebfe6b8c8348c412b4bcc594ae11c88 +Author: Lasse Collin *** 2120 LINES SKIPPED *** From nobody Tue Dec 30 02:20:44 2025 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dgGz11hqHz6MgkH for ; Tue, 30 Dec 2025 02:20:45 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dgGz06nTdz3NdJ for ; Tue, 30 Dec 2025 02:20:44 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767061244; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=M0X5JCmXpLrpfhDjDOzZlni0K4GNg+MNc6TG9GKkgM8=; b=JauzJE57Cs0QUrHSt7Ut3X44I0MszXEhbViE9ZH7yXlmedv7D32pouYWdzxyGMwVSk+J8k RZ6JmXo9mPXLALYgwaKN1rej9R0wZSe8R1ogHJcL1dppiTyUQDzupv+94d6dk4hbr/Mvtx gEvx6P+PzPbTa4uLNN5gKpfYXQFdhoUFDIO0+pZIYc/KN9TOJURfbkF7WoKd1idsbt4/MW VhglGdjHYst6zxHKdpqDcaPGR1uGEjtcyPhx5CwxPQF9imU8j82Ww5vrFybD1GasK7wPFQ 95OKn9HANaQ5yhYGwYRolretnTrSOPB1Hd0yaHNXZF1JYGkmNcv3TQ8GxniuSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767061244; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=M0X5JCmXpLrpfhDjDOzZlni0K4GNg+MNc6TG9GKkgM8=; b=b4ydrBghtiRYBYiFzm2pSLejy9roomueBisoVayWZG+TYZouKeruwmNY+uTj2zG3cS+gnu F7Xa8NqCcO7eTXatMdVKmiQKjDIfZbaF5zkCJ/Bz7UKkOb2HXegfEv9isBMcE15l6+EQ8g C6cfpUT/X8vXNvvW02BZkMzxr9mHB0KgQsmcJbnForR7FL6QanZzm48XSGvg36bM83GYnr 5Q8FqTivaSEuhkm3pCxNO+yloJTJxoeHiT2tAOz7yIb55NAs+khft+NfBfNEYtXaB1y6Vm pzmzLN2pedpt853DYvxcfrqYF3ce9vgFX5/XjGEP6sw/p6ptHxsLBXVx+A7zmg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767061244; a=rsa-sha256; cv=none; b=exzlsSuRsWKQBnczEtidHxbAUhqMkYSTY6jbHq0+FlljWxRPYNrSJrXmSpKt8JKGi+n4VH /MtUCsZNCDwVlYYa4kRUNHO96sQI3/2kAZ1ulontxayfV7/Ae7PJlGawqYhwISWKtm9iCD DO4h7NGsZByNz7dz78LTrLFIVKgXgGqWlO18RyZ3NL4BqCEdda8QxJtr61fkHJw6hC1Dnz JlGpxVERLLdy4XU2CrakUwZnwwnMa4WEZ4tcr+yLFTxHITYtxFU1fDVfNNMEJ2W9sOxujA aN11WpQ2HgBFOy94N7E6dn92GTKa6Gso6TfParfuVsrlZeAKibZ4revg0msklQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dgGz05qy9zhQl for ; Tue, 30 Dec 2025 02:20:44 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3c76e by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Tue, 30 Dec 2025 02:20:44 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Xin LI Subject: git: 07700b0107dc - stable/14 - MFV 762f11d98d5cd57ebbe85c36e9e86a557a91fe4e: xz 5.8.2. List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: delphij X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 07700b0107dc642b47c78917102b1f059e2af645 Auto-Submitted: auto-generated Date: Tue, 30 Dec 2025 02:20:44 +0000 Message-Id: <695336fc.3c76e.4d292ad8@gitrepo.freebsd.org> The branch stable/14 has been updated by delphij: URL: https://cgit.FreeBSD.org/src/commit/?id=07700b0107dc642b47c78917102b1f059e2af645 commit 07700b0107dc642b47c78917102b1f059e2af645 Author: Xin LI AuthorDate: 2025-12-23 08:24:13 +0000 Commit: Xin LI CommitDate: 2025-12-30 02:20:31 +0000 MFV 762f11d98d5cd57ebbe85c36e9e86a557a91fe4e: xz 5.8.2. (cherry picked from commit ae12432049e7873ab3912643ae5d08297b8cbc49) --- contrib/xz/ChangeLog | 1586 +++++++++++++++++++++ contrib/xz/THANKS | 402 +++--- contrib/xz/doxygen/Doxyfile | 8 +- contrib/xz/src/common/my_landlock.h | 45 +- contrib/xz/src/common/mythread.h | 3 +- contrib/xz/src/liblzma/api/lzma/base.h | 6 +- contrib/xz/src/liblzma/api/lzma/container.h | 38 +- contrib/xz/src/liblzma/api/lzma/version.h | 2 +- contrib/xz/src/liblzma/check/crc32_arm64.h | 5 +- contrib/xz/src/liblzma/check/crc32_fast.c | 2 +- contrib/xz/src/liblzma/check/crc64_fast.c | 10 +- contrib/xz/src/liblzma/check/crc_common.h | 19 +- contrib/xz/src/liblzma/common/alone_decoder.c | 6 +- contrib/xz/src/liblzma/common/filter_common.c | 4 +- contrib/xz/src/liblzma/common/lzip_decoder.c | 3 +- contrib/xz/src/liblzma/common/outqueue.h | 1 + contrib/xz/src/liblzma/common/stream_decoder_mt.c | 79 +- contrib/xz/src/liblzma/common/vli_decoder.c | 2 +- contrib/xz/src/liblzma/lzma/lzma_common.h | 4 +- contrib/xz/src/liblzma/lzma/lzma_decoder.h | 11 +- contrib/xz/src/liblzma/rangecoder/range_decoder.h | 6 +- contrib/xz/src/liblzma/validate_map.sh | 4 +- contrib/xz/src/xz/args.c | 1 - contrib/xz/src/xz/file_io.c | 3 +- contrib/xz/src/xz/hardware.c | 72 + contrib/xz/src/xz/list.c | 2 + contrib/xz/src/xz/message.h | 4 + contrib/xz/src/xz/sandbox.c | 26 +- contrib/xz/src/xz/signals.c | 17 +- contrib/xz/src/xz/util.c | 4 + contrib/xz/src/xz/xz.1 | 9 +- contrib/xz/src/xzdec/xzdec.c | 2 +- lib/liblzma/config.h | 12 +- 33 files changed, 2072 insertions(+), 326 deletions(-) diff --git a/contrib/xz/ChangeLog b/contrib/xz/ChangeLog index 577dce5e12a2..bd7fad97695d 100644 --- a/contrib/xz/ChangeLog +++ b/contrib/xz/ChangeLog @@ -1,3 +1,1589 @@ +commit 3d078b52adbff566ccfc51067dfbf742ecf3ef86 +Author: Lasse Collin +Date: 2025-12-17 13:36:42 +0200 + + Bump version and soname for 5.8.2 + + src/liblzma/Makefile.am | 2 +- + src/liblzma/api/lzma/version.h | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +commit fb14afd5c9bf14d8c67ee11e4139885072071ddd +Author: Lasse Collin +Date: 2025-12-17 13:36:35 +0200 + + Add NEWS for 5.8.2 + + NEWS | 72 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + 1 file changed, 72 insertions(+) + +commit 590f4713b29f0236ab944487f40069355a515dbc +Author: Lasse Collin +Date: 2025-12-16 11:30:35 +0200 + + CMake: Bump maximum policy version to 4.2 + + CMP0186 is curious but we aren't affected. + + CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 26d22ed16b6e38ce8ed45cb29076f454cd488762 +Author: Lasse Collin +Date: 2025-12-10 19:20:05 +0200 + + tuklib_integer/CMake: Log a message about unaligned access check + + cmake/tuklib_integer.cmake | 8 ++++++++ + 1 file changed, 8 insertions(+) + +commit f7381cf927576164c17be4e4c1edeec3cdaca7cf +Author: Lasse Collin +Date: 2025-12-10 19:11:27 +0200 + + tuklib_integer/CMake: Don't run unaligned access checks unnecessarily + + If the cache variable TUKLIB_FAST_UNALIGNED_ACCESS is already set, + the autodetection result isn't needed because the option() command + does nothing when the cache variable is already set. + + This is largely white space change to indent the if...endif block. + + cmake/tuklib_integer.cmake | 226 +++++++++++++++++++++++---------------------- + 1 file changed, 117 insertions(+), 109 deletions(-) + +commit dc1a421ce35f10b9a0c00d1bd42f1fdac0c3e9eb +Author: Lasse Collin +Date: 2025-12-10 16:49:55 +0200 + + tuklib_integer: Use CMAKE_C_COMPILER_ARCHITECTURE_ID when available + + CMake >= 4.1 sets CMAKE__COMPILER_ARCHITECTURE_ID on many + platforms. The list of possible values are documented. Use this + variable when available. On older CMake versions CMAKE_SYSTEM_PROCESSOR + is still used, thus the regexes have to include values like ^amd64 still. + + With old CMake versions, checking CMAKE_C_COMPILER_ARCHITECTURE_ID + is somewhat useful with MSVC because CMAKE_SYSTEM_PROCESSOR might + not match the target architecture. + + cmake/tuklib_integer.cmake | 13 ++++++++++++- + 1 file changed, 12 insertions(+), 1 deletion(-) + +commit c690101dddd784b75224a8935f56cd163d3e90a3 +Author: Lasse Collin +Date: 2025-12-10 16:49:55 +0200 + + tuklib_integer: Autodetect when -mstrict-align is used with GCC on ARM64 + + On ARM64, support for fast unaligned memory access was autodetected by + checking if __ARM_FEATURE_UNALIGNED is defined. However, at least GCC + versions up to 15.2.0 define the macro even when -mstrict-align has + been specified. Thus, autodetection with GCC doesn't work correctly, + and binaries built using -mstrict-align can be much slower than they + need to be, unless the user also passes --disable-unaligned-access + to configure or -DTUKLIB_FAST_UNALIGNED_ACCESS=OFF to cmake. + + See the GCC bug: + + https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111555 + + Workaround the issue by using heuristics with GCC on ARM64. + + With Clang, the detection using __ARM_FEATURE_UNALIGNED works. + It also works with GCC on 32-bit ARM. + + Fixes: e5f13a66567b ("tuklib_integer: Autodetect support for unaligned access on ARM.") + + cmake/tuklib_integer.cmake | 63 ++++++++++++++++++++++++++++++------- + m4/tuklib_integer.m4 | 78 +++++++++++++++++++++++++++++++++++----------- + 2 files changed, 110 insertions(+), 31 deletions(-) + +commit d9b318f5b8a3524e90ac17471e79db7de012caf5 +Author: Lasse Collin +Date: 2025-12-09 18:02:23 +0200 + + CI: Update MSYS2 + + .github/workflows/msys2.yml | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +commit 700e32f1b7dd6d674f12bbdabc35a3bc4a2860f5 +Author: Lasse Collin +Date: 2025-12-09 18:02:05 +0200 + + CI: Update DragonFly BSD + + .github/workflows/dragonflybsd.yml | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit a7b749389c64dfbee1c29d88e61e71186b472784 +Author: Lasse Collin +Date: 2025-12-09 17:58:52 +0200 + + CI: Update Solaris + + .github/workflows/solaris.yml | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit e0b3c6ee0ab3243e48291e5f9b6333c3d052311d +Author: Lasse Collin +Date: 2025-12-09 17:56:58 +0200 + + CI: Update NetBSD + + .github/workflows/netbsd.yml | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit fbc1046248cfe3c730437ba7d98dde89b0eced3e +Author: Lasse Collin +Date: 2025-12-09 17:54:54 +0200 + + CI: Update OpenBSD + + .github/workflows/openbsd.yml | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 8f0579ba5650bbbfa88a04adf8115b8fb4aff476 +Author: Lasse Collin +Date: 2025-12-09 17:52:01 +0200 + + CI: Update FreeBSD + + .github/workflows/freebsd.yml | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +commit f8424b0416266c393c84a315e3bdedbc19efa0a8 +Author: Lasse Collin +Date: 2025-12-09 17:40:05 +0200 + + Update THANKS + + THANKS | 1 + + 1 file changed, 1 insertion(+) + +commit c4340692d4490ff80e897d4840fadc033c46d81a +Author: Lasse Collin +Date: 2025-12-09 13:01:36 +0200 + + Translations: Add src/xz/sandbox.c to POTFILES.in + + There are no strings to translate in that file now, but it's good to + list it anyway in case translatable strings are added in the future. + + Fixes: 374868d81d47 ("xz: Move sandboxing code to sandbox.c and improve Landlock sandbox.") + + po/POTFILES.in | 1 + + 1 file changed, 1 insertion(+) + +commit b8af36920b0857c0329f61414df5989093386db1 +Author: Lasse Collin +Date: 2025-12-09 12:55:45 +0200 + + xz: Never translate "Failed to enable the sandbox" + + This was already the case in practice because I had forgotten to list + src/xz/sandbox.c in po/POTFILES.in. However, it seems better to never + translate this particular error message. It should almost never occur + and if it does, an untranslated message is should make it easier to + find bug reports about it. + + src/xz/sandbox.c | 24 +++++++++++++++--------- + 1 file changed, 15 insertions(+), 9 deletions(-) + +commit 5a7fc1af3d9ec115f796cba110eb78e63ff1df5c +Author: Lasse Collin +Date: 2025-12-09 12:27:15 +0200 + + Translations: Update the Swedish man page translations + + po4a/sv.po | 15 +++++---------- + 1 file changed, 5 insertions(+), 10 deletions(-) + +commit 88531e5463d9f028387a11b78d53c9c269e6a3a0 +Author: Lasse Collin +Date: 2025-12-09 12:26:24 +0200 + + Translations: Update the Romanian man page translations + + po4a/ro.po | 18 +++++++----------- + 1 file changed, 7 insertions(+), 11 deletions(-) + +commit 8a817277192e6379a8c6f2eefbaed65c6b7d92fa +Author: Lasse Collin +Date: 2025-12-09 12:13:36 +0200 + + Update THANKS + + THANKS | 1 + + 1 file changed, 1 insertion(+) + +commit 1ec43aa7810d159ed76a6188b17c0bb474ca5ab5 +Author: Lasse Collin +Date: 2025-12-09 12:13:36 +0200 + + CMake: Autodetect unaligned access support on LoongArch + + This still relies on CMAKE_SYSTEM_PROCESSOR. CMake 4.1 added more + CMAKE__COMPILER_ARCHITECTURE_ID values to detect the arch in + a more defined manner, but 4.1 is too new to require for now. + + Thanks-to: Li Chenggang + Closes: https://github.com/tukaani-project/xz/pull/186 + + cmake/tuklib_integer.cmake | 81 ++++++++++++++++++++++++++++++++++++++++++++++ + 1 file changed, 81 insertions(+) + +commit 7971566247914ec1854b125ff99c2a617f5c1e3a +Author: Lasse Collin +Date: 2025-12-09 12:13:36 +0200 + + Autotools: Autodetect unaligned access support on LoongArch + + According to [1] sections 7.4, 8.1, and 8.2, desktop and server + processors support fast unaligned access, but embedded systems likely + don't. + + It's important that TUKLIB_FAST_UNALIGNED_ACCESS isn't defined when + -mstrict-align is in use because it will result in slower binaries + even if running on a processor that supports fast unaligned access. + It's because compilers will translate multibyte memcpy() to multiple + byte-by-byte instructions instead of wider loads and stores. The + compression times from [2] show this well: + + Unaligned access CFLAGS Compression time + enabled -O2 -mno-strict-align 66.1 s + disabled -O2 -mno-strict-align 79.5 s + disabled -O2 -mstrict-align 79.9 s + enabled -O2 -mstrict-align 129.1 s + + There currently (GCC 15.2) is no preprocessor macro on LoongArch + to detect if -mstrict-align or -mno-strict-align is in effect (the + default is -mno-strict-align). Use heuristics to detect which of the + flags is in effect. + + [1] https://github.com/loongson/la-softdev-convention/blob/v0.2/la-softdev-convention.adoc + [2] https://github.com/tukaani-project/xz/pull/186#issuecomment-3494570304 + + Thanks-to: Li Chenggang + Thanks-to: Xi Ruoyao + See: https://github.com/tukaani-project/xz/pull/186 + + m4/tuklib_integer.m4 | 68 ++++++++++++++++++++++++++++++++++++++++++++++++++++ + 1 file changed, 68 insertions(+) + +commit 338f952c0039b153a1fbdf6a535c4bd6a61f33cd +Author: Lasse Collin +Date: 2025-11-26 13:50:57 +0200 + + xz: Silence clang -Wunreachable-code-break + + Fixes: a165d7df1964 ("xz: Add a new --filters-help option.") + + src/xz/args.c | 1 - + 1 file changed, 1 deletion(-) + +commit 723cee44d076281bce9c3d7bd2c17b0680bd8884 +Author: Lasse Collin +Date: 2025-11-26 13:50:57 +0200 + + liblzma: Remove unwanted semicolons + + These didn't affect control flow. + + src/liblzma/common/vli_decoder.c | 2 +- + src/liblzma/lzma/lzma_common.h | 4 ++-- + src/liblzma/rangecoder/range_decoder.h | 6 +++--- + 3 files changed, 6 insertions(+), 6 deletions(-) + +commit 524f6a7384f15e52ec13c72adbdf18ddeecbc735 +Author: Lasse Collin +Date: 2025-11-26 13:50:57 +0200 + + Tests: Remove an unwanted semicolon from a macro definition + + It didn't affect control flow. + + Fixes: fe3bd438fb11 ("Tests: Fix memory leaks in test_block_header.") + + tests/test_block_header.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 0f41a28bfab98d1f5171ee5c9da6dfdc15f62549 +Author: Lasse Collin +Date: 2025-11-26 13:50:57 +0200 + + Build: Use -Wextra-semi-stmt when supported + + CMakeLists.txt | 1 + + configure.ac | 1 + + 2 files changed, 2 insertions(+) + +commit 91170c8cab72b94a697f5228f4df13483ef5be91 +Author: Lasse Collin +Date: 2025-11-26 13:50:57 +0200 + + CI: Add clang-cl + + Fixes: https://github.com/tukaani-project/xz/issues/18#issuecomment-3577456136 + + .github/workflows/msvc.yml | 46 ++++++++++++++++++++++++++++++++++++++++++++++ + 1 file changed, 46 insertions(+) + +commit a3c6cb09113de978b971cbdacf5c4890d4237c28 +Author: Lasse Collin +Date: 2025-11-26 13:50:57 +0200 + + xz/Windows: Add a missing #include to fix the build with clang-cl + + Fixes: https://github.com/tukaani-project/xz/issues/18#issuecomment-1986829734 + Fixes: https://github.com/tukaani-project/xz/issues/18#issuecomment-3577456136 + + src/xz/util.c | 4 ++++ + 1 file changed, 4 insertions(+) + +commit c410ccc62511ec95b20639defb10650ef9b75e8c +Author: Lasse Collin +Date: 2025-11-25 21:05:37 +0200 + + xz: Check return value of sigaction() before calling raise() + + Fixes: Coverity CID 456022 + + src/xz/signals.c | 10 ++++++++-- + 1 file changed, 8 insertions(+), 2 deletions(-) + +commit 6cc2da0a4b180b71cb6e781c897052def103ad3e +Author: Lasse Collin +Date: 2025-11-02 12:57:00 +0200 + + liblzma: Refactor a loop in lzma_filters_copy() + + Arguably it's nicer if i doesn't wrap around when the loop terminates. + + Fixes: Coverity CID 464589 + Fixes: 6d118a0b9def ("Add lzma_filters_copy().") + + src/liblzma/common/filter_common.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +commit 90b67853d57562c5ad4fdb3215ceb9b9bd3958bf +Author: Lasse Collin +Date: 2025-11-02 12:17:50 +0200 + + liblzma: Silence two Coverity warnings + + lzma_lzma_decoder_memusage() returns UINT64_MAX if lc/lp/pb aren't + valid. alone_decoder.c and lzip_decoder.c didn't check the return + value because in both it is known that lc/lp/pb are valid. Make them + call the _nocheck() variant instead which skips the validation (it + already existed for LZMA2's internal use). + + Fixes: Coverity CID 464658 + Fixes: Coverity CID 897069 + + src/liblzma/common/alone_decoder.c | 6 ++++-- + src/liblzma/common/lzip_decoder.c | 3 ++- + src/liblzma/lzma/lzma_decoder.h | 11 ++++++----- + 3 files changed, 12 insertions(+), 8 deletions(-) + +commit be365b701024b9acbfef4035c6433a0fbb4be823 +Author: Lasse Collin +Date: 2025-11-02 12:17:50 +0200 + + liblzma: Fix a harmless read of shared variable without mutex + + The partial_update_mode enumeration had three states, _DISABLED, + _START, and _ENABLED. Main thread changed it from _DISABLED to _START + while holding a mutex. Once set to _START, worker thread changed it + to _ENABLED without a mutex. Later main thread read it without a mutex, + so it could see either _START or _ENABLED. However, it made no + difference because the main thread checked for != _DISABLED, so + it didn't matter if it saw _START or _ENABLED. + + Nevertheless, such things must not be done. It's clear it was a mistake + because there were two comments that directly contradicted each + other about how the variable was accessed. + + Split the enumeration into two booleans: + + - partial_update_enabled: A worker thread locks the mutex to read + this variable and the main thread locks the mutex to change the + value. Because only the main thread modifies the variable, the + main thread can read the value without locking the mutex. + This variable replaces the _DISABLED -> _START transition. + + - partial_update_started is for worker thread's internal use and thus + needs no mutex. This replaces the _START -> _ENABLED transition. + + Fixes: Coverity CID 456025 + Fixes: bd93b776c1bd ("liblzma: Fix a deadlock in threaded decoder.") + + src/liblzma/common/stream_decoder_mt.c | 79 +++++++++++++++------------------- + 1 file changed, 34 insertions(+), 45 deletions(-) + +commit 2686554da0103580a472919220931c397b1d1f7a +Author: Lasse Collin +Date: 2025-11-02 12:17:50 +0200 + + CI: Add Coverity Scan + + Co-authored-by: Lasse Collin + Fixes: https://github.com/tukaani-project/xz/issues/198 + + .github/workflows/coverity.yml | 38 ++++++++++++++++++++++++++++++++++++++ + 1 file changed, 38 insertions(+) + +commit 1b30734c9c08a3f628574d172f1a6034277a2163 +Author: Lasse Collin +Date: 2025-11-25 13:55:35 +0200 + + Change the sorting order in THANKS + + In short, sort the names with this command (-k1,1 isn't needed because + the lines with names start with " -"): + + LC_ALL=en_US.UTF-8 sort -k2,2 -k3,3 -k4,4 -k5,5 + + When THANKS was created, I wrote the names as "First Last" and attempted + to keep them sorted by last name / surname / family name. This works + with many names in THANKS, but it becomes complicated with names that + don't fit that pattern. For example, names that are written as + "Last First" can be manually sorted by family name, but only if one + knows which part of the name is the family name.[*] And of course, + the concept of first/last name doesn't apply to all names. + + [*] xz had a co-maintainer who could help me with such names, + but fortunately he isn't working on the project anymore. + + Adding the names in chronological order could have worked too, although + if something is contributed by multiple people, one would still have to + decide how to sort the names within the batch. Another downside would + be that if THANKS is updated in more than one work-in-progress branch, + merge conflicts would occur more often. + + Don't attempt to sort by last name. Let's be happy that people tend to + provide names that can be expressed in a reasonable number of printable + Unicode characters. In practice, people have been even nicer: if the + native language doesn't use a Latin script alphabet, people often provide + a transliterated name (only or in addition to the original spelling), + which is very much appreciated by those who don't know the native script. + + Treat the names as opaque strings or space-separated strings for sorting + purposes. This means that most names will now be sorted by first name. + There still are many choices how to sort: + + (1) LC_ALL=en_US.UTF-8 sort + + The project is in English, so this may sound like a logical choice. + However, spaces have a lower weight than letters, which results in + this order: + + - A Ba + - Ab C + - A Bc + - A Bd + + (2) LC_ALL=en_US.UTF-8 sort -k2,2 + + This first sorts by the first word and then by the rest of the + string. It's -k2,2 instead of -k1,1 to skip the leading dash. + + - A Ba + - A Bc + - A Bd + - Ab C + + I like this more than (1). One could add -k3,3 -k4,4 -k5,5 ... too. + With current THANKS it makes no difference but it might some day. + + NOTE: The ordering in en_US.UTF-8 can differ between libc versions + and operating systems. Luckily it's not a big deal in THANKS. + + (3) LC_ALL=en_US.UTF-8 sort -f -k2,2 + + Passing -f (--ignore-case) to sort affects sorting of single-byte + characters but not multibyte characters (GNU coreutils 9.9): + + No -f With -f LC_ALL=C + Aa A.A A.A + A.A Aa Aa + Ää Ää Ä.Ä + Ä.Ä Ä.Ä Ää + + In GNU coreutils, the THANKS file is sorted using "sort -f -k1,1". + There is also a basic check that the en_US.UTF-8 locale is + behaving as expected. + + (4) LC_ALL=C sort + + This sorts by byte order which in UTF-8 is the same as Unicode + code point order. With the strings in (1) and (2), this produces + the same result as in (2). The difference in (3) can be seen above. + + The results differ from en_US.UTF-8 when a name component starts + with a lower case ASCII letter (like "von" or "de"). Worse, any + non-ASCII characters sort after ASCII chars. These properties might + look weird in English language text, although it's good to remember + that en_US.UTF-8 sorting can appear weird too if one's native + language isn't English. + + The choice between (2) and (4) was difficult but I went with (2). + + ;-) + + THANKS | 414 ++++++++++++++++++++++++++++++++--------------------------------- + 1 file changed, 207 insertions(+), 207 deletions(-) + +commit 8bb516887c1912106a72db96216cab46954e6190 +Author: Lasse Collin +Date: 2025-11-23 20:39:28 +0200 + + Landlock: Add missing #ifdefs + + The build was broken on distros that have an old . + + Fixes: 2b2652e914b1 ("Landlock: Workaround a bug in RHEL 9 kernel") + + src/common/my_landlock.h | 6 ++++++ + 1 file changed, 6 insertions(+) + +commit 23c95c6a7c374962103dbd35cb79fdd5a6fe8b52 +Author: Lasse Collin +Date: 2025-11-23 20:13:50 +0200 + + Update THANKS + + THANKS | 2 ++ + 1 file changed, 2 insertions(+) + +commit 2b2652e914b1c38d4c009a8dcac11dfee9c7e008 +Author: Lasse Collin +Date: 2025-11-23 20:13:49 +0200 + + Landlock: Workaround a bug in RHEL 9 kernel + + If one runs xz 5.8.0 or 5.8.1 from some other distribution in a container + on RHEL 9, xz will fail with the message "Failed to enable the sandbox". + + RHEL 9 kernel since 5.14.0-603.el9 (2025-07-30) claims to support + Landlock ABI version 6, but it lacks support for LANDLOCK_SCOPE_SIGNAL. + The issue is still present in 5.14.0-643.el9 (2025-11-22). Red Hat is + aware of the issue, but I don't know when it will be fixed. + + The sandbox is meant to be transparent to users, thus there isn't and + won't be a command line option to disable it. Instead, add a workaround + to keep xz working on the buggy RHEL 9 kernels. + + Reported-by: Richard W.M. Jones + Thanks-to: Pavel Raiskup + Tested-by: Orgad Shaneh + Tested-by: Richard W.M. Jones + Fixes: https://github.com/tukaani-project/xz/issues/199 + Link: https://issues.redhat.com/browse/RHEL-125143 + Link: https://bugzilla.redhat.com/show_bug.cgi?id=2407105 + Link: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/65BDSY56R5ZJRTUC4B6CIVCVLY4LG4ME/ + + src/common/my_landlock.h | 27 ++++++++++++++++++++++++++- + 1 file changed, 26 insertions(+), 1 deletion(-) + +commit ee75c76958dd891906745125590563ab64e85995 +Author: Lasse Collin +Date: 2025-11-23 20:13:37 +0200 + + Landlock: Cache the ABI version + + In xz it can avoid up to two syscalls that query the ABI version. + + src/common/my_landlock.h | 14 +++++++++++++- + 1 file changed, 13 insertions(+), 1 deletion(-) + +commit f57b1716cd0853474980c90a892204dee9bdea1a +Author: Lasse Collin +Date: 2025-11-03 14:52:45 +0200 + + Update THANKS + + THANKS | 1 + + 1 file changed, 1 insertion(+) + +commit 211cde09236165dbd379644753337be1de64b151 +Author: Lasse Collin +Date: 2025-11-03 12:41:31 +0200 + + mythread.h: Fix the build on Emscripten when threading is disabled + + To make a non-threaded liblzma-only build work with WASI SDK, + and mythread_sigmask() were omitted from mythread.h in the commit + 81db3b889830. This broke non-threaded full build with Emscripten because + src/xz/signals.c needs mythread_sigmask() (liblzma-only build was fine). + + If __wasm__ is defined, omit and mythread_sigmask() in + non-threaded builds only when __EMSCRIPTEN__ isn't defined. + + Reported-by: Marcus Tillmanns + Thanks-to: ChanTsune + Fixes: https://github.com/tukaani-project/xz/issues/161 + Fixes: 81db3b889830 ("mythread.h: Disable signal functions in builds targeting Wasm + WASI.") + + src/common/mythread.h | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +commit cbf50a99e3f0c2735fd573e166baf37df063b37b +Author: Lasse Collin +Date: 2025-11-03 11:56:32 +0200 + + Translations: Update the Serbian man page translations + + The earlier bug fixes are now included in the Translation Project. + + po4a/sr.po | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +commit 68d1591187512d8872615c8a904d43073440d93f +Author: Lasse Collin +Date: 2025-11-02 19:40:55 +0200 + + xz: Silence a compiler warning when signals_block_count is unused + + Move the static variable signals_block_count to the #ifndef block + that already has the functions that need the variable. + + src/xz/signals.c | 7 ++++--- + 1 file changed, 4 insertions(+), 3 deletions(-) + +commit beca015891fbd22657663ec23809184dda0677cd +Author: Lasse Collin +Date: 2025-11-02 17:45:20 +0200 + + xz: Silence a warning from Clang on glibc systems + + Fixes: e8838b2f5922 ("xz: Look at resource limits when determining the default memlimit") + + src/xz/hardware.c | 13 +++++++++++++ + 1 file changed, 13 insertions(+) + +commit 3e394278ed537575b5db43c09989c6ca99f762de +Author: Lasse Collin +Date: 2025-11-02 14:37:52 +0200 + + Translations: Update the Serbian man page translations + + Preserve the bug fixes made in 71ad5e82888f and 4f52e7387012 because + upstream hasn't included them. + + po4a/sr.po | 17 ++++++----------- + 1 file changed, 6 insertions(+), 11 deletions(-) + +commit ace28e35732fc43f58ea1aac146fdb73084f2548 +Author: Lasse Collin +Date: 2025-11-02 14:27:10 +0200 + + Translations: Update the Korean man page translations + + po4a/ko.po | 17 ++++++----------- + 1 file changed, 6 insertions(+), 11 deletions(-) + +commit ffd14a099f0d8c92d4f74018d3a52bd2327df4db +Author: Lasse Collin +Date: 2025-11-02 14:24:43 +0200 + + Translations: Update the Italian man page translations + + po4a/it.po | 15 +++++---------- + 1 file changed, 5 insertions(+), 10 deletions(-) + +commit 6f3152874ee375b581aa858fccab7865dcbf6403 +Author: Lasse Collin +Date: 2025-11-02 14:12:23 +0200 + + Translations: Update the Ukrainian man page translations + + po4a/uk.po | 15 +++++---------- + 1 file changed, 5 insertions(+), 10 deletions(-) + +commit ef67e051d71938a23713d9782a3f0c470ac51b1e +Author: Lasse Collin +Date: 2025-09-28 18:32:05 +0300 + + liblzma: Fix build on old Linux/glibc on ARM64 + + getauxval() can be available even if HWCAP_CRC32 isn't #defined, so + both have to be checked. HWCAP_CRC32 was added in glibc 2.24 (2016). + + Fixes: https://github.com/tukaani-project/xz/issues/190 + + CMakeLists.txt | 7 +++++++ + configure.ac | 6 +++++- + src/liblzma/check/crc32_arm64.h | 5 +++-- + src/liblzma/check/crc_common.h | 3 ++- + 4 files changed, 17 insertions(+), 4 deletions(-) + +commit 71c2ede383f6dc6661b8a9d844f4bcf81c563643 +Author: Lasse Collin +Date: 2025-10-31 14:36:26 +0200 + + CI: Update Solaris + + .github/workflows/solaris.yml | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 02da8de0edddd31a3e9818c2200b97c446d6eb5b +Author: Lasse Collin +Date: 2025-10-31 14:32:47 +0200 + + CI: Update DragonFly BSD + + .github/workflows/dragonflybsd.yml | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +commit 75b18d325f6a993eac2d5f44c7aad941aa20df94 +Author: Lasse Collin +Date: 2025-10-31 14:30:24 +0200 + + CI: Update NetBSD + + .github/workflows/netbsd.yml | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 0102072915f38e747ee55aa9c52351dfe81b8c14 +Author: Lasse Collin +Date: 2025-10-31 14:21:37 +0200 + + CI: Update FreeBSD + + .github/workflows/freebsd.yml | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 83419783a67a6097c7d5ed5663734c04eb8c8b55 +Author: Lasse Collin +Date: 2025-10-31 14:17:30 +0200 + + CI: Update OpenBSD + + .github/workflows/openbsd.yml | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +commit 3b5f5af9bcd9b5752608a099fcfab331c0c613b3 +Author: Lasse Collin +Date: 2025-10-26 12:07:34 +0200 + + Update THANKS + + THANKS | 2 ++ + 1 file changed, 2 insertions(+) + +commit e8838b2f59221f46bf34c79431d286e8ac34fb8b +Author: Kirill A. Korinsky +Date: 2025-10-26 12:07:34 +0200 + + xz: Look at resource limits when determining the default memlimit + + When no memory usage limits have been set by the user, the default + for multithreaded mode has been 1/4 of total RAM. If this limit is + too high and memory allocation fails, liblzma (and xz) fail. Perhaps + liblzma should handle it better by reducing the number of threads + and continuing with the amount of memory it can allocate, but currently + that isn't the case. + + If resource limits were set to about 1/4 of RAM or lower, then xz + could fail for the above reason. This commit makes xz look at + RLIMIT_DATA, RLIMIT_AS, and RLIMIT_VMEM when they are available, + and set the limit 64 MiB below the lowest of those limits. This is + more or less a hack just like the 1/4-of-RAM method is, but this is + simple and quick to implement. + + On Linux, there are other limits like cgroup v2 memory.max which + can still make xz fail. The same is likely possible with FreeBSD's + rctl(8). + + Co-authored-by: Lasse Collin + Thanks-to: Fangrui Song + Fixes: https://github.com/tukaani-project/xz/issues/195 + Closes: https://github.com/tukaani-project/xz/pull/196 + + CMakeLists.txt | 3 +++ + configure.ac | 4 ++-- + src/xz/hardware.c | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ + 3 files changed, 64 insertions(+), 2 deletions(-) + +commit 8d26b72915e0d373f898b55935505857c30dbdb3 +Author: Lasse Collin +Date: 2025-10-01 12:46:26 +0300 + + CI: Remove windows-2019 (which had VS 2019) + + GitHub has removed the runner image. + + A breakage with CLMUL CRC code occurred with VS 2019 but not 2022, + see b5a5d9e3f702. MS supports VS 2019 for a few more years, so it's + unfortunate that it can no longer be tested on GitHub. + + .github/workflows/msvc.yml | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 32412bd2a42fda639765c3046e91f964e286b6d9 +Author: Lasse Collin +Date: 2025-09-29 19:34:58 +0300 + + Update THANKS + + THANKS | 3 +++ + 1 file changed, 3 insertions(+) + +commit eaa150df9803c982adf28d4533c7a4264ea17757 +Author: Lakshmi-Surekha +Date: 2025-07-17 23:27:06 -0500 + + xz: Don't fsync() directories on AIX + + It fails with EBADF. + + Fixes: https://github.com/tukaani-project/xz/issues/188 + Closes: https://github.com/tukaani-project/xz/pull/189 + + src/xz/file_io.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +commit 61b114e92f53b7977aad69f8a7130fc25d8a80e5 +Author: Lasse Collin +Date: 2025-09-29 18:37:19 +0300 + + liblzma: Document that lzma_allocator.free(opaque, NULL) is possible + + It feels better to fix the docs than change the code because this + way newly-written applications will be forced to be compatible with + the lzma_allocator behavior of old liblzma versions. It can matter + if someone builds the application against an older liblzma version. + + Fixes: https://github.com/tukaani-project/xz/issues/183 + + src/liblzma/api/lzma/base.h | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +commit 6d287a3ae90e1b990294f3d5264003d81e853c5e +Author: Simon Josefsson +Date: 2025-08-26 09:41:02 +0200 + + Update GPLv2 and LGPLv2.1 copies from gnu.org + + Closes: https://github.com/tukaani-project/xz/pull/194 + + COPYING.GPLv2 | 9 ++++----- + COPYING.LGPLv2.1 | 9 ++++----- + 2 files changed, 8 insertions(+), 10 deletions(-) + +commit 41a421dbadf13af2a59aaafa43836026b83340a7 +Author: Lasse Collin +Date: 2025-05-24 12:07:13 +0300 + + tests/test_suffix.sh: Avoid variables in printf format string + + tests/test_suffix.sh | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +commit a2c6aa8764a2e5248572d461305bd05c5950bf94 +Author: Lasse Collin +Date: 2025-05-24 12:02:09 +0300 + + build-aux/manconv.sh: Add quotes + + build-aux/manconv.sh | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +commit 8e4153253eea2b5a9466467b2ce0249e56277c9a +Author: Lasse Collin +Date: 2025-05-24 12:01:35 +0300 + + windows/build.bash: Add quotes + + In this case they aren't needed but it's better style. + + windows/build.bash | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +commit 37a57a926dd1ae6cde1544d8487e27982d2db4a4 +Author: Lasse Collin +Date: 2025-05-24 12:00:13 +0300 + + po4a/update-po: Ensure that a glob won't expand to a command line option + + po4a/update-po | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit e3ba73034a3f8e414882af39d62f479e9717e061 +Author: Lasse Collin +Date: 2025-05-24 11:57:23 +0300 + + liblzma: validate_map.sh: Catch some unlikely errors + + src/liblzma/validate_map.sh | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +commit 067cecdea69067973e44dc1afb9be763faccecb2 +Author: Lasse Collin +Date: 2025-05-24 11:55:59 +0300 + + CI: Catch unsupported arguments in ci_build.bash + + build-aux/ci_build.bash | 4 ++++ + 1 file changed, 4 insertions(+) + +commit 4fc6208abebfe6b8c8348c412b4bcc594ae11c88 +Author: Lasse Collin *** 2120 LINES SKIPPED *** From nobody Tue Dec 30 02:21:25 2025 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dgGzp1HGrz6Mgrr for ; Tue, 30 Dec 2025 02:21:26 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dgGzn6dQJz3NsT for ; Tue, 30 Dec 2025 02:21:25 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767061285; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=QddvX5/oWpK0r46xFEoq/L5TBWQ5dxKwfJw4l6jwr4I=; b=FkVP3722UCOGCZUChHBSSXQD4RNlr9clAOtIjuDVoz0kB+puLvrMX86AEDpZZox9bkFRJl lWg0yaq58g37C8yigElPan0+A/K0u65Xnl25/lTIPJfPOZp8CWSM2Mx37EZDPmQx46GXbx HF/3YIYV+i3e10JUT04iUcq10MkTKe2iKxTTkJcxvVMaoWonswRpKGBXJVwzCzXWHi2/Sl ZVgq+hqBZw/qW7oEeaxaCoTLf/B6rADfvHHAAVJduKMw3O1i4wEkFVQWTQzI8+bL4QJKZu P3iQbT22G9VXkyyfHH7aJ401fkU7gzI+HV9/MxOTyqeAbFvyctT+7k+urM5Cfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767061285; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=QddvX5/oWpK0r46xFEoq/L5TBWQ5dxKwfJw4l6jwr4I=; b=YmatBMj/viQF+6ByKhUOoRI6HZlkhGn0sh4+qRVx4Ju4tgxl2h0y30OqkPJDOFi9/WLuae MDO+7pBWQp5DJlT0GJ4LGZa7ONlqNjk+YruBX4PnlbyYZxu4cBvAeyZfJ8SXAvfTUh+o2A Cq5NOmrRSjPZBP5Nzy7GCT/XnMNt52cuggT9AYr0y9XzmGbegAKbwMMyEPwUk1O3kU3a/l QlPHOdPU+oEsJ/7AEUn+wCDNS7Nc5wujePQEk79OmddqYQRe/gykZs6o/YOUb3PczfhD5w 5WoeynffH1+IebXx0wzXoOr3TzM2TcA/4VAPmLdZ8LpblGhe+XYt9rPyLTehFw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767061285; a=rsa-sha256; cv=none; b=JeJb+IGzP2EUmTFFHOfeD6/SciPV3xrvADu2UhMJvfOBxuHbgYY44B1NGfHkUgobDuvsEJ wjOCPc3BSZekn5DHp4SjRcKGNdSE09BP9F0l8KOm0HLZikU73alh2K4Lyx4q4EaYVNZDUp Lk0H6xgmHdjw7bdX/rgcYE5oq5/eHFztuZYih0GEQk6DLNmSb3jCd+/uea7hnFftrqemvL C4Z4dQftfPAJOG/tRKIubFHhuoH8g0/dfLFWGNyk0CfwP+gMaPthWWEdoTtWaa4uwcmjtl HPCVIojR69tpCCybXItZ4dmEOKM3rnCDyguNGMvk5yjP+JIp1Pd6aaUhH6GROQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dgGzn5wXnzh7h for ; Tue, 30 Dec 2025 02:21:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3d63d by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Tue, 30 Dec 2025 02:21:25 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Xin LI Subject: git: 8b4f1d73496c - stable/13 - MFV 762f11d98d5cd57ebbe85c36e9e86a557a91fe4e: xz 5.8.2. List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: delphij X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 8b4f1d73496cf433d165220f6546d9e05115af74 Auto-Submitted: auto-generated Date: Tue, 30 Dec 2025 02:21:25 +0000 Message-Id: <69533725.3d63d.9573168@gitrepo.freebsd.org> The branch stable/13 has been updated by delphij: URL: https://cgit.FreeBSD.org/src/commit/?id=8b4f1d73496cf433d165220f6546d9e05115af74 commit 8b4f1d73496cf433d165220f6546d9e05115af74 Author: Xin LI AuthorDate: 2025-12-23 08:24:13 +0000 Commit: Xin LI CommitDate: 2025-12-30 02:21:15 +0000 MFV 762f11d98d5cd57ebbe85c36e9e86a557a91fe4e: xz 5.8.2. (cherry picked from commit ae12432049e7873ab3912643ae5d08297b8cbc49) --- contrib/xz/ChangeLog | 1586 +++++++++++++++++++++ contrib/xz/THANKS | 402 +++--- contrib/xz/doxygen/Doxyfile | 8 +- contrib/xz/src/common/my_landlock.h | 45 +- contrib/xz/src/common/mythread.h | 3 +- contrib/xz/src/liblzma/api/lzma/base.h | 6 +- contrib/xz/src/liblzma/api/lzma/container.h | 38 +- contrib/xz/src/liblzma/api/lzma/version.h | 2 +- contrib/xz/src/liblzma/check/crc32_arm64.h | 5 +- contrib/xz/src/liblzma/check/crc32_fast.c | 2 +- contrib/xz/src/liblzma/check/crc64_fast.c | 10 +- contrib/xz/src/liblzma/check/crc_common.h | 19 +- contrib/xz/src/liblzma/common/alone_decoder.c | 6 +- contrib/xz/src/liblzma/common/filter_common.c | 4 +- contrib/xz/src/liblzma/common/lzip_decoder.c | 3 +- contrib/xz/src/liblzma/common/outqueue.h | 1 + contrib/xz/src/liblzma/common/stream_decoder_mt.c | 79 +- contrib/xz/src/liblzma/common/vli_decoder.c | 2 +- contrib/xz/src/liblzma/lzma/lzma_common.h | 4 +- contrib/xz/src/liblzma/lzma/lzma_decoder.h | 11 +- contrib/xz/src/liblzma/rangecoder/range_decoder.h | 6 +- contrib/xz/src/liblzma/validate_map.sh | 4 +- contrib/xz/src/xz/args.c | 1 - contrib/xz/src/xz/file_io.c | 3 +- contrib/xz/src/xz/hardware.c | 72 + contrib/xz/src/xz/list.c | 2 + contrib/xz/src/xz/message.h | 4 + contrib/xz/src/xz/sandbox.c | 26 +- contrib/xz/src/xz/signals.c | 17 +- contrib/xz/src/xz/util.c | 4 + contrib/xz/src/xz/xz.1 | 9 +- contrib/xz/src/xzdec/xzdec.c | 2 +- lib/liblzma/config.h | 12 +- 33 files changed, 2072 insertions(+), 326 deletions(-) diff --git a/contrib/xz/ChangeLog b/contrib/xz/ChangeLog index 577dce5e12a2..bd7fad97695d 100644 --- a/contrib/xz/ChangeLog +++ b/contrib/xz/ChangeLog @@ -1,3 +1,1589 @@ +commit 3d078b52adbff566ccfc51067dfbf742ecf3ef86 +Author: Lasse Collin +Date: 2025-12-17 13:36:42 +0200 + + Bump version and soname for 5.8.2 + + src/liblzma/Makefile.am | 2 +- + src/liblzma/api/lzma/version.h | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +commit fb14afd5c9bf14d8c67ee11e4139885072071ddd +Author: Lasse Collin +Date: 2025-12-17 13:36:35 +0200 + + Add NEWS for 5.8.2 + + NEWS | 72 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + 1 file changed, 72 insertions(+) + +commit 590f4713b29f0236ab944487f40069355a515dbc +Author: Lasse Collin +Date: 2025-12-16 11:30:35 +0200 + + CMake: Bump maximum policy version to 4.2 + + CMP0186 is curious but we aren't affected. + + CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 26d22ed16b6e38ce8ed45cb29076f454cd488762 +Author: Lasse Collin +Date: 2025-12-10 19:20:05 +0200 + + tuklib_integer/CMake: Log a message about unaligned access check + + cmake/tuklib_integer.cmake | 8 ++++++++ + 1 file changed, 8 insertions(+) + +commit f7381cf927576164c17be4e4c1edeec3cdaca7cf +Author: Lasse Collin +Date: 2025-12-10 19:11:27 +0200 + + tuklib_integer/CMake: Don't run unaligned access checks unnecessarily + + If the cache variable TUKLIB_FAST_UNALIGNED_ACCESS is already set, + the autodetection result isn't needed because the option() command + does nothing when the cache variable is already set. + + This is largely white space change to indent the if...endif block. + + cmake/tuklib_integer.cmake | 226 +++++++++++++++++++++++---------------------- + 1 file changed, 117 insertions(+), 109 deletions(-) + +commit dc1a421ce35f10b9a0c00d1bd42f1fdac0c3e9eb +Author: Lasse Collin +Date: 2025-12-10 16:49:55 +0200 + + tuklib_integer: Use CMAKE_C_COMPILER_ARCHITECTURE_ID when available + + CMake >= 4.1 sets CMAKE__COMPILER_ARCHITECTURE_ID on many + platforms. The list of possible values are documented. Use this + variable when available. On older CMake versions CMAKE_SYSTEM_PROCESSOR + is still used, thus the regexes have to include values like ^amd64 still. + + With old CMake versions, checking CMAKE_C_COMPILER_ARCHITECTURE_ID + is somewhat useful with MSVC because CMAKE_SYSTEM_PROCESSOR might + not match the target architecture. + + cmake/tuklib_integer.cmake | 13 ++++++++++++- + 1 file changed, 12 insertions(+), 1 deletion(-) + +commit c690101dddd784b75224a8935f56cd163d3e90a3 +Author: Lasse Collin +Date: 2025-12-10 16:49:55 +0200 + + tuklib_integer: Autodetect when -mstrict-align is used with GCC on ARM64 + + On ARM64, support for fast unaligned memory access was autodetected by + checking if __ARM_FEATURE_UNALIGNED is defined. However, at least GCC + versions up to 15.2.0 define the macro even when -mstrict-align has + been specified. Thus, autodetection with GCC doesn't work correctly, + and binaries built using -mstrict-align can be much slower than they + need to be, unless the user also passes --disable-unaligned-access + to configure or -DTUKLIB_FAST_UNALIGNED_ACCESS=OFF to cmake. + + See the GCC bug: + + https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111555 + + Workaround the issue by using heuristics with GCC on ARM64. + + With Clang, the detection using __ARM_FEATURE_UNALIGNED works. + It also works with GCC on 32-bit ARM. + + Fixes: e5f13a66567b ("tuklib_integer: Autodetect support for unaligned access on ARM.") + + cmake/tuklib_integer.cmake | 63 ++++++++++++++++++++++++++++++------- + m4/tuklib_integer.m4 | 78 +++++++++++++++++++++++++++++++++++----------- + 2 files changed, 110 insertions(+), 31 deletions(-) + +commit d9b318f5b8a3524e90ac17471e79db7de012caf5 +Author: Lasse Collin +Date: 2025-12-09 18:02:23 +0200 + + CI: Update MSYS2 + + .github/workflows/msys2.yml | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +commit 700e32f1b7dd6d674f12bbdabc35a3bc4a2860f5 +Author: Lasse Collin +Date: 2025-12-09 18:02:05 +0200 + + CI: Update DragonFly BSD + + .github/workflows/dragonflybsd.yml | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit a7b749389c64dfbee1c29d88e61e71186b472784 +Author: Lasse Collin +Date: 2025-12-09 17:58:52 +0200 + + CI: Update Solaris + + .github/workflows/solaris.yml | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit e0b3c6ee0ab3243e48291e5f9b6333c3d052311d +Author: Lasse Collin +Date: 2025-12-09 17:56:58 +0200 + + CI: Update NetBSD + + .github/workflows/netbsd.yml | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit fbc1046248cfe3c730437ba7d98dde89b0eced3e +Author: Lasse Collin +Date: 2025-12-09 17:54:54 +0200 + + CI: Update OpenBSD + + .github/workflows/openbsd.yml | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 8f0579ba5650bbbfa88a04adf8115b8fb4aff476 +Author: Lasse Collin +Date: 2025-12-09 17:52:01 +0200 + + CI: Update FreeBSD + + .github/workflows/freebsd.yml | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +commit f8424b0416266c393c84a315e3bdedbc19efa0a8 +Author: Lasse Collin +Date: 2025-12-09 17:40:05 +0200 + + Update THANKS + + THANKS | 1 + + 1 file changed, 1 insertion(+) + +commit c4340692d4490ff80e897d4840fadc033c46d81a +Author: Lasse Collin +Date: 2025-12-09 13:01:36 +0200 + + Translations: Add src/xz/sandbox.c to POTFILES.in + + There are no strings to translate in that file now, but it's good to + list it anyway in case translatable strings are added in the future. + + Fixes: 374868d81d47 ("xz: Move sandboxing code to sandbox.c and improve Landlock sandbox.") + + po/POTFILES.in | 1 + + 1 file changed, 1 insertion(+) + +commit b8af36920b0857c0329f61414df5989093386db1 +Author: Lasse Collin +Date: 2025-12-09 12:55:45 +0200 + + xz: Never translate "Failed to enable the sandbox" + + This was already the case in practice because I had forgotten to list + src/xz/sandbox.c in po/POTFILES.in. However, it seems better to never + translate this particular error message. It should almost never occur + and if it does, an untranslated message is should make it easier to + find bug reports about it. + + src/xz/sandbox.c | 24 +++++++++++++++--------- + 1 file changed, 15 insertions(+), 9 deletions(-) + +commit 5a7fc1af3d9ec115f796cba110eb78e63ff1df5c +Author: Lasse Collin +Date: 2025-12-09 12:27:15 +0200 + + Translations: Update the Swedish man page translations + + po4a/sv.po | 15 +++++---------- + 1 file changed, 5 insertions(+), 10 deletions(-) + +commit 88531e5463d9f028387a11b78d53c9c269e6a3a0 +Author: Lasse Collin +Date: 2025-12-09 12:26:24 +0200 + + Translations: Update the Romanian man page translations + + po4a/ro.po | 18 +++++++----------- + 1 file changed, 7 insertions(+), 11 deletions(-) + +commit 8a817277192e6379a8c6f2eefbaed65c6b7d92fa +Author: Lasse Collin +Date: 2025-12-09 12:13:36 +0200 + + Update THANKS + + THANKS | 1 + + 1 file changed, 1 insertion(+) + +commit 1ec43aa7810d159ed76a6188b17c0bb474ca5ab5 +Author: Lasse Collin +Date: 2025-12-09 12:13:36 +0200 + + CMake: Autodetect unaligned access support on LoongArch + + This still relies on CMAKE_SYSTEM_PROCESSOR. CMake 4.1 added more + CMAKE__COMPILER_ARCHITECTURE_ID values to detect the arch in + a more defined manner, but 4.1 is too new to require for now. + + Thanks-to: Li Chenggang + Closes: https://github.com/tukaani-project/xz/pull/186 + + cmake/tuklib_integer.cmake | 81 ++++++++++++++++++++++++++++++++++++++++++++++ + 1 file changed, 81 insertions(+) + +commit 7971566247914ec1854b125ff99c2a617f5c1e3a +Author: Lasse Collin +Date: 2025-12-09 12:13:36 +0200 + + Autotools: Autodetect unaligned access support on LoongArch + + According to [1] sections 7.4, 8.1, and 8.2, desktop and server + processors support fast unaligned access, but embedded systems likely + don't. + + It's important that TUKLIB_FAST_UNALIGNED_ACCESS isn't defined when + -mstrict-align is in use because it will result in slower binaries + even if running on a processor that supports fast unaligned access. + It's because compilers will translate multibyte memcpy() to multiple + byte-by-byte instructions instead of wider loads and stores. The + compression times from [2] show this well: + + Unaligned access CFLAGS Compression time + enabled -O2 -mno-strict-align 66.1 s + disabled -O2 -mno-strict-align 79.5 s + disabled -O2 -mstrict-align 79.9 s + enabled -O2 -mstrict-align 129.1 s + + There currently (GCC 15.2) is no preprocessor macro on LoongArch + to detect if -mstrict-align or -mno-strict-align is in effect (the + default is -mno-strict-align). Use heuristics to detect which of the + flags is in effect. + + [1] https://github.com/loongson/la-softdev-convention/blob/v0.2/la-softdev-convention.adoc + [2] https://github.com/tukaani-project/xz/pull/186#issuecomment-3494570304 + + Thanks-to: Li Chenggang + Thanks-to: Xi Ruoyao + See: https://github.com/tukaani-project/xz/pull/186 + + m4/tuklib_integer.m4 | 68 ++++++++++++++++++++++++++++++++++++++++++++++++++++ + 1 file changed, 68 insertions(+) + +commit 338f952c0039b153a1fbdf6a535c4bd6a61f33cd +Author: Lasse Collin +Date: 2025-11-26 13:50:57 +0200 + + xz: Silence clang -Wunreachable-code-break + + Fixes: a165d7df1964 ("xz: Add a new --filters-help option.") + + src/xz/args.c | 1 - + 1 file changed, 1 deletion(-) + +commit 723cee44d076281bce9c3d7bd2c17b0680bd8884 +Author: Lasse Collin +Date: 2025-11-26 13:50:57 +0200 + + liblzma: Remove unwanted semicolons + + These didn't affect control flow. + + src/liblzma/common/vli_decoder.c | 2 +- + src/liblzma/lzma/lzma_common.h | 4 ++-- + src/liblzma/rangecoder/range_decoder.h | 6 +++--- + 3 files changed, 6 insertions(+), 6 deletions(-) + +commit 524f6a7384f15e52ec13c72adbdf18ddeecbc735 +Author: Lasse Collin +Date: 2025-11-26 13:50:57 +0200 + + Tests: Remove an unwanted semicolon from a macro definition + + It didn't affect control flow. + + Fixes: fe3bd438fb11 ("Tests: Fix memory leaks in test_block_header.") + + tests/test_block_header.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 0f41a28bfab98d1f5171ee5c9da6dfdc15f62549 +Author: Lasse Collin +Date: 2025-11-26 13:50:57 +0200 + + Build: Use -Wextra-semi-stmt when supported + + CMakeLists.txt | 1 + + configure.ac | 1 + + 2 files changed, 2 insertions(+) + +commit 91170c8cab72b94a697f5228f4df13483ef5be91 +Author: Lasse Collin +Date: 2025-11-26 13:50:57 +0200 + + CI: Add clang-cl + + Fixes: https://github.com/tukaani-project/xz/issues/18#issuecomment-3577456136 + + .github/workflows/msvc.yml | 46 ++++++++++++++++++++++++++++++++++++++++++++++ + 1 file changed, 46 insertions(+) + +commit a3c6cb09113de978b971cbdacf5c4890d4237c28 +Author: Lasse Collin +Date: 2025-11-26 13:50:57 +0200 + + xz/Windows: Add a missing #include to fix the build with clang-cl + + Fixes: https://github.com/tukaani-project/xz/issues/18#issuecomment-1986829734 + Fixes: https://github.com/tukaani-project/xz/issues/18#issuecomment-3577456136 + + src/xz/util.c | 4 ++++ + 1 file changed, 4 insertions(+) + +commit c410ccc62511ec95b20639defb10650ef9b75e8c +Author: Lasse Collin +Date: 2025-11-25 21:05:37 +0200 + + xz: Check return value of sigaction() before calling raise() + + Fixes: Coverity CID 456022 + + src/xz/signals.c | 10 ++++++++-- + 1 file changed, 8 insertions(+), 2 deletions(-) + +commit 6cc2da0a4b180b71cb6e781c897052def103ad3e +Author: Lasse Collin +Date: 2025-11-02 12:57:00 +0200 + + liblzma: Refactor a loop in lzma_filters_copy() + + Arguably it's nicer if i doesn't wrap around when the loop terminates. + + Fixes: Coverity CID 464589 + Fixes: 6d118a0b9def ("Add lzma_filters_copy().") + + src/liblzma/common/filter_common.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +commit 90b67853d57562c5ad4fdb3215ceb9b9bd3958bf +Author: Lasse Collin +Date: 2025-11-02 12:17:50 +0200 + + liblzma: Silence two Coverity warnings + + lzma_lzma_decoder_memusage() returns UINT64_MAX if lc/lp/pb aren't + valid. alone_decoder.c and lzip_decoder.c didn't check the return + value because in both it is known that lc/lp/pb are valid. Make them + call the _nocheck() variant instead which skips the validation (it + already existed for LZMA2's internal use). + + Fixes: Coverity CID 464658 + Fixes: Coverity CID 897069 + + src/liblzma/common/alone_decoder.c | 6 ++++-- + src/liblzma/common/lzip_decoder.c | 3 ++- + src/liblzma/lzma/lzma_decoder.h | 11 ++++++----- + 3 files changed, 12 insertions(+), 8 deletions(-) + +commit be365b701024b9acbfef4035c6433a0fbb4be823 +Author: Lasse Collin +Date: 2025-11-02 12:17:50 +0200 + + liblzma: Fix a harmless read of shared variable without mutex + + The partial_update_mode enumeration had three states, _DISABLED, + _START, and _ENABLED. Main thread changed it from _DISABLED to _START + while holding a mutex. Once set to _START, worker thread changed it + to _ENABLED without a mutex. Later main thread read it without a mutex, + so it could see either _START or _ENABLED. However, it made no + difference because the main thread checked for != _DISABLED, so + it didn't matter if it saw _START or _ENABLED. + + Nevertheless, such things must not be done. It's clear it was a mistake + because there were two comments that directly contradicted each + other about how the variable was accessed. + + Split the enumeration into two booleans: + + - partial_update_enabled: A worker thread locks the mutex to read + this variable and the main thread locks the mutex to change the + value. Because only the main thread modifies the variable, the + main thread can read the value without locking the mutex. + This variable replaces the _DISABLED -> _START transition. + + - partial_update_started is for worker thread's internal use and thus + needs no mutex. This replaces the _START -> _ENABLED transition. + + Fixes: Coverity CID 456025 + Fixes: bd93b776c1bd ("liblzma: Fix a deadlock in threaded decoder.") + + src/liblzma/common/stream_decoder_mt.c | 79 +++++++++++++++------------------- + 1 file changed, 34 insertions(+), 45 deletions(-) + +commit 2686554da0103580a472919220931c397b1d1f7a +Author: Lasse Collin +Date: 2025-11-02 12:17:50 +0200 + + CI: Add Coverity Scan + + Co-authored-by: Lasse Collin + Fixes: https://github.com/tukaani-project/xz/issues/198 + + .github/workflows/coverity.yml | 38 ++++++++++++++++++++++++++++++++++++++ + 1 file changed, 38 insertions(+) + +commit 1b30734c9c08a3f628574d172f1a6034277a2163 +Author: Lasse Collin +Date: 2025-11-25 13:55:35 +0200 + + Change the sorting order in THANKS + + In short, sort the names with this command (-k1,1 isn't needed because + the lines with names start with " -"): + + LC_ALL=en_US.UTF-8 sort -k2,2 -k3,3 -k4,4 -k5,5 + + When THANKS was created, I wrote the names as "First Last" and attempted + to keep them sorted by last name / surname / family name. This works + with many names in THANKS, but it becomes complicated with names that + don't fit that pattern. For example, names that are written as + "Last First" can be manually sorted by family name, but only if one + knows which part of the name is the family name.[*] And of course, + the concept of first/last name doesn't apply to all names. + + [*] xz had a co-maintainer who could help me with such names, + but fortunately he isn't working on the project anymore. + + Adding the names in chronological order could have worked too, although + if something is contributed by multiple people, one would still have to + decide how to sort the names within the batch. Another downside would + be that if THANKS is updated in more than one work-in-progress branch, + merge conflicts would occur more often. + + Don't attempt to sort by last name. Let's be happy that people tend to + provide names that can be expressed in a reasonable number of printable + Unicode characters. In practice, people have been even nicer: if the + native language doesn't use a Latin script alphabet, people often provide + a transliterated name (only or in addition to the original spelling), + which is very much appreciated by those who don't know the native script. + + Treat the names as opaque strings or space-separated strings for sorting + purposes. This means that most names will now be sorted by first name. + There still are many choices how to sort: + + (1) LC_ALL=en_US.UTF-8 sort + + The project is in English, so this may sound like a logical choice. + However, spaces have a lower weight than letters, which results in + this order: + + - A Ba + - Ab C + - A Bc + - A Bd + + (2) LC_ALL=en_US.UTF-8 sort -k2,2 + + This first sorts by the first word and then by the rest of the + string. It's -k2,2 instead of -k1,1 to skip the leading dash. + + - A Ba + - A Bc + - A Bd + - Ab C + + I like this more than (1). One could add -k3,3 -k4,4 -k5,5 ... too. + With current THANKS it makes no difference but it might some day. + + NOTE: The ordering in en_US.UTF-8 can differ between libc versions + and operating systems. Luckily it's not a big deal in THANKS. + + (3) LC_ALL=en_US.UTF-8 sort -f -k2,2 + + Passing -f (--ignore-case) to sort affects sorting of single-byte + characters but not multibyte characters (GNU coreutils 9.9): + + No -f With -f LC_ALL=C + Aa A.A A.A + A.A Aa Aa + Ää Ää Ä.Ä + Ä.Ä Ä.Ä Ää + + In GNU coreutils, the THANKS file is sorted using "sort -f -k1,1". + There is also a basic check that the en_US.UTF-8 locale is + behaving as expected. + + (4) LC_ALL=C sort + + This sorts by byte order which in UTF-8 is the same as Unicode + code point order. With the strings in (1) and (2), this produces + the same result as in (2). The difference in (3) can be seen above. + + The results differ from en_US.UTF-8 when a name component starts + with a lower case ASCII letter (like "von" or "de"). Worse, any + non-ASCII characters sort after ASCII chars. These properties might + look weird in English language text, although it's good to remember + that en_US.UTF-8 sorting can appear weird too if one's native + language isn't English. + + The choice between (2) and (4) was difficult but I went with (2). + + ;-) + + THANKS | 414 ++++++++++++++++++++++++++++++++--------------------------------- + 1 file changed, 207 insertions(+), 207 deletions(-) + +commit 8bb516887c1912106a72db96216cab46954e6190 +Author: Lasse Collin +Date: 2025-11-23 20:39:28 +0200 + + Landlock: Add missing #ifdefs + + The build was broken on distros that have an old . + + Fixes: 2b2652e914b1 ("Landlock: Workaround a bug in RHEL 9 kernel") + + src/common/my_landlock.h | 6 ++++++ + 1 file changed, 6 insertions(+) + +commit 23c95c6a7c374962103dbd35cb79fdd5a6fe8b52 +Author: Lasse Collin +Date: 2025-11-23 20:13:50 +0200 + + Update THANKS + + THANKS | 2 ++ + 1 file changed, 2 insertions(+) + +commit 2b2652e914b1c38d4c009a8dcac11dfee9c7e008 +Author: Lasse Collin +Date: 2025-11-23 20:13:49 +0200 + + Landlock: Workaround a bug in RHEL 9 kernel + + If one runs xz 5.8.0 or 5.8.1 from some other distribution in a container + on RHEL 9, xz will fail with the message "Failed to enable the sandbox". + + RHEL 9 kernel since 5.14.0-603.el9 (2025-07-30) claims to support + Landlock ABI version 6, but it lacks support for LANDLOCK_SCOPE_SIGNAL. + The issue is still present in 5.14.0-643.el9 (2025-11-22). Red Hat is + aware of the issue, but I don't know when it will be fixed. + + The sandbox is meant to be transparent to users, thus there isn't and + won't be a command line option to disable it. Instead, add a workaround + to keep xz working on the buggy RHEL 9 kernels. + + Reported-by: Richard W.M. Jones + Thanks-to: Pavel Raiskup + Tested-by: Orgad Shaneh + Tested-by: Richard W.M. Jones + Fixes: https://github.com/tukaani-project/xz/issues/199 + Link: https://issues.redhat.com/browse/RHEL-125143 + Link: https://bugzilla.redhat.com/show_bug.cgi?id=2407105 + Link: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/65BDSY56R5ZJRTUC4B6CIVCVLY4LG4ME/ + + src/common/my_landlock.h | 27 ++++++++++++++++++++++++++- + 1 file changed, 26 insertions(+), 1 deletion(-) + +commit ee75c76958dd891906745125590563ab64e85995 +Author: Lasse Collin +Date: 2025-11-23 20:13:37 +0200 + + Landlock: Cache the ABI version + + In xz it can avoid up to two syscalls that query the ABI version. + + src/common/my_landlock.h | 14 +++++++++++++- + 1 file changed, 13 insertions(+), 1 deletion(-) + +commit f57b1716cd0853474980c90a892204dee9bdea1a +Author: Lasse Collin +Date: 2025-11-03 14:52:45 +0200 + + Update THANKS + + THANKS | 1 + + 1 file changed, 1 insertion(+) + +commit 211cde09236165dbd379644753337be1de64b151 +Author: Lasse Collin +Date: 2025-11-03 12:41:31 +0200 + + mythread.h: Fix the build on Emscripten when threading is disabled + + To make a non-threaded liblzma-only build work with WASI SDK, + and mythread_sigmask() were omitted from mythread.h in the commit + 81db3b889830. This broke non-threaded full build with Emscripten because + src/xz/signals.c needs mythread_sigmask() (liblzma-only build was fine). + + If __wasm__ is defined, omit and mythread_sigmask() in + non-threaded builds only when __EMSCRIPTEN__ isn't defined. + + Reported-by: Marcus Tillmanns + Thanks-to: ChanTsune + Fixes: https://github.com/tukaani-project/xz/issues/161 + Fixes: 81db3b889830 ("mythread.h: Disable signal functions in builds targeting Wasm + WASI.") + + src/common/mythread.h | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +commit cbf50a99e3f0c2735fd573e166baf37df063b37b +Author: Lasse Collin +Date: 2025-11-03 11:56:32 +0200 + + Translations: Update the Serbian man page translations + + The earlier bug fixes are now included in the Translation Project. + + po4a/sr.po | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +commit 68d1591187512d8872615c8a904d43073440d93f +Author: Lasse Collin +Date: 2025-11-02 19:40:55 +0200 + + xz: Silence a compiler warning when signals_block_count is unused + + Move the static variable signals_block_count to the #ifndef block + that already has the functions that need the variable. + + src/xz/signals.c | 7 ++++--- + 1 file changed, 4 insertions(+), 3 deletions(-) + +commit beca015891fbd22657663ec23809184dda0677cd +Author: Lasse Collin +Date: 2025-11-02 17:45:20 +0200 + + xz: Silence a warning from Clang on glibc systems + + Fixes: e8838b2f5922 ("xz: Look at resource limits when determining the default memlimit") + + src/xz/hardware.c | 13 +++++++++++++ + 1 file changed, 13 insertions(+) + +commit 3e394278ed537575b5db43c09989c6ca99f762de +Author: Lasse Collin +Date: 2025-11-02 14:37:52 +0200 + + Translations: Update the Serbian man page translations + + Preserve the bug fixes made in 71ad5e82888f and 4f52e7387012 because + upstream hasn't included them. + + po4a/sr.po | 17 ++++++----------- + 1 file changed, 6 insertions(+), 11 deletions(-) + +commit ace28e35732fc43f58ea1aac146fdb73084f2548 +Author: Lasse Collin +Date: 2025-11-02 14:27:10 +0200 + + Translations: Update the Korean man page translations + + po4a/ko.po | 17 ++++++----------- + 1 file changed, 6 insertions(+), 11 deletions(-) + +commit ffd14a099f0d8c92d4f74018d3a52bd2327df4db +Author: Lasse Collin +Date: 2025-11-02 14:24:43 +0200 + + Translations: Update the Italian man page translations + + po4a/it.po | 15 +++++---------- + 1 file changed, 5 insertions(+), 10 deletions(-) + +commit 6f3152874ee375b581aa858fccab7865dcbf6403 +Author: Lasse Collin +Date: 2025-11-02 14:12:23 +0200 + + Translations: Update the Ukrainian man page translations + + po4a/uk.po | 15 +++++---------- + 1 file changed, 5 insertions(+), 10 deletions(-) + +commit ef67e051d71938a23713d9782a3f0c470ac51b1e +Author: Lasse Collin +Date: 2025-09-28 18:32:05 +0300 + + liblzma: Fix build on old Linux/glibc on ARM64 + + getauxval() can be available even if HWCAP_CRC32 isn't #defined, so + both have to be checked. HWCAP_CRC32 was added in glibc 2.24 (2016). + + Fixes: https://github.com/tukaani-project/xz/issues/190 + + CMakeLists.txt | 7 +++++++ + configure.ac | 6 +++++- + src/liblzma/check/crc32_arm64.h | 5 +++-- + src/liblzma/check/crc_common.h | 3 ++- + 4 files changed, 17 insertions(+), 4 deletions(-) + +commit 71c2ede383f6dc6661b8a9d844f4bcf81c563643 +Author: Lasse Collin +Date: 2025-10-31 14:36:26 +0200 + + CI: Update Solaris + + .github/workflows/solaris.yml | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 02da8de0edddd31a3e9818c2200b97c446d6eb5b +Author: Lasse Collin +Date: 2025-10-31 14:32:47 +0200 + + CI: Update DragonFly BSD + + .github/workflows/dragonflybsd.yml | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +commit 75b18d325f6a993eac2d5f44c7aad941aa20df94 +Author: Lasse Collin +Date: 2025-10-31 14:30:24 +0200 + + CI: Update NetBSD + + .github/workflows/netbsd.yml | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 0102072915f38e747ee55aa9c52351dfe81b8c14 +Author: Lasse Collin +Date: 2025-10-31 14:21:37 +0200 + + CI: Update FreeBSD + + .github/workflows/freebsd.yml | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 83419783a67a6097c7d5ed5663734c04eb8c8b55 +Author: Lasse Collin +Date: 2025-10-31 14:17:30 +0200 + + CI: Update OpenBSD + + .github/workflows/openbsd.yml | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +commit 3b5f5af9bcd9b5752608a099fcfab331c0c613b3 +Author: Lasse Collin +Date: 2025-10-26 12:07:34 +0200 + + Update THANKS + + THANKS | 2 ++ + 1 file changed, 2 insertions(+) + +commit e8838b2f59221f46bf34c79431d286e8ac34fb8b +Author: Kirill A. Korinsky +Date: 2025-10-26 12:07:34 +0200 + + xz: Look at resource limits when determining the default memlimit + + When no memory usage limits have been set by the user, the default + for multithreaded mode has been 1/4 of total RAM. If this limit is + too high and memory allocation fails, liblzma (and xz) fail. Perhaps + liblzma should handle it better by reducing the number of threads + and continuing with the amount of memory it can allocate, but currently + that isn't the case. + + If resource limits were set to about 1/4 of RAM or lower, then xz + could fail for the above reason. This commit makes xz look at + RLIMIT_DATA, RLIMIT_AS, and RLIMIT_VMEM when they are available, + and set the limit 64 MiB below the lowest of those limits. This is + more or less a hack just like the 1/4-of-RAM method is, but this is + simple and quick to implement. + + On Linux, there are other limits like cgroup v2 memory.max which + can still make xz fail. The same is likely possible with FreeBSD's + rctl(8). + + Co-authored-by: Lasse Collin + Thanks-to: Fangrui Song + Fixes: https://github.com/tukaani-project/xz/issues/195 + Closes: https://github.com/tukaani-project/xz/pull/196 + + CMakeLists.txt | 3 +++ + configure.ac | 4 ++-- + src/xz/hardware.c | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ + 3 files changed, 64 insertions(+), 2 deletions(-) + +commit 8d26b72915e0d373f898b55935505857c30dbdb3 +Author: Lasse Collin +Date: 2025-10-01 12:46:26 +0300 + + CI: Remove windows-2019 (which had VS 2019) + + GitHub has removed the runner image. + + A breakage with CLMUL CRC code occurred with VS 2019 but not 2022, + see b5a5d9e3f702. MS supports VS 2019 for a few more years, so it's + unfortunate that it can no longer be tested on GitHub. + + .github/workflows/msvc.yml | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 32412bd2a42fda639765c3046e91f964e286b6d9 +Author: Lasse Collin +Date: 2025-09-29 19:34:58 +0300 + + Update THANKS + + THANKS | 3 +++ + 1 file changed, 3 insertions(+) + +commit eaa150df9803c982adf28d4533c7a4264ea17757 +Author: Lakshmi-Surekha +Date: 2025-07-17 23:27:06 -0500 + + xz: Don't fsync() directories on AIX + + It fails with EBADF. + + Fixes: https://github.com/tukaani-project/xz/issues/188 + Closes: https://github.com/tukaani-project/xz/pull/189 + + src/xz/file_io.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +commit 61b114e92f53b7977aad69f8a7130fc25d8a80e5 +Author: Lasse Collin +Date: 2025-09-29 18:37:19 +0300 + + liblzma: Document that lzma_allocator.free(opaque, NULL) is possible + + It feels better to fix the docs than change the code because this + way newly-written applications will be forced to be compatible with + the lzma_allocator behavior of old liblzma versions. It can matter + if someone builds the application against an older liblzma version. + + Fixes: https://github.com/tukaani-project/xz/issues/183 + + src/liblzma/api/lzma/base.h | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +commit 6d287a3ae90e1b990294f3d5264003d81e853c5e +Author: Simon Josefsson +Date: 2025-08-26 09:41:02 +0200 + + Update GPLv2 and LGPLv2.1 copies from gnu.org + + Closes: https://github.com/tukaani-project/xz/pull/194 + + COPYING.GPLv2 | 9 ++++----- + COPYING.LGPLv2.1 | 9 ++++----- + 2 files changed, 8 insertions(+), 10 deletions(-) + +commit 41a421dbadf13af2a59aaafa43836026b83340a7 +Author: Lasse Collin +Date: 2025-05-24 12:07:13 +0300 + + tests/test_suffix.sh: Avoid variables in printf format string + + tests/test_suffix.sh | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +commit a2c6aa8764a2e5248572d461305bd05c5950bf94 +Author: Lasse Collin +Date: 2025-05-24 12:02:09 +0300 + + build-aux/manconv.sh: Add quotes + + build-aux/manconv.sh | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +commit 8e4153253eea2b5a9466467b2ce0249e56277c9a +Author: Lasse Collin +Date: 2025-05-24 12:01:35 +0300 + + windows/build.bash: Add quotes + + In this case they aren't needed but it's better style. + + windows/build.bash | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +commit 37a57a926dd1ae6cde1544d8487e27982d2db4a4 +Author: Lasse Collin +Date: 2025-05-24 12:00:13 +0300 + + po4a/update-po: Ensure that a glob won't expand to a command line option + + po4a/update-po | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit e3ba73034a3f8e414882af39d62f479e9717e061 +Author: Lasse Collin +Date: 2025-05-24 11:57:23 +0300 + + liblzma: validate_map.sh: Catch some unlikely errors + + src/liblzma/validate_map.sh | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +commit 067cecdea69067973e44dc1afb9be763faccecb2 +Author: Lasse Collin +Date: 2025-05-24 11:55:59 +0300 + + CI: Catch unsupported arguments in ci_build.bash + + build-aux/ci_build.bash | 4 ++++ + 1 file changed, 4 insertions(+) + +commit 4fc6208abebfe6b8c8348c412b4bcc594ae11c88 +Author: Lasse Collin *** 2120 LINES SKIPPED *** From nobody Tue Dec 30 03:51:23 2025 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dgJzt34H4z6Mm29; Tue, 30 Dec 2025 03:51:38 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4dgJzs5bCrz3ZLx; Tue, 30 Dec 2025 03:51:37 +0000 (UTC) (envelope-from kostikbel@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: from tom.home (kib@localhost [127.0.0.1] (may be forged)) by kib.kiev.ua (8.18.1/8.18.1) with ESMTP id 5BU3pN7S028084; Tue, 30 Dec 2025 05:51:26 +0200 (EET) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua 5BU3pN7S028084 Received: (from kostik@localhost) by tom.home (8.18.1/8.18.1/Submit) id 5BU3pNmD028083; Tue, 30 Dec 2025 05:51:23 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Tue, 30 Dec 2025 05:51:23 +0200 From: Konstantin Belousov To: Kristof Provost Cc: Ka Ho Ng , src-committers@freebsd.org, dev-commits-src-all@freebsd.org, dev-commits-src-branches@freebsd.org Subject: Re: git: 112c453ba910 - stable/15 - geom(9): struct bio KBI fix Message-ID: References: <69489316.252e6.179063dd@gitrepo.freebsd.org> List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FORGED_GMAIL_RCVD,FREEMAIL_FROM, NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=4.0.2 X-Spam-Checker-Version: SpamAssassin 4.0.2 (2025-08-27) on tom.home X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:6939, ipnet:2001:470::/32, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Rspamd-Queue-Id: 4dgJzs5bCrz3ZLx On Mon, Dec 29, 2025 at 10:22:50AM +0100, Kristof Provost wrote: > On 22 Dec 2025, at 1:38, Ka Ho Ng wrote: > > The branch stable/15 has been updated by khng: > > > > URL: https://cgit.FreeBSD.org/src/commit/?id=112c453ba91012f19ed140c56a3ac8fc929ddabb > > > > commit 112c453ba91012f19ed140c56a3ac8fc929ddabb > > Author: Ka Ho Ng > > AuthorDate: 2025-12-21 22:45:03 +0000 > > Commit: Ka Ho Ng > > CommitDate: 2025-12-22 00:37:40 +0000 > > > > geom(9): struct bio KBI fix > > > > The struct bio was changed after cb85c2e2e995 on the branch. To fix > > this, move BIO_ERROR flag to another value, and now BIO_ERROR_COMPAT > > occupies 0x1 instead. Also, introduce b_error_compat field at the > > place > > where the old bio_error was. > > > > This allows non-CAM(9) disk drivers and software volume manager > > modules > > compiled against 15.0-RELEASE kernel to work on 15-STABLE kernel > > again. > > > > Reviewed by: kib > > Differential Revision: https://reviews.freebsd.org/D54327 > > > > Approved by: re (cperciva) > > I’m seeing panics on boot now: > > vtnet0: Ethernet address: 58:9c:fc:0c:60:85 > vtnet0: netmap queues/slots: TX 1/1024, RX 1panic: Memory modified after > free 0xfffff800038b51a8 (424, g_bio) + 0 = deadc0dedeacc0de > > cpuid = 6 > time = 1 > KDB: stack backtrace: > db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame > 0xfffffe008d5679a0 > vpanic() at vpanic+0x136/frame 0xfffffe008d567ad0 > panic() at panic+0x43/frame 0xfffffe008d567b30 > trash_ctor() at trash_ctor+0x74/frame 0xfffffe008d567b40 > item_ctor() at item_ctor+0x59/frame 0xfffffe008d567b90 > g_clone_bio() at g_clone_bio+0x1d/frame 0xfffffe008d567bb0 > g_part_start() at g_part_start+0x96/frame 0xfffffe008d567c40 > g_io_request() at g_io_request+0x2ca/frame 0xfffffe008d567c70 > g_read_data() at g_read_data+0x95/frame 0xfffffe008d567cb0 > g_raid_md_taste_intel() at g_raid_md_taste_intel+0x1d8/frame > 0xfffffe008d567e50 > g_raid_taste() at g_raid_taste+0x18e/frame 0xfffffe008d567ea0 > g_new_provider_event() at g_new_provider_event+0xaa/frame > 0xfffffe008d567ec0 > g_run_events() at g_run_events+0x104/frame 0xfffffe008d567ef0 > fork_exit() at fork_exit+0x82/frame 0xfffffe008d567f30 > fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe008d567f30 > --- trap 0, rip = 0, rsp = 0, rbp = 0 --- > KDB: enter: panic > [ thread pid 13 tid 100069 ] > Stopped at kdb_enter+0x33: movq $0,0x121aa92(%rip) > db> > > With this commit (and the follow-up “geom(9): unset the BIO_ERROR_COMPAT > flag correctly”) reverted the VM boots again. Does the following help? diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c index dc90bd3add22..2368f863a248 100644 --- a/sys/kern/vfs_bio.c +++ b/sys/kern/vfs_bio.c @@ -4523,8 +4523,6 @@ biodone(struct bio *bp) bp->bio_flags |= BIO_ERROR_COMPAT; } done(bp); - bp->bio_error_compat = 0; - bp->bio_flags &= ~BIO_ERROR_COMPAT; } } From nobody Tue Dec 30 04:17:14 2025 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dgKYn2Wsdz6Mnp6 for ; Tue, 30 Dec 2025 04:17:33 +0000 (UTC) (envelope-from khng300@gmail.com) Received: from mail-ot1-x32b.google.com (mail-ot1-x32b.google.com [IPv6:2607:f8b0:4864:20::32b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dgKYl4vpdz3bdx for ; Tue, 30 Dec 2025 04:17:31 +0000 (UTC) (envelope-from khng300@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=SACTh3+V; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of khng300@gmail.com designates 2607:f8b0:4864:20::32b as permitted sender) smtp.mailfrom=khng300@gmail.com Received: by mail-ot1-x32b.google.com with SMTP id 46e09a7af769-7c6e9538945so7025584a34.1 for ; Mon, 29 Dec 2025 20:17:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1767068245; x=1767673045; darn=freebsd.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=hZrIeaYTRpWI/V1lQcYUDwkEsK20+xQ44ieIQ0pqK3E=; b=SACTh3+VTlXOftisv3sgr5y8GL9Ej8t2verKUgQabhDt4fdxMrlN/1JCr0SRK3dl42 IyaLK6LSi7NyAUneDrj95CVsft7Y7A36CZxf5tzNuA/aTxtEOOzzWmvFZQGtViKdKBoC 7kh5Zo2gLm1ehZnd41/vOx3IZcdbmGcHAbs47ZaDLsgO8WHgjNAbbcA4LXm9khmW9oil f6i2sqlf0yCdaXqerezbp8S4E/1RpgRaNuKHqiJGvs1vBO77VUA6dSKou4WYA/WLHDHv iukMoMDdnWGVQjHwGBf32AqtDCrhFPBtOsxXXI1RCZZn6aXFl7eNDNU5VAM6p9H/0xAM rPtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767068245; x=1767673045; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=hZrIeaYTRpWI/V1lQcYUDwkEsK20+xQ44ieIQ0pqK3E=; b=u0RWg1U5181tYPS4GKmcOBOzYfssO2NAZDq6Ge5bgJpRTW1knapXYiSq7sR8FijsNQ 4OP6Jih/g7HA2NURyKkV4wax+U5TMWP8KuJAwNJXFzJXUI+Y4JICLdHuBd/yxHa+gprP Y75P1dSO08GfNXa4suEPBok5QqB4dji35U79N+W5zcu4Z9Jzp+/Un2VDsGsviDOPoRdy fxwC0+MF/IW7l8pKwAOOHv6u/BWvPOtHJ1gkivpXZ49KMwj0x12FDin8LQ300vsazWT8 tphi8ftyT4cDozhMAV3vq+WysjB2TZ3XSSR7ERv+8hwpXzvXlijkNSTj6LAdLO81VqlP xqzQ== X-Forwarded-Encrypted: i=1; AJvYcCUAcd+gy63KwEJyk5o2QhXL8woaZTUfvMXntGIFt5DFVTbi1dseyHQmM3D1H6JTYaQ3jDxgzrqe66VzN1BJdkmBBgETHj6Vn4Y=@freebsd.org X-Gm-Message-State: AOJu0Yw9H0zg7wQ/vbj74+uIHvucNzCLTWJMjWdwUU74n23LKzMxhjpi XNDyrkPMfWRt9gj9xjeZpPyuVeB79oest1FLx26ehJMJh3t1efWoi/56WtU1MeX3jhyI2Nr42iC fTUSCBcH/kI7OFGErKllF/AlnO803uOY= X-Gm-Gg: AY/fxX4KJ8Ymwut+l6lFm/4SNQL5GiSrNhsLG2G23J5OoRy8EaToM0mgEPoYltuGAKg kLQMz6mNMn6Kjd6ZIe++RiaUr0NBK7YeGf35i0VLLc4W+QsvbAb9JfD2V/CaOZWe0c4DIsThza9 +4axgM1qU/neFAGd3xAWE/bJ1BoFOBnWhH49Zzwedqh61hYs6CDXqg+N4CaW1C8ruf7H7w1otx2 6PYbi1JEwg0HO+QqJPJS3ecO580a/8sja/T2Zz0CWmff5QqamT+gb095pBM6sDISMo09C0FDOEE tSF5JAiMHod0yKbg3mKQrN/qat2jxSNDK4tq/QMg X-Google-Smtp-Source: AGHT+IEO0NypnSLYeH+wiJmIUdxVOe8SQPjX+ol64Ec5gMJCHLl9mg8foSaTTmo5FREeaes3XYkLNngU7pz72qED+4M= X-Received: by 2002:a4a:ddc1:0:b0:65b:2b26:8022 with SMTP id 006d021491bc7-65cfe667108mr13765193eaf.6.1767068245631; Mon, 29 Dec 2025 20:17:25 -0800 (PST) List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 References: <69489316.252e6.179063dd@gitrepo.freebsd.org> In-Reply-To: From: Ka Ho Ng Date: Mon, 29 Dec 2025 23:17:14 -0500 X-Gm-Features: AQt7F2qS32NMYLMjKObaibR4dGkiwC66bHH-tyLCWrH3dxnsft9fjkXhdCwivLk Message-ID: Subject: Re: git: 112c453ba910 - stable/15 - geom(9): struct bio KBI fix To: Konstantin Belousov Cc: Kristof Provost , Ka Ho Ng , src-committers@freebsd.org, dev-commits-src-all@freebsd.org, dev-commits-src-branches@freebsd.org Content-Type: multipart/alternative; boundary="00000000000013296d064723a3b4" X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.99 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.99)[-0.985]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; RCVD_TLS_LAST(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::32b:from]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; FREEMAIL_TO(0.00)[gmail.com]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_SOME(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCVD_COUNT_ONE(0.00)[1]; MISSING_XM_UA(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; PREVIOUSLY_DELIVERED(0.00)[dev-commits-src-branches@freebsd.org]; MLMMJ_DEST(0.00)[dev-commits-src-branches@freebsd.org]; MID_RHS_MATCH_FROMTLD(0.00)[]; BLOCKLISTDE_FAIL(0.00)[2607:f8b0:4864:20::32b:server fail]; RCPT_COUNT_FIVE(0.00)[6] X-Rspamd-Queue-Id: 4dgKYl4vpdz3bdx --00000000000013296d064723a3b4 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Dec 29, 2025 at 11:08=E2=80=AFPM Ka Ho Ng wrote= : > On Mon, Dec 29, 2025 at 10:51=E2=80=AFPM Konstantin Belousov > wrote: > >> On Mon, Dec 29, 2025 at 10:22:50AM +0100, Kristof Provost wrote: >> > On 22 Dec 2025, at 1:38, Ka Ho Ng wrote: >> > > The branch stable/15 has been updated by khng: >> > > >> > > URL: >> https://cgit.FreeBSD.org/src/commit/?id=3D112c453ba91012f19ed140c56a3ac8= fc929ddabb >> > > >> > > commit 112c453ba91012f19ed140c56a3ac8fc929ddabb >> > > Author: Ka Ho Ng >> > > AuthorDate: 2025-12-21 22:45:03 +0000 >> > > Commit: Ka Ho Ng >> > > CommitDate: 2025-12-22 00:37:40 +0000 >> > > >> > > geom(9): struct bio KBI fix >> > > >> > > The struct bio was changed after cb85c2e2e995 on the branch. To >> fix >> > > this, move BIO_ERROR flag to another value, and now >> BIO_ERROR_COMPAT >> > > occupies 0x1 instead. Also, introduce b_error_compat field at th= e >> > > place >> > > where the old bio_error was. >> > > >> > > This allows non-CAM(9) disk drivers and software volume manager >> > > modules >> > > compiled against 15.0-RELEASE kernel to work on 15-STABLE kernel >> > > again. >> > > >> > > Reviewed by: kib >> > > Differential Revision: https://reviews.freebsd.org/D54327 >> > > >> > > Approved by: re (cperciva) >> > >> > I=E2=80=99m seeing panics on boot now: >> > >> > vtnet0: Ethernet address: 58:9c:fc:0c:60:85 >> > vtnet0: netmap queues/slots: TX 1/1024, RX 1panic: Memory >> modified after >> > free 0xfffff800038b51a8 (424, g_bio) + 0 =3D deadc0dedeacc0de >> > >> > cpuid =3D 6 >> > time =3D 1 >> > KDB: stack backtrace: >> > db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame >> > 0xfffffe008d5679a0 >> > vpanic() at vpanic+0x136/frame 0xfffffe008d567ad0 >> > panic() at panic+0x43/frame 0xfffffe008d567b30 >> > trash_ctor() at trash_ctor+0x74/frame 0xfffffe008d567b40 >> > item_ctor() at item_ctor+0x59/frame 0xfffffe008d567b90 >> > g_clone_bio() at g_clone_bio+0x1d/frame 0xfffffe008d567bb0 >> > g_part_start() at g_part_start+0x96/frame 0xfffffe008d567c40 >> > g_io_request() at g_io_request+0x2ca/frame 0xfffffe008d567c70 >> > g_read_data() at g_read_data+0x95/frame 0xfffffe008d567cb0 >> > g_raid_md_taste_intel() at g_raid_md_taste_intel+0x1d8/frame >> > 0xfffffe008d567e50 >> > g_raid_taste() at g_raid_taste+0x18e/frame 0xfffffe008d567ea0 >> > g_new_provider_event() at g_new_provider_event+0xaa/frame >> > 0xfffffe008d567ec0 >> > g_run_events() at g_run_events+0x104/frame 0xfffffe008d567ef0 >> > fork_exit() at fork_exit+0x82/frame 0xfffffe008d567f30 >> > fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe008d567f3= 0 >> > --- trap 0, rip =3D 0, rsp =3D 0, rbp =3D 0 --- >> > KDB: enter: panic >> > [ thread pid 13 tid 100069 ] >> > Stopped at kdb_enter+0x33: movq $0,0x121aa92(%rip) >> > db> >> > >> > With this commit (and the follow-up =E2=80=9Cgeom(9): unset the BIO_ER= ROR_COMPAT >> > flag correctly=E2=80=9D) reverted the VM boots again. >> >> Does the following help? >> >> diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c >> index dc90bd3add22..2368f863a248 100644 >> --- a/sys/kern/vfs_bio.c >> +++ b/sys/kern/vfs_bio.c >> @@ -4523,8 +4523,6 @@ biodone(struct bio *bp) >> bp->bio_flags |=3D BIO_ERROR_COMPAT; >> } >> done(bp); >> - bp->bio_error_compat =3D 0; >> - bp->bio_flags &=3D ~BIO_ERROR_COMPAT; >> } >> } >> >> >> Yep that fixes the issue. I committed this as 9cfd75a6f88f. > > Ka Ho > + the missing recipients and the mailing lists. Ka Ho --00000000000013296d064723a3b4 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Mon, Dec 29, 2025 at 11:08=E2=80=AFPM = Ka Ho Ng <khng300@gmail.com>= wrote:
On Mon, Dec 29, 2025 at 10:51=E2=80=AFPM Konstantin Belousov &= lt;kostikbel@gmail= .com> wrote:
On Mon, Dec 29, 2025 at 10:22:50AM +0100, Kristo= f Provost wrote:
> On 22 Dec 2025, at 1:38, Ka Ho Ng wrote:
> > The branch stable/15 has been updated by khng:
> >
> > URL: htt= ps://cgit.FreeBSD.org/src/commit/?id=3D112c453ba91012f19ed140c56a3ac8fc929d= dabb
> >
> > commit 112c453ba91012f19ed140c56a3ac8fc929ddabb
> > Author:=C2=A0 =C2=A0 =C2=A0Ka Ho Ng <khng@FreeBSD.org>
> > AuthorDate: 2025-12-21 22:45:03 +0000
> > Commit:=C2=A0 =C2=A0 =C2=A0Ka Ho Ng <khng@FreeBSD.org>
> > CommitDate: 2025-12-22 00:37:40 +0000
> >
> >=C2=A0 =C2=A0 =C2=A0geom(9): struct bio KBI fix
> >
> >=C2=A0 =C2=A0 =C2=A0The struct bio was changed after cb85c2e2e995 = on the branch. To fix
> >=C2=A0 =C2=A0 =C2=A0this, move BIO_ERROR flag to another value, an= d now BIO_ERROR_COMPAT
> >=C2=A0 =C2=A0 =C2=A0occupies 0x1 instead. Also, introduce b_error_= compat field at the
> > place
> >=C2=A0 =C2=A0 =C2=A0where the old bio_error was.
> >
> >=C2=A0 =C2=A0 =C2=A0This allows non-CAM(9) disk drivers and softwa= re volume manager
> > modules
> >=C2=A0 =C2=A0 =C2=A0compiled against 15.0-RELEASE kernel to work o= n 15-STABLE kernel
> > again.
> >
> >=C2=A0 =C2=A0 =C2=A0Reviewed by:=C2=A0 =C2=A0 kib
> >=C2=A0 =C2=A0 =C2=A0Differential Revision:=C2=A0 https://= reviews.freebsd.org/D54327
> >
> >=C2=A0 =C2=A0 =C2=A0Approved by:=C2=A0 =C2=A0 re (cperciva)
>
> I=E2=80=99m seeing panics on boot now:
>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0vtnet0: Ethernet address: 58:9c:fc:0c:60:85<= br> >=C2=A0 =C2=A0 =C2=A0 =C2=A0vtnet0: netmap queues/slots: TX 1/1024, RX 1= panic: Memory modified after
> free 0xfffff800038b51a8 (424, g_bio) + 0 =3D deadc0dedeacc0de
>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0cpuid =3D 6
>=C2=A0 =C2=A0 =C2=A0 =C2=A0time =3D 1
>=C2=A0 =C2=A0 =C2=A0 =C2=A0KDB: stack backtrace:
>=C2=A0 =C2=A0 =C2=A0 =C2=A0db_trace_self_wrapper() at db_trace_self_wra= pper+0x2b/frame
> 0xfffffe008d5679a0
>=C2=A0 =C2=A0 =C2=A0 =C2=A0vpanic() at vpanic+0x136/frame 0xfffffe008d5= 67ad0
>=C2=A0 =C2=A0 =C2=A0 =C2=A0panic() at panic+0x43/frame 0xfffffe008d567b= 30
>=C2=A0 =C2=A0 =C2=A0 =C2=A0trash_ctor() at trash_ctor+0x74/frame 0xffff= fe008d567b40
>=C2=A0 =C2=A0 =C2=A0 =C2=A0item_ctor() at item_ctor+0x59/frame 0xfffffe= 008d567b90
>=C2=A0 =C2=A0 =C2=A0 =C2=A0g_clone_bio() at g_clone_bio+0x1d/frame 0xff= fffe008d567bb0
>=C2=A0 =C2=A0 =C2=A0 =C2=A0g_part_start() at g_part_start+0x96/frame 0x= fffffe008d567c40
>=C2=A0 =C2=A0 =C2=A0 =C2=A0g_io_request() at g_io_request+0x2ca/frame 0= xfffffe008d567c70
>=C2=A0 =C2=A0 =C2=A0 =C2=A0g_read_data() at g_read_data+0x95/frame 0xff= fffe008d567cb0
>=C2=A0 =C2=A0 =C2=A0 =C2=A0g_raid_md_taste_intel() at g_raid_md_taste_i= ntel+0x1d8/frame
> 0xfffffe008d567e50
>=C2=A0 =C2=A0 =C2=A0 =C2=A0g_raid_taste() at g_raid_taste+0x18e/frame 0= xfffffe008d567ea0
>=C2=A0 =C2=A0 =C2=A0 =C2=A0g_new_provider_event() at g_new_provider_eve= nt+0xaa/frame
> 0xfffffe008d567ec0
>=C2=A0 =C2=A0 =C2=A0 =C2=A0g_run_events() at g_run_events+0x104/frame 0= xfffffe008d567ef0
>=C2=A0 =C2=A0 =C2=A0 =C2=A0fork_exit() at fork_exit+0x82/frame 0xfffffe= 008d567f30
>=C2=A0 =C2=A0 =C2=A0 =C2=A0fork_trampoline() at fork_trampoline+0xe/fra= me 0xfffffe008d567f30
>=C2=A0 =C2=A0 =C2=A0 =C2=A0--- trap 0, rip =3D 0, rsp =3D 0, rbp =3D 0 = ---
>=C2=A0 =C2=A0 =C2=A0 =C2=A0KDB: enter: panic
>=C2=A0 =C2=A0 =C2=A0 =C2=A0[ thread pid 13 tid 100069 ]
>=C2=A0 =C2=A0 =C2=A0 =C2=A0Stopped at=C2=A0 =C2=A0 =C2=A0 kdb_enter+0x3= 3: movq=C2=A0 =C2=A0 $0,0x121aa92(%rip)
>=C2=A0 =C2=A0 =C2=A0 =C2=A0db>
>
> With this commit (and the follow-up =E2=80=9Cgeom(9): unset the BIO_ER= ROR_COMPAT
> flag correctly=E2=80=9D) reverted the VM boots again.

Does the following help?

diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c
index dc90bd3add22..2368f863a248 100644
--- a/sys/kern/vfs_bio.c
+++ b/sys/kern/vfs_bio.c
@@ -4523,8 +4523,6 @@ biodone(struct bio *bp)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 bp->bio_flags |=3D BIO_ERROR_COMPAT;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 }
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 done(bp);
-=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0bp->bio_error_co= mpat =3D 0;
-=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0bp->bio_flags &a= mp;=3D ~BIO_ERROR_COMPAT;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 }
=C2=A0}


Yep that fixes=C2=A0the issue. I committed this as=C2= =A09cfd75a6f88f.

Ka Ho=C2=A0
+ the missing recipients and the mailing lists.

Ka Ho
--00000000000013296d064723a3b4-- From nobody Tue Dec 30 16:10:32 2025 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dgdNT22ktz6M8Gy for ; Tue, 30 Dec 2025 16:10:33 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dgdNS4ff5z4L8k for ; Tue, 30 Dec 2025 16:10:32 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767111032; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=txR8dd3cK/rrSiX21HpB2XriyXPvr54j6aq/60z3sE8=; b=h+57l1XS3S4VtaytRKFTubU/BNN9aeODLk+jF4dpUO9wfSPB4vn0uwFb9wn3vy3mgEtFtP m1L3k1AlAMdgsm0GzHMoEeDGQBnKJ6I8CjJUe/Y/CsUBmhaytHujuK72WXLBnmvUixoT8H y8jE+uRhjq2IrdABo6SDl66S+kNGtGSr2qhvLSnwtWfXqHxwG/9JgPd+kyRaG8IgCIgw2p 5n0e5MpAqnAPEa2WkxeIHq3Tv/V/+G2IGYqTrWGiktX7hPHZPkQdY0j3AtmpCe9izfx5ZF vMPf64Bp1A5wtHK1wSa+AmHvtibB5Qq1SpgRm4LHOHq/fgsOQhZX3sDDD5tsxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767111032; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=txR8dd3cK/rrSiX21HpB2XriyXPvr54j6aq/60z3sE8=; b=dCdRk1FIC13bHGX2dwgL3DxUZw3v2WRWUfvfyVPzRy7yzMRotUNLlxqIOsTDo2xmJgu8eD 5u6KNfazLPAy3W4lu3PoCEu7SQ/4OEa0ac6s2/lDqPUIj5Fq+JafQu5sCwClGOJisGnUFB UR9t/UsZETclGO78Eq1yna45dXTVf4O7yfOzCpjQFMVSQuc31bX5WUBTPnt2DPCyb6Ac5x c3wamiDiKkc5m5V9kUsrKMeXlezbdPlrCeUnk0UZrpOFdb0Fbazsq9FZ3OdAvY6BsgJowb i6c/bgm0ZGF7qGmGqy96cV7OGP3fB82EyzBfmRFPkrdzDgZKiknP9hUFeRo8FA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767111032; a=rsa-sha256; cv=none; b=l+3QIgbgxwL3JEgeIgS7AYSoDXZnd2mtySAdbHKXQm3nrtGsmLk7ro/vydQtv2+j+1fCMc NCiDV08gPzZN5oIJeckogcNSRomLTpyrvkvpsWOhSfnf9vEEMCjc4OB8wwTBcsz6oLq9Og 2WUau4+WoONIFsAIgKdGYKWUNbPj62lZOnteeHBNHqiQF0U4Dhx5FPyEOCB21sP2fL6lzB deiL8vjoyA4NmGh189VKg+Gh6zrEKozYpHhxYfWcRjy9o0+ms6sBzlWHVEPFAXR1uVbytz rPx292KPnwMJy25x4sShCEjhdQ10EEHgRl7tyRh3DoqoX1awJLBdRjzfKD/C4g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dgdNS3Fnqz16dJ for ; Tue, 30 Dec 2025 16:10:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id ea2e by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Tue, 30 Dec 2025 16:10:32 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mitchell Horne Subject: git: 4a15a3528d72 - stable/15 - aw_rtc: bump settime() delays List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mhorne X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 4a15a3528d72a6f7d09b6ed51ba618352e167d1d Auto-Submitted: auto-generated Date: Tue, 30 Dec 2025 16:10:32 +0000 Message-Id: <6953f978.ea2e.68cab02@gitrepo.freebsd.org> The branch stable/15 has been updated by mhorne: URL: https://cgit.FreeBSD.org/src/commit/?id=4a15a3528d72a6f7d09b6ed51ba618352e167d1d commit 4a15a3528d72a6f7d09b6ed51ba618352e167d1d Author: Mitchell Horne AuthorDate: 2025-12-15 15:29:21 +0000 Commit: Mitchell Horne CommitDate: 2025-12-30 16:07:29 +0000 aw_rtc: bump settime() delays There are delay loops, checking the BUSY status bit, before writing to the date or time registers. Each iteration contains a 1usec delay, for a maximum of 70 iterations. This is frequently not enough on the D1 platform, where the message is emitted: rtc0: could not set date, RTC busy Bump the loop delay to 10usecs each, and the maximum number of iterations to 150, for a maximum delay of 1.5msecs between each write of the register. In my testing this seems to be adequate. The loop variable is renamed for clarity/simplicity. Reviewed by: manu MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D54180 (cherry picked from commit cae9ae66ad1b01e84597d03c436bc0579bd07fd4) --- sys/arm/allwinner/aw_rtc.c | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/sys/arm/allwinner/aw_rtc.c b/sys/arm/allwinner/aw_rtc.c index 4af57ab879e8..d3a73d98d86a 100644 --- a/sys/arm/allwinner/aw_rtc.c +++ b/sys/arm/allwinner/aw_rtc.c @@ -87,7 +87,7 @@ #define HALF_OF_SEC_NS 500000000 #define RTC_RES_US 1000000 -#define RTC_TIMEOUT 70 +#define RTC_TIMEOUT 150 #define RTC_READ(sc, reg) bus_read_4((sc)->res, (reg)) #define RTC_WRITE(sc, reg, val) bus_write_4((sc)->res, (reg), (val)) @@ -321,7 +321,8 @@ aw_rtc_settime(device_t dev, struct timespec *ts) { struct aw_rtc_softc *sc = device_get_softc(dev); struct clocktime ct; - uint32_t clk, rdate, rtime; + uint32_t rdate, rtime; + u_int i; /* RTC resolution is 1 sec */ if (ts->tv_nsec >= HALF_OF_SEC_NS) @@ -335,12 +336,12 @@ aw_rtc_settime(device_t dev, struct timespec *ts) return (EINVAL); } - for (clk = 0; RTC_READ(sc, LOSC_CTRL_REG) & LOSC_BUSY_MASK; clk++) { - if (clk > RTC_TIMEOUT) { + for (i = 0; RTC_READ(sc, LOSC_CTRL_REG) & LOSC_BUSY_MASK; i++) { + if (i > RTC_TIMEOUT) { device_printf(dev, "could not set time, RTC busy\n"); return (EINVAL); } - DELAY(1); + DELAY(10); } /* reset time register to avoid unexpected date increment */ RTC_WRITE(sc, sc->conf->rtc_time, 0); @@ -352,21 +353,21 @@ aw_rtc_settime(device_t dev, struct timespec *ts) rtime = SET_SEC_VALUE(ct.sec) | SET_MIN_VALUE(ct.min) | SET_HOUR_VALUE(ct.hour); - for (clk = 0; RTC_READ(sc, LOSC_CTRL_REG) & LOSC_BUSY_MASK; clk++) { - if (clk > RTC_TIMEOUT) { + for (i = 0; RTC_READ(sc, LOSC_CTRL_REG) & LOSC_BUSY_MASK; i++) { + if (i > RTC_TIMEOUT) { device_printf(dev, "could not set date, RTC busy\n"); return (EINVAL); } - DELAY(1); + DELAY(10); } RTC_WRITE(sc, sc->conf->rtc_date, rdate); - for (clk = 0; RTC_READ(sc, LOSC_CTRL_REG) & LOSC_BUSY_MASK; clk++) { - if (clk > RTC_TIMEOUT) { + for (i = 0; RTC_READ(sc, LOSC_CTRL_REG) & LOSC_BUSY_MASK; i++) { + if (i > RTC_TIMEOUT) { device_printf(dev, "could not set time, RTC busy\n"); return (EINVAL); } - DELAY(1); + DELAY(10); } RTC_WRITE(sc, sc->conf->rtc_time, rtime); From nobody Wed Dec 31 01:24:58 2025 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dgshB5513z6Lq2b for ; Wed, 31 Dec 2025 01:24:58 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dgshB4Mcjz42Yp for ; Wed, 31 Dec 2025 01:24:58 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767144298; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ZMRYr80KUbRqBrbvRoni6VY+JKhUSYdVQXCpRXDlLMQ=; b=UTREjP1OjY5brQshbPi+fBlu8djzfYXMMk7vXkXZsq6zn7adg9ZG7hZNYMtDlC9xur0o9a j6ptUnOEDuDFd3KukLQO8lDmqMpTS2viQz47xkyH9BfAw12V8FuV2YsogafThRLDOKgehV GNhBeIHDPnrvszevqdZT1InVNeAVjKUZXjPQpKdfc77wVivac2ZJiyc2Zfv/24/3MvT2Af MwkBoAe9FdgbD3dodpQjqZfqxIJI7MFXe/SIoxLADZaMxwiY5l0jaEC9tUSPbOFqDXYc/q /vie4Td8eZIfc1OioLZ1FIqTwnFBaCJcZOjw9aButCD29EfJFVMUc2RlK6YREQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767144298; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ZMRYr80KUbRqBrbvRoni6VY+JKhUSYdVQXCpRXDlLMQ=; b=p1qcFq25NOQL7tKplo22N2vHkkXQ8xWqkr+ICMUScDu+9WxPf5pSuO3CT8lpKyvdMUqM6P MprmWol4csxiIlV6hr9WVi52efg13lyecsFdBWh8/UtIwZaZ6YY/TqlQpn6F3fvtzjTnx9 Gbtw9JwCw5G+VArpXr7PMYW+dpnyc/i/30c1szqIto6DauERtoSMVPlg83JZWu/ej9Httf Mf6V8ZIC4rg5Oq6v+RlEmWS6wdQwAcPEbsBbsTg/GitJkfFn1cFKD4P7U31murfdPKaseL 90vccTA1rnv1Ez7FEX3Ej1E1Z5WL13xesS6M4cy1PCjqjvXTbRqzPKU5ss/q8Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767144298; a=rsa-sha256; cv=none; b=jzyEU1oBCObgnoagJZT5GGqgCb4T/vjnbm7WyAPpLoiXLaSu7z0sIt2aSmF/tKIptBs8hy wkoQXWP8Ih5xHxzGh0JEtlvGMcxBBLb4libx3IN743M5my9iYoBXFTUxxxResXj4B4dK04 +2048Bb+UQSmsUiQUwzbJA97jMgvG+Ie6Io5u3yjT3p76rMIwnJ2+8WNBH/UYI09LKgIFK hscVsBV8gtlf9HYNMheq8gjyfZtzGoGBkNgju8gctJQj1Hb5n1dfXeBbSXzhjnK+2Kevlu D5q0GthFKe6YJpvGnXshaTA00h1Ze52mI3gT8UjPHAYRUpNdPTtMDEPhCsTmmA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dgshB3dR7z94g for ; Wed, 31 Dec 2025 01:24:58 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3c71c by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Wed, 31 Dec 2025 01:24:58 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Rick Macklem Subject: git: 785d429c2b93 - stable/15 - nfsd.8: Add a short paragraph w.r.t. NFSv3 vs NFSv4 setup List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: rmacklem X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 785d429c2b930b6c68381cfadb5d4530a6360628 Auto-Submitted: auto-generated Date: Wed, 31 Dec 2025 01:24:58 +0000 Message-Id: <69547b6a.3c71c.e36ba07@gitrepo.freebsd.org> The branch stable/15 has been updated by rmacklem: URL: https://cgit.FreeBSD.org/src/commit/?id=785d429c2b930b6c68381cfadb5d4530a6360628 commit 785d429c2b930b6c68381cfadb5d4530a6360628 Author: Rick Macklem AuthorDate: 2025-12-24 16:29:29 +0000 Commit: Rick Macklem CommitDate: 2025-12-31 01:23:27 +0000 nfsd.8: Add a short paragraph w.r.t. NFSv3 vs NFSv4 setup The nfsd can be configured to support NFSv3, NFSv4 or both of them. This patch adds a short paragraph to nfsd.8 to explain this. This is a content change. (cherry picked from commit 4f184fd35d81bbd85284d47d2a65aeece67e87d4) --- usr.sbin/nfsd/nfsd.8 | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 60 insertions(+), 2 deletions(-) diff --git a/usr.sbin/nfsd/nfsd.8 b/usr.sbin/nfsd/nfsd.8 index 2e5724dbce33..79085d33230c 100644 --- a/usr.sbin/nfsd/nfsd.8 +++ b/usr.sbin/nfsd/nfsd.8 @@ -25,7 +25,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd May 30, 2025 +.Dd December 23, 2025 .Dt NFSD 8 .Os .Sh NAME @@ -46,7 +46,7 @@ NFS server .Sh DESCRIPTION The .Nm -utility runs on a server machine to service NFS requests from client machines. +utility runs on a server machine to service NFSv4 and/or NFSv3 requests from client machines. At least one .Nm must be running for a machine to operate as a server. @@ -54,6 +54,62 @@ must be running for a machine to operate as a server. Unless otherwise specified, eight servers per CPU for UDP transport are started. .Pp +The +.Nm +server may be configured to serve NFSv3, NFSv4 or both of them. +When +.Bd +nfs_server_enable="YES" +.Ed +is set in +.Xr rc.conf 5 , +.Nm +is configured for NFSv3 only, by default. +To configure the +.Nm +to serve NFSv4, you must also: +.sp +.Bl -bullet -compact +.It +Add a +.Dq V4: +line to +.Xr exports 5 . +(This is needed as well as either the ZFS sharenfs property +or an exports line for each exported file system.) +.It +Either choose to do uids in +.Dq strings , +which is probably +the easiest unless you are doing +.Xr kerberos 7 +mounts or +run +.Xr nfsuserd 8 +.Pq choose one, not both of these . +Setting the sysctls MIBs +.Va vfs.nfs.enable_uidtostring +and +.Va vfs.nfsd.enable_stringtouid +to one and not running the nfsuserd chooses uids in +.Dq strings . +.It +Set +.Bd +nfsv4_server_enable="YES" +.Ed +in +.Xr rc.conf 5 +or set +.Bd +nfsv4_server_only="YES" +.Ed +in +.Xr rc.conf 5 +if you do not want NFSv3 to be served. +.El +.sp +.Pp When .Nm is run in an appropriately configured vnet jail, the server is restricted @@ -336,7 +392,9 @@ just do a .Xr pnfs 4 , .Xr pnfsserver 4 , .Xr exports 5 , +.Xr rc.conf 5 , .Xr stablerestart 5 , +.Xr kerberos 7 , .Xr gssd 8 , .Xr ipfw 8 , .Xr jail 8 , From nobody Wed Dec 31 01:33:19 2025 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dgssr2qKmz6Lqtd for ; Wed, 31 Dec 2025 01:33:20 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dgssr0nY3z44Qg for ; Wed, 31 Dec 2025 01:33:20 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767144800; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=1fVKqb8bHtpdPPTdgbHFT5tQxncNnS6lVCqGLDUCI84=; b=KRGCc3GyGm97yYmdb+Jjw+Y+8Af5FSDZFIGTTgaTxN+JsVTjkw9hxXJDbCN/8dGOqQjQqN FFM2HCuroFTKvzJrVvMCZ0Gx1I/FdC9TUyIaa6ogzZpQib4MrZ7LdCRh6uQE4M6M74Syx7 tRnZKFKtUK4q0UeGhhi8jM4/w6pYPLWfJNIClfqrhvoSXlJUz1r/vPZJNsR96wOpJcBcrg Emhn5xqhyFmAUC+dnHeg5/VgSw+AoXeUMlOnjfEQGbBrmWrRr5UGqb0LInCDCRZqT0l7Pk iQCvtetSlagkb+KwQde/PmsRhQyhoqljI2cTWSTrxpPs0HKVq7wZUpxMrIkW9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767144800; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=1fVKqb8bHtpdPPTdgbHFT5tQxncNnS6lVCqGLDUCI84=; b=Cd6YmMz41ik/4Th7F/ymfJ8mpjiPMRBydV3HTpH/gu9eHPFiTLA8kbJTlIWRkQF9dZu4eO wmO13/STCUkMTJm5fPrbkay1RXY7Tx71yb170g4LJrN2tN/8S2zu0PTEw3G/WB9eRcMgwa YXqbo8yhJltrYGku0S2W5kXyZ+2PdaCK8ge+L/9CdBp9iFFTaaAW/oHOhpTodZYXmxzGn5 skpS4hgjzTT1JbnNIN75FLBnxBcpVlBcvFhN6cshkWyB5Qsu0ONE6Ptj95DM9jiP646H6c A69MY/nzPdLXPIEVwV1rxw89g9SAlrp0M68zR0eP5njXe00JNiE0Adpe6qnYFQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767144800; a=rsa-sha256; cv=none; b=kk/D1Wo360b6OuwXDzzZDhrkQx65lRr9paFMrBkFRse1J1KP+uur44fV79eQ7vqhAb5+Q2 iwGM6tRrLXthAyJYgS1DLczM4yyiqLFC0/rPNckVN+Lxt0SyY7ZtVCTzgJ7ySzU0wbB5X0 RKQk2HSd36xCrp6pgGBSiR748ddDX7J5jGgsET++wzoWCJZB6443jEHaIDts/tgQzPYzJ2 iZWrL51+r/MWoOHCmqp0jK7WtiHUb4sSNUoBkUlB8rpQnSQiYWMIZbFQel0YL/h+LCKzui vsA79+9Y/89vmlKzSW5SmhTWGP7Vhuywc+clqabkohGY4PJmq0pqRiayedm7fw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dgssq74Qyz97G for ; Wed, 31 Dec 2025 01:33:19 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3c9d1 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Wed, 31 Dec 2025 01:33:19 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Rick Macklem Subject: git: ab5ec8ccbcf0 - stable/14 - nfsd.8: Add a short paragraph w.r.t. NFSv3 vs NFSv4 setup List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: rmacklem X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: ab5ec8ccbcf0f1b470690742e2049bb4534b4eae Auto-Submitted: auto-generated Date: Wed, 31 Dec 2025 01:33:19 +0000 Message-Id: <69547d5f.3c9d1.76585a07@gitrepo.freebsd.org> The branch stable/14 has been updated by rmacklem: URL: https://cgit.FreeBSD.org/src/commit/?id=ab5ec8ccbcf0f1b470690742e2049bb4534b4eae commit ab5ec8ccbcf0f1b470690742e2049bb4534b4eae Author: Rick Macklem AuthorDate: 2025-12-24 16:29:29 +0000 Commit: Rick Macklem CommitDate: 2025-12-31 01:32:07 +0000 nfsd.8: Add a short paragraph w.r.t. NFSv3 vs NFSv4 setup The nfsd can be configured to support NFSv3, NFSv4 or both of them. This patch adds a short paragraph to nfsd.8 to explain this. This is a content change. (cherry picked from commit 4f184fd35d81bbd85284d47d2a65aeece67e87d4) --- usr.sbin/nfsd/nfsd.8 | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 60 insertions(+), 2 deletions(-) diff --git a/usr.sbin/nfsd/nfsd.8 b/usr.sbin/nfsd/nfsd.8 index 46478f978f21..e4fd1b286f0c 100644 --- a/usr.sbin/nfsd/nfsd.8 +++ b/usr.sbin/nfsd/nfsd.8 @@ -27,7 +27,7 @@ .\" .\" @(#)nfsd.8 8.4 (Berkeley) 3/29/95 .\" -.Dd February 21, 2025 +.Dd December 23, 2025 .Dt NFSD 8 .Os .Sh NAME @@ -47,7 +47,7 @@ NFS server .Sh DESCRIPTION The .Nm -utility runs on a server machine to service NFS requests from client machines. +utility runs on a server machine to service NFSv4 and/or NFSv3 requests from client machines. At least one .Nm must be running for a machine to operate as a server. @@ -55,6 +55,62 @@ must be running for a machine to operate as a server. Unless otherwise specified, eight servers per CPU for UDP transport are started. .Pp +The +.Nm +server may be configured to serve NFSv3, NFSv4 or both of them. +When +.Bd +nfs_server_enable="YES" +.Ed +is set in +.Xr rc.conf 5 , +.Nm +is configured for NFSv3 only, by default. +To configure the +.Nm +to serve NFSv4, you must also: +.sp +.Bl -bullet -compact +.It +Add a +.Dq V4: +line to +.Xr exports 5 . +(This is needed as well as either the ZFS sharenfs property +or an exports line for each exported file system.) +.It +Either choose to do uids in +.Dq strings , +which is probably +the easiest unless you are doing +.Xr kerberos 7 +mounts or +run +.Xr nfsuserd 8 +.Pq choose one, not both of these . +Setting the sysctls MIBs +.Va vfs.nfs.enable_uidtostring +and +.Va vfs.nfsd.enable_stringtouid +to one and not running the nfsuserd chooses uids in +.Dq strings . +.It +Set +.Bd +nfsv4_server_enable="YES" +.Ed +in +.Xr rc.conf 5 +or set +.Bd +nfsv4_server_only="YES" +.Ed +in +.Xr rc.conf 5 +if you do not want NFSv3 to be served. +.El +.sp +.Pp When .Nm is run in an appropriately configured vnet jail, the server is restricted @@ -329,7 +385,9 @@ just do a .Xr pnfs 4 , .Xr pnfsserver 4 , .Xr exports 5 , +.Xr rc.conf 5 , .Xr stablerestart 5 , +.Xr kerberos 7 , .Xr gssd 8 , .Xr ipfw 8 , .Xr jail 8 , From nobody Thu Jan 1 10:41:58 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dhk0Q30sXz6M0CF for ; Thu, 01 Jan 2026 10:41:58 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dhk0Q24JBz3gBD for ; Thu, 01 Jan 2026 10:41:58 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767264118; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=NTODxNZYgZKvC8rVAprQ4S9kSuWcri3RvU5uKLKb2uQ=; b=i62Xxh6FaAI71WQpqTQHipzmZ5EN/tVFT3bI+JfyMd39sKkpr/6Avp252MZ+98/vVUE/JD tY2z58THZ7Bka3n7xkACgsfmabhSYF8alBgnETKSAMWE4I47qmuTEDD0bAxgOwq27If2CP 4/5s+oxusbrKTXm6k6aX1yrlNvRpmlzTyHtL7lUBxCcS2FHBYGdn4P+2ro653O3YZUEKyn o0T3/WnZNqXheVKZNibkwfG9OQY42wTeWGTH/ihP2srcIFqD7sJk1fRM/WYBPEPQy6ebRn Gz0owTdbEav1/XeY8pvocpnNbPrWz+Frbb94cdZbhcOZ5BzXILwhZOfQa5ZUVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767264118; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=NTODxNZYgZKvC8rVAprQ4S9kSuWcri3RvU5uKLKb2uQ=; b=SHqgxswv8pHR1YZINp3XjGuG7xR9mk01FzmNystlT4H2On/BdEPE3F3LPQ3GTZRaQXR2VA PHMOfH8AhLbcIoNc4KdiLB6sleK0QOVn/WjC5X2ImQmAnFYCPX49bJRuC3cP9nts8WLlXh byfMiLUXhaa3kIjvS0CdSrC9DBfwmz8fti6cNbOFg2XjRVdszHTvpRwMy2iLFDctk/nQHz 4zvOL2R12QKPw7qVhQ1k0t92Jj+OEzSypJcoYvcXuq2JLlQGPnybvFT7XDxzQI5QhdqvtM h3ssZ/A9Qo8+eqYJv2QL3OYL5zQBdg/MnnWuR8xDPzXyolR/uycayFaeu4Nltg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767264118; a=rsa-sha256; cv=none; b=i8mhogzmDBebFeaPMAk2ylWhzJghPKS+x8h7T3h7A3dtpOmG19O0SbGxITD2fg2pv+KvBY hn8vuLt0v2N1NOaqwbt0VaG9cYhkGt5MWzn19/ApuIAjmmP2pXHuGkQP37uJyBMlz6/wX7 Z45G6RRNz9AKDyEgXnOeePQB8SBg5AfUhD+BQ8VJvZUKf53a1ooD29mZH7FaeX1jFYh4m8 vcQabuvSQE/Zd5JC8uovARipgZkNwV/JLFjLQ/nv8JXnubg9JW+7kmLFWK1bOFf42f16sT UhgwQkCSsv4wwaJdUTm4RWjjPYi8k0+QJoRn6sjCYHSgYxxCMW82/m9GQodR0Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dhk0Q1gWfzDL7 for ; Thu, 01 Jan 2026 10:41:58 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 20d69 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 01 Jan 2026 10:41:58 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Michael Osipov Subject: git: 1839dd31cab9 - stable/14 - linprocfs.5: Synchronize style and format with 15-STABLE List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: michaelo X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 1839dd31cab9a02acc2a1065bb0a63488a69ba0b Auto-Submitted: auto-generated Date: Thu, 01 Jan 2026 10:41:58 +0000 Message-Id: <69564f76.20d69.2df94dae@gitrepo.freebsd.org> The branch stable/14 has been updated by michaelo: URL: https://cgit.FreeBSD.org/src/commit/?id=1839dd31cab9a02acc2a1065bb0a63488a69ba0b commit 1839dd31cab9a02acc2a1065bb0a63488a69ba0b Author: Michael Osipov AuthorDate: 2025-12-29 20:49:49 +0000 Commit: Michael Osipov CommitDate: 2026-01-01 10:41:38 +0000 linprocfs.5: Synchronize style and format with 15-STABLE This is a logical backport of 1d193b1808098328d3ad16b436a329b258935e0c including the changes happended after that. Reviewed by: fernape Differential Revision: https://reviews.freebsd.org/D54408 --- share/man/man5/linprocfs.5 | 89 +++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 81 insertions(+), 8 deletions(-) diff --git a/share/man/man5/linprocfs.5 b/share/man/man5/linprocfs.5 index 568d4dcd9d14..bcd8587eb76c 100644 --- a/share/man/man5/linprocfs.5 +++ b/share/man/man5/linprocfs.5 @@ -1,7 +1,7 @@ .\" Written by Garrett Wollman .\" This file is in the public domain. .\" -.Dd November 13, 2019 +.Dd December 26, 2025 .Dt LINPROCFS 5 .Os .Sh NAME @@ -26,17 +26,53 @@ There is also a special node called .Pa self which always refers to the process making the lookup request. .Pp -Each node is a directory containing several files: -.Bl -tag -width status +Each process node is a directory containing several files: +.Bl -tag -width oom_score_adj +.It Pa auxv +The auxiliary vector passed to the program. +.It Pa cmdline +The command line used to execute the process. +.It Pa cwd +A symbolic link pointing to the current work directory of the process. +.It Pa environ +The list of environment variables and values of the process. +Every variable and pair value is separated from the next by a NULL byte. .It Pa exe A reference to the vnode from which the process text was read. This can be used to gain access to the process' symbol table, or to start another copy of the process. +.It Pa limits +The soft and hard limits for the process along with the units used. +.It Pa maps +Memory map of the process. .It Pa mem The complete virtual memory image of the process. Only those addresses which exist in the process can be accessed. Reads and writes to this file modify the process. Writes to the text segment remain private to the process. +.It Pa mountinfo +Information about mount points. +.It Pa mounts +Similar to the above. +.It Pa oom_score_adj +Score adjustment for the Out Of Memory killer. +.It Pa root +Symbolic link to the root directory for this process. +.It Pa stat +Process statistics. +It includes user, nice, system, idle, iowait, irq, softirq, +steal, guest and guest_nice. +.It Pa statm +Process size statistics. +It includes total program size, resident set size, number of resident shared +pages (unused), text size, library size (unused), data + stack and dirty pages +(unused). +.It Pa status +Process statistics in human readable form. +It includes process name, state, PID, +etc. +.It Pa task +Dummy directory to avoid problems in specific software such as Chromium. .El .Pp Each node is owned by the process's user, and belongs to that user's @@ -46,19 +82,55 @@ node, which belongs to the .Li kmem group. .Sh FILES -.Bl -tag -width /compat/linux/proc/self/XXXXXXX -compact +.Bl -tag -width /compat/linux/proc/filesystems -compact .It Pa /compat/linux/proc -The normal mount point for the +The normal mount point for .Nm . +.It Pa /compat/linux/proc/cmdline +Contains the path of the kernel image used to boot the system. .It Pa /compat/linux/proc/cpuinfo CPU vendor and model information in human-readable form. +.It Pa /compat/linux/proc/devices +List of character and block devices. +The latter is usually empty on +.Fx . +.It Pa /compat/linux/proc/filesystems +List of supported filesystems. +For pseudo filesystems, the first column contains +.Em nodev . .It Pa /compat/linux/proc/meminfo System memory information in human-readable form. -.It Pa /compat/linux/proc/pid +.It Pa /compat/linux/proc/modules +Loaded kernel modules. +Empty for now. +.It Pa /compat/linux/proc/mounts +Devices corresponding mount points. +.It Pa /compat/linux/proc/mtab +Same as above. +.It Pa /compat/linux/proc/partitions +Partition information including major and minor numbers, number of blocks and +name. +The rest of the fields are set to zero. +.It Pa /compat/linux/proc/stat +System statistics. +For each cpu it includes at most user time, nice time, system +time and idle time, iowait (time waiting for I/O to complete), times serving +irqs and softirq, steal, guest and guest_nice times that represent times spent +in different modes in a virtualized environment. +The last columns are set to zero. +This file also contains brief statistics for disks, context switches and +more. +.It Pa /compat/linux/proc/swap +Information about the swap device if any. +.It Pa /compat/linux/proc/uptime +Time since the last boot and time spent in idle state. +.It Pa /compat/linux/proc/version +Version of the emulated linux system. +.It Pa /compat/linux/proc/ Ns Ao Ar pid Ac A directory containing process information for process -.Pa pid . +.Ar pid . .It Pa /compat/linux/proc/self -A directory containing process information for the current process. +A symlink to a directory containing process information for the current process. .It Pa /compat/linux/proc/self/exe The executable image for the current process. .It Pa /compat/linux/proc/self/mem @@ -74,6 +146,7 @@ file system on .Sh SEE ALSO .Xr mount 2 , .Xr unmount 2 , +.Xr auxv 3 , .Xr linux 4 , .Xr procfs 5 , .Xr pseudofs 9 From nobody Thu Jan 1 12:38:45 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dhmb94PRCz6M7CQ for ; Thu, 01 Jan 2026 12:38:45 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dhmb926bgz3rZQ for ; Thu, 01 Jan 2026 12:38:45 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767271125; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=IkHCxqpydSSP6z0j1rfTTC31v1FWRTpQ7L+WiiGljyQ=; b=qu8tjeHv9sN9/9GGnhLe6Xyn0HMqCE/+SNJimL7swtX+8uP5i4SIFYuAva83uAsgz+qfcO X8ojA2AFkLTJ3X9HsXkvfVZoJ6aL5fTeg4co4GE9V50LNAFf9npkUbniBqKxiLoZDx3pjN 2Qlpx7BC8PhOqMIOau6Po/apOugeePIJFMN1rFWT+Pr9PwrK4u8XdB5Kws9IiKaN05G6ze LwPNpnShzxqwCq0iGThpOQYiAImT5xjM32VwqHSctzJm+G6S/RLOfru2MT/PwwAogjl+xz /arsiw8zWxcmvvBYi1ZkWiXwenfomNPklYXA/dh2mPjK00+1gOvkvxm1rWFVqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767271125; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=IkHCxqpydSSP6z0j1rfTTC31v1FWRTpQ7L+WiiGljyQ=; b=MGvLYIG0u1YXPJhFw7txcSGlR57Ez48zvLdSr1/ChFN/aN4iv+IvR4ffM5qnyw4W6gQQPJ U3SY0KWVThaDdXGijd//UR3X3Njm1N1t8pazsuZsvbBy51f4W+qPrzfBb8t10VtAhu78zR b+4FhlirPU7uEN5WuB/Ss7RV8hlFJ1/oOGY04KfkYpFroJJSCHD0Ltmdfwjxj/XuQ+ABxz FQjtDoAregcN57vRoK9QCsAmNeP8dvv+k6uDvgLKcohcgL5ocZxZ9moUuW3tMj1MbsTv6C aLmSKqUVK8TayERtfs2twQRJQt3Ydu30mHZeWvfMVWoxSPz/uWHq9Y/ATLJXnA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767271125; a=rsa-sha256; cv=none; b=D7cXpMHbsINIyoo14fGN3w9pFRZxQkD/Rs+URkHCIugQccL/uZl6xvbvafHwYKCoyd3/O7 JtQ7FlN9Vm7jxxbUiSilNJbr3dDvWEVhvhsEGj9GIH4caNl8IOz+xy6ZZHkCYimFtr5aOI brapXVu6JjXd4sbyOtQu04653gffkNxhXYXXB6wPzJkFloT9FgzxPFlLM9Ghg1ZkYbXfPl xD+CNKj9CQEZ8dTIlPMTTPOLsR0zZ5kSGrfnFDXFCYfmmCzPir7tLkD3U5u6VJBkws71fM mbGAZPJfWuQ0CP5fvMshS35dAJmThKifEYrC8Bc3Z6WiQbMlNoMVTLb7b4y6vg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dhmb91Vf3zYpT for ; Thu, 01 Jan 2026 12:38:45 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 344bb by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 01 Jan 2026 12:38:45 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Michael Osipov Subject: git: 3f41c92c6b27 - stable/13 - linprocfs.5: Synchronize style and format with 15-STABLE List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: michaelo X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 3f41c92c6b27c8e1110dec8d52d16bd3a16a9cb0 Auto-Submitted: auto-generated Date: Thu, 01 Jan 2026 12:38:45 +0000 Message-Id: <69566ad5.344bb.481931df@gitrepo.freebsd.org> The branch stable/13 has been updated by michaelo: URL: https://cgit.FreeBSD.org/src/commit/?id=3f41c92c6b27c8e1110dec8d52d16bd3a16a9cb0 commit 3f41c92c6b27c8e1110dec8d52d16bd3a16a9cb0 Author: Michael Osipov AuthorDate: 2025-12-29 20:49:49 +0000 Commit: Michael Osipov CommitDate: 2026-01-01 12:38:18 +0000 linprocfs.5: Synchronize style and format with 15-STABLE This is a logical backport of 1d193b1808098328d3ad16b436a329b258935e0c including the changes happended after that. Reviewed by: fernape Differential Revision: https://reviews.freebsd.org/D54411 --- share/man/man5/linprocfs.5 | 89 +++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 81 insertions(+), 8 deletions(-) diff --git a/share/man/man5/linprocfs.5 b/share/man/man5/linprocfs.5 index 568d4dcd9d14..bcd8587eb76c 100644 --- a/share/man/man5/linprocfs.5 +++ b/share/man/man5/linprocfs.5 @@ -1,7 +1,7 @@ .\" Written by Garrett Wollman .\" This file is in the public domain. .\" -.Dd November 13, 2019 +.Dd December 26, 2025 .Dt LINPROCFS 5 .Os .Sh NAME @@ -26,17 +26,53 @@ There is also a special node called .Pa self which always refers to the process making the lookup request. .Pp -Each node is a directory containing several files: -.Bl -tag -width status +Each process node is a directory containing several files: +.Bl -tag -width oom_score_adj +.It Pa auxv +The auxiliary vector passed to the program. +.It Pa cmdline +The command line used to execute the process. +.It Pa cwd +A symbolic link pointing to the current work directory of the process. +.It Pa environ +The list of environment variables and values of the process. +Every variable and pair value is separated from the next by a NULL byte. .It Pa exe A reference to the vnode from which the process text was read. This can be used to gain access to the process' symbol table, or to start another copy of the process. +.It Pa limits +The soft and hard limits for the process along with the units used. +.It Pa maps +Memory map of the process. .It Pa mem The complete virtual memory image of the process. Only those addresses which exist in the process can be accessed. Reads and writes to this file modify the process. Writes to the text segment remain private to the process. +.It Pa mountinfo +Information about mount points. +.It Pa mounts +Similar to the above. +.It Pa oom_score_adj +Score adjustment for the Out Of Memory killer. +.It Pa root +Symbolic link to the root directory for this process. +.It Pa stat +Process statistics. +It includes user, nice, system, idle, iowait, irq, softirq, +steal, guest and guest_nice. +.It Pa statm +Process size statistics. +It includes total program size, resident set size, number of resident shared +pages (unused), text size, library size (unused), data + stack and dirty pages +(unused). +.It Pa status +Process statistics in human readable form. +It includes process name, state, PID, +etc. +.It Pa task +Dummy directory to avoid problems in specific software such as Chromium. .El .Pp Each node is owned by the process's user, and belongs to that user's @@ -46,19 +82,55 @@ node, which belongs to the .Li kmem group. .Sh FILES -.Bl -tag -width /compat/linux/proc/self/XXXXXXX -compact +.Bl -tag -width /compat/linux/proc/filesystems -compact .It Pa /compat/linux/proc -The normal mount point for the +The normal mount point for .Nm . +.It Pa /compat/linux/proc/cmdline +Contains the path of the kernel image used to boot the system. .It Pa /compat/linux/proc/cpuinfo CPU vendor and model information in human-readable form. +.It Pa /compat/linux/proc/devices +List of character and block devices. +The latter is usually empty on +.Fx . +.It Pa /compat/linux/proc/filesystems +List of supported filesystems. +For pseudo filesystems, the first column contains +.Em nodev . .It Pa /compat/linux/proc/meminfo System memory information in human-readable form. -.It Pa /compat/linux/proc/pid +.It Pa /compat/linux/proc/modules +Loaded kernel modules. +Empty for now. +.It Pa /compat/linux/proc/mounts +Devices corresponding mount points. +.It Pa /compat/linux/proc/mtab +Same as above. +.It Pa /compat/linux/proc/partitions +Partition information including major and minor numbers, number of blocks and +name. +The rest of the fields are set to zero. +.It Pa /compat/linux/proc/stat +System statistics. +For each cpu it includes at most user time, nice time, system +time and idle time, iowait (time waiting for I/O to complete), times serving +irqs and softirq, steal, guest and guest_nice times that represent times spent +in different modes in a virtualized environment. +The last columns are set to zero. +This file also contains brief statistics for disks, context switches and +more. +.It Pa /compat/linux/proc/swap +Information about the swap device if any. +.It Pa /compat/linux/proc/uptime +Time since the last boot and time spent in idle state. +.It Pa /compat/linux/proc/version +Version of the emulated linux system. +.It Pa /compat/linux/proc/ Ns Ao Ar pid Ac A directory containing process information for process -.Pa pid . +.Ar pid . .It Pa /compat/linux/proc/self -A directory containing process information for the current process. +A symlink to a directory containing process information for the current process. .It Pa /compat/linux/proc/self/exe The executable image for the current process. .It Pa /compat/linux/proc/self/mem @@ -74,6 +146,7 @@ file system on .Sh SEE ALSO .Xr mount 2 , .Xr unmount 2 , +.Xr auxv 3 , .Xr linux 4 , .Xr procfs 5 , .Xr pseudofs 9 From nobody Thu Jan 1 18:05:42 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dhvrQ4Wy2z6MVkP for ; Thu, 01 Jan 2026 18:05:42 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dhvrQ3vlgz3YDv for ; Thu, 01 Jan 2026 18:05:42 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767290742; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=wz8UACxAhwSP6EgtqyGKa3xHWXU7l+XBJ9mA4Pug0Y0=; b=bmZf0Qr76b4X2MDEud9w0lwjAawqRqs2lx6RQ+frvrtCp2RMOx+NyC/9SmrRkk708cHGuq cGElpIpEi/A6KN7HiD/8q7hkWJ7oOUutwTf0CDqM64Xjojg8ydddeiGt3VBtMQbpLmniaB mMXEAtqtHGwbx0DfrM5isMqtBxboP3awR82Kx2pVfk32aR7ECD8fYQl9XUiWoO9BW9w6uT 3swqw3/OSc6MsP+BkiFNe9pcO7GYzgH7qa2/3Lw0Gke9AAIgrFU43/3lBkFdUpPu0zChoT TfIcItNlCQMIdLEb9TjhHXK9PZ9HKS7isu48g2uQRDLlSxZxS+KG2veskRPnhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767290742; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=wz8UACxAhwSP6EgtqyGKa3xHWXU7l+XBJ9mA4Pug0Y0=; b=XFaklkHfxU4p7xYvSZcm/QL2niwH4PAaNPzSJH4/YI92C4pvw8vyl4evEObYkvsGEFCvCo uyNL39JSdy1SXpKQzqiRQJkJyKD+CgBRXPbK+8CXrh93O6k5MT8wMf9auxQDU6Om7x57er w9RUSp5XwysrUk0JyIlfS8MnwgyRg8YzJ5KOoxS93GSvlGQuL7J4VTcW2If/OmVGSf+i3e YgZ35mGUgbrgL+sRTpi8AstTnojFtJ+UVnlBh+sbAVKyfv8H9BqKmm0JE24Y5pnGzlm/Fm UKtOvLjjW+xcSKpGy8WjzMsGiE1AA9RMVUsv+X+kasdrIzUU+dCFLfXiWtCnOQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767290742; a=rsa-sha256; cv=none; b=TysTlAbKuhfiZ0ZHhk2oVLlZrFiiJlPWUcjM8aSyHMIQNVyANbuWB6zIub+eqjcL3W0Ncz zY0sBZ4LRHaI1sH/AMxFzovZO97AspSwxadTa5LHw6995VLcfpDNFUl4BI0ByBrQd5t0le wJbASIE2JBbSoie3YcDafAxe55uP2dELc9hwVSxKT5NPsx7SN+4Cdqjr9TNw/oAFEEouQ4 Ezq9XWBU9qj+W671bv4u6Bg3+CfurL13X5DlLuic7hr/c2BmLnuMEV53F5IkiSSWwi2ILS woe1pl44GWNpXYhyAvpCFqlYxvLxlZGtephXbxxkv9119004WZKs9H1KdAYCBQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dhvrQ2qDnzkGc for ; Thu, 01 Jan 2026 18:05:42 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 35784 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 01 Jan 2026 18:05:42 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Alexander Ziaee Subject: git: fd72ad29c558 - stable/15 - freebsd-base.7: Rewrite table into a tagged list List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: ziaee X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: fd72ad29c558ad97b701949a976ce77170ee5c06 Auto-Submitted: auto-generated Date: Thu, 01 Jan 2026 18:05:42 +0000 Message-Id: <6956b776.35784.7859f650@gitrepo.freebsd.org> The branch stable/15 has been updated by ziaee: URL: https://cgit.FreeBSD.org/src/commit/?id=fd72ad29c558ad97b701949a976ce77170ee5c06 commit fd72ad29c558ad97b701949a976ce77170ee5c06 Author: Alexander Ziaee AuthorDate: 2025-12-02 17:21:08 +0000 Commit: Alexander Ziaee CommitDate: 2026-01-01 18:05:03 +0000 freebsd-base.7: Rewrite table into a tagged list The table is not playing nicely with https://man.freebsd.org/freebsd-base MFC after: 3 days Reviewed by: pauamma@gundo.com Differential Revision: https://reviews.freebsd.org/D54036 (cherry picked from commit 39b2ca9ec99eded0b248082dcec6c843f40330a8) --- share/man/man7/freebsd-base.7 | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/share/man/man7/freebsd-base.7 b/share/man/man7/freebsd-base.7 index f84cc7239a1d..07cd7ab5656c 100644 --- a/share/man/man7/freebsd-base.7 +++ b/share/man/man7/freebsd-base.7 @@ -67,15 +67,24 @@ package. For the package .Sy FreeBSD-foo , the following subpackages may be available: -.Bl -column "FreeBSD-foo-dev-lib32" "Description" -.It Sy "Package name" Ta Sy "Description" -.It FreeBSD-foo Ta Base files for the package (typically executables) -.It FreeBSD-foo-lib Ta Native runtime libraries -.It FreeBSD-foo-lib32 Ta 32-bit compatibility runtime libraries -.It FreeBSD-foo-dev Ta Development files (headers and static libraries) -.It FreeBSD-foo-dev-lib32 Ta 32-bit development files -.It FreeBSD-foo-dbg Ta Debugging symbols -.It FreeBSD-foo-man Ta Manual pages. +.Pp +.Bl -tag -width "FreeBSD-foo-dev-lib32" -compact +.It Sy "Package name" +.Sy "Description" +.It FreeBSD-foo +Base files for the package (typically executables) +.It FreeBSD-foo-lib +Native runtime libraries +.It FreeBSD-foo-lib32 +32-bit compatibility runtime libraries +.It FreeBSD-foo-dev +Development files (headers and static libraries) +.It FreeBSD-foo-dev-lib32 +32-bit development files +.It FreeBSD-foo-dbg +Debugging symbols +.It FreeBSD-foo-man +Manual pages. Manual pages are only packaged separately if the .Sy WITH_MANSPLITPKG .Xr src.conf 5 From nobody Thu Jan 1 18:05:43 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dhvrR67RSz6MW3h for ; Thu, 01 Jan 2026 18:05:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dhvrR3lQpz3YHL for ; Thu, 01 Jan 2026 18:05:43 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767290743; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=T74pYH2hiNtuv2FEgxJ6W82SPkWLzY5VqVRBvxA8xhQ=; b=HxtD4S9n9+bVaEhCiGj24PUwVtebP7KPy9TjByq4ltjxLiJnA3sYglYnkqDQKdEbrB1Bhp BfpP5GpE95YTFNDdGrEKaN457btVxwu2VbJdA+LPSyqW33apjGJxT3mjWDf5iPOt8XIm3Q uSQnu+WnQAGNoVecFoBf1+c05BkW91ttEv0GTYhbxNRuSOzJnQnlpeHHgk6GioayZaBeKi Q8jUVeSvGnz2tp+MswLJJQXWinDcxjus5hdce2kt5nbQZrliV/VFAt8q+iJqcTyIYFa0Iy at7ycjzkGCLrtCoEN33piQq7ew7Z7ebY5xpJtJvD71U0hqJmO4echOqBlSLvcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767290743; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=T74pYH2hiNtuv2FEgxJ6W82SPkWLzY5VqVRBvxA8xhQ=; b=cZ/nKqWeVF3P112/+kJYipctCf4LYkSoKGKf3xA/x9ZE1iOScyyY5fPkjaDtjtVFgudTQV wjEu/2FWBXeA5s9jNWumziAPJMNRQRzl/Gs1sdeN81NDIy/Ao1ok2i2NSVV0Uo1XPJayhj 6/PSCLcZg9yhcFOuV3Or9Spn8DPWSdCmRFWYm4HU/JoCqfDp3kkqS8x4uvO+btGwS8ER+g Z7J6qxfqN6kZfeQ7d80XsjmqZtg7v1r0hrEjQZNUKOq9/+1fnXA8ui0SBivgwYgxuZQs38 mWDAdyvSwanSLOyO1DgwsU3u7r4sgg/F/IxSzw1bqzYNLu+HzSy8snkqDW83rQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767290743; a=rsa-sha256; cv=none; b=IHL26KDIvBEjBEhZNVqZOvKn1g80RuOQSBVIAYoiXItFzK+410jMTUKeK0XQowNSIMjP5D zA0tvBtaK8S0PocEwfpvUK5L11GoUoL2Dnlbto7cOQarYSnMJal0sUGckAW19hMs9bT8X7 bYW0nr8RZKimeWk4iNM4Pw8T32lIuZYQ16g1CWw0usAI3ki1uKyAp9DBrSeaBpN+DIyQZ/ Z7l+9mRpodEuOrN6XsdkeiwTETeAwfJYyCygszgR0Ynv/UEocKJIC03eiAbQ6yAWAR6rAq VxmLF+LbWs9ValzEgNGihULJmNSy9vvSiAtBx+L03J/GvdqIk8ILOrBpJMJrag== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dhvrR339MzkGf for ; Thu, 01 Jan 2026 18:05:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 35788 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 01 Jan 2026 18:05:43 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Cc: Pau Amma From: Alexander Ziaee Subject: git: 1e34e2f9fd76 - stable/15 - vidcontrol.1: Video buffer dump is syscons only List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: ziaee X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 1e34e2f9fd76da0595652f6befd55c7a5c0815cd Auto-Submitted: auto-generated Date: Thu, 01 Jan 2026 18:05:43 +0000 Message-Id: <6956b777.35788.4fd36373@gitrepo.freebsd.org> The branch stable/15 has been updated by ziaee: URL: https://cgit.FreeBSD.org/src/commit/?id=1e34e2f9fd76da0595652f6befd55c7a5c0815cd commit 1e34e2f9fd76da0595652f6befd55c7a5c0815cd Author: Pau Amma AuthorDate: 2025-12-04 03:28:17 +0000 Commit: Alexander Ziaee CommitDate: 2026-01-01 18:05:03 +0000 vidcontrol.1: Video buffer dump is syscons only Fixes: 1f4442f71fa3 (be explicit that -p and -P are sc(4) only) MFC after: 3 days Reviewed by: ziaee Differential Revision: https://reviews.freebsd.org/D53878 (cherry picked from commit 9ec8196f68bac015965164f7f1a65c619bab4e85) --- usr.sbin/vidcontrol/vidcontrol.1 | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/usr.sbin/vidcontrol/vidcontrol.1 b/usr.sbin/vidcontrol/vidcontrol.1 index 91804facce8e..a32b5a10f57c 100644 --- a/usr.sbin/vidcontrol/vidcontrol.1 +++ b/usr.sbin/vidcontrol/vidcontrol.1 @@ -12,7 +12,7 @@ .\" notice, this list of conditions and the following disclaimer in the .\" documentation and/or other materials provided with the distribution. .\" -.Dd July 7, 2024 +.Dd November 22, 2025 .Dt VIDCONTROL 1 .Os .Sh NAME @@ -502,9 +502,6 @@ The .Nm utility uses the .Xr syscons 4 -.\" is it supported on vt(4)??? -or -.Xr vt 4 .Dv CONS_SCRSHOT .Xr ioctl 2 to capture the current contents of the video buffer. From nobody Thu Jan 1 18:05:44 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dhvrT0G3Gz6MW6f for ; Thu, 01 Jan 2026 18:05:45 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dhvrS3vBzz3YMn for ; Thu, 01 Jan 2026 18:05:44 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767290744; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=azzhaSQojO6YikFdhyu3w5toUse1cZTXlcryScN/1Cw=; b=Osqc2Fxpgrf7bp2LxwKqb4KT3e86vA6Z3RQKaNjqqcXLDfrxG1V+FEUOEz1GW6mpR1phyt HmSTTzQiytmg6CpomlZpGNO1lsZsTGtLm4IxwyeF+LpjXeMsbm+JtMW9zuWsvmDqwwf6bZ YpqFCrzcy60R7OEubDdpDt0xc4H8bsq2NOq2HxkTWenn3J2uZHgM7PEcFTjLCD3HwxKz0Z XCq65no8EhsNILaRTPQc+BqpcZwYpv5LvMKplDmmtxftwsVHweLb3nl6hX44frwhMlDWb+ UpNXBSOOEzvcjKGXkua+/3b2yFkudjCmQxCmpQgmm19APOrpF24EgV0Th0oZeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767290744; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=azzhaSQojO6YikFdhyu3w5toUse1cZTXlcryScN/1Cw=; b=Nn5IUKflqH0aAAWbV0Aqbgxdy5RUgRCAy6X5fi2Cd/pMP8XOFnv2drF3kFI60DfyABGpix i8i3OqbK6vQSdLPGaqpLBCa8xnSVxnfoSWPC3fI5vJ2hL1lD346i1IZmmUqMugE8lpAFQg KN3fGdFr0aUH8dTo9BB2IhH136dgQoDyos4zsX7Gu1GUZL+Y6jdL8+8WhJeWPbROfz+JzM TJeA1eBOSP3yMcNIiKvhWPf2SdlzbTFU8r4e33bQiLY2GACKaNBKS3cBTTzLbmSeJ+rqA5 KiV1IlGVt4rcMseAkrS0kyYklYu2soPTP8zQaQc21fZUhsTH0bbAaodKXRFxdA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767290744; a=rsa-sha256; cv=none; b=Tlnh0WGTZfSuaoeDmaSDoUYFQvSyXW9UcGeHMTtnEjZNyEnNST8MjEWVtjbWSUT8bwmbYT TfPUKzUjx791DIGiuj6yoNR3PPHUMjpoPXuKkFlnkcX+Lq9302yVq/l2ZA3tIqmUn+cVlm 2rAuJPZ0rKoofM1jjMjF3+FclcxZPPBCcrubKP7ZNdgwiPLMiL8OyfEuhTMFe+N/Ky4ddq 8HlkG4UxsvIc7fCW+QhRtfj7DdJa/GUNpbaskZ23cHe3SIw+Ye0clbPWHgZ1pf+Osm5c4b /3DPY6Tb0SJ07xpcm2yjVTNYBwUZzL+xU6uyv5wKfmuTYqub/qGwGVYZo6VmgQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dhvrS3R0dzkDM for ; Thu, 01 Jan 2026 18:05:44 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 34629 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 01 Jan 2026 18:05:44 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Cc: Seth Hoffert From: Alexander Ziaee Subject: git: da136429133b - stable/15 - man typos: Fix pf.conf.5 and jail.2 typos List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: ziaee X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: da136429133bc3b4a8a3205cb791029fe72c3f3b Auto-Submitted: auto-generated Date: Thu, 01 Jan 2026 18:05:44 +0000 Message-Id: <6956b778.34629.59e7ccb3@gitrepo.freebsd.org> The branch stable/15 has been updated by ziaee: URL: https://cgit.FreeBSD.org/src/commit/?id=da136429133bc3b4a8a3205cb791029fe72c3f3b commit da136429133bc3b4a8a3205cb791029fe72c3f3b Author: Seth Hoffert AuthorDate: 2025-12-08 15:53:58 +0000 Commit: Alexander Ziaee CommitDate: 2026-01-01 18:05:03 +0000 man typos: Fix pf.conf.5 and jail.2 typos MFC after: 3 days Signed-off-by: Seth Hoffert Closes: https://github.com/freebsd/freebsd-src/pull/1919 (cherry picked from commit 0140dc4a68ac25c70300ed2a418e7ca441638bdb) --- lib/libsys/jail.2 | 2 +- share/man/man5/pf.conf.5 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libsys/jail.2 b/lib/libsys/jail.2 index ee4e5b03d38e..4c8530ca7733 100644 --- a/lib/libsys/jail.2 +++ b/lib/libsys/jail.2 @@ -334,7 +334,7 @@ descriptor jail. The system calls .Fn jail_attach_jd and -.Fn jail_aremove_jd +.Fn jail_remove_jd work the same as .Fn jail_attach and diff --git a/share/man/man5/pf.conf.5 b/share/man/man5/pf.conf.5 index 3b2588f51498..4a049fda08ae 100644 --- a/share/man/man5/pf.conf.5 +++ b/share/man/man5/pf.conf.5 @@ -1416,7 +1416,7 @@ translated to 198.51.100.100. .Pp The current implementation will only extract IPv4 addresses from the IPv6 addresses with a prefix length of /96 and greater. -.It Ar binat +.It Ar binat-to A .Ar binat-to rule specifies a bidirectional mapping between an external IP netblock From nobody Thu Jan 1 18:05:45 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dhvrT6vgmz6MW3l for ; Thu, 01 Jan 2026 18:05:45 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dhvrT4kwCz3YHf for ; Thu, 01 Jan 2026 18:05:45 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767290745; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=b4z5r7ynRxD7/CjT33gGWSseyIR0v9V/2ZVxgne3fUE=; b=vAxqePjy5qtTq/tNzemrULBbfLXhqmCQ980Vpp99vvBQwKkYCqQs7Pww5ynVqHTk65cNvM 96jNgwLxvMnJxjIU8cynR0ES14gCEXEJ8B7K2jnidoBEzgTfo9aIXRlLA1yMoEpxqHqCoA cQ31VVBPPEAnu4iLAMIvCb3Y2Z9czlcfe3DjST3e7pvyk6AP5XEn2dvKiwlevQJ5l7P+ma nDMe9Q5kzufc3PH/e29r0rkkgCIK+vsPvXrBTZXtx083lRAxZc4Kpsq9g/ng+ve2hFsySJ 0vDTujvg9+l46AnqKAnhqhPJ3xmTZN71Vh1USUwURCFAPJSkDmlN3mhPtC34MQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767290745; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=b4z5r7ynRxD7/CjT33gGWSseyIR0v9V/2ZVxgne3fUE=; b=XCEpdYq4O8ouxL6vlzHhNFq9Mwf+YadlM4hWpmQL3vIPpblXyBvCYrtF/l7GzAP/06vs+t 7i4bfz4t/3WphsOrfU0uIWTkrklYfVE86LSnV9ZzklzReLMrK64K0sPmPmF8P10ixYpuyJ a0wDo1HJfKAA6dGKVCVdwEPCmwTgYplq4Jc3yx18ZXjzOXbEgv1202Suq7vxR0FPKnjV0p 21+e+34TIh0Sls35J1torRcPwIq47dO6+9qtLmHtvchpzrZv7FxF/NC+qNGTZdr83KqX1n ycdOUaa6clvQpTIqQ4/pwe20w8j19P7lXGvGBVwI3eS3NVsyblHNVKcXpttvbw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767290745; a=rsa-sha256; cv=none; b=tECnsG1+CGzsCfdW/ThBGx0ZJtJSDZ3U91f0QPJvLocRJ6luWIejk2EBoao0pA6Kha3rkk +XKjKZmZOeywuJZKayLbxa2Sjc6N3FV6a2UuVrG4Bjsz5zmHZtesCE3MHzZVmqKyGkx51a EKIFexGsWYIGGj7YMVT7Ela10LMbB6IkJJLI4b3SjpZ/m8TEvo3fwem4qdDtmeDAkEkRUK xCRdmLcHAvjwaXi4pM/GZWtrvTe23CLVxjlpDcRkwkgofgLTHuiV5JlhbxZ0d5INqL8FmB QLaau13kTCfgkuWIZkMIuhPjUbdqb6IXzTqQ/huMONj74QyZnq8OELgMbJdDyw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dhvrT49qHzkGh for ; Thu, 01 Jan 2026 18:05:45 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 35686 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 01 Jan 2026 18:05:45 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Alexander Ziaee Subject: git: 2ecb2990813c - stable/15 - bnxt.4: Adjust for recent HARDWARE List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: ziaee X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 2ecb2990813caf98ded178f15008233a2bf5052d Auto-Submitted: auto-generated Date: Thu, 01 Jan 2026 18:05:45 +0000 Message-Id: <6956b779.35686.31a8c6b7@gitrepo.freebsd.org> The branch stable/15 has been updated by ziaee: URL: https://cgit.FreeBSD.org/src/commit/?id=2ecb2990813caf98ded178f15008233a2bf5052d commit 2ecb2990813caf98ded178f15008233a2bf5052d Author: Alexander Ziaee AuthorDate: 2025-12-11 01:58:28 +0000 Commit: Alexander Ziaee CommitDate: 2026-01-01 18:05:04 +0000 bnxt.4: Adjust for recent HARDWARE + Adjust document description matching another terabit driver + Add BCM576XX family to DESCRIPTION, switch to XX notation + Add some model names, additional models, and improvements to HARDWARE MFC after: 3 days Reviewed by: sumit.saxena_broadcom.com (previous) Differential Revision: https://reviews.freebsd.org/D54028 (cherry picked from commit 473bc5778c3e5136831c08d525d673059ef0aaa2) --- share/man/man4/bnxt.4 | 33 +++++++++++++++++++++++---------- 1 file changed, 23 insertions(+), 10 deletions(-) diff --git a/share/man/man4/bnxt.4 b/share/man/man4/bnxt.4 index 0900a11cecea..5e3ee27426d5 100644 --- a/share/man/man4/bnxt.4 +++ b/share/man/man4/bnxt.4 @@ -23,12 +23,12 @@ .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF .\" THE POSSIBILITY OF SUCH DAMAGE. .\" -.Dd August 18, 2020 +.Dd December 10, 2025 .Dt BNXT 4 .Os .Sh NAME .Nm bnxt -.Nd "Broadcom NetXtreme-C/NetXtreme-E Family Ethernet driver" +.Nd Broadcom NetXtreme family 10Gb to 400Gb Ethernet driver .Sh SYNOPSIS To compile this driver into the kernel, place the following lines in your @@ -47,17 +47,16 @@ if_bnxt_load="YES" .Sh DESCRIPTION The .Nm -driver provides support for various NICs based on the Broadcom BCM57301/2/4, -BCM57402/4/6, and BCM57502/4/8 Ethernet controller chips. +driver provides support for PCIe NICs based on the Broadcom BCM573XX, +BCM574XX, BCM575XX, and BCM576XX Ethernet controllers. .Pp For more information on configuring this device, see .Xr ifconfig 8 . .Sh HARDWARE The .Nm -driver provides support for various NICs based on the Broadcom NetXtreme-C and -NetXtreme-E families of Gigabit Ethernet controller chips, including the -following: +driver supports the following +Broadcom 10Gb to 400Gb Ethernet controllers: .Pp .Bl -bullet -compact .It @@ -103,11 +102,25 @@ Broadcom BCM57417 NetXtreme-E Ethernet Partition .It Broadcom BCM57454 NetXtreme-E 10Gb/25Gb/40Gb/50Gb/100Gb Ethernet .It -Broadcom BCM57502 NetXtreme-E 10Gb/25Gb/50Gb/100Gb/200Gb Ethernet +Broadcom BCM57502 NetXtreme-E 10Gb/25Gb/50Gb Ethernet .It -Broadcom BCM57504 NetXtreme-E 10Gb/25Gb/50Gb/100Gb/200Gb Ethernet +Broadcom N425 BCM57504 NetXtreme-E 10Gb/25Gb Ethernet .It -Broadcom BCM57508 NetXtreme-E 10Gb/25Gb/50Gb/100Gb/200Gb Ethernet +Broadcom P425 BCM57504 NetXtreme-E 10Gb/25Gb Ethernet +.It +Broadcom N1100 BCM57504 NetXtreme-E 10Gb/25Gb/50Gb/100Gb Ethernet +.It +Broadcom N2100 BCM57508 Thor 10Gb/25Gb/50Gb/100Gb Ethernet +.It +Broadcom P2100 BCM57508 Thor 10Gb/25Gb/50Gb/100Gb Ethernet +.It +Broadcom N2200 BCM57608 Thor 2 10Gb/25Gb/50Gb/100Gb/200Gb Ethernet +.It +Broadcom P2200 BCM57608 Thor 2 10Gb/25Gb/50Gb/100Gb/200Gb Ethernet +.It +Broadcom N1400 BCM57608 Thor 2 25Gb/50Gb/100Gb/200Gb/400Gb Ethernet +.It +Broadcom P1400 BCM57608 Thor 2 25Gb/50Gb/100Gb/200Gb/400Gb Ethernet .El .Sh SYSCTL VARIABLES These variables must be set before loading the driver, either via From nobody Thu Jan 1 18:05:46 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dhvrV6TRRz6MWDC for ; Thu, 01 Jan 2026 18:05:46 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dhvrV5R17z3YQQ for ; Thu, 01 Jan 2026 18:05:46 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767290746; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=qpc2LUh1I1AJT3ti9mmYpz/r7RXTXCvHqUlJRX+IIk4=; b=QU3frFioehgi6679pBoie32C0QBBzzI2zmu+Kb1E+SkcCSPOtCjuB2JAvL7iFs6d4NRsyy aajKYeTU7hjNrjuXr0057cOJC6t/MlFBzmMC0nxOz50Z6AhQZ5YEHEoMsB6r7uADV630y1 BxUJgoJn1mjuP+QHqAoLrlRs1HHIhg8gQjhyezluZ4B8X51m+wZeVduZGntxT+azqo75h/ JJSdCjRgmx0H+Gc4YkQw+s7agq75KMe8l62rXdm0jM7RQmNnOukHC+/uzaPkiNO2tll4lj MvbeAjqzuCVNYaIs2BMzg6iSZLAdUOVXuSHKkqb7MegnZRQC7qBM92p/cdeuPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767290746; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=qpc2LUh1I1AJT3ti9mmYpz/r7RXTXCvHqUlJRX+IIk4=; b=MllRm2K8xVvcFHZw/3XD5xsk1Yl1VZ09fpBININycsXv20ZLGsg9bS16KXmgL3Vp6kcn6n kA37k2zTFgUjiR/DbeHrY63DFPkSKMZqfctJbhjsl3PchUTBk1H+WbPhYfvFQ0A6JYjhru 34AKUEkIV4EpXpHkVdwnjfhbzqu6gpegfJaozuSkl5kmsZvmwbi/LEWpNLu2lI3sf6DpDt d308fmWcjsLWx1kERY3Rj9qgcZ1fHaGOTtFZeT7v1GMmLRAPQaLwQFm+SyncO2qPnoC6vI yhMcLZaWZleCTsgHPhEVf918asD0xj+R3s4FRmgjl7PdVBZnSm9PEtNpKg6++Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767290746; a=rsa-sha256; cv=none; b=GVOitgkw8+jB8cGytoeDQlgNHhYobxpn9QqH3Bb7zLoT7QqNpKzDJfGFLjEmcWreCEtBeF UWql2uJdiYKGoEuT9QWbtIlqPwdJPT7g2+5YnOtz6mQhVKzkA4m5wyBIVY5iSm5JP31aUZ QcqHktbT2i6ZmexwdJyclYukXx1Vm3T6XUxJPXn7UZEoLgcwx+TpmAyiZz4Cj/yziaQPba BGWt5d/udSk9yuhbnpnkC2ezvqxCjFUR2QQx6nCI57HVuJ8SL5Zj5pxH5JxIRt8n8B8NIJ O0YF6o3nBuPMdPX5fyyDbxBBDZcdiXTX22qdrLXYUNTm+hvxkZW4Z2iD3EwxjA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dhvrV4zvBzkDN for ; Thu, 01 Jan 2026 18:05:46 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3560a by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 01 Jan 2026 18:05:46 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Alexander Ziaee Subject: git: 49358373aa8a - stable/15 - examples/mdoc: Remove document description quotes List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: ziaee X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 49358373aa8a42f47b256656afdc2f831e2429fa Auto-Submitted: auto-generated Date: Thu, 01 Jan 2026 18:05:46 +0000 Message-Id: <6956b77a.3560a.10c4fae5@gitrepo.freebsd.org> The branch stable/15 has been updated by ziaee: URL: https://cgit.FreeBSD.org/src/commit/?id=49358373aa8a42f47b256656afdc2f831e2429fa commit 49358373aa8a42f47b256656afdc2f831e2429fa Author: Alexander Ziaee AuthorDate: 2025-12-17 17:15:53 +0000 Commit: Alexander Ziaee CommitDate: 2026-01-01 18:05:04 +0000 examples/mdoc: Remove document description quotes Quotes in roff do not work the way quotes in shell do, remove them from the examples to hopefully lead less people astray. MFC after: 3 days (cherry picked from commit 067b62bd5834484c927038aff28d36da6c5d6cca) --- share/examples/mdoc/example.1 | 2 +- share/examples/mdoc/example.3 | 2 +- share/examples/mdoc/example.4 | 2 +- share/examples/mdoc/example.9 | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/share/examples/mdoc/example.1 b/share/examples/mdoc/example.1 index daffb8bc0422..8305cf45944c 100644 --- a/share/examples/mdoc/example.1 +++ b/share/examples/mdoc/example.1 @@ -10,7 +10,7 @@ .Os .Sh NAME .Nm example -.Nd "example command manual page" +.Nd example command manual page .Sh SYNOPSIS .Nm .Op Fl abc diff --git a/share/examples/mdoc/example.3 b/share/examples/mdoc/example.3 index 22c398e0491c..a1e47b34064b 100644 --- a/share/examples/mdoc/example.3 +++ b/share/examples/mdoc/example.3 @@ -10,7 +10,7 @@ .Os .Sh NAME .Nm example -.Nd "example library function manual page" +.Nd example library function manual page .Sh LIBRARY .\" Note: list of available libraries is available in mdoc(7) .Lb libc diff --git a/share/examples/mdoc/example.4 b/share/examples/mdoc/example.4 index e627f81af530..0b9e856b01ed 100644 --- a/share/examples/mdoc/example.4 +++ b/share/examples/mdoc/example.4 @@ -10,7 +10,7 @@ .Os .Sh NAME .Nm example -.Nd "example device driver manual page" +.Nd example device driver manual page .Sh SYNOPSIS To compile the driver into the kernel, place the following lines in the diff --git a/share/examples/mdoc/example.9 b/share/examples/mdoc/example.9 index f105f7465f2c..3e56aa4ad89c 100644 --- a/share/examples/mdoc/example.9 +++ b/share/examples/mdoc/example.9 @@ -10,7 +10,7 @@ .Os .Sh NAME .Nm example -.Nd "example kernel interface manual page" +.Nd example kernel interface manual page .Sh SYNOPSIS .In sys/example.h .Ft int From nobody Thu Jan 1 18:05:47 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dhvrX1B01z6MW9C for ; Thu, 01 Jan 2026 18:05:48 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dhvrW6Bwvz3YSr for ; Thu, 01 Jan 2026 18:05:47 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767290747; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ldWY578P3zGVZak1BYH5MlLRlM8eYH+KJJB37aQ76vE=; b=yZC0Zr8IAbu6QXw/Zfpg0FrZ67YT179uF6oETG1oNra4a1oesBxykKL1qyVWEFAvaTjjTX L6wVT/M94iPo9wwyXLZZrM0oKM0x23SedxGqIq4H0KCAYj5i2AzxtQiZyB3wEBRAT4Zm0h YyKBYnRpKGMdqnrYxmHqljfSBPPMINK+s6ZTvEqYuLwP8AqSHmTBMpT4aiLHTipmR8BSbp SRClMreXsQs7lex5VwHC69Sp0HikK2lKSY+sRIFTPdIHHNbi8rTHw82R9GVtrrLg637J3Z 4Lfc23Ksj4snlSNiQ3WDMbaKpUKQ5wKYhb4GaJ6WmpPc40Bjihq7aoBkTrolKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767290747; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ldWY578P3zGVZak1BYH5MlLRlM8eYH+KJJB37aQ76vE=; b=oqfJb3lOeQKlDgqWbCA9z2ICpeDsd4DOkadkdEjjCRva6qs3Tu8Ckc3/8nOXOGrdxqnpXa f3+vWGxUa3U4hfZ7e4XJRFqD4yc5WSWT4VE+HRVgHG9iO1LPBXzCQkROEWIVJ4/mDMxQlk X6cmd34a5/0dqRIKOohwcytE6Kf70/0amGvRQoIuLJtF57M5E0oWmucEKtJhgDoOfPPeK3 M6nkTPKeJ4wMIuNpBj371UKY0fGElUYAXucu6SkRoto5BYu9OUjPxcdQChizAwuAltX58v Chv4a3ei2JZjaF2a36tZVvYBDPnj7GBPx+D8jnSd4qmFUTBCvwSfN3HZYQjA8g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767290747; a=rsa-sha256; cv=none; b=dhM/9I3F1E+pTDZ+IM17HDHEjQcAHLt8eGmeM7j+A79rfxwGA9VJiBor/Iq9YS1lZmGWer BhqpMkNHLiFTsCZAmBzfJ5auxT53PiCmXdLkGLApIsVC3zt6K/76pEIrqiNTAMTkTQhWpP J2rfWWnYYwJh79M36uwjrPhY2rtSWuJyvE38psb+apJHow2Eaiz5J99QAilOP0Ps9TmZ4A H0/hkvawZLXqQDG84TIm0/zDtfkUNTgzcJydCy8SF7yQqmD3LsY2yRAMZZwzjg+swDwqgH P0J6ozlXZr9MSOOLtyMMOk2IlN6cjww1Mw8yWAL3cZI3OOe/86PeIrnXhWLnVQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dhvrW5l96zk0G for ; Thu, 01 Jan 2026 18:05:47 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3638b by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 01 Jan 2026 18:05:47 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Cc: Rob Nichols From: Alexander Ziaee Subject: git: f9bb95414c26 - stable/15 - jail.conf.5: Fix mandoc typos List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: ziaee X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: f9bb95414c265f90be10e793102a5d3423645d78 Auto-Submitted: auto-generated Date: Thu, 01 Jan 2026 18:05:47 +0000 Message-Id: <6956b77b.3638b.1930685f@gitrepo.freebsd.org> The branch stable/15 has been updated by ziaee: URL: https://cgit.FreeBSD.org/src/commit/?id=f9bb95414c265f90be10e793102a5d3423645d78 commit f9bb95414c265f90be10e793102a5d3423645d78 Author: Rob Nichols AuthorDate: 2025-12-16 03:26:26 +0000 Commit: Alexander Ziaee CommitDate: 2026-01-01 18:05:04 +0000 jail.conf.5: Fix mandoc typos MFC after: 3 days Reviewed by: ziaee Signed-off-by: Rob Nichols Closes: https://github.com/freebsd/freebsd-src/pull/1928 (cherry picked from commit d1d88b6e8c31b1e472d66471ff1e666e5310709e) --- usr.sbin/jail/jail.conf.5 | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/usr.sbin/jail/jail.conf.5 b/usr.sbin/jail/jail.conf.5 index 627c38b0f8b6..7cc7a7cf9fca 100644 --- a/usr.sbin/jail/jail.conf.5 +++ b/usr.sbin/jail/jail.conf.5 @@ -44,13 +44,11 @@ A parameter assignment consists of a single word, the parameter name, an equals sign, a value enclosed in double quotes, and a terminating semicolon. .Pp The syntax of a jail definition is as follows: -.Bd -unfilled -. Ar jailname Cm \&{ -.Bd -unfilled -offset indent -compact -.Ar parameter Cm = Qq Ar value ; -\&... -.Ed -.Cm \&} +.Bd -literal -offset indent +jailname { + parameter = "value"; + ... +} .Ed .Pp This is used by @@ -234,11 +232,11 @@ bar { } # Include configurations from standard locations. -\[char46]include "/etc/jail.conf.d/*.conf"; -\[char46]include "/etc/jail.*.conf"; -\[char46]include "/usr/local/etc/jail[.]conf"; -\[char46]include "/usr/local/etc/jail.conf.d/*.conf"; -\[char46]include "/usr/local/etc/jail.*.conf"; +\&.include "/etc/jail.conf.d/*.conf"; +\&.include "/etc/jail.*.conf"; +\&.include "/usr/local/etc/jail[.]conf"; +\&.include "/usr/local/etc/jail.conf.d/*.conf"; +\&.include "/usr/local/etc/jail.*.conf"; .Ed .Sh SEE ALSO .Xr jail 2 , From nobody Thu Jan 1 18:05:50 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dhvrZ3bf4z6MVqX for ; Thu, 01 Jan 2026 18:05:50 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dhvrZ0yHpz3YQx for ; Thu, 01 Jan 2026 18:05:50 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767290750; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=iTtmu6/wTngtAuQwwaCFJgSVwWYnzlYQtB6qGrRBwvM=; b=dxOZhArAFX0OjM+BGjmLlgZtF6MaJ8SE7MpbjghK3QFxR1z2H7JcQSNWhOKF2rr2PcAN1+ zUEo+CSgjuCASozo7078uiZBtdrsuUK5BzyIykZxSAVHf6dExRhSrbx0Rw+JOiY/KCeGMC FziYyKpWOJASpnaZCItjor95rTiLFP7wuVHWvINj+25CI9ACWwpHcRg91xY0+l41ZZZlvB tYkb/IF3cafjt5xDNbpdp0ln9rkFhZNzSuBKiuRxZ++5qEwB1nOsZPwkC4XGElD50mz/xu aC7a6hLMcfRMjDr13KI3KQEzTJ+NU34eeam6E9efOWByTVKkCGJcu/hKE40FCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767290750; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=iTtmu6/wTngtAuQwwaCFJgSVwWYnzlYQtB6qGrRBwvM=; b=QZwUcb3ddIBGB8JnuZOP3so7aXXaHnML8Gva1U//sFLau82WZ7owEjrMWz7rCJBh1x0gBF cxib93MXgRWssdeyEy8jcbtaBF0FEPtC8KYEgkPjoar8XAUkUSqQdaoaY4oCmL2mapkAXn 7LxDP5a7zPuoW5pjUOayvsekxW0f9eiqJwEmcto6JhePRfNlxNpyMWkN7x+MbXMgmhS/WC vllVHRFFwO9/myxAQPEE6jQqsLBibvFxubhY20HDYgpkkDUble1UyDVDpF65zcEdgt8ixo MKiRgy09KBuxaJpAW6lPNGVOK3sJfWUGT645WljyHIXaePccsp/6OULgSEgrdQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767290750; a=rsa-sha256; cv=none; b=O9b6Ho14+c7JwBolfB6ceoUwEx+DUy7NhdUmvXDZI3M7dO+q36FbG9gGI6NRV1RKExCJBs snnG+ZhfQAsxM5yLVoBHL4rRPUP4JrdiFKgexUnt5jgHgOvICmTFHjHr5O1wy9xgVaJCUX 4b0psUbo4Qa7Cm4eJ4ylcwKLcJOovtm937P3XRn2K4aq6jQ4Tp43Y57+pi4BFSV7z+f1XP 5iktHfL0a7hkajLWP/NKOuBCd8NLqan9SyXyQwPTnJcIT8O4iLhO6M2TzjSlKBcYeBl9zv Kw0zLxFsl8DnjVZaIYDkbLaQnmExpBPbELt0HaoJEkXov3IiHxFLc1FzTV93eA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dhvrZ0RlXzk8p for ; Thu, 01 Jan 2026 18:05:50 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3634b by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 01 Jan 2026 18:05:50 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Alexander Ziaee Subject: git: baef11e8e9b3 - stable/15 - camcontrol.8: Descriptions before examples List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: ziaee X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: baef11e8e9b327dbe634edc01fef332a59ba9790 Auto-Submitted: auto-generated Date: Thu, 01 Jan 2026 18:05:50 +0000 Message-Id: <6956b77e.3634b.7b2cd9c8@gitrepo.freebsd.org> The branch stable/15 has been updated by ziaee: URL: https://cgit.FreeBSD.org/src/commit/?id=baef11e8e9b327dbe634edc01fef332a59ba9790 commit baef11e8e9b327dbe634edc01fef332a59ba9790 Author: Alexander Ziaee AuthorDate: 2025-12-23 13:36:49 +0000 Commit: Alexander Ziaee CommitDate: 2026-01-01 18:05:05 +0000 camcontrol.8: Descriptions before examples This page has a lot of examples, so having them in the previous order can be confusing. Rewrite to the normal order where the descriptions come before the command, followed by a colon, which is still clear even jumping to the middle of the section. PR: 291759 MFC after: 3 days Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D54285 (cherry picked from commit fbc321b9cdceecd3c97742868da5d500423cf484) --- sbin/camcontrol/camcontrol.8 | 349 ++++++++++++++++++------------------------- 1 file changed, 148 insertions(+), 201 deletions(-) diff --git a/sbin/camcontrol/camcontrol.8 b/sbin/camcontrol/camcontrol.8 index bdda1828abf5..4963615fe6f6 100644 --- a/sbin/camcontrol/camcontrol.8 +++ b/sbin/camcontrol/camcontrol.8 @@ -2684,303 +2684,250 @@ is the transport layer device. are the CAM application passthrough devices. .El .Sh EXAMPLES -.Dl camcontrol eject -n cd -u 1 -v -.Pp Eject the CD from cd1, and print SCSI sense information if the command -fails. +fails: .Pp -.Dl camcontrol tur da0 +.Dl camcontrol eject -n cd -u 1 -v .Pp Send the SCSI test unit ready command to da0. The .Nm -utility will report whether the disk is ready, but will not display sense -information if the command fails since the +utility will report whether the disk is ready, +but will not display sense information if the command fails since the .Fl v -switch was not specified. -.Bd -literal -offset indent -camcontrol tur da1 -E -C 4 -t 50 -Q head -v -.Ed +switch was not specified: +.Pp +.Dl camcontrol tur da0 .Pp Send a test unit ready command to da1. Enable kernel error recovery. Specify a retry count of 4, and a timeout of 50 seconds. -Enable sense -printing (with the -.Fl v -flag) if the command fails. -Since error recovery is turned on, the -disk will be spun up if it is not currently spinning. -The -.Tn SCSI -task attribute for the command will be set to Head of Queue. +Enable sense printing +.Pq with the Fl v flag +if the command fails. +Since error recovery is turned on, +the disk will be spun up if it is not currently spinning. +The SCSI task attribute for the command will be set to Head of Queue. The .Nm -utility will report whether the disk is ready. -.Bd -literal -offset indent -camcontrol cmd -n cd -u 1 -v -c "3C 00 00 00 00 00 00 00 0e 00" \e - -i 0xe "s1 i3 i1 i1 i1 i1 i1 i1 i1 i1 i1 i1" -.Ed +utility will report whether the disk is ready: +.Pp +.Dl camcontrol tur da1 -E -C 4 -t 50 -Q head -v .Pp Issue a READ BUFFER command (0x3C) to cd1. Display the buffer size of cd1, and display the first 10 bytes from the cache on cd1. -Display SCSI sense -information if the command fails. +Display SCSI sense information if the command fails: .Bd -literal -offset indent -camcontrol cmd -n cd -u 1 -v -c "3B 00 00 00 00 00 00 00 0e 00" \e - -o 14 "00 00 00 00 1 2 3 4 5 6 v v v v" 7 8 9 8 +camcontrol cmd -n cd -u 1 -v -c "3C 00 00 00 00 00 00 00 0e 00" \e + -i 0xe "s1 i3 i1 i1 i1 i1 i1 i1 i1 i1 i1 i1" .Ed .Pp Issue a WRITE BUFFER (0x3B) command to cd1. Write out 10 bytes of data, not including the (reserved) 4 byte header. -Print out sense information if -the command fails. -Be very careful with this command, improper use may -cause data corruption. +Print out sense information if the command fails. +Be very careful with this command, +improper use may cause data corruption: .Bd -literal -offset indent -camcontrol modepage da3 -m 1 -e -P 3 +camcontrol cmd -n cd -u 1 -v -c "3B 00 00 00 00 00 00 00 0e 00" \e + -o 14 "00 00 00 00 1 2 3 4 5 6 v v v v" 7 8 9 8 .Ed .Pp -Edit mode page 1 (the Read-Write Error Recover page) for da3, and save the -settings on the drive. +Edit mode page 1 (the Read-Write Error Recover page) for da3, +and save the settings on the drive. Mode page 1 contains a disk drive's auto read and -write reallocation settings, among other things. +write reallocation settings, among other things: +.Bd -literal -offset indent +camcontrol modepage da3 -m 1 -e -P 3 +.Ed +.Pp +Rescan all SCSI buses in the system for devices that have been added, +removed or changed: .Pp .Dl camcontrol rescan all .Pp -Rescan all SCSI buses in the system for devices that have been added, -removed or changed. +Rescan SCSI bus 0 for devices that have been added, removed or changed: .Pp .Dl camcontrol rescan 0 .Pp -Rescan SCSI bus 0 for devices that have been added, removed or changed. +Rescan SCSI bus 0, target 1, lun 0 to see if it has been added, removed, +or changed: .Pp .Dl camcontrol rescan 0:1:0 .Pp -Rescan SCSI bus 0, target 1, lun 0 to see if it has been added, removed, or -changed. +Set the number of concurrent transactions for da5 to 24: .Pp .Dl camcontrol tags da5 -N 24 .Pp -Set the number of concurrent transactions for da5 to 24. -.Bd -literal -offset indent -camcontrol negotiate -n da -u 4 -T disable -.Ed +Disable tagged queueing for da4: .Pp -Disable tagged queueing for da4. -.Bd -literal -offset indent -camcontrol negotiate -n da -u 3 -R 20.000 -O 15 -a -.Ed +.Dl camcontrol negotiate -n da -u 4 -T disable .Pp Negotiate a sync rate of 20MHz and an offset of 15 with da3. -Then send a -Test Unit Ready command to make the settings take effect. -.Bd -literal -offset indent -camcontrol smpcmd ses0 -v -r 4 "40 0 00 0" -R 1020 "s9 i1" -.Ed +Then send a Test Unit Ready command to make the settings take effect: .Pp -Send the SMP REPORT GENERAL command to ses0, and display the number of PHYs -it contains. -Display SMP errors if the command fails. -.Bd -literal -offset indent -camcontrol security ada0 -.Ed +.Dl camcontrol negotiate -n da -u 3 -R 20.000 -O 15 -a .Pp -Report security support and settings for ada0 -.Bd -literal -offset indent -camcontrol security ada0 -U user -s MyPass -.Ed +Send the SMP REPORT GENERAL command to ses0, +and display the number of PHYs it contains, +displaying SMP errors if the command fails: .Pp -Enable security on device ada0 with the password MyPass -.Bd -literal -offset indent -camcontrol security ada0 -U user -e MyPass -.Ed +.Dl camcontrol smpcmd ses0 -v -r 4 "40 0 00 0" -R 1020 "s9 i1" .Pp -Secure erase ada0 which has had security enabled with user password MyPass +Report security support and settings for ada0: .Pp -.Em WARNING! WARNING! WARNING! +.Dl camcontrol security ada0 +.Pp +Enable security on device ada0 with the password MyPass: +.Pp +.Dl camcontrol security ada0 -U user -s MyPass +.Pp +Secure erase the security enabled ada0 with user password MyPass. .Pp -This will +.Em WARNING ! WARNING ! WARNING ! +.Pp +The following command will .Em ERASE ALL data from the device, so backup your data before using! .Pp -This command can be used against an SSD drive to restoring it to -factory default write performance. -.Bd -literal -offset indent -camcontrol hpa ada0 -.Ed +This will restore a solid state drive +.Pq SSD +to factory default write performance: .Pp -Report HPA support and settings for ada0 (also reported via -identify). -.Bd -literal -offset indent -camcontrol hpa ada0 -s 10240 -.Ed +.Dl camcontrol security ada0 -U user -e MyPass .Pp -Enables HPA on ada0 setting the maximum reported sectors to 10240. +Report HPA support and settings for ada0 (also reported via identify): .Pp -.Em WARNING! WARNING! WARNING! +.Dl camcontrol hpa ada0 +.Pp +Enable HPA on ada0 setting the maximum reported sectors to 10240. +.Pp +.Em WARNING ! WARNING ! WARNING ! .Pp -This will +The following command will .Em PREVENT ACCESS -to all data on the device beyond this limit until HPA is disabled by setting -HPA to native max sectors of the device, which can only be done after a -power-on or hardware reset! +to all data on the device beyond this limit until HPA is disabled +by setting HPA to native max sectors of the device, +which can only be done after a power-on or hardware reset! .Pp .Em DO NOT -use this on a device which has an active filesystem! -.Bd -literal -offset indent -camcontrol persist da0 -v -i read_keys -.Ed +use this on a device which has an active filesystem: .Pp -This will read any persistent reservation keys registered with da0, and -display any errors encountered when sending the PERSISTENT RESERVE IN -.Tn SCSI -command. -.Bd -literal -offset indent -camcontrol persist da0 -v -o register -a -K 0x12345678 -.Ed +.Dl camcontrol hpa ada0 -s 10240 .Pp -This will register the persistent reservation key 0x12345678 with da0, -apply that registration to all ports on da0, and display any errors that -occur when sending the PERSISTENT RESERVE OUT command. -.Bd -literal -offset indent -camcontrol persist da0 -v -o reserve -s lun -k 0x12345678 -T ex_ac -.Ed +This will read any persistent reservation keys registered with da0, +and display any errors encountered when sending the +PERSISTENT RESERVE IN SCSI command: .Pp -This will reserve da0 for the exlusive use of the initiator issuing the -command. +.Dl camcontrol persist da0 -v -i read_keys +.Pp +Register the persistent reservation key 0x12345678 with da0, +apply that registration to all ports on da0, +and display any errors that +occur when sending the PERSISTENT RESERVE OUT command: +.Pp +.Dl camcontrol persist da0 -v -o register -a -K 0x12345678 +.Pp +Reserve da0 for the exclusive use of the initiator issuing the command. The scope of the reservation is the entire LUN. -Any errors sending the PERSISTENT RESERVE OUT command will be displayed. -.Bd -literal -offset indent -camcontrol persist da0 -v -i read_full -.Ed +Any errors sending the PERSISTENT RESERVE OUT command will be displayed: .Pp -This will display the full status of all reservations on da0 and print out -status if there are any errors. -.Bd -literal -offset indent -camcontrol persist da0 -v -o release -k 0x12345678 -T ex_ac -.Ed +.Dl camcontrol persist da0 -v -o reserve -s lun -k 0x12345678 -T ex_ac +.Pp +Display the full status of all reservations on da0 +and print out status if there are any errors: +.Pp +.Dl camcontrol persist da0 -v -i read_full .Pp This will release a reservation on da0 of the type ex_ac -(Exclusive Access). +.Pq Exclusive Access . The Reservation Key for this registration is 0x12345678. -Any errors that occur will be displayed. +Any errors that occur will be displayed: +.Pp +.Dl camcontrol persist da0 -v -o release -k 0x12345678 -T ex_ac +.Pp +Register the key 0x12345678 with da0, +specifying that it applies to the SAS initiators +with SAS addresses 0x1234567812345678 and 0x8765432187654321: .Bd -literal -offset indent camcontrol persist da0 -v -o register -K 0x12345678 -S \e -I sas,0x1234567812345678 -I sas,0x8765432187654321 .Ed .Pp -This will register the key 0x12345678 with da0, specifying that it applies -to the SAS initiators with SAS addresses 0x1234567812345678 and -0x8765432187654321. -.Bd -literal -offset indent -camcontrol persist da0 -v -o register_move -k 0x87654321 \e - -K 0x12345678 -U -p -R 2 -I fcp,0x1234567812345678 -.Ed -.Pp -This will move the registration from the current initiator, whose -Registration Key is 0x87654321, to the Fibre Channel initiator with the +Move the registration from the current initiator, +whose Registration Key is 0x87654321, +to the Fibre Channel initiator with the Fiber Channel World Wide Node Name 0x1234567812345678. A new registration key, 0x12345678, will be registered for the initiator -with the Fibre Channel World Wide Node Name 0x1234567812345678, and the -current initiator will be unregistered from the target. +with the Fibre Channel World Wide Node Name 0x1234567812345678, +and the current initiator will be unregistered from the target. The reservation will be moved to relative target port 2 on the target device. -The registration will persist across power losses. +The registration will persist across power losses: .Bd -literal -offset indent -camcontrol attrib sa0 -v -i attr_values -p 1 +camcontrol persist da0 -v -o register_move -k 0x87654321 \e + -K 0x12345678 -U -p -R 2 -I fcp,0x1234567812345678 .Ed .Pp -This will read and decode the attribute values from partition 1 on the tape -in tape drive sa0, and will display any -.Tn SCSI -errors that result. -.Bd -literal -offset indent -camcontrol zone da0 -v -c rz -P summary -.Ed +Read and decode the attribute values from partition 1 on the tape +in tape drive sa0, and will display any SCSI errors that result: .Pp -This will request the SMR zone list from disk da0, and print out a -summary of the zone parameters, and display any -.Tn SCSI -or -.Tn ATA -errors that result. -.Bd -literal -offset indent -camcontrol zone da0 -v -c rz -o reset -.Ed +.Dl camcontrol attrib sa0 -v -i attr_values -p 1 .Pp -This will request the list of SMR zones that should have their write -pointer reset from the disk da0, and display any -.Tn SCSI -or -.Tn ATA -errors that result. -.Bd -literal -offset indent -camcontrol zone da0 -v -c rwp -l 0x2c80000 -.Ed +Request the SMR zone list from disk da0, and print out a summary +of the zone parameters, and display any SCSI or ATA errors that result: .Pp -This will issue the Reset Write Pointer command to disk da0 for the zone -that starts at LBA 0x2c80000 and display any -.Tn SCSI -or -.Tn ATA -errors that result. -.Bd -literal -offset indent -camcontrol epc ada0 -c timer -T 60.1 -p Idle_a -e -s -.Ed +.Dl camcontrol zone da0 -v -c rz -P summary .Pp -Set the timer for the Idle_a power condition on drive -.Pa ada0 -to 60.1 seconds, enable that particular power condition, and save the timer -value and the enabled state of the power condition. -.Bd -literal -offset indent -camcontrol epc da4 -c goto -p Standby_z -H -.Ed +Request the list of SMR zones that should have their write pointer reset +from the disk da0, and display any SCSI or ATA errors that result: +.Pp +.Dl camcontrol zone da0 -v -c rz -o reset +.Pp +Issue the Reset Write Pointer command to disk da0 for the zone that +starts at LBA 0x2c80000 and display any SCSI or ATA errors that result: +.Pp +.Dl camcontrol zone da0 -v -c rwp -l 0x2c80000 +.Pp +Set the timer for the Idle_a power condition on drive ada0 to +60.1 seconds, enable that particular power condition, +and save the timer value and the enabled state of the power condition: +.Pp +.Dl camcontrol epc ada0 -c timer -T 60.1 -p Idle_a -e -s .Pp -Tell drive -.Pa da4 -to go to the Standby_z power state (which is -the drive's lowest power state) and hold in that state until it is -explicitly released by another +Tell drive da4 to go to the Standby_z power state +.Pq the drive's lowest power state +and hold in that state until it is explicitly released by another .Cm goto -command. -.Bd -literal -offset indent -camcontrol epc da2 -c status -P -.Ed +command: +.Pp +.Dl camcontrol epc da4 -c goto -p Standby_z -H .Pp -Report only the power state of -drive -.Pa da2 . +Report only the power state of drive da2. Some drives will power up in response to the commands sent by the .Pa status subcommand, and the .Fl P option causes .Nm -to only send the -.Tn ATA -CHECK POWER MODE command, which should not trigger a change in the drive's -power state. -.Bd -literal -offset indent -camcontrol epc ada0 -c list -.Ed +to only send the ATA CHECK POWER MODE command, +which should not trigger a change in the drive's power state: +.Pp +.Dl camcontrol epc da2 -c status -P .Pp -Display the ATA Power Conditions log (Log Address 0x08) for -drive -.Pa ada0 . +Display the ATA Power Conditions log (Log Address 0x08) for drive ada0: +.Pp +.Dl camcontrol epc ada0 -c list +.Pp +Set the timestamp of drive sa0 using a +.Xr strptime 3 +format string followed by a time string +that was created using this format string: .Bd -literal -offset indent camcontrol timestamp sa0 -s -f "%a, %d %b %Y %T %z" \e -T "Wed, 26 Oct 2016 21:43:57 -0600" .Ed -.Pp -Set the timestamp of drive -.Pa sa0 -using a -.Xr strptime 3 -format string followed by a time string -that was created using this format string. .Sh SEE ALSO .Xr cam 3 , .Xr cam_cdbparse 3 , From nobody Thu Jan 1 18:05:48 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dhvrY2y1Qz6MVkb for ; Thu, 01 Jan 2026 18:05:49 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dhvrY010mz3YG1 for ; Thu, 01 Jan 2026 18:05:49 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767290749; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=2xF7c2/FEuvoTGpn1+Z2O2bFssPLvlQssHli9oh5kls=; b=Bk5rMROHtg+IzDDkTfbYlavsebj6fuSM9D8RlDRxS65oRTUNIeNQHUPubXnbENjZVS9102 fL3lNz1m3sE3bRdGsAoPnqHcCo/92WTLCJa4yINbPi/NHtW0lZEauRpk7BSgUWysM4aJIf NrkhHWL1DiGMkGWSUfYNxOzuGIFHgdBNkllnZ4KcU4/Y9Fb05oqhcVEiV5bVDzqErCect/ E1egXkVROBKKuiOeW12OQDvT9Uh/BHlj/Dq3MKvQuieIiOe4KCf3kT93zVlO3r6dqlCJ+d V/yjtXMWgBM9bRvN5+SWuSiQKzGHNrGy2lzxozvgCjhDrYUvq6IjqFuRQmk9GA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767290749; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=2xF7c2/FEuvoTGpn1+Z2O2bFssPLvlQssHli9oh5kls=; b=nfK6hMUZvxX/ngrJp2Y6Gsk5OpWYwqpNhyGJoDTeK0bP6nZA7iBXHP9P5VvsmHQxW3KtuZ MLoW3nKUpCJ15sS9V18aMi5SK98rZCsny501AHQf3kSR71gKb7LdprNLUlV9c868avLYu/ efT89fhJXKxqyHwIk2IAy+3rMm0uMHZR25OhxvgnmTb47WE88Csqi0bMpqSGu8lcfEGYPp nLg4JjG1Tjs3e6RxPlopFfKhMQqtah5p8uRfuE4ShNjmkx+PsW4PO21oxbPqSJ5k4AldVC slThz35wuuZEOKBuMDUd7vms377ujYuNrNOtpuKKwk70qzK5wp0Xsx+B8ehH2A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767290749; a=rsa-sha256; cv=none; b=u7SpviYQvo8imCoRkm0xNeaOwthk8o9y7HGCeL+ydp6GgOc+jUPsAxRMb/KTQIlLP+EXiz R85MUSir09/xyJCfTqt8lmm2W6tbbbiBvoFjGfxtBBX/2b5IED9up1R8KaQWU73GKctwjE SOBMGJe7B4aECNH5KxDbhOeg5PZOh5/m+fs2Q3D+CxCEcwZOVLAkoEnvqOrdcjhKkJDJYD chbQRLSHdJuOZ3ZfZsAPEWZCsog5d4RWgl8VtuvnFMZq1lGydp3onEi9a4zvReCARJA9dy na/nrgF9kxt0PAYcwZUBHoRAoDAehNFF/evTOjx2jLBEZ7qb2eO4TnkncTiIIg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dhvrX6YljzkB9 for ; Thu, 01 Jan 2026 18:05:48 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 36346 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 01 Jan 2026 18:05:48 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Cc: Rick Parrish From: Alexander Ziaee Subject: git: 992f994bb71e - stable/15 - librt/mq_getfd_np.3: Initial manual page List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: ziaee X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 992f994bb71ec61e893457bfc2ffc02dfd8c0b50 Auto-Submitted: auto-generated Date: Thu, 01 Jan 2026 18:05:48 +0000 Message-Id: <6956b77c.36346.5072db67@gitrepo.freebsd.org> The branch stable/15 has been updated by ziaee: URL: https://cgit.FreeBSD.org/src/commit/?id=992f994bb71ec61e893457bfc2ffc02dfd8c0b50 commit 992f994bb71ec61e893457bfc2ffc02dfd8c0b50 Author: Rick Parrish AuthorDate: 2025-12-18 22:12:32 +0000 Commit: Alexander Ziaee CommitDate: 2026-01-01 18:05:04 +0000 librt/mq_getfd_np.3: Initial manual page The mq_getfd_np function appeared in FreeBSD 11 with no documentation. This function dereferences the mqd_t as a pointer to an int. Relnotes: yes MFC after: 3 days Reviewed by: kib (previous), markj, ziaee Differential Revision: https://reviews.freebsd.org/D43947 (cherry picked from commit ca2413d216197fd55f9363d6f65c641ff1aa3ec5) --- lib/librt/Makefile | 2 ++ lib/librt/mq_getfd_np.3 | 57 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 59 insertions(+) diff --git a/lib/librt/Makefile b/lib/librt/Makefile index c755bb123c73..1189636d0416 100644 --- a/lib/librt/Makefile +++ b/lib/librt/Makefile @@ -24,4 +24,6 @@ SYMBOL_MAPS=${.CURDIR}/Symbol.map HAS_TESTS= SUBDIR.${MK_TESTS}+= tests +MAN= mq_getfd_np.3 + .include diff --git a/lib/librt/mq_getfd_np.3 b/lib/librt/mq_getfd_np.3 new file mode 100644 index 000000000000..44c29fbdbf73 --- /dev/null +++ b/lib/librt/mq_getfd_np.3 @@ -0,0 +1,57 @@ +.\" +.\" Copyright (c) 2024 Rick Parrish +.\" +.\" SPDX-License-Identifier: BSD-2-Clause +.\" +.Dd December 18, 2025 +.Dt MQ_GETFD_NP 3 +.Os +.Sh NAME +.Nm mq_getfd_np +.Nd get a file descriptor for an open message queue descriptor +.Sh SYNOPSIS +.Lb librt +.In mqueue.h +.Ft int +.Fn mq_getfd_np "mqd_t mqd" +.Sh DESCRIPTION +The +.Nm +function retrieves the underlying file descriptor +from the given message queue descriptor returned from +.Xr mq_open 2 . +The file descriptor is used by other functions +to refer to that message queue. +The +.Fa mqd +argument must be an open message queue descriptor. +.Sh IMPLEMENTATION NOTES +.Fx +implements retrieval or alteration of message queue attributes +based on the file descriptor. +The open file descriptor is copied into a child after +.Xr fork 2 . +The +.Xr fstat 2 , +.Xr fchmod 2 , +and +.Xr fchown 2 +system calls are supported for the file descriptor. +.Pp +The file descriptor is safe to use so long as +the message queue descriptor remains open. +.Sh RETURN VALUES +Upon successful completion, the function returns a file descriptor. +.Sh ERRORS +The +.Nm +function does not return any errors. +.Sh SEE ALSO +.Xr mq_close 2 , +.Xr mq_open 2 , +.Xr mqueuefs 4 +.Sh HISTORY +Support for the +.Nm +function first appeared in +.Fx 11.0 . From nobody Thu Jan 1 18:05:51 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dhvrb4lpJz6MW1s for ; Thu, 01 Jan 2026 18:05:51 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dhvrb1j5xz3YcP for ; Thu, 01 Jan 2026 18:05:51 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767290751; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=zrjmQXAxrFrdEl+K2UbjCQV/LWlt94wXvXu3OUtu6nQ=; b=ZTz605mAkZib77M4k6Bwak6HLfJPSm6poLeYxXsj0YRTcXw5Z28jQrda/zGy6aOhGhMyXj uKm/mCOO8qKkp0yQFIS57TBLsmEULPoYb/9p4aoSHQ56zIX0j9xvvshDF74p8zb2yM5trL sXGETG190J/LdWzdWocvbUa/ZP1BLvcnNfbRA10199cI6L5pjxeT33iQMxDwA4fOOxEJkx weVDiuFUZniL/S7y0uDLoHt2rVV5UMPdmmO9qo6fWT/k7sgLM9m3+7LZZ9TQcSfMDYrxDy EC/Oa1LQ2QWZMB3z4xd/SvrhjwbSlVkagnlDd2SJpaqiFZiGzaeucH5YOJXbbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767290751; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=zrjmQXAxrFrdEl+K2UbjCQV/LWlt94wXvXu3OUtu6nQ=; b=sYMS6tMow+IEdS+U94KhvpgWaJJAwC/dzAYJH5FaQCvKy8JxVMVYbQbcEhtJNSfBwYz/nf 6e3TdBR+1hK2agB3OZ/mDCEpZbjOFaB28n2FJ/w3HRKsMbbyN9MdikkU873d5YQ6FiVG6r qJRfXPSIp0JgheGW32h6pPwrG1uZt8RIbY47X5VLJx1CoqVGSj1NEp+8jYq/4sND1USRvg e5aLRZQSFuc3mOmFWAFQ3CIHFI2aEvAdg4g+GrpQ3TB3qoqdgzuxsKWKQg7sYo2WevTYQl XyApJvjpBk/kO390HKcoaZrDq9CCYt3e4LVy8jwCU/RJ6YW9QvmxHJJYb77/dg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767290751; a=rsa-sha256; cv=none; b=J4dIGjjCnowpTpVBhxThm8CGJC8BQwSKT2vrGu/b3ArEzCwX2XXyP8Mq0mMstCcYNvi6zm Tc039y0XGyTfBaYAhK+b94hXNde4Y/+MLOhHtjKofhcojLdLCdP16pj5h/c95JUEz5Seem d+a7GI8LLe67LrwqYgInX8Y0y6awNp7AeBYoqP1rspJS9z1P2YhCmGOyIAgUjLEz06d2z1 i48x7BwHZ3oUCXGeNUUiMeemkYwRBW3PflfmwSERQXZVTzaMMR3yFt5bVmcdq539tzzNIW 7KDq+tWPXvvGRMXJywMqTqmlqLFqtBOxvN+RgIXnzJPI1OlzhVGfGe10oHW/zA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dhvrb0pnhzjKh for ; Thu, 01 Jan 2026 18:05:51 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 35bdb by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 01 Jan 2026 18:05:51 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Alexander Ziaee Subject: git: fe26fc694080 - stable/15 - cdce.4: Minor polish List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: ziaee X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: fe26fc694080089409ae813b478bac86239a0785 Auto-Submitted: auto-generated Date: Thu, 01 Jan 2026 18:05:51 +0000 Message-Id: <6956b77f.35bdb.67e216c6@gitrepo.freebsd.org> The branch stable/15 has been updated by ziaee: URL: https://cgit.FreeBSD.org/src/commit/?id=fe26fc694080089409ae813b478bac86239a0785 commit fe26fc694080089409ae813b478bac86239a0785 Author: Alexander Ziaee AuthorDate: 2025-12-23 13:52:13 +0000 Commit: Alexander Ziaee CommitDate: 2026-01-01 18:05:05 +0000 cdce.4: Minor polish + Tag spdx license identifier + Fix "e.g.,"s to quiet linter + Remove useless Nd quoting + Put example in EXAMPLES MFC after: 3 days (cherry picked from commit 03752041e41b57af622f3649929789575a48258e) --- share/man/man4/cdce.4 | 35 ++++++++++++++++++++--------------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/share/man/man4/cdce.4 b/share/man/man4/cdce.4 index 8c5dbb36d197..266d87bca079 100644 --- a/share/man/man4/cdce.4 +++ b/share/man/man4/cdce.4 @@ -1,3 +1,6 @@ +.\" +.\" SPDX-License-Identifier: BSD-2-Clause +.\" .\" Copyright (c) 2004 Daniel Hartmeier .\" All rights reserved. .\" @@ -27,12 +30,12 @@ .\" .\" $NetBSD: cdce.4,v 1.4 2004/12/08 18:35:56 peter Exp $ .\" -.Dd May 26, 2025 +.Dd December 23, 2025 .Dt CDCE 4 .Os .Sh NAME .Nm cdce -.Nd "USB Communication Device Class Ethernet (CDC ECM/NCM) driver" +.Nd USB Communication Device Class Ethernet (ECM/NCM) driver .Sh SYNOPSIS To compile this driver into the kernel, place the following lines in your @@ -46,7 +49,7 @@ kernel configuration file: .Cd "device cdce" .Ed .Pp -Mobile Devices (eg. Huawei E3372, E5573 and others) +Mobile Devices (e.g., Huawei E3372, E5573 and others) may need additionally the u3g command port: .Bd -ragged -offset indent .Cd "device ucom" @@ -83,17 +86,6 @@ received and transmitted over separate USB bulk transfer endpoints. The .Nm driver does not support different media types or options. -.Pp -Mobile -.Nm -Network Devices may need a connect command sequence via u3g -serial command port before they activate the NCM/ECM/ACM network -interface. -For example: -.Dl echo 'AT^NDISUP=1,1,"internet"' > /dev/cuaU[0].0 -where -.Dq internet -is your providers apn name. .Sh HARDWARE The .Nm @@ -113,8 +105,21 @@ Sharp Zaurus PDA .It Terayon TJ-715 DOCSIS Cable Modem .It -Huawei 3G/4G LTE (eg. E3372, E5573) and other mobile network devices +Huawei 3G/4G LTE (e.g., E3372, E5573) and other mobile network devices .El +.Sh EXAMPLES +Mobile +.Nm +Network Devices may need a connect command sequence via the +.Xr u3g 4 +serial command port before activating the NCM/ECM/ACM network interface. +For example: +.Pp +.Dl echo 'AT^NDISUP=1,1,"internet"' > /dev/cuaU[0].0 +.Pp +Wwhere +.Dq internet +is your providers apn name. .Sh DIAGNOSTICS .Bl -diag .It "cdce%d: no union descriptor" From nobody Thu Jan 1 18:05:52 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dhvrc4X4kz6MVqd for ; Thu, 01 Jan 2026 18:05:52 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dhvrc1n9zz3YfQ for ; Thu, 01 Jan 2026 18:05:52 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767290752; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=rCuUKwHWHSL8By8048h6sa868NLPWkdNVB/koi9cP50=; b=vQFLmyBFXxgYT4wFyF5kmWH5gMCPI1Js1aJaNDYZ4NJkWJDmbSCqXNIC5Pr1RNUVgPXNmP 3DQtaopMwpxzPl9Ou2q0MxuJP9Dd2xx45/5j+CHeUnOe1jqGCP9VOyh87RPJvKCZJdrVxx 4tktACmUEiS4jMclVGPqA4ubVkJiPBqvlOjkx7PbOJ6AaT4VmX0mQZdXW3rLvNyBY778Qw OEqSrO9L5FvpKKCTfChzvZ9vJ99Gnb8HtN38VQVuc924TViODuAb8GPlI2XMjVBH/U1n+6 mLuTMDmrtg/k9bzT4mhbBTwJMZ69TEMi7f7vMozloQx5HuaUU6BH9gH926/Tpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767290752; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=rCuUKwHWHSL8By8048h6sa868NLPWkdNVB/koi9cP50=; b=T/S9hJ+oHrp1Wg4GzBgOT+Kbjk832rlaUa60zqiaj7gUVkuFtz6u/HdlmlOlUKyaFUHYQQ U/XiOjVXfSahNiWUHl7jfHsysSilbxM1/zaaXiM+NlJgLbL44DwTZlb0PFtrPlONF6ix/T gI14kkKhNajXb/d0D8rb8cKDkkBtXIXoR1Jv31wNOCJn7pw1GevciiPCIn7dyLgjV1DPMi 9kv8NdSUWTF/ghtDd14zwHWBxrrmeOLyQ0YqMGo6YTiQ8ai4BwvSYhx4skg2Uh245rm+64 PubAK4HTywMh9PYsxxd1aiOeeiIW9i8k1203vgp5Ckl9Cc7cBX0LnJdI+SBhhg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767290752; a=rsa-sha256; cv=none; b=L0AqnBXp6PO311Sca06PEdNGURM4Gbt8ec+oo5RuRO5cv1VaXm0/HO5iX2yoprG5cRtxGh MWmONmbjka0fAKCOgm0KYnCnsxH/DOdMqtarFNGiv6wLhr92+LgsekVx9aOj0IjlhDznkx DB/Vz9dNxEuJLUC7odSzQ/pazCYXv4fp6tR/fF+GF4VG8nBqY1aqhdO7epXnZigWz4s3U2 tEtqtqBsHrQVLEMqVAMP9v4mThA2kqqbFrbKNunvysVdRY+eac73RdBrsyhfs/UK5fxPPY sm36Wwy5DVNkSzAN4C1V28cE2577wOYgu6q1NHWSukMvH61UlCcsRvrrIkdFHw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dhvrc1JDfzjKj for ; Thu, 01 Jan 2026 18:05:52 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3568a by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 01 Jan 2026 18:05:52 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Alexander Ziaee Subject: git: b59376c36de8 - stable/15 - udl.4: Consolidate HARDWARE and add HISTORY List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: ziaee X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: b59376c36de868c9846f0d6b8163b9b05b191b42 Auto-Submitted: auto-generated Date: Thu, 01 Jan 2026 18:05:52 +0000 Message-Id: <6956b780.3568a.435ebfb2@gitrepo.freebsd.org> The branch stable/15 has been updated by ziaee: URL: https://cgit.FreeBSD.org/src/commit/?id=b59376c36de868c9846f0d6b8163b9b05b191b42 commit b59376c36de868c9846f0d6b8163b9b05b191b42 Author: Alexander Ziaee AuthorDate: 2025-12-23 14:35:37 +0000 Commit: Alexander Ziaee CommitDate: 2026-01-01 18:05:05 +0000 udl.4: Consolidate HARDWARE and add HISTORY Some of the information needed for the HARDWARE section was the entire DESCRIPTION section, so merge the two. While here, add the HISTORY of this driver, add "driver" to the document description matching other drivers, and tag the SPDX license identifier for mechanical parsing. MFC after: 3 days (cherry picked from commit 97fa62708f67ce189bde22c98d9102da026b448c) --- share/man/man4/udl.4 | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/share/man/man4/udl.4 b/share/man/man4/udl.4 index b2cfeba2489c..c9a1a1c40045 100644 --- a/share/man/man4/udl.4 +++ b/share/man/man4/udl.4 @@ -1,3 +1,6 @@ +.\" +.\" SPDX-License-Identifier: ISC +.\" .\" $OpenBSD: udl.4,v 1.20 2012/09/18 17:11:41 jasper Exp $ .\" .\" Copyright (c) 2009 Marcus Glocker @@ -14,12 +17,12 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd September 9, 2023 +.Dd December 23, 2025 .Dt UDL 4 .Os .Sh NAME .Nm udl -.Nd DisplayLink DL-120 / DL-160 USB display devices +.Nd DisplayLink DL-120 / DL-160 USB display device driver .Sh SYNOPSIS To compile this driver into the kernel, place the following lines in your @@ -35,13 +38,11 @@ module at boot time, place the following line in .Bd -literal -offset indent udl_load="YES" .Ed -.Sh DESCRIPTION +.Sh HARDWARE The .Nm -driver supports USB display devices based on the DisplayLink DL-120 / DL-160 -graphic chip. -.Sh HARDWARE -The following devices should work: +driver supports USB display devices +based on the DisplayLink DL-120 / DL-160 graphic chip, including: .Pp .Bl -tag -width Ds -offset indent -compact .It Century Corp. Japan Plus One LCD-8000U @@ -66,3 +67,10 @@ The following devices should work: .El .Sh SEE ALSO .Xr usb 4 +.Sh HISTORY +The +.Nm +driver appeared in +.Ox 4.6 +and +.Fx 11.0 . From nobody Thu Jan 1 18:05:54 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dhvrf5rwtz6MVqk for ; Thu, 01 Jan 2026 18:05:54 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dhvrf3j56z3YdC for ; Thu, 01 Jan 2026 18:05:54 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767290754; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=bS6nsYiCep9/yDx7PjBiDRz5adEn1mSlPiUq/CnXGEY=; b=C22MGeU/l/82/exACbm7ICqvO7siDsKWryzKCk0gf4U6QxbuOgeAOnDZXHyM+arTZNPb2x APFGwSrpTiX1kaj4/kej7ss1yoVizP0kp42WBtt1ms7S8qDkhOHJyl3Igg562dpBXMURTo Se1q19A0+aXeDYS56wtI40iH4XLtOBFd/3gKbWJPwsuappjfXvRGYu2y3QfHQSV4BOe95u il0pt7KBaIrrA5HMfyuC+BLvgmwk9686N4TTR8R4Lf5Y6OBRChWRMMP+bqmIe1P6frpCl6 DzOmMYaHmmMTvIJeGC57izFJuqwZAYdR7vsGSNM7O/p8N4KFQ14AM0GV8dcFgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767290754; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=bS6nsYiCep9/yDx7PjBiDRz5adEn1mSlPiUq/CnXGEY=; b=gvO/NwbTtbeI/r9cFl2uRmTWd9tM4HRBNTfOTEC4eNc6jY9gLkfAez1QETJT/YjKvCZtPV baUs3eW1/RnOJjOXgCLAr7S+Ccx6nSvIULXWpt7bBdEck+KjOHlWhxKs1Q1AV4J01RmUSB vZTZdCVeaDSEMkdB9Ul3EmLhQX6GoL5K06ue4SdM2W2256VeA1PsBfL4y+Cz/10PTFflHk kYzm4N/at3yFbYQqC9+y+wHA6EIgKJQjUI0ITZshoA5aE2mEZev1rh3jsoGvw2tU4me7UN h/qPpNMIbs8fypzqeohEIGL3wr0Ienp0LqjNTdsvw+pNsLFGD9exddqzTKobTA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767290754; a=rsa-sha256; cv=none; b=x/j2JTgHZPcEwCfoZRRLhgnL+9Fn94ajycl2jFip1YS2MDMpnPlPtQoPEHzM7JqRnV334n FBN16FEDuv6g36Fb4oed3orAx8ax1z2n1N+gpEkHdwT+cVd1bq/UhLdwDK1qV12/zbh+V+ YbtEuKlqC9GmFW0HxrN0dO10CAGXtXKdQlEtJgor2E64Bvuivw4YJPyHFa76pDPfyVVMHP NPwbDZq2hoyLgDcU4bXztpisgqbQ2UdeUiamPvId8dhScA4iu+MMygWDjPGbkcurokaPfV gX8HwXyVp5fczV2+6atdaJsl6bFui2Am2/qqRWuk4uXIcdQCIacGQuuQUG5xFg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dhvrf3BWszk0H for ; Thu, 01 Jan 2026 18:05:54 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 35e21 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 01 Jan 2026 18:05:54 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Alexander Ziaee Subject: git: 81cb5026ead7 - stable/15 - genet.4: Only for AArch64 + tag spdx List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: ziaee X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 81cb5026ead75de67751dea926ff732852304b09 Auto-Submitted: auto-generated Date: Thu, 01 Jan 2026 18:05:54 +0000 Message-Id: <6956b782.35e21.7e981f@gitrepo.freebsd.org> The branch stable/15 has been updated by ziaee: URL: https://cgit.FreeBSD.org/src/commit/?id=81cb5026ead75de67751dea926ff732852304b09 commit 81cb5026ead75de67751dea926ff732852304b09 Author: Alexander Ziaee AuthorDate: 2025-12-29 17:16:37 +0000 Commit: Alexander Ziaee CommitDate: 2026-01-01 18:05:06 +0000 genet.4: Only for AArch64 + tag spdx MFC after: 3 days (cherry picked from commit c4bd487da73a28887f86750a5dc5832303592c5a) --- share/man/man4/genet.4 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/share/man/man4/genet.4 b/share/man/man4/genet.4 index 665aaff49507..1de92294ee9d 100644 --- a/share/man/man4/genet.4 +++ b/share/man/man4/genet.4 @@ -1,3 +1,6 @@ +.\" +.\" SPDX-License-Identifier: BSD-2-Clause +.\" .\" Copyright (c) 2021 Michael J. Karels .\" .\" Redistribution and use in source and binary forms, with or without @@ -22,7 +25,7 @@ .\" SUCH DAMAGE. .\" .Dd December 8, 2021 -.Dt GENET 4 +.Dt GENET 4 aarch64 .Os .Sh NAME .Nm genet From nobody Thu Jan 1 18:05:53 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dhvrd6lMFz6MW44 for ; Thu, 01 Jan 2026 18:05:53 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dhvrd3KFyz3YTr for ; Thu, 01 Jan 2026 18:05:53 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767290753; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=yO7wWuve9TKm39SJZfB1+9S3il+R4uhizton9oBXnAU=; b=H3k6SQnzd0ZlYuBeWH2caYnEBWmj9FgE1HkQfVIP4ykI3F86bM1wCsCgSP3ybbXnrFqkG9 CCr6GYPCVDe6TlSlQSkpIuzNcvb3JweZdpPTsKFM0mXmDz9ei5DJAZi73tka2thh9glt50 dy2PGbBDWUCRBbqskrCVgQ3gT9oy0Bhp40tlRo7d8L1FO3dxLZX/K2Fljpd5oUGW08/Id1 1xUUej8CLyW5MHtCgwiuDiqEjT8HOTy9bU2CRnJsccGBV521eZuc2tRNDrXmwOu7Vi7NqF GkOvwd1Mmm2cWyV+YpavmAb2hmHO7SO2yJHU89EMuULhUH0eFDWw0QT4PHLUkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767290753; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=yO7wWuve9TKm39SJZfB1+9S3il+R4uhizton9oBXnAU=; b=XV/e9m5HBiMgwu/DBXwZatI9zkJ9fiVM57tKnYzeAdY46dpSVBoR66QX1Nsbm4knpUyp0B YPrP4YzE2eu8cpo4/n4Fn59/atMELsQgUa2cOOGPsRgCvge4Q6RiEn8+axgHmjjfXqMY5a Nz7SWudkvHDxM1uMce4cXSlHj8WfMuZsrd3LXGfkSeC/UdOmELwAjouD2G6jbYZc5aRSdl eNu77ZWt3a/xU4qNW0QSsfuED8fZwpvWQHbJaxq+mCTQAxpRAFROW1h/ULQdI7vxMj6Y1v /bvdthCxDre1FhHoB2oT8ZJ8KMPNCpK3jm4AjfPr/mAyH/BngfcFAer2WJE9sg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767290753; a=rsa-sha256; cv=none; b=mk3mmkmUPj+Fc2sO4Ozp1cNm4oJIuQkl/+SbaeIW3uHOfBZfXXRxzC5xFG4OA0pj84zIXa zCZ+JVzei/OmLrA3/btv5+Th2rSxOw0T9s/4uNKfNGg/oYptdt0MDnLZDN6J1GMZJWMG5/ 0aflYAaViZAD8CBXolazo9sjjZfuLQ9AvajFeNXHazj76xiXUYMVDYk//LFh1D03Cv0z2+ 4eCzW1TMe/r+FTwbYg9Ggk2Ks9cN2KBklLwPhYetgenbwtyn7IcgIYq5lcV7bVB0H3tAcF C/rZutaeB5adtxqwWTbirF23BE25FxvBet2aNogT1Spdq39CqjIOMV1viwYRkQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dhvrd2DCCzjkr for ; Thu, 01 Jan 2026 18:05:53 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 35ac5 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 01 Jan 2026 18:05:53 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Alexander Ziaee Subject: git: 2feb2cf98f7b - stable/15 - udl.4: Tweak HARDWARE for hardware release note List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: ziaee X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 2feb2cf98f7bfbd3c8ced0181aa958f2e598c15e Auto-Submitted: auto-generated Date: Thu, 01 Jan 2026 18:05:53 +0000 Message-Id: <6956b781.35ac5.74abd3c6@gitrepo.freebsd.org> The branch stable/15 has been updated by ziaee: URL: https://cgit.FreeBSD.org/src/commit/?id=2feb2cf98f7bfbd3c8ced0181aa958f2e598c15e commit 2feb2cf98f7bfbd3c8ced0181aa958f2e598c15e Author: Alexander Ziaee AuthorDate: 2025-12-23 14:56:09 +0000 Commit: Alexander Ziaee CommitDate: 2026-01-01 18:05:05 +0000 udl.4: Tweak HARDWARE for hardware release note Fixes: 97fa62708f67 (udl.4: Consolidate HARDWARE and add HISTORY) (cherry picked from commit 3c83b5d340f641259ea24e8af623e340eb8a21cc) --- share/man/man4/udl.4 | 61 ++++++++++++++++++++++++++++++++++------------------ 1 file changed, 40 insertions(+), 21 deletions(-) diff --git a/share/man/man4/udl.4 b/share/man/man4/udl.4 index c9a1a1c40045..eab17302d5a4 100644 --- a/share/man/man4/udl.4 +++ b/share/man/man4/udl.4 @@ -42,28 +42,47 @@ udl_load="YES" The .Nm driver supports USB display devices -based on the DisplayLink DL-120 / DL-160 graphic chip, including: +based on the DisplayLink DL-120 and DL-160 graphic chips, including: .Pp -.Bl -tag -width Ds -offset indent -compact -.It Century Corp. Japan Plus One LCD-8000U -.It Century Corp. Japan Plus One LCD-4300U -.It DisplayLink USB to DVI -.It ForwardVideo EasyCAP008 USB to DVI -.It HP USB 2.0 Docking Station (FQ834) -.It HP USB Graphics Adapter (NL571) -.It IOGEAR USB 2.0 External DVI (GUC2020) -.It Koenig CMP-USBVGA10 and CMP-USBVGA11 -.It Lenovo 45K5296 USB to DVI -.It Lenovo ThinkVision LT1421 -.It Lilliput UM-70 -.It Nanovision MiMo UM-710 and UM-740 -.It Rextron VCUD60 USB to DVI -.It Samsung LD220 -.It StarTech CONV-USB2DVI -.It Sunweit USB to DVI -.It Unitek Y-2240 USB to DVI -.It VideoHome NBdock1920 -.It i-tec USB 2.0 Docking Station (USBDVIDOCK) +.Bl -bullet -compact +.It +Century Corp. Japan Plus One LCD-8000U +.It +Century Corp. Japan Plus One LCD-4300U +.It +DisplayLink USB to DVI +.It +ForwardVideo EasyCAP008 USB to DVI +.It +HP USB 2.0 Docking Station (FQ834) +.It +HP USB Graphics Adapter (NL571) +.It +IOGEAR USB 2.0 External DVI (GUC2020) +.It +Koenig CMP-USBVGA10 and CMP-USBVGA11 +.It +Lenovo 45K5296 USB to DVI +.It +Lenovo ThinkVision LT1421 +.It +Lilliput UM-70 +.It +Nanovision MiMo UM-710 and UM-740 +.It +Rextron VCUD60 USB to DVI +.It +Samsung LD220 +.It +StarTech CONV-USB2DVI +.It +Sunweit USB to DVI +.It +Unitek Y-2240 USB to DVI +.It +VideoHome NBdock1920 +.It +i-tec USB 2.0 Docking Station (USBDVIDOCK) .El .Sh SEE ALSO .Xr usb 4 From nobody Thu Jan 1 18:05:55 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dhvrg6y5Qz6MW9b for ; Thu, 01 Jan 2026 18:05:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dhvrg4W56z3YdS for ; Thu, 01 Jan 2026 18:05:55 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767290755; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=VH5e8t03XFIedShixhQa0wK85Lm5K4mhFtPjrw3okOs=; b=JtgA/f2W4poqw8v69azdtbBWiq3QpnhlKwtLPGcagfkxVWiggsRdie0YkKRNjQLq5ZkPrY +htzI+Cg+6OZJDimK1Gk9tXM17/LJAoJ/4s/m9HLsVZ1IL9EMcDzpEDOjWtPX2dOjhCV5n LePFtKEHWR5S6C6CBS4BA3sWQTMc1OXpgbDWkXoxZdLzAaTIjfDi5bQB0u5RHgGHaOWElu udQKWYFXUoXL8LdUD6t5PAT0Xf0diYaCptAY41g2NDJfLekzQWoUfhNJmVERq0eUfj0PPt 3l6BX6KmBIYXUwL5rw/QhGdEDT1YofKnHTqGjd90MZ0bOc1zR6cnmmQKw4Of0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767290755; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=VH5e8t03XFIedShixhQa0wK85Lm5K4mhFtPjrw3okOs=; b=mjsHWMZU4Yx+7+gBMiJthQlsnP1St6lnVWuVFERLx6t6MdTbLeLny+nDxJCVMpr+T3MqN8 JAHbGWX22wMrI95DfTxGwKkcHhfGR1xR8QxkTb0BpMF/gHVp8GWysBK09DI9/Rh595hfb5 ru/AVOuWTKTS+qzzjCrR+wGFZm8ckPvSI9czVcPiDZFPigxdGi+k2MTH7N9MPc+PvsjG9B 1XzXZvESBtjdP4+Xc3bbsca+V1Fa5mX4rBFyDVmJ8eYWbT3nIv9krNJIASyfZLNMsH3a1E xSvfDHg064GVxXWxxZ1NtwS13bKA+w1Vu0qARUIyY99HBrSmX/lUisVgH+MQmw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767290755; a=rsa-sha256; cv=none; b=XIauoXdyqTNBdU+qW+OrDevnME1Q56hSQeF1A30A3CBvZR0Unz1GyPR+sdXa6WGLkXG8D0 bcpodH2jOn89r7urVzDfQ+R+lLai5ZQ+t5PLnsf5hUnScJCA3ysIrKEvbJijSCd4qu9/1R 7/Lt0pghBJN2rZWaEXt/kW9AkvyGkQCOFYCenYcXvZuFvE1TbC9SPhSLSfeTcfix3lIdLC MGbvOOdrbr4TSo6BimpUQCXoSOwbBBFDiMoQceHIPJWtZMCj6KmIID4LFBRx6b6we56LUM j0cbgkxsC8Fm56krvpNaNJfprr5vCO082kRB0rQh/N+l43Yz3FO/3KKdThoxxg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dhvrg3yQZzk0J for ; Thu, 01 Jan 2026 18:05:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 35494 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 01 Jan 2026 18:05:55 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Alexander Ziaee Subject: git: a15b0cb6e8ec - stable/15 - cpuctl.4: Formatting nits List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: ziaee X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: a15b0cb6e8ec9bbde88138ceeebae6fe3d757845 Auto-Submitted: auto-generated Date: Thu, 01 Jan 2026 18:05:55 +0000 Message-Id: <6956b783.35494.652c384f@gitrepo.freebsd.org> The branch stable/15 has been updated by ziaee: URL: https://cgit.FreeBSD.org/src/commit/?id=a15b0cb6e8ec9bbde88138ceeebae6fe3d757845 commit a15b0cb6e8ec9bbde88138ceeebae6fe3d757845 Author: Alexander Ziaee AuthorDate: 2025-12-29 17:17:09 +0000 Commit: Alexander Ziaee CommitDate: 2026-01-01 18:05:06 +0000 cpuctl.4: Formatting nits + Align ioctl list + Pad code examples + Tag spdx license identifier MFC after: 3 days (cherry picked from commit c6bd2aa8353c6c34dbff487132a7f7372752d0ad) --- share/man/man4/cpuctl.4 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/share/man/man4/cpuctl.4 b/share/man/man4/cpuctl.4 index fc42cf14f254..5846fc4129f8 100644 --- a/share/man/man4/cpuctl.4 +++ b/share/man/man4/cpuctl.4 @@ -1,3 +1,6 @@ +.\" +.\" SPDX-License-Identifier: BSD-2-Clause +.\" .\" Copyright (c) 2006-2008 Stanislav Sedov .\" All rights reserved. .\" @@ -63,7 +66,7 @@ All of the supported operations are invoked using the .Xr ioctl 2 system call. Currently, the following ioctls are defined: -.Bl -tag -width CPUCTL_CPUID_COUNT +.Bl -tag -width indent .It Dv CPUCTL_RDMSR Fa cpuctl_msr_args_t *args .It Dv CPUCTL_WRMSR Fa cpuctl_msr_args_t *args Read/write CPU machine specific register. @@ -92,6 +95,7 @@ typedef struct { uint32_t data[4]; } cpuctl_cpuid_args_t; .Ed +.Pp It is equivalent to the .Dv CPUCTL_CPUID_COUNT request with @@ -107,6 +111,7 @@ typedef struct { uint32_t data[4]; } cpuctl_cpuid_count_args_t; .Ed +.Pp The .Va level field indicates the CPUID level to retrieve, From nobody Thu Jan 1 18:05:56 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dhvrj01h1z6MVqq for ; Thu, 01 Jan 2026 18:05:57 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dhvrh5W5cz3YZm for ; Thu, 01 Jan 2026 18:05:56 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767290756; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=OfVwirHBwnYMWCPUX9p6m5VwuDJDb2YA2N60HA8gdAw=; b=cPyc4iAU/cWFxcB6IcYtQD3obpzLnkc7lz7kS1xwsZwnPZ8nkrz4A8ahI4HQsizUYHy248 B9hjK45nD/PBkLtGlZDf8ttlUKMnold8f46VAuCFzeJdPxvX6vClItslH2pQiMNa78Znpt tv09SYbfVwDfzZDMeZ1L0JmOA/TAsQSGG6yAV3MG3Fg2hfGade7nGaXZ4tXK/y2s2tD9qm Hv8T4oMSnBq31QH1Lyv2oZ6dFq7nXEsoJmWepu81WTP7/JEuttvzckbbx3Toswyb7C4bR7 gVndMlsDcATvySbB1+w7NnApngX4FX1P408ZuzyRj6fCQptgTFAntLJBm4upsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767290756; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=OfVwirHBwnYMWCPUX9p6m5VwuDJDb2YA2N60HA8gdAw=; b=RhxluaM+/1v1Y8RYPPzoVtSm2wcbncy5C/DejAA+cYyeZEt2lqr1z29fQLyIT/NzyC9V46 R/4u3y5eOWZ/4AgALrmWxFfXI6ANQTKwfmT5A6cGZzeHaYdAp7NhFDg6yEiSYcDCfLUyYA bfOuXHSDPg6jyTRxmFmDQJHG0hjSQRyOpEscmuhKxJCt05IlIuKxoyiKWXTh6KrWUbugdN /9ExkVGR7cZbVgVjZYEkxNL22sEBsKXuSe1lhfyboldOrHFYOHA0w1ZuGywDTh1/4WMSC3 /RvInE+4jKhSB4SeRxUtYataSwgJdKwcKvmrw7389SMw6RlwNs8nWFA2WsBitA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767290756; a=rsa-sha256; cv=none; b=X+YqktizvljDaaoeh+oDwdcpENv2+ytCKu4psz/HIqysr68302vAM3cE9Wuw9ZGkEcXKNI j7/yIqde9e3MhxdtAYz5x7dTP/Hp2v2IH8R5WR5K81MO9qevRh7ZqS2lmIUEPabQ6qT0mQ rO8evFe8GEr2KPYD1wXYJ+Mad0HkW9NHTsEmBSIUTmn5hOr+iKqySeBXw8YnXpaHK0PwLJ KeExp6XE3xAUI/YKgjBwUSTyZ6HtxO7IIQAP5a/b3A0NDHnOFCzW+dEmHqFPOD6T2KU0oz 0vCrn7QnCkdkAnOjjz5Ywgmv1bWIM0R2gvbyYbADvDZqZ5P/vsOtr1C9dum9cg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dhvrh4hsMzkGq for ; Thu, 01 Jan 2026 18:05:56 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 343b3 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 01 Jan 2026 18:05:56 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Cc: Felix Johnson From: Alexander Ziaee Subject: git: bd6289c06471 - stable/15 - ioctl.2: Mention EACCES List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: ziaee X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: bd6289c06471871dd83285ab9b50c49bc5f74652 Auto-Submitted: auto-generated Date: Thu, 01 Jan 2026 18:05:56 +0000 Message-Id: <6956b784.343b3.5ff85f9e@gitrepo.freebsd.org> The branch stable/15 has been updated by ziaee: URL: https://cgit.FreeBSD.org/src/commit/?id=bd6289c06471871dd83285ab9b50c49bc5f74652 commit bd6289c06471871dd83285ab9b50c49bc5f74652 Author: Felix Johnson AuthorDate: 2025-12-29 19:21:26 +0000 Commit: Alexander Ziaee CommitDate: 2026-01-01 18:05:06 +0000 ioctl.2: Mention EACCES ioctls can fail with EACCES, see sys/kern/tty.c PR: 239504 MFC after: 3 days Reviewed by: ziaee Reported by: Brennan Vincent Differential Revision: https://reviews.freebsd.org/D49072 (cherry picked from commit e2afbc45258f2fa4bdcf126e959ac660e76fc802) --- lib/libsys/ioctl.2 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/libsys/ioctl.2 b/lib/libsys/ioctl.2 index e96c5c48d097..5784f43ef98b 100644 --- a/lib/libsys/ioctl.2 +++ b/lib/libsys/ioctl.2 @@ -25,7 +25,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd September 11, 2013 +.Dd December 29, 2025 .Dt IOCTL 2 .Os .Sh NAME @@ -110,6 +110,9 @@ The system call will fail if: .Bl -tag -width Er +.It Bq Er EACCES +The process does not have permission to call this +.Nm . .It Bq Er EBADF The .Fa fd From nobody Thu Jan 1 18:05:57 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dhvrk0RDJz6MWHW for ; Thu, 01 Jan 2026 18:05:58 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dhvrj5yQLz3YS4 for ; Thu, 01 Jan 2026 18:05:57 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767290757; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=PnqPvftK4z4R9GVBqtmSxXhn8YiUQ5LrF+WSobk7FaA=; b=eWrNH6TNT8yJRPTrHPcKovNZ4apLQKeNIIRHT2phWcH5ghXczAWSlIFFL/kbsQPzF19U1A 13T1JZEeFAv1oRBs6ngd1wHvAc6XST+pYossbZqx7jCuxpZzZeZjkPn2EOdJHPVCVoJqiE fjx/c3BqjvsDafNl1mixkQPwvGBRoqcDSIZQogpaYWtrqdd1laI6HQujepyhj7vIGO0B0o z4m7qcYgzejqHC6jpMqEdr5CvWu21m+dLAxjUI4d++VkBiZaH7LXBgEcjAJ5b+dYtCQE1D Fyyc+kykE553T0MCpR1G30sFLwOIFVLqEFThZFNJPFEgMVy14Bx4fT+MUgT4Lw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767290757; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=PnqPvftK4z4R9GVBqtmSxXhn8YiUQ5LrF+WSobk7FaA=; b=SfknfoeoFqGWb3meNpwMU9sK9nas3lYuyH/InVOI1bWYHpp2UxiN0dxre6hoVLuGQ5omUh DcsHHF8HSpwIDMQk+p4YsSHosB9jho3I5UCuko0Ygt0WQpX2vvvD7lqgU8GwMuy90h5mKL chyaoPylcAhnToM3MM+CfXEqJVa6pv3PMwk1EmO+y86hrVX2G/qvbhHvBoC2eLTrLGpyb4 wayC9Bwn6yo+9dUMKBVKiEo3GPdWpX8S6PAbCnaBqhrSTSXX84sGnobgQJzWIZD2GH3x1g 0uYn8XPRRpmlExAwvEYrLIF1abhjma1H2aJSinaj9zODNc47ysOoe6l8w2dgBQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767290757; a=rsa-sha256; cv=none; b=aFzYGhs0hxzOwdivt5VHcTxrRCNUDHLQ6wzZY+THDVvvrVdMNmeCnxsLF0bfPA85TV4Mq5 HCeLBlGygr8EkIhOgWaMSm2H4escIadVr73SSKKCBUCi6oov3tJfzHrX0XBXkEbpVHRIIc HWRqtDpJ1P3JCQTUT2Z1hISrRLEPv10fAgZHdd70iup+3Xd+LGF9eNl/Bn5NDb2VXHHNrB zX84L/YKo6TVAbHN83Xj6FPzs3UoUOJ6vWxRlMxLiejHcjM4OSrcUzIQWbKihLO3n/Y+Se c1rduVYWRphm7rHp6atZ/0oaH7a600IiokXQguxvzvb1c8K7uyNh7G/oGac6JQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dhvrj5VcxzjKm for ; Thu, 01 Jan 2026 18:05:57 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 36390 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 01 Jan 2026 18:05:57 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Cc: Yan-Hao Wang From: Alexander Ziaee Subject: git: 12d6beaf89a6 - stable/15 - kyua manuals: Correct --results-file short form List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: ziaee X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 12d6beaf89a6b8d3e97153d564188ebea9274e4b Auto-Submitted: auto-generated Date: Thu, 01 Jan 2026 18:05:57 +0000 Message-Id: <6956b785.36390.5efac184@gitrepo.freebsd.org> The branch stable/15 has been updated by ziaee: URL: https://cgit.FreeBSD.org/src/commit/?id=12d6beaf89a6b8d3e97153d564188ebea9274e4b commit 12d6beaf89a6b8d3e97153d564188ebea9274e4b Author: Yan-Hao Wang AuthorDate: 2025-12-29 20:13:16 +0000 Commit: Alexander Ziaee CommitDate: 2026-01-01 18:05:06 +0000 kyua manuals: Correct --results-file short form PR: 290647 Ref: kyua/cli/common.cpp#104 MFC after: 3 days Reviewed by: ziaee Closes: https://github.com/freebsd/kyua/issues/267 (cherry picked from commit bbaa7d628175ee484e31a054fb3cf7b7866cad13) --- contrib/kyua/doc/kyua-db-exec.1.in | 2 +- contrib/kyua/doc/kyua-db-migrate.1.in | 2 +- contrib/kyua/doc/kyua-report-html.1.in | 2 +- contrib/kyua/doc/kyua-report-junit.1.in | 2 +- contrib/kyua/doc/kyua-report.1.in | 2 +- contrib/kyua/doc/kyua-test.1.in | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/contrib/kyua/doc/kyua-db-exec.1.in b/contrib/kyua/doc/kyua-db-exec.1.in index 04f34c7b54e7..2e3bada4f849 100644 --- a/contrib/kyua/doc/kyua-db-exec.1.in +++ b/contrib/kyua/doc/kyua-db-exec.1.in @@ -62,7 +62,7 @@ The following subcommand options are recognized: .Bl -tag -width XX .It Fl -no-headers Avoids printing the headers of the table in the output of the command. -.It Fl -results-file Ar path , Fl s Ar path +.It Fl -results-file Ar path , Fl r Ar path __include__ results-file-flag-read.mdoc .El .Ss Results files diff --git a/contrib/kyua/doc/kyua-db-migrate.1.in b/contrib/kyua/doc/kyua-db-migrate.1.in index 67e46de46fec..4a1852aafd36 100644 --- a/contrib/kyua/doc/kyua-db-migrate.1.in +++ b/contrib/kyua/doc/kyua-db-migrate.1.in @@ -47,7 +47,7 @@ database lives. .Pp The following subcommand options are recognized: .Bl -tag -width XX -.It Fl -results-file Ar path , Fl s Ar path +.It Fl -results-file Ar path , Fl r Ar path __include__ results-file-flag-read.mdoc .El .Ss Results files diff --git a/contrib/kyua/doc/kyua-report-html.1.in b/contrib/kyua/doc/kyua-report-html.1.in index 1f9f55b69a3f..3ff044ca8d30 100644 --- a/contrib/kyua/doc/kyua-report-html.1.in +++ b/contrib/kyua/doc/kyua-report-html.1.in @@ -64,7 +64,7 @@ The directory must not exist unless the option is provided. The default is .Pa ./html . -.It Fl -results-file Ar path , Fl s Ar path +.It Fl -results-file Ar path , Fl r Ar path __include__ results-file-flag-read.mdoc .It Fl -results-filter Ar types Comma-separated list of the test result types to include in the report. diff --git a/contrib/kyua/doc/kyua-report-junit.1.in b/contrib/kyua/doc/kyua-report-junit.1.in index f1ad3a2e7f29..508ea30a3f6e 100644 --- a/contrib/kyua/doc/kyua-report-junit.1.in +++ b/contrib/kyua/doc/kyua-report-junit.1.in @@ -50,7 +50,7 @@ The following subcommand options are recognized: .Bl -tag -width XX .It Fl -output Ar directory Specifies the file into which to store the JUnit report. -.It Fl -results-file Ar path , Fl s Ar path +.It Fl -results-file Ar path , Fl r Ar path __include__ results-file-flag-read.mdoc .El .Ss Caveats diff --git a/contrib/kyua/doc/kyua-report.1.in b/contrib/kyua/doc/kyua-report.1.in index 8e2485f9c4ac..a3e4d75456cf 100644 --- a/contrib/kyua/doc/kyua-report.1.in +++ b/contrib/kyua/doc/kyua-report.1.in @@ -70,7 +70,7 @@ and .Pa /dev/stderr can be used to specify the standard output and the standard error, respectively. -.It Fl -results-file Ar path , Fl s Ar path +.It Fl -results-file Ar path , Fl r Ar path __include__ results-file-flag-read.mdoc .It Fl -results-filter Ar types Comma-separated list of the test result types to include in the report. diff --git a/contrib/kyua/doc/kyua-test.1.in b/contrib/kyua/doc/kyua-test.1.in index 8cd5f34ae6af..07db6cf461c2 100644 --- a/contrib/kyua/doc/kyua-test.1.in +++ b/contrib/kyua/doc/kyua-test.1.in @@ -69,7 +69,7 @@ Specifies the Kyuafile to process. Defaults to a .Pa Kyuafile file in the current directory. -.It Fl -results-file Ar path , Fl s Ar path +.It Fl -results-file Ar path , Fl r Ar path __include__ results-file-flag-write.mdoc .El .Pp From nobody Thu Jan 1 18:10:05 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dhvxW04ZMz6MWT3 for ; Thu, 01 Jan 2026 18:10:07 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dhvxT1T8Lz3g1g for ; Thu, 01 Jan 2026 18:10:05 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767291005; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ac468rCKROToLFrN035K4FMVadeR1yBVsi96H3O6RtI=; b=aJthEY3URSKIU3NDjKPmyZPjEytCUUKTKpUe59VC63le5YGM1swpMQIDvRWcSrvoUjJEiJ 2VTVNNgzFOW+HRq9yQ22Az/l4Ouzw9jEO1pbWfPgFLs1vvofk2XrD+/n50ZU0aSNDsKdzJ MoIqiEVcRvMKlew3hJ5eYkgkQixQMw0lnZR5bJ0dkbPFZuKqnyff/z7mXZouJxY31ooSa+ hkSkjv16uw3qSLxA8E1LN2gtqvN4g/6FHo4Hd4NdCHw2XMbfU4UxjzEnl8UaXIORPhbDTi N/JoY3dC7H7w5CRUTZA757H9HVlFgOBCOhBDaxuK13wJY0wf0YvO1NMFnWLIPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767291005; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ac468rCKROToLFrN035K4FMVadeR1yBVsi96H3O6RtI=; b=W2XVFEuo9PGZR4NKhg1+OqQcHOJ09ORlBOvunBK/+iKR6crjee6/B6Q9KZeXsrM9hnIPZC FOpnHwvcF+C/cONSbPcU97Y5380E5uYYdlqjUiQo5X9/zWRknDB3pgelNGJOj6ya0UYPbt pfEHtr6PGB754ficK37ceKh8pYk40vROFfD15n6gGeslLMLwgkxu71Le/UJvarW6ReI42f PyTdFPuCIux+UHSV9Qeug3PH1+89Bpgy8tJg+YLgxUCTQAe8WpX5mJaDWKCfcJ+BNpQ4D6 KQijJ6aASSi58yAUbK/LbUIQtDi9xpKwNtkp1PdVL5tcMLguesFAHLBoxOt+ew== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767291005; a=rsa-sha256; cv=none; b=Eh2Rt+oa6pFeNtXmElEO/VxYP0ywytrNTrsxtI5hkK3Zrqa8kn7Xez5zg4wYTchR2EXUM2 80Hw9pU8RSYbtvLnQijOHbW0MGVF7UP5qI2ZHv0l7XZQbbuV42jGxalwg3QlXXluLLHn5E jJE5Ppcw1Lfyzm5BC5glVklPP+Acd7gS52GpULSNyCcFIUlghKzxyH/O3D0Wr2TI9W4uU2 LDiiyHwr1lngONTwB6WsWkgrOMF2VweLEY91vpLBXuyDO8prHp8MiQoOTruZs1r8wJCPc/ p0mI7tnrPTTjhfwDXftM0aBqi7UBe2KPsh0FOG7VLlEi8KgMTrPsozR4/vSaZQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dhvxT0Xwczk0N for ; Thu, 01 Jan 2026 18:10:05 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 34b62 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 01 Jan 2026 18:10:05 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Cc: Artem Bunichev From: Alexander Ziaee Subject: git: b2b49011988f - stable/15 - libpathconv: Document library in the man pages List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: ziaee X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: b2b49011988fe6ea6033fcbcab76d833f10ad762 Auto-Submitted: auto-generated Date: Thu, 01 Jan 2026 18:10:05 +0000 Message-Id: <6956b87d.34b62.6eee31b@gitrepo.freebsd.org> The branch stable/15 has been updated by ziaee: URL: https://cgit.FreeBSD.org/src/commit/?id=b2b49011988fe6ea6033fcbcab76d833f10ad762 commit b2b49011988fe6ea6033fcbcab76d833f10ad762 Author: Artem Bunichev AuthorDate: 2025-12-16 17:42:46 +0000 Commit: Alexander Ziaee CommitDate: 2026-01-01 18:09:48 +0000 libpathconv: Document library in the man pages Reviewed by: ziaee, imp Differential Revision: https://reviews.freebsd.org/D54213 (cherry picked from commit 2c75ac14d7e9d1d57d70bbf26716868607f0d1fe) --- lib/libpathconv/abs2rel.3 | 3 ++- lib/libpathconv/rel2abs.3 | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/libpathconv/abs2rel.3 b/lib/libpathconv/abs2rel.3 index 9240ef1662e2..d8e39ef3b8b9 100644 --- a/lib/libpathconv/abs2rel.3 +++ b/lib/libpathconv/abs2rel.3 @@ -23,13 +23,14 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd August 7, 2022 +.Dd December 13, 2025 .Dt ABS2REL 3 .Os .Sh NAME .Nm abs2rel .Nd make a relative path name from an absolute path name .Sh SYNOPSIS +.Lb libpathconv .Ft "char *" .Fn abs2rel "const char *path" "const char *base" "char *result" "size_t size" .Sh DESCRIPTION diff --git a/lib/libpathconv/rel2abs.3 b/lib/libpathconv/rel2abs.3 index 1f607fd739e1..3d8f544fc3b3 100644 --- a/lib/libpathconv/rel2abs.3 +++ b/lib/libpathconv/rel2abs.3 @@ -23,13 +23,14 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd August 7, 2022 +.Dd December 13, 2025 .Dt REL2ABS 3 .Os .Sh NAME .Nm rel2abs .Nd make an absolute path name from a relative path name .Sh SYNOPSIS +.Lb libpathconv .Ft "char *" .Fn rel2abs "const char *path" "const char *base" "char *result" "size_t size" .Sh DESCRIPTION From nobody Thu Jan 1 18:10:04 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dhvxW03zSz6MWT2 for ; Thu, 01 Jan 2026 18:10:07 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dhvxS1wjHz3g9Q for ; Thu, 01 Jan 2026 18:10:04 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767291004; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=mC0DqrGwLHnX93Eka6FHyy00b6/FOdXoyStLRTr7wEA=; b=nEpbTFjhVKGE4ePlMRFl1hTEVsfnX8JTKZNP7YHBNR+P5eYRl8ganl5cNDUhrxA9gR6UjO gIHp81px4zUEKWMnWnOs3Cvm1zTdyw1UxmNt1N8XVc1NvDmUe5ZmeOAqgGQIR3MWjHjyK0 DN9F/8FGfggmkx7KI4xeRNtxcFkwcVFIjgy/UKyjBHaXu9/N77xeCQbqmCQ8khEsik8I8C I1uF5KUQLIeu/DZNJclBDaWin8IrqvtFYeiDhzlBHKcSGStx0YbdsHMfbnTqHfeNLB7vUM WJ5HSsyLbFtNqY6BKtyh2UWrqML0rv+nKCeBvryE/hzcwYWesZHMgvTbSShlkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767291004; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=mC0DqrGwLHnX93Eka6FHyy00b6/FOdXoyStLRTr7wEA=; b=uKswvCJ/icXCNSy8sgjSVFXwpiwX9jQSWvkmlmkhXDBYSm6YM4J+lJ3KzP9FKXgl3zYJLv 6e8KWV9w2aJRGtj93+w9zDHrDyrye2lkXL9GFv43aSHL9+FayV7NdFz78rD4DYJLPPg08U Vb4nHTY+DbXL67zoALTAD/TRRFGaDYEQpAuwekRFahjKiU+nMSY6XEtvratLiC/KvHjBam DuSXM5+w9QRiHFYuhOqDJSwQpMvC6NQVuhL92JtEZY52zhVlAmzEF6HiZZYpIQfhvGTAaW S50vNmz/wbAbM1WOquF+ZpI9rWiD5en730b+Qb2r5+ruBw8pddS37fZ0IJLsag== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767291004; a=rsa-sha256; cv=none; b=l/L1ERo3N4QrM7X+KYBBIIR47jpkhTQ9sf5dypXnqUuTHVvOEfHDjPSFAhMP3W4+0hxYxM lw7kJv4Py/qszo6zpV7bQ/KuXP5Ta9m9jhGP5/E5A7AdKLDz0l1UHNwfqoO9kR6mn1atqK 8Xe0Qq9MpP+dnS38OKDU1TabfLedAojDxLdUX6bvTmH6ZW2qmw5eUHxhTtjqjfmVmmPblw MXIN2QXI2+aXo26cGs11lOnE0ZY/mk+6YkyJQTIHt68MIDomM49E2NIh9D2vBIc+050TL5 Orym8stu5gTJqqK3de+juqKG5XAjZ5rLqr5AyFdUSdC1RrUhNUVKX3gt4qYEbQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dhvxS0mJQzkDY for ; Thu, 01 Jan 2026 18:10:04 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 353c3 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 01 Jan 2026 18:10:04 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Alexander Ziaee Subject: git: cdb05de1ecce - stable/15 - example.3: Show updated library macro usage List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: ziaee X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: cdb05de1eccecd9e7e2fbe2328e48418f1b9c943 Auto-Submitted: auto-generated Date: Thu, 01 Jan 2026 18:10:04 +0000 Message-Id: <6956b87c.353c3.46197ff@gitrepo.freebsd.org> The branch stable/15 has been updated by ziaee: URL: https://cgit.FreeBSD.org/src/commit/?id=cdb05de1eccecd9e7e2fbe2328e48418f1b9c943 commit cdb05de1eccecd9e7e2fbe2328e48418f1b9c943 Author: Alexander Ziaee AuthorDate: 2025-12-17 17:27:39 +0000 Commit: Alexander Ziaee CommitDate: 2026-01-01 18:08:51 +0000 example.3: Show updated library macro usage The LIBRARY section has been deprecated by upstream. Show the updated usage of the Lb macro in SYNOPSIS. Fixes: 4c07abdbacf49 (mandoc: Vendor import of upstream at 2025-06-13) (cherry picked from commit 3527e7e9f7b2f1737706378b99af778921849e9d) --- share/examples/mdoc/example.3 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/share/examples/mdoc/example.3 b/share/examples/mdoc/example.3 index a1e47b34064b..44fb1c76798c 100644 --- a/share/examples/mdoc/example.3 +++ b/share/examples/mdoc/example.3 @@ -5,16 +5,15 @@ .\" .\" Note: The date here should be updated whenever a non-trivial .\" change is made to the manual page. -.Dd July 30, 2004 +.Dd December 17, 2025 .Dt EXAMPLE 3 .Os .Sh NAME .Nm example .Nd example library function manual page .Sh LIBRARY -.\" Note: list of available libraries is available in mdoc(7) -.Lb libc .Sh SYNOPSIS +.Lb libc .In example.h .Ft int .Fn example "char *ptr" "int mode" From nobody Thu Jan 1 18:25:43 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dhwHX1RHJz6MXqP for ; Thu, 01 Jan 2026 18:25:44 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dhwHX0fMKz3hZk for ; Thu, 01 Jan 2026 18:25:44 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767291944; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=0sqDp22yVedztJ27n1g71vFGRbo7O7IFnO0bkiVc2L8=; b=D5Unhbg8PSpApP6Zwv5bX6dtyhWh8IqtEOHfRDmQehAkWgYvszWsOEA09dEoZO0WKIc/Yq 37fvQlV6VFVuimO71cVPbrK1nAnIJSRGevFh0vkkK+CeXmq2MSbIPMJjDXkaKVhjhA13uB mO8a5lPxNgbL89exUiGZxJdeaSM5uYjgmOCfrlCv3QBtD1xW0tPO8MhfvWwpT2wWC93m4h c79WGJ8PYOs5alWRjHJOkM2NpxKzXatPA9XsqNyznUq+eL0rzo9cv3P6Nu/UJ/D87y0ybT 5Sb2TNuq6c3YsZzNSoh8OhiMhVo+KhRtFpNsZGjfVeeOEU6i8fA48Li8Wq/s3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767291944; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=0sqDp22yVedztJ27n1g71vFGRbo7O7IFnO0bkiVc2L8=; b=QQjxtEWKLdhcYJEbP3EcTOAu+g67MljpdbQfVKLtKIc2BeRzIOH1/FsqkWOpRtNBycz4WI pjuoNAzYu2/9cT3ExWwKkOfJJdgY/XUORKbTH4cV93+BHnt2b3Wc3qOrbG4RjEWCzuwufX I1EBmKu7hK7m66noQgZk1xo+fFpv0ZGQsPBp1Nlst9Swzfo6xE5is5sr+g19yAWPylsvKV JKkiC2PVNqOXiCAwJzrYiJTjNFHs/jzfleenfNbS5lviqsierNfEfsa7/GZJKY/t6VuDcO RoGIzJvOBiIE+lQ11kkdNhgjKdegGlvOpC7HlU7RZEZm217TqZNfiYnyYfJGgg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767291944; a=rsa-sha256; cv=none; b=WUjdU4gJWPPKA8hy33dlCwKQKPB8kqty/Qgw30/Qr0rPm3QiBUH/xEL1mZCB9Pq8AlncJJ AQWOvjhS+6F+WLCqc7WupWXHdogNnE5zd3r/EOiI1C68ppg9tnO+jYaFIFKMWPHBIjY0PN vavn7x4Yde0VaMN8IUHcCLVwD9qH9XBGjE1Eu9JmdVrI5ZlQHDXPvt4wfTZYShHYITjK8h lroCF6lINOORRwONmy+S67gW1rcV2AcIzYw/5d5i2vR0W5Uca6CgOJVPXZioDMriYz81Wc wlLJCs19Eh2la6VzPe/B3JHckhjskw3o1/eG8KbOHuR+NpOx8l4TycansO1r9Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dhwHW73gHzkkK for ; Thu, 01 Jan 2026 18:25:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 38066 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 01 Jan 2026 18:25:43 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Cc: Ed Maste From: Alexander Ziaee Subject: git: c0512bb6d8eb - stable/15 - vt.4: Remove Xr to nonexistent vidcontrol(8) List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: ziaee X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: c0512bb6d8eb30f933da7fef9dd9811e7ca21aaf Auto-Submitted: auto-generated Date: Thu, 01 Jan 2026 18:25:43 +0000 Message-Id: <6956bc27.38066.2c117895@gitrepo.freebsd.org> The branch stable/15 has been updated by ziaee: URL: https://cgit.FreeBSD.org/src/commit/?id=c0512bb6d8eb30f933da7fef9dd9811e7ca21aaf commit c0512bb6d8eb30f933da7fef9dd9811e7ca21aaf Author: Ed Maste AuthorDate: 2025-12-28 00:52:17 +0000 Commit: Alexander Ziaee CommitDate: 2026-01-01 18:25:22 +0000 vt.4: Remove Xr to nonexistent vidcontrol(8) PR: 291985 Fixes: a8740ba860bf ("vt.4: Document increasing scrollback size") (cherry picked from commit f22cffe43343d9d48c731952d94976c5deb9659e) --- share/man/man4/vt.4 | 1 - 1 file changed, 1 deletion(-) diff --git a/share/man/man4/vt.4 b/share/man/man4/vt.4 index 6176c8c3093e..d59030cfff9d 100644 --- a/share/man/man4/vt.4 +++ b/share/man/man4/vt.4 @@ -420,7 +420,6 @@ at boot: .Xr getty 8 , .Xr kldload 8 , .Xr moused 8 , -.Xr vidcontrol 8 , .Xr vtfontcvt 8 .Sh HISTORY The From nobody Thu Jan 1 18:40:55 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dhwd3632gz6MYWZ for ; Thu, 01 Jan 2026 18:40:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dhwd35T9nz3kQS for ; Thu, 01 Jan 2026 18:40:55 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767292855; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=wjCr9ALqIJykl7l0FF17XLxXELXyAm+OxZT34tjvUbw=; b=wuTfnlpD/bv8hlB+T3bFoLxX5zPc7elP5txnJy+RgPnmU75EOG5O6u6yyXRhlbLh3T+WIv OMromaW1FpWx+hQLmqmI472Kw/oFyCzIG0KxdpugsqisAEwEgtzYdoaBACBJOthjwUnwhk hIYPWBBSHG+9jFOD5RpmCWm+yeclLnTPOXUSeYH9a3rrjaYfJ6k6mLYLGBHbespI2plHPj 0LQ8muRAFS+t/C8DH4+iAMjm3Xxxf946UZ1yh+qn7V7dLtzF46D7Oc/qLNHOgbjyf6RAwM l0rBc7IgX5tjD8ZSrgGWXR092AfHwZov2NOFYpDkx2c5yGA4hOys5pBm2EUfQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767292855; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=wjCr9ALqIJykl7l0FF17XLxXELXyAm+OxZT34tjvUbw=; b=vzEWmAHkesk7OptSpN/sEPhE4il3B0rxb1o3uUueeN7qNRinTEHxUa1khQDJ0vOAzCrv9k JEpouLUN8A77zvVPUBgJovysBSMT/co0svUNjW8J5j38qiooxCZOZjC0gAgGiXgTCNRi75 I0G0vpSZ87j94k3aCyGxeIqePGEtmTKGO6ou93f+ijpKGrxSNf6cqes9Nkehi4LqIgmh4R EC+ZZdEq9itDPwmcmx/2a6ljMDlJLibkrT3mAiZH+YbPNQwd9lr7iWoCqat7nnP6P7TLm4 anNVfZKUcFxIxyI+UOW0TmLC2r0jOxuMmnuK/iJcSYOHIjPdnvZM51fz8kInWg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767292855; a=rsa-sha256; cv=none; b=rmlS58P0H1RhRBIhpSkaY8wyt58q2x6DqgQnisS68t2nx6C7qcHNE/iKFOqacyVHMtU/Yu 8XjygW6Ysou23PkktH52nfiRXz4bXs71pswHSQhEOk9AIb+5nUCYidp1Tldlx2wSpLXB7Y 6jmZi3jMY2PocVpaYjGh4n3cgakQmbQLQZRr11jpV25feVT/uhftIgDcXz64gChwyDhWSy 4XrJ55RoEZunKXUQTnUO/GcpuE8veQmt5CGTj2+t22M3WkPYmdhGVrkkFRg2fThdQ1bhgZ guT70t1oy4ULJE/b7SZotClsi4KC9xoSZJ7Y1dLTd3FbI5B2CpFyPIsRE5eAPA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dhwd34WMSzkmm for ; Thu, 01 Jan 2026 18:40:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 39129 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 01 Jan 2026 18:40:55 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Cc: Alexander Ziaee From: Alexander Ziaee Subject: git: c330c43e58d7 - stable/14 - vt.4: explain console fonts List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: ziaee X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: c330c43e58d74726a9014d3cc380bd59bbcef256 Auto-Submitted: auto-generated Date: Thu, 01 Jan 2026 18:40:55 +0000 Message-Id: <6956bfb7.39129.18372933@gitrepo.freebsd.org> The branch stable/14 has been updated by ziaee: URL: https://cgit.FreeBSD.org/src/commit/?id=c330c43e58d74726a9014d3cc380bd59bbcef256 commit c330c43e58d74726a9014d3cc380bd59bbcef256 Author: Alexander Ziaee AuthorDate: 2024-01-15 19:54:20 +0000 Commit: Alexander Ziaee CommitDate: 2026-01-01 18:34:47 +0000 vt.4: explain console fonts Add explaination about console fonts, how to convert them, which subset of things support them and how to use them. Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/1063 (cherry picked from commit 7bd6cbbf69c7a9b952ebed096625a4a4a6b7bbfd) --- share/man/man4/vt.4 | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/share/man/man4/vt.4 b/share/man/man4/vt.4 index bd583abf8a98..9d61a5972f35 100644 --- a/share/man/man4/vt.4 +++ b/share/man/man4/vt.4 @@ -50,6 +50,7 @@ In .Cd kern.vt.color..rgb="" .Cd kern.vt.fb.default_mode="x" .Cd kern.vt.fb.modes.="x" +.Cd screen.font="x" .Pp In .Xr loader.conf 5 or @@ -266,6 +267,11 @@ It will contain a list of connectors and their associated tunables. This is currently only supported by the .Cm vt_fb backend when it is paired with a KMS video driver. +.It Va screen.font +Set this value to the base name of the desired font file located in +.Pa /boot/fonts . +Fonts can be converted for use with +.Xr vtfontcvt 8 . .El .Sh KEYBOARD SYSCTL TUNABLES These settings control whether certain special key combinations are enabled or @@ -369,6 +375,14 @@ To set black and white colors of console palette .Pp .Dl kern.vt.color.0.rgb="10,10,10" .Dl kern.vt.color.15.rgb="#f0f0f0" +.Pp +Load the 8x16 font in +.Xr loader.conf 5 +from +.Pa /boot/fonts/*.fnt[.gz] +at boot: +.Pp +.Dl screen.font="8x16" .Sh SEE ALSO .Xr kbdcontrol 1 , .Xr login 1 , @@ -382,6 +396,7 @@ To set black and white colors of console palette .Xr syscons 4 , .Xr ukbd 4 , .Xr kbdmap 5 , +.Xr loader.conf 5 , .Xr rc.conf 5 , .Xr ttys 5 , .Xr config 8 , From nobody Thu Jan 1 18:40:56 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dhwd46Rwnz6MYYS for ; Thu, 01 Jan 2026 18:40:56 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dhwd45YXhz3jy9 for ; Thu, 01 Jan 2026 18:40:56 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767292856; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=hIdBPsQIU8IGuSw/j3zWolgUrnIls8LWDyraB8iSD9w=; b=qjtDPXMASQO14euPqfPD4CGsx4FZoPNpr9c4sRWnuCVPRu63twBbHffnSxL6HVffhJMhwz kLAUWJrO+OKQcwXiC18Qo+hVUepnLiukAnYpLz+JQ6GrLfy/rSumIp+eLMKHT/i32OuaoB AFRUe4SIGzget26TNMmGhCcB87omONY22lLQcwOEsCJRNUX4TwJe2WTpaXBVgzDHZCBMs+ go60h4m48G7flfXcx8JDuRrgc3Di8CVAKf30dHhuEuRxfG2c16cDN2hakRHh09rLlwXDcH gojitDgZE/QwOeobtjyi/ALq7nENO2rAsvctWutRGMM6pYzrR2EBVj58kRAUHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767292856; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=hIdBPsQIU8IGuSw/j3zWolgUrnIls8LWDyraB8iSD9w=; b=yqfeVOY4Bqb13j/95FUT89S+oGW4uK1ioUfNur9l/tZYHVQDqJ0lsKY0jfcTdb2fx8lpIG kF1q/yFniUmzoybiGWbyIsmRh+bBxM1FbVqMsK2/zaNYnFKhKvBiRE+eJzRbwfOZdz0kev NT3ZvpYPL7+iWHNweDMZrEb2wWfAFeN3AXChD8AnoVJRoBIWJBqaIuNvV1+Wl0fZq8cpYL gS1RbugXspjSwjkugfec/fv6uxtOjHKJ7ff3pxyexTHrA4w7M5PbxQHdggQG39/hgkN9VM V+cKxeQnaPp3mijkoIn+xtjNGJwKzK1xpbofTGEFSR8jMndPVJPcXt5jnFTivQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767292856; a=rsa-sha256; cv=none; b=NHK7+qVBvyAb6i1P1jxqMG3Vs9+0z/Cq26ntl6D7iRzn7mrr/ENym76aG6pO6qa/ClrJ9y aReQ/aePq5A68abwjCTUrFQdtYTVFakx0//MSURXYb5ZppyU5RMclNwdOBgjMCRDqhCSi2 fHd7LqYS/sCxrlImPgpkWXx7J8URB1/P5D/EbEBTbgfatLJp59bOQ8OH8CAvixqBCaDVGH No6JaZBPYyGd2g4Rp7YYOHhQOoXEnSF7gAc5Tq1coNZS621AuoROYzCY7CDox38HG6qGOl bT8XhssQZNrjNvw5DyKt8srUScY0SwfKjn9ZZiceTyXGWb86LELdmcDRpy6GUw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dhwd44tRdzkxT for ; Thu, 01 Jan 2026 18:40:56 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 38933 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 01 Jan 2026 18:40:56 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Alexander Ziaee Subject: git: 1b23b79beef2 - stable/14 - vt.4: Style pass List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: ziaee X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 1b23b79beef230009f4df5c15f1571a134521810 Auto-Submitted: auto-generated Date: Thu, 01 Jan 2026 18:40:56 +0000 Message-Id: <6956bfb8.38933.45fe14b3@gitrepo.freebsd.org> The branch stable/14 has been updated by ziaee: URL: https://cgit.FreeBSD.org/src/commit/?id=1b23b79beef230009f4df5c15f1571a134521810 commit 1b23b79beef230009f4df5c15f1571a134521810 Author: Alexander Ziaee AuthorDate: 2025-08-07 17:01:29 +0000 Commit: Alexander Ziaee CommitDate: 2026-01-01 18:38:02 +0000 vt.4: Style pass Outstanding: I'm not sure kernel configuration declarations are defined variables. Dv does not allow arguments, but some why allowed paths, so non-path arguments were being incorrectly marked up as paths. MFC after: 3 days (with resolved conflicts) Reviewed by: 0mp, emaste Differential Revision: https://reviews.freebsd.org/D49565 (cherry picked from commit 7cd6da268a8fbf34b16564dd9a94c86853eb7c56) --- share/man/man4/vt.4 | 48 ++++++++++++++++++++++++------------------------ 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/share/man/man4/vt.4 b/share/man/man4/vt.4 index 9d61a5972f35..4d8a138f293c 100644 --- a/share/man/man4/vt.4 +++ b/share/man/man4/vt.4 @@ -1,4 +1,4 @@ -.\"- +.\" .\" SPDX-License-Identifier: BSD-2-Clause .\" .\" Copyright (c) 2014 Warren Block @@ -26,31 +26,31 @@ .\" SUCH DAMAGE. .\" .Dd July 7, 2024 -.Dt "VT" 4 +.Dt VT 4 .Os .Sh NAME .Nm vt .Nd virtual terminal system video console driver .Sh SYNOPSIS -.Cd "options TERMINAL_KERN_ATTR=_attribute_" -.Cd "options TERMINAL_NORM_ATTR=_attribute_" -.Cd "options VT_MAXWINDOWS=N" +.Cd "options TERMINAL_KERN_ATTR=" +.Cd "options TERMINAL_NORM_ATTR=" +.Cd "options VT_MAXWINDOWS=" .Cd "options VT_ALT_TO_ESC_HACK=1" .Cd "options VT_TWOBUTTON_MOUSE" -.Cd "options VT_FB_MAX_WIDTH=X" -.Cd "options VT_FB_MAX_HEIGHT=Y" +.Cd "options VT_FB_MAX_WIDTH=" +.Cd "options VT_FB_MAX_HEIGHT=" .Cd "options SC_NO_CUTPASTE" .Cd "device vt" .Pp In .Xr loader.conf 5 : -.Cd hw.vga.textmode=1 -.Cd hw.vga.acpi_ignore_no_vga=1 -.Cd kern.vty=vt -.Cd kern.vt.color..rgb="" -.Cd kern.vt.fb.default_mode="x" -.Cd kern.vt.fb.modes.="x" -.Cd screen.font="x" +.Cd "hw.vga.textmode=1" +.Cd "hw.vga.acpi_ignore_no_vga=1" +.Cd "kern.vty=vt" +.Cd "kern.vt.color..rgb=" +.Cd "kern.vt.fb.default_mode=x" +.Cd "kern.vt.fb.modes.=x" +.Cd "screen.font=x" .Pp In .Xr loader.conf 5 or @@ -129,8 +129,8 @@ These kernel options control the .Nm driver. .Bl -tag -width MAXCONS -.It Dv TERMINAL_NORM_ATTR= Ns Pa attribute -.It Dv TERMINAL_KERN_ATTR= Ns Pa attribute +.It Dv TERMINAL_NORM_ATTR= +.It Dv TERMINAL_KERN_ATTR= These options change the default colors used for normal and kernel text. Available colors are defined in @@ -138,7 +138,7 @@ Available colors are defined in See .Sx EXAMPLES below. -.It Dv VT_MAXWINDOWS=N +.It Dv VT_MAXWINDOWS= Set the number of virtual terminals to be created to .Fa N . The value defaults to 12. @@ -151,10 +151,10 @@ In effect, this makes the right-hand mouse button perform a paste. These options are checked in the order shown. .It Dv SC_NO_CUTPASTE Disable mouse support. -.It VT_FB_MAX_WIDTH=X +.It VT_FB_MAX_WIDTH= Set the maximum width to .Fa X . -.It VT_FB_MAX_HEIGHT=Y +.It VT_FB_MAX_HEIGHT= Set the maximum height to .Fa Y . .El @@ -165,7 +165,7 @@ console device, These options will be removed in a future .Fx version. -.Bl -column -offset indent ".Sy vt VT_TWOBUTTON_MOUSE" ".Sy SC_TWOBUTTON_MOUSE" +.Bl -column -offset indent "TERMINAL_KERN_ATTR" "SC_KERNEL_CONS_ATTR" .It Sy vt Option Name Ta Sy sc Option Name .It Dv TERMINAL_KERN_ATTR Ta Dv SC_KERNEL_CONS_ATTR .It Dv TERMINAL_NORM_ATTR Ta Dv SC_NORM_ATTR @@ -229,7 +229,7 @@ Note that is not compatible with .Xr UEFI 8 boot. -.It Va kern.vt.color. Ns Ar colornum Ns Va .rgb +.It Va kern.vt.color. Ns Ar colornum Ns . Ns Va rgb Set this value to override default palette entry for color .Pa colornum which should be in a range from 0 to 15 inclusive. @@ -244,15 +244,15 @@ Note: The .Nm VGA hardware driver does not support palette configuration. .It Va kern.vt.fb.default_mode -Set this value to a graphic mode to override the default mode picked by the +Set this value to a graphic mode to override the default picked by the .Nm backend. The mode is applied to all output connectors. This is currently only supported by the .Cm vt_fb backend when it is paired with a KMS video driver. -.It Va kern.vt.fb.modes. Ns Pa connector_name -Set this value to a graphic mode to override the default mode picked by the +.It Va kern.vt.fb.modes. +Set this value to a graphic mode to override the default picked by the .Nm backend. This mode is applied to the output connector From nobody Thu Jan 1 18:40:58 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dhwd70j5rz6MXmq for ; Thu, 01 Jan 2026 18:40:59 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dhwd66fvvz3kNm for ; Thu, 01 Jan 2026 18:40:58 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767292858; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Dcs6RPMeeW7xUDQDHepUAGCa1wXNMItifLq/yA1tWYg=; b=HRsh7MwenpzyzotIa8VT8h6Wa9sirA3CTQ12bDMU0VxBOmM5+Y71j3NkX8ZTscKz6jEkX8 bdc8rwPYo6Muo1e8eb96LfkOKRc52x6GQlwkS/TZmzWtJo4/OgJmbhFa2Ki3ZNYg3WBgkJ V26gw1Rt5M1U8UAxJdynJwlL2RSWi0FL9HmGaqN7HBkqJ4I47kT94RRIn9qb70TgqQ4cfp XY45clyCZLW4X1ac9Bj4K8MiJZSSu6ooDNBa/i1/LPpWMSJgZH1QtLQeRGtWEx8ShqwcQh Hr77bKq/IIBLE0SgWsuz999LiIc5PdRvZ+BPpnBmgYh2WrK8KAl8kyiLRSVPnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767292858; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Dcs6RPMeeW7xUDQDHepUAGCa1wXNMItifLq/yA1tWYg=; b=y4GpUSjus/NkSQVHk9IMllZgyqGhq028pYQuuTljJzcpKXvtyjO94LxetfHitiqK4iniFl frMLrVaBc+vxEwrYrvZmFoOaTxiKcVZLrf7h1E1MelX9qtBhDUkxTo/4+8dQPs0lDi2PdA FvLuD2UiN1CAfwTiuXahgkngeheNkIt/kNwHRdvb8zsHnF5oBVaPT8bwb0saw2KDXVTIAH lsBE7Brx4Ne0p3juvdllVwOeNAE/0Xqq01JpV+73yxKBexpUsI9IepqzaTuqnTR3TfK3gS 4BX5cZuG7c1pogT1PrVFONTIjkr/OqZoTFX7lDakjobmESKxkXNA3UPZUnvWTA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767292858; a=rsa-sha256; cv=none; b=iNWKHRyPAYGEKu/30qYp2PADL0ejxQqyPLQJ4srA9CVvrVPfonzUaa9lKcR8Z4ZUI3ow7R kb3cAM1/GHPY7x56W+uq92+mvryJ8RW1yvyhNzuNfHQLvFKTMNdCoRdPtSd7hg7i0nMhqy LOZKhmhwwT3EnzDY0xf11oAu2aT5gtIuxiYBaUpjWJUyaqAnb+jkSGJrDvQM3Fk9YxM1na ayY/Z9kIr+dExUSyFd4VQGa0wx5xf1UqWPXHX836XqDKFbD0UtZlTWAkkyDt+7TjkC3p0N vIO9D5IJoAM9+a+1wIV1gSEXlct7vdXSRgJ4ZTnkhlUpp1s6Pm9nEL2ehYYxzg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dhwd666YlzkFt for ; Thu, 01 Jan 2026 18:40:58 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 374cc by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 01 Jan 2026 18:40:58 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Cc: Ed Maste From: Alexander Ziaee Subject: git: 47db87fe8398 - stable/14 - vt.4: Remove Xr to nonexistent vidcontrol(8) List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: ziaee X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 47db87fe8398d975e6bd8634eb8104ad0c001743 Auto-Submitted: auto-generated Date: Thu, 01 Jan 2026 18:40:58 +0000 Message-Id: <6956bfba.374cc.4e929e0d@gitrepo.freebsd.org> The branch stable/14 has been updated by ziaee: URL: https://cgit.FreeBSD.org/src/commit/?id=47db87fe8398d975e6bd8634eb8104ad0c001743 commit 47db87fe8398d975e6bd8634eb8104ad0c001743 Author: Ed Maste AuthorDate: 2025-12-28 00:52:17 +0000 Commit: Alexander Ziaee CommitDate: 2026-01-01 18:39:29 +0000 vt.4: Remove Xr to nonexistent vidcontrol(8) PR: 291985 Fixes: a8740ba860bf ("vt.4: Document increasing scrollback size") (cherry picked from commit f22cffe43343d9d48c731952d94976c5deb9659e) --- share/man/man4/vt.4 | 1 - 1 file changed, 1 deletion(-) diff --git a/share/man/man4/vt.4 b/share/man/man4/vt.4 index 33d0ce3246b4..6a9814aec438 100644 --- a/share/man/man4/vt.4 +++ b/share/man/man4/vt.4 @@ -409,7 +409,6 @@ at boot: .Xr getty 8 , .Xr kldload 8 , .Xr moused 8 , -.Xr vidcontrol 8 , .Xr vtfontcvt 8 .Sh HISTORY The From nobody Thu Jan 1 18:40:57 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dhwd628Pbz6MYYT for ; Thu, 01 Jan 2026 18:40:58 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dhwd617N3z3kNh for ; Thu, 01 Jan 2026 18:40:58 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767292858; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=eTDnr3eUh/o3UJPXtIeCP3X3NS1cHCeWzfbbiGh/d1I=; b=jY/UQi21XwBhBUXc3Pn05FDOs0X1ldvdaTB5qOdrvbOLLunp4CNOHir10FHHOLKaPoTgGs //0TSv672XjKPHuy2PBuSzhyYTECdGOL6OXdzzFo60WMDBpNVp+iOPJvfHhVJVn+C/VEZa XSNjnMWMFgBkh/3779VyK7NwoRNraN+5erm3+d/2ap0xBwv6GHESC/PXSTyNMQqp1HjlBA tuayTbX5MWoiH9rkYbBAaZIcA10O7wKLBIg1GZRs4r6EN4jcGFuvvr0EmZN5UOsgYXQ8XJ vWeks+x/jFzuOnEpCbsLDlEzPWExAQf03GTughJBAEUNmb/Q3gdr1EEB5MhBnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767292858; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=eTDnr3eUh/o3UJPXtIeCP3X3NS1cHCeWzfbbiGh/d1I=; b=sz4IYA5MhfFQcaU1ASr+jVsL/6NN41ZvitWBp+z1UsXQurPYYk8GME5Aw9mI3i8I2EWgDj 8bzHHWDXEtRVA60flvGTu8ThbcGXej0QhNSMvRsU0PmFEFKoae8wDN3kdpYhm12AEFLjG1 p9OEd7g8YjQzHsaeDTPBe3sqk+ZfxCmlr+Xaqv/bO9zy//jOrA+W/bUXVEiU+TcWSWnL/B 86Z8VHS2zlGO45Ss1Sj2CvSkqzKLJqyDwhBDxuzZ8qIG5w1fU3u2BfWek/tGoF5mG3P/CO 6KdQPGLXzg0eHG0qNKjkIuJPIzpYk7vyKuW8TD3/wxzpQZkc59WfX2Wil+E1qA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767292858; a=rsa-sha256; cv=none; b=tGRFAZva7d2Gbk9ClmwR3RsFMYczJZ8mW42irrTZMOlk5757o3GpsIzCAajjFfCARHQpNx uX27qqmfTG0xGIeKiZkOWkIbf/TV+HziOodcTg+l2/wqh32b87eD/VtbDBB4hdw/9ge9H5 nwXdV7q9SfhimSxEcMg5iRu/sKPzJi6r3HnOmmbvJ6Q0cqP1L0SWwGuu70WozjubQLjqZ0 w9+q49tuMoh5t/copGigKz3QUXudov8B1p4vBTxSZtoSQkeFeIgUfRF5T6W0TTEiw8B2NH JFqR1hteMt93jOKqNOte2koh0ERwUoLdYfebf8T/KUjmy+I1xCW3MGFmcs4cag== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dhwd55g7vzkFs for ; Thu, 01 Jan 2026 18:40:57 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 375cd by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 01 Jan 2026 18:40:57 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Alexander Ziaee Subject: git: ce92b9d8332a - stable/14 - vt.4: Document increasing scrollback size List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: ziaee X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: ce92b9d8332a436ec03d3457dffe247865ffc9c2 Auto-Submitted: auto-generated Date: Thu, 01 Jan 2026 18:40:57 +0000 Message-Id: <6956bfb9.375cd.7e49701f@gitrepo.freebsd.org> The branch stable/14 has been updated by ziaee: URL: https://cgit.FreeBSD.org/src/commit/?id=ce92b9d8332a436ec03d3457dffe247865ffc9c2 commit ce92b9d8332a436ec03d3457dffe247865ffc9c2 Author: Alexander Ziaee AuthorDate: 2025-11-21 17:40:56 +0000 Commit: Alexander Ziaee CommitDate: 2026-01-01 18:39:29 +0000 vt.4: Document increasing scrollback size MFC: immediately as 2 llms say this is impossible Reviewed by: adrian, emaste Differential Revision: https://reviews.freebsd.org/D53860 (cherry picked from commit a8740ba860bfc35879f886b80b30327d0d3b16bd) --- share/man/man4/vt.4 | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/share/man/man4/vt.4 b/share/man/man4/vt.4 index 4d8a138f293c..33d0ce3246b4 100644 --- a/share/man/man4/vt.4 +++ b/share/man/man4/vt.4 @@ -25,7 +25,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd July 7, 2024 +.Dd November 21, 2025 .Dt VT 4 .Os .Sh NAME @@ -341,6 +341,12 @@ Notification that the console bell has rung. .It Li hz Ta Tone that was requested in Hz. .El .Sh EXAMPLES +To increase the scrollback buffer size to 22500 lines, +add the following line to +.Pa /etc/rc.conf : +.Pp +.Dl allscreens_flags="-h 22500" +.Pp This example changes the default color of normal text to green on a black background, or black on a green background when reversed. Note that white space cannot be used inside the attribute string @@ -403,6 +409,7 @@ at boot: .Xr getty 8 , .Xr kldload 8 , .Xr moused 8 , +.Xr vidcontrol 8 , .Xr vtfontcvt 8 .Sh HISTORY The From nobody Thu Jan 1 19:08:58 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dhxFR1HsPz6MbDr for ; Thu, 01 Jan 2026 19:08:59 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dhxFQ6CwMz3nbl for ; Thu, 01 Jan 2026 19:08:58 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767294538; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=aXp1yf+4c5Gv9E38m+Ol77gSgTQlmcSUkSlx7Jp/jKY=; b=uKB8RjVQL+V2i1/wAaTZKNbh9gcMqjvbyMBZrnDSeQPg+PfJyo6+VFKiSB25/aTDRR5oL7 98xKhp3gEVDbWhEhqVfFyFvoKauhQ5oKVPVXkfwjrdDJ3j4zMnPQ8HL8lXDiawdc3HRAIc BnLZ/HA7dtUTsumN5brcp8u92L35qr8vKN992zJiwHTuQPDutVdxFRodSiY4n2hg3TBwpC 44b31vWdUP6+RCFgo2V+twjsnn/jK7dZ9R60B7WXmJXwT4cvAbulS6Gpw8tCjPW++VrT5G ddRZqhekRoMB86b7W0DEsEzavLMRtXF7yb7PW4r/BSF/GXUxfI1OOTaVRUsgNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767294538; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=aXp1yf+4c5Gv9E38m+Ol77gSgTQlmcSUkSlx7Jp/jKY=; b=tChm0RQHkz+52fG1SGK3LTkM8yZgaKeDI87s8RQMFQ2gl3GR9HvdxozM0qXK3MHYa6LJOQ sKy5+XySq/e+jDwTMJMO2qap5BIOT/M7GP0MXW7wQeuPP5o4gr7f0oH0ZQorPfUyjIWOsA 3nH0ewowqikwVPDA3IaI3FGkjGI1GhzGz3Y2ddpN9KySAqyuojAgyMefvwNKhqM2YjixeF ZT/JWVdmKAxyVEvdNFfxp88DdhJNBRV1l1UoF9u2Cui93OPBUt/Cw971kasSJABbbJCL5O S1ZlAsIRxe98MxNhxiw1QoYCL/WKiTv8Lkc8nALT6TqKukQGS0QMiz9uc7+6KA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767294538; a=rsa-sha256; cv=none; b=pW9cy8gtG+sQP9nKt83i8obmn3kcMFKVw2ahmZvIc85eVE5kfbU2SqxQ5JlIHA+8um71CL jSnpOzGQmhi/uyThGAeUzZCvBjZM1fvVKKZodoUsDfTT5GdMUURqUk/oOw/+Z+KCtwIbx3 75AlPpx3TKius2OelqB/vX2fau7+C0i8k1NeUW1RrqiRjfLTMaNbUrgK99mwmlWc7BjWNf K6jKOw/7EGpCt2UCwUlgN0socuTAuxBRFJFsiW13AKkHiimTvbLnf9qIpXMSlZVSlfEHYl r5gNiOis+4ClsmwRvKSahlc+sk2FVm44ZtQK0Wi4saW5+eF28klooIX9YNtJaQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dhxFQ5pHPzlZM for ; Thu, 01 Jan 2026 19:08:58 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3a2bf by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 01 Jan 2026 19:08:58 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Cc: Yan-Hao Wang From: Alexander Ziaee Subject: git: 063714951ad0 - stable/14 - kyua manuals: Correct --results-file short form List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: ziaee X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 063714951ad0e8407f39095f36de6be62a5fe07b Auto-Submitted: auto-generated Date: Thu, 01 Jan 2026 19:08:58 +0000 Message-Id: <6956c64a.3a2bf.5db21fd@gitrepo.freebsd.org> The branch stable/14 has been updated by ziaee: URL: https://cgit.FreeBSD.org/src/commit/?id=063714951ad0e8407f39095f36de6be62a5fe07b commit 063714951ad0e8407f39095f36de6be62a5fe07b Author: Yan-Hao Wang AuthorDate: 2025-12-29 20:13:16 +0000 Commit: Alexander Ziaee CommitDate: 2026-01-01 19:05:28 +0000 kyua manuals: Correct --results-file short form PR: 290647 Ref: kyua/cli/common.cpp#104 MFC after: 3 days Reviewed by: ziaee Closes: https://github.com/freebsd/kyua/issues/267 (cherry picked from commit bbaa7d628175ee484e31a054fb3cf7b7866cad13) --- contrib/kyua/doc/kyua-db-exec.1.in | 2 +- contrib/kyua/doc/kyua-db-migrate.1.in | 2 +- contrib/kyua/doc/kyua-report-html.1.in | 2 +- contrib/kyua/doc/kyua-report-junit.1.in | 2 +- contrib/kyua/doc/kyua-report.1.in | 2 +- contrib/kyua/doc/kyua-test.1.in | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/contrib/kyua/doc/kyua-db-exec.1.in b/contrib/kyua/doc/kyua-db-exec.1.in index 04f34c7b54e7..2e3bada4f849 100644 --- a/contrib/kyua/doc/kyua-db-exec.1.in +++ b/contrib/kyua/doc/kyua-db-exec.1.in @@ -62,7 +62,7 @@ The following subcommand options are recognized: .Bl -tag -width XX .It Fl -no-headers Avoids printing the headers of the table in the output of the command. -.It Fl -results-file Ar path , Fl s Ar path +.It Fl -results-file Ar path , Fl r Ar path __include__ results-file-flag-read.mdoc .El .Ss Results files diff --git a/contrib/kyua/doc/kyua-db-migrate.1.in b/contrib/kyua/doc/kyua-db-migrate.1.in index 67e46de46fec..4a1852aafd36 100644 --- a/contrib/kyua/doc/kyua-db-migrate.1.in +++ b/contrib/kyua/doc/kyua-db-migrate.1.in @@ -47,7 +47,7 @@ database lives. .Pp The following subcommand options are recognized: .Bl -tag -width XX -.It Fl -results-file Ar path , Fl s Ar path +.It Fl -results-file Ar path , Fl r Ar path __include__ results-file-flag-read.mdoc .El .Ss Results files diff --git a/contrib/kyua/doc/kyua-report-html.1.in b/contrib/kyua/doc/kyua-report-html.1.in index 1f9f55b69a3f..3ff044ca8d30 100644 --- a/contrib/kyua/doc/kyua-report-html.1.in +++ b/contrib/kyua/doc/kyua-report-html.1.in @@ -64,7 +64,7 @@ The directory must not exist unless the option is provided. The default is .Pa ./html . -.It Fl -results-file Ar path , Fl s Ar path +.It Fl -results-file Ar path , Fl r Ar path __include__ results-file-flag-read.mdoc .It Fl -results-filter Ar types Comma-separated list of the test result types to include in the report. diff --git a/contrib/kyua/doc/kyua-report-junit.1.in b/contrib/kyua/doc/kyua-report-junit.1.in index f1ad3a2e7f29..508ea30a3f6e 100644 --- a/contrib/kyua/doc/kyua-report-junit.1.in +++ b/contrib/kyua/doc/kyua-report-junit.1.in @@ -50,7 +50,7 @@ The following subcommand options are recognized: .Bl -tag -width XX .It Fl -output Ar directory Specifies the file into which to store the JUnit report. -.It Fl -results-file Ar path , Fl s Ar path +.It Fl -results-file Ar path , Fl r Ar path __include__ results-file-flag-read.mdoc .El .Ss Caveats diff --git a/contrib/kyua/doc/kyua-report.1.in b/contrib/kyua/doc/kyua-report.1.in index 8e2485f9c4ac..a3e4d75456cf 100644 --- a/contrib/kyua/doc/kyua-report.1.in +++ b/contrib/kyua/doc/kyua-report.1.in @@ -70,7 +70,7 @@ and .Pa /dev/stderr can be used to specify the standard output and the standard error, respectively. -.It Fl -results-file Ar path , Fl s Ar path +.It Fl -results-file Ar path , Fl r Ar path __include__ results-file-flag-read.mdoc .It Fl -results-filter Ar types Comma-separated list of the test result types to include in the report. diff --git a/contrib/kyua/doc/kyua-test.1.in b/contrib/kyua/doc/kyua-test.1.in index 8cd5f34ae6af..07db6cf461c2 100644 --- a/contrib/kyua/doc/kyua-test.1.in +++ b/contrib/kyua/doc/kyua-test.1.in @@ -69,7 +69,7 @@ Specifies the Kyuafile to process. Defaults to a .Pa Kyuafile file in the current directory. -.It Fl -results-file Ar path , Fl s Ar path +.It Fl -results-file Ar path , Fl r Ar path __include__ results-file-flag-write.mdoc .El .Pp From nobody Thu Jan 1 19:08:59 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dhxFS3yKMz6MZrl for ; Thu, 01 Jan 2026 19:09:00 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dhxFS07T9z3ncX for ; Thu, 01 Jan 2026 19:09:00 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767294540; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=91UkpkGbkcmigxLwYmlXqOVCfyoT2Z94aHqmGu/M+wg=; b=bHnzBgeFjizrKXbxpm6nwo11B34fd+dqbmDCBM9551se7EZ+51u0A6ossacgscBNj5pbHh 9NQtIUaPZqbC95F0SF5wCWi0UB7fzAyrYuU+gsTXlRWb6/ZPqApXIQchofwJfIL/+D8WMx w+XxATUBq+RIkT3iAgo2AjtuSs+4LLoknMOwCCaIcgCIGYhhfTOfvUOptXKypAftp8kxGY q10VURpz06bWCJBSzbLznQ8DZgIdDjZ05owDg/1syA65tE2eG1Zxy5KW9Osts+R2BiX/o3 hcfwt8bIT7rU+HLSLkHDvsKsVoPJ9DNJwD1zLd4Vm1Ov4Gdo/Nf7s2U7Ov8xKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767294540; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=91UkpkGbkcmigxLwYmlXqOVCfyoT2Z94aHqmGu/M+wg=; b=Czq9ZHmtmXZVkLKTzDQuH86tLKsgDAIWaxvl1vI6/3/p3eTuFP92Txy4kRxCmUpgd0ZbwN Hua5CCPAEqQKfDKbwJv0CuQsR96+dC0p3ursULdghydHKJMcDjN4gISFuuH9DlnN19ediC I8DgJQcwJMAvWviwKihBQflOTMkjAjJem2NqVqY5rsm4jvdvxGwlgLP35Y9vKzxCWzVYT2 AVLyJ9Ms/zfaqG9+HAm8A8nJXqjJ3tltuAj+Nt5dEVl41RxBnErgVUJRA7fVvAgXLMzhIG vhXBh9l+Hq+aLKcu22o018TZLXmiic84Pgo6R4sh9HprO/tQ8FwvAVgPtDlHuQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767294540; a=rsa-sha256; cv=none; b=u5kR0sEXgS+vYdflyXw0PTNbRJVMrV2SyUEElDqAGtlVWMjd01C7BoGqYy1JC862C+3jxq l1wZzU0M95/lPMfL3cdZFdda7M/QCzrWJMG62CFuuWfMiccPB9CMd7WyF8ElHab0eQ8mu8 t1AYfr7pAEYUhe/mGnDhlSzK4I+SCwwk90U9Urf7y9H9xBVaD1RUbD/F8ffRKyMd5HQpjH 5OqQv8OfiP2IPs9poR4/7RImxcL86ekbUeJm6l9vlPBhxdTnNi9D2j5bseWfUcHIAYo7Da vMIQ60QT7sCeUdu94zPFXo21Rbvv8pWXosuB8JvmjlXFaVK8mheqHlz1fsyz4g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dhxFR6fs3zlDZ for ; Thu, 01 Jan 2026 19:08:59 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3a49d by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 01 Jan 2026 19:08:59 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Alexander Ziaee Subject: git: 74c8530c214c - stable/14 - camcontrol.8: Descriptions before examples List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: ziaee X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 74c8530c214cbc6eb01af00f12aa1d204c65ab26 Auto-Submitted: auto-generated Date: Thu, 01 Jan 2026 19:08:59 +0000 Message-Id: <6956c64b.3a49d.499d123c@gitrepo.freebsd.org> The branch stable/14 has been updated by ziaee: URL: https://cgit.FreeBSD.org/src/commit/?id=74c8530c214cbc6eb01af00f12aa1d204c65ab26 commit 74c8530c214cbc6eb01af00f12aa1d204c65ab26 Author: Alexander Ziaee AuthorDate: 2025-12-23 13:36:49 +0000 Commit: Alexander Ziaee CommitDate: 2026-01-01 19:05:58 +0000 camcontrol.8: Descriptions before examples This page has a lot of examples, so having them in the previous order can be confusing. Rewrite to the normal order where the descriptions come before the command, followed by a colon, which is still clear even jumping to the middle of the section. PR: 291759 MFC after: 3 days Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D54285 (cherry picked from commit fbc321b9cdceecd3c97742868da5d500423cf484) --- sbin/camcontrol/camcontrol.8 | 349 ++++++++++++++++++------------------------- 1 file changed, 148 insertions(+), 201 deletions(-) diff --git a/sbin/camcontrol/camcontrol.8 b/sbin/camcontrol/camcontrol.8 index bdda1828abf5..4963615fe6f6 100644 --- a/sbin/camcontrol/camcontrol.8 +++ b/sbin/camcontrol/camcontrol.8 @@ -2684,303 +2684,250 @@ is the transport layer device. are the CAM application passthrough devices. .El .Sh EXAMPLES -.Dl camcontrol eject -n cd -u 1 -v -.Pp Eject the CD from cd1, and print SCSI sense information if the command -fails. +fails: .Pp -.Dl camcontrol tur da0 +.Dl camcontrol eject -n cd -u 1 -v .Pp Send the SCSI test unit ready command to da0. The .Nm -utility will report whether the disk is ready, but will not display sense -information if the command fails since the +utility will report whether the disk is ready, +but will not display sense information if the command fails since the .Fl v -switch was not specified. -.Bd -literal -offset indent -camcontrol tur da1 -E -C 4 -t 50 -Q head -v -.Ed +switch was not specified: +.Pp +.Dl camcontrol tur da0 .Pp Send a test unit ready command to da1. Enable kernel error recovery. Specify a retry count of 4, and a timeout of 50 seconds. -Enable sense -printing (with the -.Fl v -flag) if the command fails. -Since error recovery is turned on, the -disk will be spun up if it is not currently spinning. -The -.Tn SCSI -task attribute for the command will be set to Head of Queue. +Enable sense printing +.Pq with the Fl v flag +if the command fails. +Since error recovery is turned on, +the disk will be spun up if it is not currently spinning. +The SCSI task attribute for the command will be set to Head of Queue. The .Nm -utility will report whether the disk is ready. -.Bd -literal -offset indent -camcontrol cmd -n cd -u 1 -v -c "3C 00 00 00 00 00 00 00 0e 00" \e - -i 0xe "s1 i3 i1 i1 i1 i1 i1 i1 i1 i1 i1 i1" -.Ed +utility will report whether the disk is ready: +.Pp +.Dl camcontrol tur da1 -E -C 4 -t 50 -Q head -v .Pp Issue a READ BUFFER command (0x3C) to cd1. Display the buffer size of cd1, and display the first 10 bytes from the cache on cd1. -Display SCSI sense -information if the command fails. +Display SCSI sense information if the command fails: .Bd -literal -offset indent -camcontrol cmd -n cd -u 1 -v -c "3B 00 00 00 00 00 00 00 0e 00" \e - -o 14 "00 00 00 00 1 2 3 4 5 6 v v v v" 7 8 9 8 +camcontrol cmd -n cd -u 1 -v -c "3C 00 00 00 00 00 00 00 0e 00" \e + -i 0xe "s1 i3 i1 i1 i1 i1 i1 i1 i1 i1 i1 i1" .Ed .Pp Issue a WRITE BUFFER (0x3B) command to cd1. Write out 10 bytes of data, not including the (reserved) 4 byte header. -Print out sense information if -the command fails. -Be very careful with this command, improper use may -cause data corruption. +Print out sense information if the command fails. +Be very careful with this command, +improper use may cause data corruption: .Bd -literal -offset indent -camcontrol modepage da3 -m 1 -e -P 3 +camcontrol cmd -n cd -u 1 -v -c "3B 00 00 00 00 00 00 00 0e 00" \e + -o 14 "00 00 00 00 1 2 3 4 5 6 v v v v" 7 8 9 8 .Ed .Pp -Edit mode page 1 (the Read-Write Error Recover page) for da3, and save the -settings on the drive. +Edit mode page 1 (the Read-Write Error Recover page) for da3, +and save the settings on the drive. Mode page 1 contains a disk drive's auto read and -write reallocation settings, among other things. +write reallocation settings, among other things: +.Bd -literal -offset indent +camcontrol modepage da3 -m 1 -e -P 3 +.Ed +.Pp +Rescan all SCSI buses in the system for devices that have been added, +removed or changed: .Pp .Dl camcontrol rescan all .Pp -Rescan all SCSI buses in the system for devices that have been added, -removed or changed. +Rescan SCSI bus 0 for devices that have been added, removed or changed: .Pp .Dl camcontrol rescan 0 .Pp -Rescan SCSI bus 0 for devices that have been added, removed or changed. +Rescan SCSI bus 0, target 1, lun 0 to see if it has been added, removed, +or changed: .Pp .Dl camcontrol rescan 0:1:0 .Pp -Rescan SCSI bus 0, target 1, lun 0 to see if it has been added, removed, or -changed. +Set the number of concurrent transactions for da5 to 24: .Pp .Dl camcontrol tags da5 -N 24 .Pp -Set the number of concurrent transactions for da5 to 24. -.Bd -literal -offset indent -camcontrol negotiate -n da -u 4 -T disable -.Ed +Disable tagged queueing for da4: .Pp -Disable tagged queueing for da4. -.Bd -literal -offset indent -camcontrol negotiate -n da -u 3 -R 20.000 -O 15 -a -.Ed +.Dl camcontrol negotiate -n da -u 4 -T disable .Pp Negotiate a sync rate of 20MHz and an offset of 15 with da3. -Then send a -Test Unit Ready command to make the settings take effect. -.Bd -literal -offset indent -camcontrol smpcmd ses0 -v -r 4 "40 0 00 0" -R 1020 "s9 i1" -.Ed +Then send a Test Unit Ready command to make the settings take effect: .Pp -Send the SMP REPORT GENERAL command to ses0, and display the number of PHYs -it contains. -Display SMP errors if the command fails. -.Bd -literal -offset indent -camcontrol security ada0 -.Ed +.Dl camcontrol negotiate -n da -u 3 -R 20.000 -O 15 -a .Pp -Report security support and settings for ada0 -.Bd -literal -offset indent -camcontrol security ada0 -U user -s MyPass -.Ed +Send the SMP REPORT GENERAL command to ses0, +and display the number of PHYs it contains, +displaying SMP errors if the command fails: .Pp -Enable security on device ada0 with the password MyPass -.Bd -literal -offset indent -camcontrol security ada0 -U user -e MyPass -.Ed +.Dl camcontrol smpcmd ses0 -v -r 4 "40 0 00 0" -R 1020 "s9 i1" .Pp -Secure erase ada0 which has had security enabled with user password MyPass +Report security support and settings for ada0: .Pp -.Em WARNING! WARNING! WARNING! +.Dl camcontrol security ada0 +.Pp +Enable security on device ada0 with the password MyPass: +.Pp +.Dl camcontrol security ada0 -U user -s MyPass +.Pp +Secure erase the security enabled ada0 with user password MyPass. .Pp -This will +.Em WARNING ! WARNING ! WARNING ! +.Pp +The following command will .Em ERASE ALL data from the device, so backup your data before using! .Pp -This command can be used against an SSD drive to restoring it to -factory default write performance. -.Bd -literal -offset indent -camcontrol hpa ada0 -.Ed +This will restore a solid state drive +.Pq SSD +to factory default write performance: .Pp -Report HPA support and settings for ada0 (also reported via -identify). -.Bd -literal -offset indent -camcontrol hpa ada0 -s 10240 -.Ed +.Dl camcontrol security ada0 -U user -e MyPass .Pp -Enables HPA on ada0 setting the maximum reported sectors to 10240. +Report HPA support and settings for ada0 (also reported via identify): .Pp -.Em WARNING! WARNING! WARNING! +.Dl camcontrol hpa ada0 +.Pp +Enable HPA on ada0 setting the maximum reported sectors to 10240. +.Pp +.Em WARNING ! WARNING ! WARNING ! .Pp -This will +The following command will .Em PREVENT ACCESS -to all data on the device beyond this limit until HPA is disabled by setting -HPA to native max sectors of the device, which can only be done after a -power-on or hardware reset! +to all data on the device beyond this limit until HPA is disabled +by setting HPA to native max sectors of the device, +which can only be done after a power-on or hardware reset! .Pp .Em DO NOT -use this on a device which has an active filesystem! -.Bd -literal -offset indent -camcontrol persist da0 -v -i read_keys -.Ed +use this on a device which has an active filesystem: .Pp -This will read any persistent reservation keys registered with da0, and -display any errors encountered when sending the PERSISTENT RESERVE IN -.Tn SCSI -command. -.Bd -literal -offset indent -camcontrol persist da0 -v -o register -a -K 0x12345678 -.Ed +.Dl camcontrol hpa ada0 -s 10240 .Pp -This will register the persistent reservation key 0x12345678 with da0, -apply that registration to all ports on da0, and display any errors that -occur when sending the PERSISTENT RESERVE OUT command. -.Bd -literal -offset indent -camcontrol persist da0 -v -o reserve -s lun -k 0x12345678 -T ex_ac -.Ed +This will read any persistent reservation keys registered with da0, +and display any errors encountered when sending the +PERSISTENT RESERVE IN SCSI command: .Pp -This will reserve da0 for the exlusive use of the initiator issuing the -command. +.Dl camcontrol persist da0 -v -i read_keys +.Pp +Register the persistent reservation key 0x12345678 with da0, +apply that registration to all ports on da0, +and display any errors that +occur when sending the PERSISTENT RESERVE OUT command: +.Pp +.Dl camcontrol persist da0 -v -o register -a -K 0x12345678 +.Pp +Reserve da0 for the exclusive use of the initiator issuing the command. The scope of the reservation is the entire LUN. -Any errors sending the PERSISTENT RESERVE OUT command will be displayed. -.Bd -literal -offset indent -camcontrol persist da0 -v -i read_full -.Ed +Any errors sending the PERSISTENT RESERVE OUT command will be displayed: .Pp -This will display the full status of all reservations on da0 and print out -status if there are any errors. -.Bd -literal -offset indent -camcontrol persist da0 -v -o release -k 0x12345678 -T ex_ac -.Ed +.Dl camcontrol persist da0 -v -o reserve -s lun -k 0x12345678 -T ex_ac +.Pp +Display the full status of all reservations on da0 +and print out status if there are any errors: +.Pp +.Dl camcontrol persist da0 -v -i read_full .Pp This will release a reservation on da0 of the type ex_ac -(Exclusive Access). +.Pq Exclusive Access . The Reservation Key for this registration is 0x12345678. -Any errors that occur will be displayed. +Any errors that occur will be displayed: +.Pp +.Dl camcontrol persist da0 -v -o release -k 0x12345678 -T ex_ac +.Pp +Register the key 0x12345678 with da0, +specifying that it applies to the SAS initiators +with SAS addresses 0x1234567812345678 and 0x8765432187654321: .Bd -literal -offset indent camcontrol persist da0 -v -o register -K 0x12345678 -S \e -I sas,0x1234567812345678 -I sas,0x8765432187654321 .Ed .Pp -This will register the key 0x12345678 with da0, specifying that it applies -to the SAS initiators with SAS addresses 0x1234567812345678 and -0x8765432187654321. -.Bd -literal -offset indent -camcontrol persist da0 -v -o register_move -k 0x87654321 \e - -K 0x12345678 -U -p -R 2 -I fcp,0x1234567812345678 -.Ed -.Pp -This will move the registration from the current initiator, whose -Registration Key is 0x87654321, to the Fibre Channel initiator with the +Move the registration from the current initiator, +whose Registration Key is 0x87654321, +to the Fibre Channel initiator with the Fiber Channel World Wide Node Name 0x1234567812345678. A new registration key, 0x12345678, will be registered for the initiator -with the Fibre Channel World Wide Node Name 0x1234567812345678, and the -current initiator will be unregistered from the target. +with the Fibre Channel World Wide Node Name 0x1234567812345678, +and the current initiator will be unregistered from the target. The reservation will be moved to relative target port 2 on the target device. -The registration will persist across power losses. +The registration will persist across power losses: .Bd -literal -offset indent -camcontrol attrib sa0 -v -i attr_values -p 1 +camcontrol persist da0 -v -o register_move -k 0x87654321 \e + -K 0x12345678 -U -p -R 2 -I fcp,0x1234567812345678 .Ed .Pp -This will read and decode the attribute values from partition 1 on the tape -in tape drive sa0, and will display any -.Tn SCSI -errors that result. -.Bd -literal -offset indent -camcontrol zone da0 -v -c rz -P summary -.Ed +Read and decode the attribute values from partition 1 on the tape +in tape drive sa0, and will display any SCSI errors that result: .Pp -This will request the SMR zone list from disk da0, and print out a -summary of the zone parameters, and display any -.Tn SCSI -or -.Tn ATA -errors that result. -.Bd -literal -offset indent -camcontrol zone da0 -v -c rz -o reset -.Ed +.Dl camcontrol attrib sa0 -v -i attr_values -p 1 .Pp -This will request the list of SMR zones that should have their write -pointer reset from the disk da0, and display any -.Tn SCSI -or -.Tn ATA -errors that result. -.Bd -literal -offset indent -camcontrol zone da0 -v -c rwp -l 0x2c80000 -.Ed +Request the SMR zone list from disk da0, and print out a summary +of the zone parameters, and display any SCSI or ATA errors that result: .Pp -This will issue the Reset Write Pointer command to disk da0 for the zone -that starts at LBA 0x2c80000 and display any -.Tn SCSI -or -.Tn ATA -errors that result. -.Bd -literal -offset indent -camcontrol epc ada0 -c timer -T 60.1 -p Idle_a -e -s -.Ed +.Dl camcontrol zone da0 -v -c rz -P summary .Pp -Set the timer for the Idle_a power condition on drive -.Pa ada0 -to 60.1 seconds, enable that particular power condition, and save the timer -value and the enabled state of the power condition. -.Bd -literal -offset indent -camcontrol epc da4 -c goto -p Standby_z -H -.Ed +Request the list of SMR zones that should have their write pointer reset +from the disk da0, and display any SCSI or ATA errors that result: +.Pp +.Dl camcontrol zone da0 -v -c rz -o reset +.Pp +Issue the Reset Write Pointer command to disk da0 for the zone that +starts at LBA 0x2c80000 and display any SCSI or ATA errors that result: +.Pp +.Dl camcontrol zone da0 -v -c rwp -l 0x2c80000 +.Pp +Set the timer for the Idle_a power condition on drive ada0 to +60.1 seconds, enable that particular power condition, +and save the timer value and the enabled state of the power condition: +.Pp +.Dl camcontrol epc ada0 -c timer -T 60.1 -p Idle_a -e -s .Pp -Tell drive -.Pa da4 -to go to the Standby_z power state (which is -the drive's lowest power state) and hold in that state until it is -explicitly released by another +Tell drive da4 to go to the Standby_z power state +.Pq the drive's lowest power state +and hold in that state until it is explicitly released by another .Cm goto -command. -.Bd -literal -offset indent -camcontrol epc da2 -c status -P -.Ed +command: +.Pp +.Dl camcontrol epc da4 -c goto -p Standby_z -H .Pp -Report only the power state of -drive -.Pa da2 . +Report only the power state of drive da2. Some drives will power up in response to the commands sent by the .Pa status subcommand, and the .Fl P option causes .Nm -to only send the -.Tn ATA -CHECK POWER MODE command, which should not trigger a change in the drive's -power state. -.Bd -literal -offset indent -camcontrol epc ada0 -c list -.Ed +to only send the ATA CHECK POWER MODE command, +which should not trigger a change in the drive's power state: +.Pp +.Dl camcontrol epc da2 -c status -P .Pp -Display the ATA Power Conditions log (Log Address 0x08) for -drive -.Pa ada0 . +Display the ATA Power Conditions log (Log Address 0x08) for drive ada0: +.Pp +.Dl camcontrol epc ada0 -c list +.Pp +Set the timestamp of drive sa0 using a +.Xr strptime 3 +format string followed by a time string +that was created using this format string: .Bd -literal -offset indent camcontrol timestamp sa0 -s -f "%a, %d %b %Y %T %z" \e -T "Wed, 26 Oct 2016 21:43:57 -0600" .Ed -.Pp -Set the timestamp of drive -.Pa sa0 -using a -.Xr strptime 3 -format string followed by a time string -that was created using this format string. .Sh SEE ALSO .Xr cam 3 , .Xr cam_cdbparse 3 , From nobody Thu Jan 1 19:08:57 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dhxFW0K01z6Mb8h for ; Thu, 01 Jan 2026 19:09:03 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dhxFV5Swhz3nry for ; Thu, 01 Jan 2026 19:09:02 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767294542; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=WuK/84ZVuupYT1ZLlRKZfXi7JuwM7KfdltMzDRswfcY=; b=K50nUz+JHE8+AhvzVr4bC/2zLH+5I2l1Q1t7gHEMKyjUnmjj2xj7dKbeJxboSykG25+C8s gQt3OEqoUEstBmNTG/fqTFa+qygVbJk/lIxwKC/nLbdN2kcj2S1nefxnFHRqu08izQsGkw Z57YjRoZvl0nFybIoio2xcFMjTVOvIUU+31mYk9LDKMyhHQptDfH+Uyo+YrxQVMmwyx7up SJeVceMx3p56U6YrH+dzefeB4ZOX/aEnmbnX7yGULmY5m4io25KhMSSlGxxLtwMhe4usVn HGtiSdUQHaDWJoxx9fgraKBrkt53JCDFNhUSVs+fyhVQ9+bACIRF0+9jPCxbKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767294542; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=WuK/84ZVuupYT1ZLlRKZfXi7JuwM7KfdltMzDRswfcY=; b=LEDFhWvqJHZfgl130zZ9CPysEPUJko+cVOn7QWnYtQCwpXJmjqeEs682B+8VSMDjS4Y683 BzwLR95+sE/1BESvFdOyvUT7uwd0Aytqaw9tyqCLSqfa4OeOgYK0bzPpB6QG/ve9o76mQ3 UnGRb8a5cAoEJMqbVDF2U0Xihb4w4P9tgHzuybm1Cut9926P1TsPKcgL/LR+kAcrLwUxDi penxWKs0FUp/UwHu8HraFwOZMB9ueDMqLVcMhvaUL6oG60E2Uiy8zxogcTXrA9eMKNH9EB 8CjcwIP0bEXYIb8cFPjXEo/pLu9LF6+itazFHDNqw1klh05/P6HdKjpcWCvr4A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767294542; a=rsa-sha256; cv=none; b=Z8puFAIbEYowVWm7hxA4sCcLxJIWhCfacEggTRwfRnSNNL8N5PR3Ph3RJYGSa0nit8LEmK Cqu1Z9VqMczxs4KwVb/J51MsAOaax11zQ4WVI0ESjyF1P3IjLcYomuGx6xHRtVbL1PqpBJ Ir9fRP0xDHa7OWlkkFAw3+MqH5/04+wo6aeykIOTAlImLxUJL4luogbGnbkiRmVTX2Bl5+ Wt5asV/VkGEDBm+YrGmzEedWrxt0ItBQZIGwVvUWWMbbGbdWgLOyl4n8lksezkP3hNj2E6 yackIjssOhVSzjX025e1RmWd1dDPZSOEnvJ1Tp6W3j7Hu9ZejeZEcLBmlTcA8g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dhxFV4zxwzlkm for ; Thu, 01 Jan 2026 19:09:02 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3b8dc by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 01 Jan 2026 19:08:57 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Cc: Felix Johnson From: Alexander Ziaee Subject: git: 7fa86256aaca - stable/14 - ioctl.2: Mention EACCES List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: ziaee X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 7fa86256aaca948671c38f462e9ef4692799d8fc Auto-Submitted: auto-generated Date: Thu, 01 Jan 2026 19:08:57 +0000 Message-Id: <6956c649.3b8dc.4fb39093@gitrepo.freebsd.org> The branch stable/14 has been updated by ziaee: URL: https://cgit.FreeBSD.org/src/commit/?id=7fa86256aaca948671c38f462e9ef4692799d8fc commit 7fa86256aaca948671c38f462e9ef4692799d8fc Author: Felix Johnson AuthorDate: 2025-12-29 19:21:26 +0000 Commit: Alexander Ziaee CommitDate: 2026-01-01 19:04:30 +0000 ioctl.2: Mention EACCES ioctls can fail with EACCES, see sys/kern/tty.c PR: 239504 MFC after: 3 days Reviewed by: ziaee Reported by: Brennan Vincent Differential Revision: https://reviews.freebsd.org/D49072 (cherry picked from commit e2afbc45258f2fa4bdcf126e959ac660e76fc802) --- lib/libc/sys/ioctl.2 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/libc/sys/ioctl.2 b/lib/libc/sys/ioctl.2 index d5b09cf67eba..27c290019779 100644 --- a/lib/libc/sys/ioctl.2 +++ b/lib/libc/sys/ioctl.2 @@ -27,7 +27,7 @@ .\" .\" @(#)ioctl.2 8.2 (Berkeley) 12/11/93 .\" -.Dd September 11, 2013 +.Dd December 29, 2025 .Dt IOCTL 2 .Os .Sh NAME @@ -112,6 +112,9 @@ The system call will fail if: .Bl -tag -width Er +.It Bq Er EACCES +The process does not have permission to call this +.Nm . .It Bq Er EBADF The .Fa fd From nobody Thu Jan 1 22:21:29 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dj1WY2x9jz6Mnpm for ; Thu, 01 Jan 2026 22:21:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dj1WY1glLz49cN for ; Thu, 01 Jan 2026 22:21:29 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767306089; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=f/CrFmKugh2tuoLGwJ5I5DXn0hPOxUbd+j0NWzBzdpw=; b=LBq3zRsa4X8afWVeDDFv9hJgk42qpwhHpbtXLV/B2OOkm+q9Ya1lz8g1Klp4RbWrEOopGY yjWU5P4X51C3OAjoVYGmG64yhz9l1g4+0Sd2mDUAxJNQgFQPxJ9kMwiQV3uNrNno6TDNQV dU2i4emNlgisWqE/b8c/bW8CAQGg3zI+r1E9h4TXQETOEyI18WxW58G4XeZ8HQgCeTS4P8 aA8BYGfh2AlI8xo/kahhNqYs2Vk5095gv2/Yi2vPju2VGJSBwN2mupatcoMnKuxhZTmXSN HLe4x9lG4hbCvx263JBo0OU90thL0uK+HHRsJ+9no/UHafcQW6My9nUXOYRg2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767306089; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=f/CrFmKugh2tuoLGwJ5I5DXn0hPOxUbd+j0NWzBzdpw=; b=pmzALpGqGTj7KG6xksn1BiOnoKxUcQcl4EpxNebpD6QELRy8Ka3ORZAGC7iiGSOcv35EC1 Xp1RVgxajUaYHSi1eFTeiNwbT8WVQoiQ9ubG+T0ApV8q4/sDBLm90MtytfDUSw1uPNqhtK m3aTSrh6NQhw/kqRhE/2DWY22+iBAEbNgB6090RKeQ1WB4LO3WhaUB0wtRUtz/QDx2Y5cu uC9pRDvrmeHHvy4UdE/09sWHOuFlgY1UPzWmXfiIApNYBbdO9mBrQhmcbbs++iPRfO4Wib MNn/OoUEWo6LwsWzOH+D8gIShq8QEYl79zqvWbXAJTqJUxTwbv0Ht80wXrAK5A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767306089; a=rsa-sha256; cv=none; b=ciBdEt1wmrDDRyfYr4ejicIVKpfz6O3qgsV8hjipA/izvcvVtz0ZXC7Ix2U77Kat8dYjxk GQgkdsXCtS4uleCOS6vuPQ6PBf5pp+5u//RWIo4uqYKAurJBLVsaLEpk2chnGynlUPMNwI F3aA0gpMoqGS3iO9n4UFJdJKU/EKr2brptP6oPchtdMrBxObj1+RIuBteGMujl7MZzaUmw ojbk5/lZOkmlXMhQRRRvyKbhzXjJFa6BZL1B1cXGhQVpHmgz4752K+asjUP2eMYvPQrCRz TLq7Q5ZqniReEiJMjaW/1dZoW07B4NUvAke3LbmHARw52sDqc4GCfAcdUkXDBg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dj1WY1DJ8zrNn for ; Thu, 01 Jan 2026 22:21:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id e155 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 01 Jan 2026 22:21:29 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Robert Clausecker Subject: git: e53890c477f5 - stable/15 - contrib/mandoc: add -ieee754-2008 List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: fuz X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: e53890c477f53f12da721c48334a0330d07345c3 Auto-Submitted: auto-generated Date: Thu, 01 Jan 2026 22:21:29 +0000 Message-Id: <6956f369.e155.470182a0@gitrepo.freebsd.org> The branch stable/15 has been updated by fuz: URL: https://cgit.FreeBSD.org/src/commit/?id=e53890c477f53f12da721c48334a0330d07345c3 commit e53890c477f53f12da721c48334a0330d07345c3 Author: Robert Clausecker AuthorDate: 2025-11-17 17:18:40 +0000 Commit: Robert Clausecker CommitDate: 2026-01-01 20:47:32 +0000 contrib/mandoc: add -ieee754-2008 This is needed to simplify the msun manpages {sin,cos,tan}pi.3 Approved by: markj (mentor) MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D53784 (cherry picked from commit db3884b03989b095d746087afab8e5e649c3699a) --- contrib/mandoc/st.c | 1 + 1 file changed, 1 insertion(+) diff --git a/contrib/mandoc/st.c b/contrib/mandoc/st.c index 276981584e41..d740ee619f17 100644 --- a/contrib/mandoc/st.c +++ b/contrib/mandoc/st.c @@ -65,6 +65,7 @@ LINE("-iso9945-2-93", "ISO/IEC 9945-2:1993 (\\(lqPOSIX.2\\(rq)") LINE("-ansiC", "ANSI X3.159-1989 (\\(lqANSI\\~C89\\(rq)") LINE("-ansiC-89", "ANSI X3.159-1989 (\\(lqANSI\\~C89\\(rq)") LINE("-ieee754", "IEEE Std 754-1985") +LINE("-ieee754-2008", "IEEE Std 754-2008") LINE("-iso8802-3", "ISO 8802-3: 1989") LINE("-iso8601", "ISO 8601") LINE("-ieee1275-94", "IEEE Std 1275-1994 (\\(lqOpen Firmware\\(rq)") From nobody Thu Jan 1 22:21:30 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dj1WZ3qj9z6MnyC for ; Thu, 01 Jan 2026 22:21:30 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dj1WZ2YsLz49cQ for ; Thu, 01 Jan 2026 22:21:30 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767306090; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=zQc7UD57iHj++7eXO29nc2NswUpCanFD5Rrfi7KJ9Tw=; b=H9F89b3RGt6PLH9xpzIhhD2p5elHi3jgTcwurmDaSLf3IatdoEjx83/YiMFHGHjz0ePBnC oC5d5D/V1/QJn+/wUBfL/UjG3deTIqaHnw1cnq10OPkWC/c9XS64C2cQFNr18gdV/VZBtA 5DJnCt8rpZJ+WOLISkQsVU8k4+wsWHh+0CG7Cn5067BK5+za3mPkHKKgH68FrlOMryLeJx Dx99HVhJYnw2lR8tg1k0Jhclxm0usEU57wp38uKJLRL+HmnfQQNPDArUz2IN3lYoMpDuD9 mSRcLoHP0nuKKER9lddLV2gx8unpCoM4VlC7q2hYD+a74wYHL28zJc6idhRxkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767306090; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=zQc7UD57iHj++7eXO29nc2NswUpCanFD5Rrfi7KJ9Tw=; b=deOJTR67kkZGvwt1kZsPfNSIo0XG8l4vRcCJzYbNEGeG2CW9Xng36Jk+yHCoX4cvIsNLZp jLSVgiz6rHMbToQguSO9Sia1mfhV7B6ohDHh9Ay/W9/1y9Mo4KevdRX0dQ8DnoWK8yohk7 KFt4FO8y1rAfmJU/TCyGiJ610sPhy9tJ5/MDw96w+lZ7dm02wj3dgaPQGbMg8lESe+7o4F 8jEugglvUzvVxtlAN7AhK/G+tkWIpIomq4IS/4vhiiiXA5fbVXVhSA+XVQCjn6d+vgPHQZ XhHGguabzU9u2iRThs7BQeVpMHDI8Ab2g+GYFHNCV+UyZbOHcE2u7wSCL6FDXg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767306090; a=rsa-sha256; cv=none; b=uQm4JKSA2w2/z8PxO4mMf1BFP7d8p3Kzm1JMrlWDzoRwNvW0x4KpAlse3TrsgT6ONAkT+/ Kx+f9ZRSmba43k4PveJ5vQxCzdWr23vZ++StRnJhemmTs9HQmw2TL3e2EHZkHpOnvOO6SJ N5T27jyniNd4sGEswStV00oOz+F9zM2JZ/wwMTp+5En1dFWjXj1lmaIUMt5H0oJAdKNY26 2bGzXGWIvTVzg4KGwXbdWI05havHgN0hlQNiXlXSad0A4dgHW4qCCcs590iqPjz2Azitaa MNZ862bQUweNnqlrXQuWepcjBF32v8ONPGl016jJG5KGcQN9s8MIxYaVQYIgyw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dj1WZ21kCzrlw for ; Thu, 01 Jan 2026 22:21:30 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id eede by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 01 Jan 2026 22:21:30 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Robert Clausecker Subject: git: 141cec051d14 - stable/15 - contrib/mandoc: document .St -ieee754-2008 in mdoc(7) List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: fuz X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 141cec051d142f329bd32e43d2e492aa6719d8f9 Auto-Submitted: auto-generated Date: Thu, 01 Jan 2026 22:21:30 +0000 Message-Id: <6956f36a.eede.74109402@gitrepo.freebsd.org> The branch stable/15 has been updated by fuz: URL: https://cgit.FreeBSD.org/src/commit/?id=141cec051d142f329bd32e43d2e492aa6719d8f9 commit 141cec051d142f329bd32e43d2e492aa6719d8f9 Author: Robert Clausecker AuthorDate: 2025-11-17 15:39:11 +0000 Commit: Robert Clausecker CommitDate: 2026-01-01 20:47:33 +0000 contrib/mandoc: document .St -ieee754-2008 in mdoc(7) Approved by: markj (mentor) MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D53784 (cherry picked from commit 63cd0841de76b215f5d5078fab097b515b42cc93) --- contrib/mandoc/mdoc.7 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/contrib/mandoc/mdoc.7 b/contrib/mandoc/mdoc.7 index 6c2d3568baa6..90f5600c59a7 100644 --- a/contrib/mandoc/mdoc.7 +++ b/contrib/mandoc/mdoc.7 @@ -2606,6 +2606,11 @@ Open Group Standard Base Specifications, Issue 8. .br Floating-point arithmetic. .Pp +.It \-ieee754-2008 +.St -ieee754-2008 +.br +Floating-point arithmetic, 2008 revision. +.Pp .It \-iso8601 .St -iso8601 .br From nobody Thu Jan 1 22:21:31 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dj1Wb5wzrz6MnsX for ; Thu, 01 Jan 2026 22:21:31 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dj1Wb3BgVz49PS for ; Thu, 01 Jan 2026 22:21:31 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767306091; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=vtjJjYGu8AxTA4flPXMgt14qogxVpRK+SId30trQBzQ=; b=Ffkgz3GulV6tLuvczuiwxyGgqtxaYRe80lMq2uCmguAXCL4ceQypEMT4gArrtMNeSS+Ssu Cu24+VO7TOX9LQ2dhJMVNffKDl7aupbTt7wng0GOdzDFVtdfITHlEGI2lsupMuLPPT/GHk d3UyOlmh661Wd3Y+xWcd4aX2KmqrRC/5TsQlngkAUHyBCu72C3YAaI6/o5QxB3F9QhwOUs VDSJprcJMsL2SYFjk3GidKNLIFA8qIggcfiW56qE06IGlvyS61KseJrtXtrplHAwO1HPSv 56fQlRakymlLIt/y6K5VtQqeGCqAXkBig5pdmGSHT9ZprvDMvcyO73b2uTWCWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767306091; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=vtjJjYGu8AxTA4flPXMgt14qogxVpRK+SId30trQBzQ=; b=yqGX8HHW40jhS4qqUECguQYZCBBLZF7Lf/cQGa2y6tXA1IqERveskUbfJ+cwfbE85RabN6 c1hLt8EibD/kMiuNmZa/cRgzJFl9vzw9jusz3RvhlNSQLrOi7yCTxykL0bx1O+bH58dZLn JtShlNI2vc2fl5w45XfveeL7LUkamuOTr6wGYAT71bdnHlQz8bNky3airHWrnimnqOG0YS ZIK0LiHwBjsrK710SWtWzoOeqcCKcJLit5F3lEk2wU3LfVZojrjouipiWJX1eMu47knC8K fpxT3iCe+TokJTbBrYM002LS0ChCTax7xLV+igVJ/4aZAbAy1Nh//TPrZXHs3A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767306091; a=rsa-sha256; cv=none; b=jJdsC+okgifDruIuv1DpOaS31W4pHcu4D45DcmhWRpAthFGC6V8dHYO0sEhBVHbyiebGWI l+kWSRRef0NT4TzHsAIOQXWVPUb+IaxoKhO9VgigozMK+QojIso0VX5iQANOcMO3VWNWQ0 CFC5v5UU5/tqQZC0gGyewUpLm/wSd5zWl/AgtX9o4iZQTl7sW3MzgG1HObRZVVUVwcIfEU 6e9Grp71JEUpQWY+334IIb9BK3y3HXkk7Ib4enBW3ORsq/M6GkU0KyhczomuzG9iizmOMN g3zUbFz3Cg22gTzNYHz91LGxHe9CTPuaTL7j2N2DYiLlzpbG8vC7ffQ8dlFeUw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dj1Wb2pFlzrly for ; Thu, 01 Jan 2026 22:21:31 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id eee2 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 01 Jan 2026 22:21:31 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Robert Clausecker Subject: git: 104488641aca - stable/15 - msun: expose the C23 functions we already support in List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: fuz X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 104488641acaf2269d860d8abf142d80a340a5e8 Auto-Submitted: auto-generated Date: Thu, 01 Jan 2026 22:21:31 +0000 Message-Id: <6956f36b.eee2.475c443b@gitrepo.freebsd.org> The branch stable/15 has been updated by fuz: URL: https://cgit.FreeBSD.org/src/commit/?id=104488641acaf2269d860d8abf142d80a340a5e8 commit 104488641acaf2269d860d8abf142d80a340a5e8 Author: Robert Clausecker AuthorDate: 2025-11-17 17:09:11 +0000 Commit: Robert Clausecker CommitDate: 2026-01-01 20:47:33 +0000 msun: expose the C23 functions we already support in This is the *pi family of trigonometric functions. Quite a few C23 functions are still missing. These seem to be: acospi, acospif, acospil, asinpi, asinpif, asinpil, atan2pi, atan2pif, atan2pil, atanpi, atanpif, atanpil, canonicalize, canonicalizef, canonicalizel, compoundn, compoundnf, compoundnl, daddl, ddivl, dfmal, dmull, dsqrtl, dsubl, exp10, exp10f, exp10l, exp10m1, exp10m1f, exp10m1l, exp2m1, exp2m1f, exp2m1l, fadd, faddl, fdiv, fdivl, ffma, ffmal, fmaximum, fmaximum_mag, fmaximum_mag_num, fmaximum_mag_numf, fmaximum_mag_numl, fmaximum_magf, fmaximum_magl, fmaximum_num, fmaximum_numf, fmaximum_numl, fmaximumf, fmaximuml, fminimum, fminimum_mag, fminimum_mag_num, fminimum_mag_numf, fminimum_mag_numl, fminimum_magf, fminimum_magl, fminimum_num, fminimum_numf, fminimum_numl, fminimumf, fminimuml, fmul, fmull, fromfp, fromfpf, fromfpl, fromfpx, fromfpxf, fromfpxl, fsqrt, fsqrtl, fsub, fsubl, iscanonical, iseqsig, issignaling, issubnormal, iszero, nextdown, nextdownf, nextdownl, nextup, nextupf, nextupl, pown, pownf, pownl, powr, powrf, powrl, rootf, rootl, rootn, roundeven, roundevenf, roundevenl, rsqrt, rsqrtf, rsqrtl, ufromfp, ufromfpf, ufromfpl, ufromfpx, ufromfpxf, ufromfpxl. Reviewed by: imp Approved by: markj (mentor) MFC after: 1 month Relnotes: yes Differential Revision: https://reviews.freebsd.org/D53783 (cherry picked from commit 37fa5b36abb15b322493aba20146709d48359507) --- lib/msun/src/math.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/msun/src/math.h b/lib/msun/src/math.h index aecc652ea08a..25bd64e36a63 100644 --- a/lib/msun/src/math.h +++ b/lib/msun/src/math.h @@ -508,6 +508,9 @@ long double lgammal_r(long double, int *); void sincos(double, double *, double *); void sincosf(float, float *, float *); void sincosl(long double, long double *, long double *); +#endif /* __BSD_VISIBLE */ + +#if __ISO_C_VISIBLE >= 2023 double cospi(double); float cospif(float); long double cospil(long double); @@ -517,7 +520,7 @@ long double sinpil(long double); double tanpi(double); float tanpif(float); long double tanpil(long double); -#endif +#endif /* __ISO_C_VISIBLE >= 2023 */ __END_DECLS From nobody Thu Jan 1 22:21:32 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dj1Wd4sRzz6Mnsd for ; Thu, 01 Jan 2026 22:21:33 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dj1Wc6sf8z49nF for ; Thu, 01 Jan 2026 22:21:32 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767306093; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=xBXZEmdvhn2GuYYVNwwu56CLfRWgPwNlcsKJo5vnLhg=; b=Kk8uWQnp6JyuWVghTi+HWp6F3n61m+MkdQvR3NzXiWYIiGLBbNqOqD2rEZE9gfOIGwSu4l VzNba1oOZHVvQlej+Hv/kBkztAmmBOgr2bYR2pzhsTzKO1R+uIFPE9AbzLqvkl8+5KInpp 2Ffab99rDnGkUdyM5mZY66B3NAkDmRfQnd0+VqOlG7DjqE0/n5jWru3gsYwJqPYNJiqd+Q V3gY2hfc2cVsxtWl/eYOEHj0GF/+mnj2vh9Yu4vm5goDp97LG9kEQrSkEl4ybvSVLBMagE 5diNpKKShii9M/jbn+765wQsSUU/nk22o0MptlYTHALQt/366nMEo6JDtsb3BQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767306093; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=xBXZEmdvhn2GuYYVNwwu56CLfRWgPwNlcsKJo5vnLhg=; b=bSRmlMLgwsVJP1Gsu84rKJCY5NLouwWaVoWeNJMdgjfphETbSIyuI3qf+U5gjUhnDLbTya a4va4HGjjg3qQtEheWb9xQ1/UNTHMSxmBA61yV1cUs6sK9rGSCIhtB0A95OpF9/FOJWani neFZ/dvscpVa6xxSpneZcflkL/ar3KnMr1VKMxBPMCaoTSFG3/Rl3N0hDcl/TDPRxfxz3R 2XEqc2lwxE/CXlWNQjhryti62DUCyt8Xnm9l+n83KU07dV66rhM2iqIEBAWKNYFApu0skS 9yVmowUkkI59K9/59cbtaoN6p8U412Ozcyt+rBZ25BO8FGsDAj19296u5Vsp9Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767306093; a=rsa-sha256; cv=none; b=J8yNOsVUi9jhLweVEzvNLsfAukjjqAPkEd4LpDP/pzjDtx0ZfU7J06+eoDPqB5nQx7CzCK 297a5WF4eQGS0OQ/BF0yTsEgPUDwRaAvn/Jicds7uyLLJEK36tD5u+zqwX8v7WxMPMIdEG x0snt3Wk3snKkoagu9Vg7Ahf0WkVeKaj/Dznd9o0Z6+3NL8O0GpnVJPG8XuW1U/i7P0fhx Evc7X9hyoD952hUYOSdDlh9wLu+gG9pR5j10oKCfXUctcjx5lqp2NvwxDPU+o8h8aQK+9l +uhgE3AY6/FwaL29EflE/pISs7wZEZ/NuIRq0bXHuEKjQ75Bp4EJoFn9UsU7Tg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dj1Wc38rQzrLL for ; Thu, 01 Jan 2026 22:21:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id c87b by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 01 Jan 2026 22:21:32 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Robert Clausecker Subject: git: 6fc280810ead - stable/15 - msun: document that {sin,cos,tan}pi(3) follow C23 List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: fuz X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 6fc280810ead5f562b54c590a7e00d21c52b2449 Auto-Submitted: auto-generated Date: Thu, 01 Jan 2026 22:21:32 +0000 Message-Id: <6956f36c.c87b.11a1cede@gitrepo.freebsd.org> The branch stable/15 has been updated by fuz: URL: https://cgit.FreeBSD.org/src/commit/?id=6fc280810ead5f562b54c590a7e00d21c52b2449 commit 6fc280810ead5f562b54c590a7e00d21c52b2449 Author: Robert Clausecker AuthorDate: 2025-11-17 17:10:56 +0000 Commit: Robert Clausecker CommitDate: 2026-01-01 20:47:33 +0000 msun: document that {sin,cos,tan}pi(3) follow C23 - also use new .St -ieee754-2008 request in *pi.3 Reviewed by: imp Approved by markj (mentor) See also: D53784 Differential Revision: https://reviews.freebsd.org/D53783 (cherry picked from commit 4fcc58afbff924293c721f4c4056bb7f94580f22) --- lib/msun/man/cospi.3 | 13 +++++-------- lib/msun/man/sinpi.3 | 12 +++++------- lib/msun/man/tanpi.3 | 13 +++++-------- 3 files changed, 15 insertions(+), 23 deletions(-) diff --git a/lib/msun/man/cospi.3 b/lib/msun/man/cospi.3 index 86e63fb77498..92b449832112 100644 --- a/lib/msun/man/cospi.3 +++ b/lib/msun/man/cospi.3 @@ -22,7 +22,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd April 1, 2017 +.Dd November 16, 2025 .Dt COSPI 3 .Os .Sh NAME @@ -92,12 +92,9 @@ The half\(encycle trignometric functions were written by .An Steven G. Kargl Aq Mt kargl@FreeBSD.org . .Sh STANDARDS These functions conform to -IEEE Std 754\(tm\(en2008 , -\(dqIEEE Standard for Floating-Point Arithmetic\(dq -and to -ISO/IEC TS 18661-4 , +.St -ieee754-2008 , +to ISO/IEC TS 18661-4, \(dqInformation technology \(em Programming languages, their environments, and system software interfaces \(em Floating\(enpoint extensions for -C\(dq \(em Part 4: Supplementary functions. - - +C\(dq \(em Part 4: Supplementary functions, and to +.St -isoC-2023 . diff --git a/lib/msun/man/sinpi.3 b/lib/msun/man/sinpi.3 index 63a1e3010de5..9d64e9d343a7 100644 --- a/lib/msun/man/sinpi.3 +++ b/lib/msun/man/sinpi.3 @@ -22,7 +22,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd April 1, 2017 +.Dd November 16, 2025 .Dt SINPI 3 .Os .Sh NAME @@ -86,11 +86,9 @@ The half\(encycle trignometric functions were written by .An Steven G. Kargl Aq Mt kargl@FreeBSD.org . .Sh STANDARDS These functions conform to -IEEE Std 754\(tm\(en2008 , -\(dqIEEE Standard for Floating-Point Arithmetic\(dq -and to -ISO/IEC TS 18661-4 , +.St -ieee754-2008 , +to ISO/IEC TS 18661-4, \(dqInformation technology \(em Programming languages, their environments, and system software interfaces \(em Floating\(enpoint extensions for -C\(dq \(em Part 4: Supplementary functions. - +C\(dq \(em Part 4: Supplementary functions, and to +.St -isoC-2023 . diff --git a/lib/msun/man/tanpi.3 b/lib/msun/man/tanpi.3 index b11d54031b71..183240418e76 100644 --- a/lib/msun/man/tanpi.3 +++ b/lib/msun/man/tanpi.3 @@ -22,7 +22,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd April 1, 2017 +.Dd November 16, 2025 .Dt TANPI 3 .Os .Sh NAME @@ -88,12 +88,9 @@ The half\(encycle trignometric functions were written by .An Steven G. Kargl Aq Mt kargl@FreeBSD.org . .Sh STANDARDS These functions conform to -IEEE Std 754\(tm\(en2008 , -\(dqIEEE Standard for Floating-Point Arithmetic\(dq -and to -ISO/IEC TS 18661-4 , +.St -ieee754-2008 , +to ISO/IEC TS 18661-4, \(dqInformation technology \(em Programming languages, their environments, and system software interfaces \(em Floating\(enpoint extensions for -C\(dq \(em Part 4: Supplementary functions. - - +C\(dq \(em Part 4: Supplementary functions, and to +.St -isoC-2023 . From nobody Thu Jan 1 22:21:33 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dj1Wd64Q3z6Mnkl for ; Thu, 01 Jan 2026 22:21:33 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dj1Wd4GGgz49XB for ; Thu, 01 Jan 2026 22:21:33 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767306093; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=s8zpxX5d7DB+eiO9hqGM8kPh4bsxeoE35nca4tQ9fec=; b=dYeoLz4kytA9A6qgIbK2b+OGdedNL1xyNVRf4UEbuTkoYYolFgovtrkre4I5XXlxb6377q p4nbTe4K80O3VjiuV34ZLPiaAGXLmpf+g/NXm8xv7dEjQHNGeO5lwiXtBJFi8JcJtF9h6f bJ99jqV7xHiLRyd3yuplNZJm+/UNFtlpdnsg+qtwVjNcay9fP1PfvnQZZe1Izwbe4kIrkr KGv3TAIhFTlNySiWxSumgjoIpL9eEeUv3PHLhiC2f7a1yV5SyCZrD73QO5Z6xBaslDP/Z1 A+MycNrTwFzjWa9OmpbSMimKUoDml/Rz8/o/+wJsfR93Quz/xQzQk4sB/0PJZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767306093; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=s8zpxX5d7DB+eiO9hqGM8kPh4bsxeoE35nca4tQ9fec=; b=UFH4v+urJj7HpFdCt7DJczYpnRkBLQZbBcgAQE65ciKMQdevepFgJuPFp6ODkjNeA9Pnmb 36kc+i9KU4AWRw6uAneDSJ2UADXW91JfYm89Q2DFRjNagLA8C0qss1cezmKLl56kSJZszf qCA7un6yjRKBvE1B4OGhJ6tQw0HBMGPwS9YSMdYdRR+qOZBHn4i6+ZLqYtmefCq7V+gzLn tsQYmVnLMl0pf2NGt73HG+Vmu3teykhEKP3N19yFRsrbqUDVt7cHedcaRdctpIZHFIeGjf YC/vvoSBwDGYHmagh8P8zqvrD8rdej3d1DFL/SHYMycuLm0/gScohW6ITdFf1A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767306093; a=rsa-sha256; cv=none; b=kuy99MR0MAjldWg2Div1OR7khJY8tVYxfl8IKVItNHCEwNbXdWKGUCoLw2X+V1nXolVzAG a1VmzJ8jOKD4FXLY5lIGnUYchAoa6j9MhqtbKxnK/LW6gyzOvrqH0n98h/Tn7aHgE9CfiU Pndjiqba44Q3wz/2c0dPAI4ZNYCu8JOQVQ2DFqDxbBMJT5cwAyr4acBoF02gMHvvZsb2/I dN783KGoGBzNGItsE/2ICe8Nqi3ohW47p7MJXAzbp4M/FV0cBp48TOXpv9oK6pQYp4GYer aI9OzSclnseCdYj+uhUeR9SJDCq/JwQVaIMGPpf7SPxrF3GPlZKE5oBCx/y5Iw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dj1Wd3pnCzrpS for ; Thu, 01 Jan 2026 22:21:33 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id e159 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 01 Jan 2026 22:21:33 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Robert Clausecker Subject: git: 35787967e876 - stable/15 - time.h: add timegm() to the C23 namespace List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: fuz X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 35787967e87679511c906fbcb7dbccb31fd1ef33 Auto-Submitted: auto-generated Date: Thu, 01 Jan 2026 22:21:33 +0000 Message-Id: <6956f36d.e159.58e5e93@gitrepo.freebsd.org> The branch stable/15 has been updated by fuz: URL: https://cgit.FreeBSD.org/src/commit/?id=35787967e87679511c906fbcb7dbccb31fd1ef33 commit 35787967e87679511c906fbcb7dbccb31fd1ef33 Author: Robert Clausecker AuthorDate: 2025-11-27 17:36:18 +0000 Commit: Robert Clausecker CommitDate: 2026-01-01 20:47:33 +0000 time.h: add timegm() to the C23 namespace This function is part of ISO/IEC 9899:2024 (C23) and was forgotten in D47856. Reviewed by: imp Approved by: markj (mentor) See also: D47856 Fixes: 59677aecb67bbedcfa2ee5d7d2b189193cdc4af7 MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D53951 (cherry picked from commit 5da388c633f8da8fbb35b8407ca848373e3ea977) --- include/time.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/time.h b/include/time.h index 9e71a85f6a9a..295df3b5790a 100644 --- a/include/time.h +++ b/include/time.h @@ -170,7 +170,6 @@ extern int daylight; #if __BSD_VISIBLE time_t timelocal(struct tm * const); -time_t timegm(struct tm * const); int timer_oshandle_np(timer_t timerid); time_t time2posix(time_t t); time_t posix2time(time_t t); @@ -193,6 +192,7 @@ int timespec_get(struct timespec *ts, int base); #define TIME_MONOTONIC 2 /* monotonic time */ /* ISO/IEC 9899:2024 7.29.2.7 The timespec_getres function */ int timespec_getres(struct timespec *, int); +time_t timegm(struct tm * const); #endif #endif From nobody Thu Jan 1 22:21:35 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dj1Wh0m4wz6Mnml for ; Thu, 01 Jan 2026 22:21:36 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dj1Wg5nYnz49t4 for ; Thu, 01 Jan 2026 22:21:35 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767306095; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=b7dEXzzuW58GdsnElFkSzcSCBy/Hk+9NCuRnpfO53is=; b=P48KFj1CR/VPYOrfKqzZDY4CDNBg5tvC1mewoQk0MePz4JnFpem6D+JPOyJDL6nzVLm6nA 07ERIiJ2sk6B+9fWgfXKfmp/A6C+fFDPxndsaYT14EtBRzCm7PvUQ9ep+jG51Za4AZlTRw s91DYKrZ6UW2ta4HRYUH/iPJjADaV/3etot/V7fySEi5ZX194bBChFw9WliWwpVRopXTzN AGf6Ek9jPoHvxoFddXdQgmRrJ/gdb1dyYLPZl7U208o89QM3l1HpD7DDADIbmPXMoX5Qgf qArlXzT+ojDyDifFf2vtXCx9UVj8dvU//J8FosKG9RpdDtQr9ktkvtfc4C6DCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767306095; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=b7dEXzzuW58GdsnElFkSzcSCBy/Hk+9NCuRnpfO53is=; b=TfydQHRsBBTeB43aP6clg+LqmyayK0DU+QouDgdfMqOmtsfkb8SyinjLMkksj2wxPV4dWd Bff491seE80VMyPNmrGV+PvQhcOrlY4Fc/6q0A12mr68UUpobrf+x0g11aety80XCHepug ohcxt8nXZk3+EczENHTqVzLFYA2MIi7Uno3sj5Kqh1BVc6Bem2zye5URnRGdOqnIR+h0RT UTDzpt8eN15yWatQX2JDjDD0tectsGT//npl069DgaAn61vy/mE6TxWzc0IL967vWflWP/ yQ8OLuRi+qye3A1FZY0cLlOMP8LHnTlvqdJEBrq/taejZ3B3bB7Mr8OKAp24OQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767306095; a=rsa-sha256; cv=none; b=tyaWn6mqPLyPjB7kh9NiEaKUdmN3vNQubZVMehp4QE9PJ+3jfpWYTcRlkQkQ7FwRcgN3fQ eNcZbJfCtg7HBwqssVyMAxkVFHySC5JI/bFIPBLyc/MhXTJFlUTXkwQzJULtyuBanpTGlj Ohs08ESxSdClbtXhx02vpsalCxTU6abv0B+Nj1sGVGHPg14y8Zs+e0IdbS6Sl+bmrVHOHH ixotTxkOLVLMmkq+2QzqyyF5LBxpJLCBsMHJmSZcxlMJyE9lQ1pJyZts8jW5/mS0CGL3Fd kN30IlgBbBJkBE0eTn7P6uE1b8pcNiIlezXOrYLSjyzFJVwWEu15RHGeAf7OhA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dj1Wg53Zzzr1Y for ; Thu, 01 Jan 2026 22:21:35 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id f435 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 01 Jan 2026 22:21:35 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Robert Clausecker Subject: git: 2ff4e6ac0d9f - stable/15 - sys/_types.h: recognise char8_t as a builtin type in C++20 List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: fuz X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 2ff4e6ac0d9f3f4ef477d15c40da04a87f5b7578 Auto-Submitted: auto-generated Date: Thu, 01 Jan 2026 22:21:35 +0000 Message-Id: <6956f36f.f435.41139540@gitrepo.freebsd.org> The branch stable/15 has been updated by fuz: URL: https://cgit.FreeBSD.org/src/commit/?id=2ff4e6ac0d9f3f4ef477d15c40da04a87f5b7578 commit 2ff4e6ac0d9f3f4ef477d15c40da04a87f5b7578 Author: Robert Clausecker AuthorDate: 2025-12-07 23:49:05 +0000 Commit: Robert Clausecker CommitDate: 2026-01-01 20:51:52 +0000 sys/_types.h: recognise char8_t as a builtin type in C++20 Unlike in C23 where it's a typedef, char8_t is a built in type in C++20. Recognise it as such. PR: 291449 Reported by: Tomoaki AOKI Approved by: markj (mentor) Reviewed by: imp Fixes: f0e541118c374869a8226eaa1320bb6eda248a20 MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D54124 (cherry picked from commit 66129def7bdaf8a0447aba55e736d27687204555) --- sys/sys/_types.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/sys/_types.h b/sys/sys/_types.h index 6b70b8dc6e32..02d01f86b298 100644 --- a/sys/sys/_types.h +++ b/sys/sys/_types.h @@ -177,6 +177,10 @@ typedef __uint_least32_t __char32_t; #define _CHAR16_T_DECLARED #define _CHAR32_T_DECLARED #endif +/* and so is char8_t in C++20 */ +#if defined(__cplusplus) && __cplusplus >= 202002L +#define _CHAR8_T_DECLARED +#endif typedef struct { long long __max_align1 From nobody Thu Jan 1 22:21:36 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dj1Wj0mgsz6Mngq for ; Thu, 01 Jan 2026 22:21:37 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dj1Wh6FLKz49tC for ; Thu, 01 Jan 2026 22:21:36 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767306096; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=2k3hF43SWve9iJTGnUYmuGnV0MO/GiD83Z4PNlGBPvE=; b=yiWeJx8Pz9TEe3A6EXoH/aVTdnzidFnU+dckLCXb6RqV2BYoYdF3OYLNpLwxhW2CGhn2oj lK2/zANYlVBKNqq6Y7I0dTRQQ+NKmpQ4p8JvgSNahWsDLLkqD2J1SJWddiavzzRxJLGoTT 9Qapypmbh/g4tNegn6pokl88cStfYOBloHzC0hpR6oVRA5KRpHGyDGGQ6bxxSlHQJJeSzk /d9DGeB2dkTMyBk1R6r8A4EZo6fBtT/p8oTA+5o9My8SO/A+eG4JrteU5H5Bm8NtydkgU7 5R6x17A0ZeyZQRNGGrDgExFXUtOLTNzpmirLNCtt3pWajMe5zo0ycpt9H9pDHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767306096; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=2k3hF43SWve9iJTGnUYmuGnV0MO/GiD83Z4PNlGBPvE=; b=G2Nmoweb7Dy5zWD2Lc1hhlH8IpMXeNqNxRtKvUDP0m06sOoEtdJM+loj98h3iItnyaVfZl fNJiv3N7Cxh0zZ1kxTtWUAyuysvk5aYTKfMIVsfDwOd3uMqbMO9OmsfeaITEEGTNKRcS93 8xQO19wpXjpqRp2fF57+uT5AHj1H3laNgHpwE2HixWeSmjHS6Yqox12hIF/I53juoS9m4F s7Gt4E9TgfHfLmRE9dexGqsvEuYhem/jAFR/kJ3H7IC6SLkR05oWtMkl7UkaGrcdn6HQMQ zNUWkP1z7df7H9B3Jlx5k6fIGFfvycmDKDoXQhQHZTQlliIFTuLGOlOdDWNGyA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767306096; a=rsa-sha256; cv=none; b=IwBbOA4DW4sL8/7FsYmIly6/b6zioIep5saLLW0SDxwYHSG0Y9xaj9akU86jOXr/UYOU81 uW3HHT2m456KeHWnwVPyu2E7H/BpbkL2qE1+0x3wsoOt/auHbBdjBcn0R4+PD8wOk+SKbn NObn5Mja/AKhzU8hqc2MwrDk9VT6QXOxw2PAwj4jh2F0EUodei2htb99rCtoG/2iwfIYt6 20h7AJIIopBhGioad2rO+FyKyoPI7DojWNM7y5PxkyOK3yTUXm8b1uDJZhERw1Q2Aadufw zvGKk8WOKQIo4d2dMitdGhdlRayq+7UuoE/nNl7MfkyGvnl/qj3D5QiQvt0nsQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dj1Wh5p8PzrLQ for ; Thu, 01 Jan 2026 22:21:36 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id eee6 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 01 Jan 2026 22:21:36 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Robert Clausecker Subject: git: cbad54ba46e6 - stable/15 - sys/limits.h: add C23 _WIDTH macros List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: fuz X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: cbad54ba46e6a4ad83d87d379fc3fcedb0cd7246 Auto-Submitted: auto-generated Date: Thu, 01 Jan 2026 22:21:36 +0000 Message-Id: <6956f370.eee6.5b3293bd@gitrepo.freebsd.org> The branch stable/15 has been updated by fuz: URL: https://cgit.FreeBSD.org/src/commit/?id=cbad54ba46e6a4ad83d87d379fc3fcedb0cd7246 commit cbad54ba46e6a4ad83d87d379fc3fcedb0cd7246 Author: Robert Clausecker AuthorDate: 2025-11-19 12:29:58 +0000 Commit: Robert Clausecker CommitDate: 2026-01-01 20:51:52 +0000 sys/limits.h: add C23 _WIDTH macros For compliance with IOS/IEC 9899:2024 ("C23"). These macros define the width in bits of the basic integer types. Another new macro, BITINT_MAXWIDTH, is not yet included as I do not understand what it should be set to. Perhaps it is compiler-specific. Approved by: markj (mentor) MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D53825 (cherry picked from commit 7326bc7f9c14f86976a7769906b167ff96140809) --- sys/arm/include/_limits.h | 3 +++ sys/arm64/include/_limits.h | 3 +++ sys/powerpc/include/_limits.h | 3 +++ sys/riscv/include/_limits.h | 3 +++ sys/sys/limits.h | 20 ++++++++++++++++++++ sys/x86/include/_limits.h | 3 +++ 6 files changed, 35 insertions(+) diff --git a/sys/arm/include/_limits.h b/sys/arm/include/_limits.h index 8cd48337508e..d6bcb09bda84 100644 --- a/sys/arm/include/_limits.h +++ b/sys/arm/include/_limits.h @@ -42,6 +42,9 @@ */ #define __CHAR_BIT 8 /* number of bits in a char */ +#define __SHRT_BIT 16 /* number of bits in a short */ +#define __INT_BIT 32 /* number of bits in an int */ +#define __LLONG_BIT 64 /* number of bits in a long long */ #define __SCHAR_MAX 0x7f /* max value for a signed char */ #define __SCHAR_MIN (-0x7f - 1) /* min value for a signed char */ diff --git a/sys/arm64/include/_limits.h b/sys/arm64/include/_limits.h index 08649b5c779d..aeb72dc19b09 100644 --- a/sys/arm64/include/_limits.h +++ b/sys/arm64/include/_limits.h @@ -41,6 +41,9 @@ */ #define __CHAR_BIT 8 /* number of bits in a char */ +#define __SHRT_BIT 16 /* number of bits in a short */ +#define __INT_BIT 32 /* number of bits in an int */ +#define __LLONG_BIT 64 /* number of bits in a long long */ #define __SCHAR_MAX 0x7f /* max value for a signed char */ #define __SCHAR_MIN (-0x7f - 1) /* min value for a signed char */ diff --git a/sys/powerpc/include/_limits.h b/sys/powerpc/include/_limits.h index 542248e51498..cae389ef0f36 100644 --- a/sys/powerpc/include/_limits.h +++ b/sys/powerpc/include/_limits.h @@ -42,6 +42,9 @@ */ #define __CHAR_BIT 8 /* number of bits in a char */ +#define __SHRT_BIT 16 /* number of bits in an short */ +#define __INT_BIT 32 /* number of bits in an int */ +#define __LLONG_BIT 64 /* number of bits in a long long */ #define __SCHAR_MAX 0x7f /* max value for a signed char */ #define __SCHAR_MIN (-0x7f - 1) /* min value for a signed char */ diff --git a/sys/riscv/include/_limits.h b/sys/riscv/include/_limits.h index 95e86c14e168..872e5b610e0c 100644 --- a/sys/riscv/include/_limits.h +++ b/sys/riscv/include/_limits.h @@ -37,6 +37,9 @@ */ #define __CHAR_BIT 8 /* number of bits in a char */ +#define __SHRT_BIT 16 /* number of bits in a short */ +#define __INT_BIT 32 /* number of bits in an int */ +#define __LLONG_BIT 64 /* number of bits in a long long */ #define __SCHAR_MAX 0x7f /* max value for a signed char */ #define __SCHAR_MIN (-0x7f - 1) /* min value for a signed char */ diff --git a/sys/sys/limits.h b/sys/sys/limits.h index 2cb0051fe86c..8044d4458639 100644 --- a/sys/sys/limits.h +++ b/sys/sys/limits.h @@ -68,6 +68,26 @@ #define LLONG_MIN __LLONG_MIN /* min for a long long */ #endif +#if __ISO_C_VISIBLE >= 2023 +#define BOOL_WIDTH 1 /* number of bits in a bool */ + +#define CHAR_WIDTH __CHAR_BIT /* number of bits in a char */ +#define SCHAR_WIDTH __CHAR_BIT /* number of bits in a signed char */ +#define UCHAR_WIDTH __CHAR_BIT /* number of bits in an unsigned char */ + +#define SHRT_WIDTH __SHRT_BIT /* number of bits in a short */ +#define USHRT_WIDTH __SHRT_BIT /* number of bits in an unsigned short */ + +#define INT_WIDTH __INT_BIT /* number of bits in an int */ +#define UINT_WIDTH __INT_BIT /* number of bits in an unsigned int */ + +#define LONG_WIDTH __LONG_BIT /* number of bits in a long */ +#define ULONG_WIDTH __LONG_BIT /* number of bits in an unsigned long */ + +#define LLONG_WIDTH __LLONG_BIT /* number of bits in a long long */ +#define ULLONG_WIDTH __LLONG_BIT /* number of bits in an unsigned long long */ +#endif + #if __POSIX_VISIBLE || __XSI_VISIBLE #define SSIZE_MAX __SSIZE_MAX /* max value for an ssize_t */ #endif diff --git a/sys/x86/include/_limits.h b/sys/x86/include/_limits.h index 422667a79bc0..fc7cfac1e70d 100644 --- a/sys/x86/include/_limits.h +++ b/sys/x86/include/_limits.h @@ -42,6 +42,9 @@ */ #define __CHAR_BIT 8 /* number of bits in a char */ +#define __SHRT_BIT 16 /* number of bits in a short */ +#define __INT_BIT 32 /* number of bits in an int */ +#define __LLONG_BIT 64 /* number of bits in a long long */ #define __SCHAR_MAX 0x7f /* max value for a signed char */ #define __SCHAR_MIN (-0x7f - 1) /* min value for a signed char */ From nobody Thu Jan 1 22:21:37 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dj1Wk4YFZz6MnqC for ; Thu, 01 Jan 2026 22:21:38 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dj1Wk176zz49YL for ; Thu, 01 Jan 2026 22:21:38 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767306098; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=7XgAIVxJvZWpcEQK0230b0DtvqbvcdiSG6yU9oNUBMI=; b=RNhCRwQpVvP6PRkekrv/KKsORdh8XMqsUtftjj604WSNzfNkRnxygSH6TI6wDe+Jjkw2Me mmzOUj1zXEymS3lpuK13Whe+l6iK9wfpxdEnWcX+FwS17D0+/0V/f20SPdxklOK93nnVa6 PNx2fTJ+ZS0nj84Oo0kC6OSLOlNQ8B6r3E690ZwyGV1LOjC+kV/Ezra0UAhdFxvaWt1/ed 3h6pjJLTHELlx1uYZM5mFsN6P5w7BAOPI3XjTXi6jY/0uNeLdTzir9xp6s1QmxWdP7cwDS ixAB0/MRw9co4nklBnraoDScogE/ZMMa+uvGR9F/zJxMSPme1D6FgrbBYEXFTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767306098; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=7XgAIVxJvZWpcEQK0230b0DtvqbvcdiSG6yU9oNUBMI=; b=S6LL8CTNyO6JH4mXhVS9PBwt0a1MtPf4OCPlOhy4BLf0Zaza6rwI1cTWaR+oMUJ1w7JvpG sKyhlADXqTSZN6Ic9TonkX25MhJNMXRRt7NLgj3rbIpDJnnEHQZo9YHho2JE8rC08+Vxh/ K+sY0+KS5dQNTnfz7+1VfJTBYZ3Q7raQe9IAqhglzGo2ydGZDwR+Uv8/QJ5ejcBx2O7jw6 fUI8FMSxv/O4K6vB9AUcTOVr+RWoBYYs8+ZLJO91PUs6b4bOdyw8Qjm10yaAztmMBviJRz UhMavIZPAnzqf7BySae45OQS4tZ2Ny1O2JIRnlALMgYvetmcrVT1KIoMTigw2g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767306098; a=rsa-sha256; cv=none; b=Igxb4HJLJu5onSvZ52gKrd3fcTznDmu78PHHtsMDThob2ZQAb7J81JV0G0atqR+GXRToH5 Gie/MFLX5h72fz2WovGOjbxih5PH4Ajpp9O6RtgJB/8zHI6mWDK2kfbQLTYcjvuZcg6oaB 4Ljl8D4EzWwh9RQvf7LoGwT80le0WnVKHU1PGNhMPp1k5MxLmrCLYUUeOqM3Q83/qKoiTV hvTzp6b7AlLCrvFBsN5XueFAR+KQYGyYkm/IUgjjZIyuyAkPDhDrjgK2M4YK/XjHWSRm5z NYiK3rTLn8FWJ19Vb9F3T6QWia57JA4lyXONXJsYMzFkyn1j6BF8YTtlsEFKYg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dj1Wj6LTDzqZX for ; Thu, 01 Jan 2026 22:21:37 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id eeea by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 01 Jan 2026 22:21:37 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Robert Clausecker Subject: git: ff50ace5fe0e - stable/15 - sys/stdint.h: add C23 _WIDTH macros List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: fuz X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: ff50ace5fe0ec991ff2e72a80a6c9e90b7e7f709 Auto-Submitted: auto-generated Date: Thu, 01 Jan 2026 22:21:37 +0000 Message-Id: <6956f371.eeea.3c94c9e9@gitrepo.freebsd.org> The branch stable/15 has been updated by fuz: URL: https://cgit.FreeBSD.org/src/commit/?id=ff50ace5fe0ec991ff2e72a80a6c9e90b7e7f709 commit ff50ace5fe0ec991ff2e72a80a6c9e90b7e7f709 Author: Robert Clausecker AuthorDate: 2025-11-19 18:53:07 +0000 Commit: Robert Clausecker CommitDate: 2026-01-01 20:51:52 +0000 sys/stdint.h: add C23 _WIDTH macros The platform-dependent macros are added to the various _stdint.h headers, those that are always the same are added directly to _stdint.h. We may want to move the definitions for WCHAR_* and WINT_* out of the platform header files as those are always the same. Approved by: markj (mentor) MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D53830 (cherry picked from commit 7998a82d2f99a00086baf64b2a3343ba10f8806d) --- sys/arm/include/_stdint.h | 23 +++++++++++++++++++++++ sys/arm64/include/_stdint.h | 23 +++++++++++++++++++++++ sys/powerpc/include/_stdint.h | 33 +++++++++++++++++++++++++++++++++ sys/riscv/include/_stdint.h | 23 +++++++++++++++++++++++ sys/sys/stdint.h | 29 +++++++++++++++++++++++++++++ sys/x86/include/_stdint.h | 33 +++++++++++++++++++++++++++++++++ 6 files changed, 164 insertions(+) diff --git a/sys/arm/include/_stdint.h b/sys/arm/include/_stdint.h index 9931f8b56ef5..2ebc6ea4f89f 100644 --- a/sys/arm/include/_stdint.h +++ b/sys/arm/include/_stdint.h @@ -153,6 +153,29 @@ #define WINT_MIN INT32_MIN #define WINT_MAX INT32_MAX +#if __ISO_C_VISIBLE >= 2023 +/* + * ISO/IEC 9899:2023 + * 7.22.2 Widths of specified-width integer types + */ +#define INT_FAST8_WIDTH INT32_WIDTH +#define INT_FAST16_WIDTH INT32_WIDTH +#define INT_FAST32_WIDTH INT32_WIDTH +#define INT_FAST64_WIDTH INT64_WIDTH +#define INTPTR_WIDTH INT32_WIDTH +#define INTMAX_WIDTH INT64_WIDTH + +/* + * ISO/IEC 9899:2023 + * 7.22.3 Width of other integer types + */ +#define PTRDIFF_WIDTH INT32_WIDTH +#define SIG_ATOMIC_WIDTH INT32_WIDTH +#define SIZE_WIDTH INT32_WIDTH +#define WCHAR_WIDTH INT32_WIDTH +#define WINT_WIDTH INT32_WIDTH +#endif /* __ISO_C_VISIBLE >= 2023 */ + #endif /* !defined(__cplusplus) || defined(__STDC_LIMIT_MACROS) */ #endif /* !_MACHINE__STDINT_H_ */ diff --git a/sys/arm64/include/_stdint.h b/sys/arm64/include/_stdint.h index 0c183bd60dca..0b360b8ab460 100644 --- a/sys/arm64/include/_stdint.h +++ b/sys/arm64/include/_stdint.h @@ -155,6 +155,29 @@ #define WINT_MIN INT32_MIN #define WINT_MAX INT32_MAX +#if __ISO_C_VISIBLE >= 2023 +/* + * ISO/IEC 9899:2023 + * 7.22.2 Widths of specified-width integer types + */ +#define INT_FAST8_WIDTH INT32_WIDTH +#define INT_FAST16_WIDTH INT32_WIDTH +#define INT_FAST32_WIDTH INT32_WIDTH +#define INT_FAST64_WIDTH INT64_WIDTH +#define INTPTR_WIDTH INT64_WIDTH +#define INTMAX_WIDTH INT64_WIDTH + +/* + * ISO/IEC 9899:2023 + * 7.22.3 Width of other integer types + */ +#define PTRDIFF_WIDTH INT64_WIDTH +#define SIG_ATOMIC_WIDTH INT64_WIDTH +#define SIZE_WIDTH INT64_WIDTH +#define WCHAR_WIDTH INT32_WIDTH +#define WINT_WIDTH INT32_WIDTH +#endif /* __ISO_C_VISIBLE >= 2023 */ + #endif /* !defined(__cplusplus) || defined(__STDC_LIMIT_MACROS) */ #endif /* !_MACHINE__STDINT_H_ */ diff --git a/sys/powerpc/include/_stdint.h b/sys/powerpc/include/_stdint.h index 67719432259d..983db38ccf25 100644 --- a/sys/powerpc/include/_stdint.h +++ b/sys/powerpc/include/_stdint.h @@ -195,6 +195,39 @@ #define WINT_MIN INT32_MIN #define WINT_MAX INT32_MAX +#if __ISO_C_VISIBLE >= 2023 +/* + * ISO/IEC 9899:2023 + * 7.22.2 Widths of specified-width integer types + */ +#define INT_FAST8_WIDTH INT32_WIDTH +#define INT_FAST16_WIDTH INT32_WIDTH +#define INT_FAST32_WIDTH INT32_WIDTH +#define INT_FAST64_WIDTH INT64_WIDTH +#ifdef __LP64__ +#define INTPTR_WIDTH INT64_WIDTH +#else +#define INTPTR_WIDTH INT32_WIDTH +#endif +#define INTMAX_WIDTH INT64_WIDTH + +/* + * ISO/IEC 9899:2023 + * 7.22.3 Width of other integer types + */ +#ifdef __LP64__ +#define PTRDIFF_WIDTH INT64_WIDTH +#define SIG_ATOMIC_WIDTH INT64_WIDTH +#define SIZE_WIDTH INT64_WIDTH +#else +#define PTRDIFF_WIDTH INT32_WIDTH +#define SIG_ATOMIC_WIDTH INT32_WIDTH +#define SIZE_WIDTH INT32_WIDTH +#endif +#define WCHAR_WIDTH INT32_WIDTH +#define WINT_WIDTH INT32_WIDTH +#endif /* __ISO_C_VISIBLE >= 2023 */ + #endif /* !defined(__cplusplus) || defined(__STDC_LIMIT_MACROS) */ #endif /* !_MACHINE__STDINT_H_ */ diff --git a/sys/riscv/include/_stdint.h b/sys/riscv/include/_stdint.h index 4e032c8b0a1d..9df000b0eac4 100644 --- a/sys/riscv/include/_stdint.h +++ b/sys/riscv/include/_stdint.h @@ -151,6 +151,29 @@ #define WINT_MIN INT32_MIN #define WINT_MAX INT32_MAX +#if __ISO_C_VISIBLE >= 2023 +/* + * ISO/IEC 9899:2023 + * 7.22.2 Widths of specified-width integer types + */ +#define INT_FAST8_WIDTH INT32_WIDTH +#define INT_FAST16_WIDTH INT32_WIDTH +#define INT_FAST32_WIDTH INT32_WIDTH +#define INT_FAST64_WIDTH INT64_WIDTH +#define INTPTR_WIDTH INT64_WIDTH +#define INTMAX_WIDTH INT64_WIDTH + +/* + * ISO/IEC 9899:2023 + * 7.22.3 Width of other integer types + */ +#define PTRDIFF_WIDTH INT64_WIDTH +#define SIG_ATOMIC_WIDTH INT64_WIDTH +#define SIZE_WIDTH INT64_WIDTH +#define WCHAR_WIDTH INT32_WIDTH +#define WINT_WIDTH INT32_WIDTH +#endif /* __ISO_C_VISIBLE >= 2023 */ + #endif /* !defined(__cplusplus) || defined(__STDC_LIMIT_MACROS) */ #endif /* !_MACHINE__STDINT_H_ */ diff --git a/sys/sys/stdint.h b/sys/sys/stdint.h index f82e391c9e41..77f469f3c2a3 100644 --- a/sys/sys/stdint.h +++ b/sys/sys/stdint.h @@ -73,4 +73,33 @@ typedef __uint_fast64_t uint_fast64_t; #endif #endif /* __EXT1_VISIBLE */ +#if __ISO_C_VISIBLE >= 2023 +#define INT8_WIDTH 8 +#define UINT8_WIDTH 8 +#define INT_LEAST8_WIDTH 8 +#define UINT_LEAST8_WIDTH 8 +#define UINT_FAST8_WIDTH INT_FAST8_WIDTH + +#define INT16_WIDTH 16 +#define UINT16_WIDTH 16 +#define INT_LEAST16_WIDTH 16 +#define UINT_LEAST16_WIDTH 16 +#define UINT_FAST16_WIDTH INT_FAST16_WIDTH + +#define INT32_WIDTH 32 +#define UINT32_WIDTH 32 +#define INT_LEAST32_WIDTH 32 +#define UINT_LEAST32_WIDTH 32 +#define UINT_FAST32_WIDTH INT_FAST32_WIDTH + +#define INT64_WIDTH 64 +#define UINT64_WIDTH 64 +#define INT_LEAST64_WIDTH 64 +#define UINT_LEAST64_WIDTH 64 +#define UINT_FAST64_WIDTH INT_FAST64_WIDTH + +#define UINTMAX_WIDTH INTMAX_WIDTH +#define UINTPTR_WIDTH INTPTR_WIDTH +#endif /* __ISO_C_VISIBLE >= 2023 */ + #endif /* !_SYS_STDINT_H_ */ diff --git a/sys/x86/include/_stdint.h b/sys/x86/include/_stdint.h index 59aab4b39c0c..1b8523bf656b 100644 --- a/sys/x86/include/_stdint.h +++ b/sys/x86/include/_stdint.h @@ -184,6 +184,39 @@ #define WINT_MIN INT32_MIN #define WINT_MAX INT32_MAX +#if __ISO_C_VISIBLE >= 2023 +/* + * ISO/IEC 9899:2023 + * 7.22.2 Widths of specified-width integer types + */ +#define INT_FAST8_WIDTH INT32_WIDTH +#define INT_FAST16_WIDTH INT32_WIDTH +#define INT_FAST32_WIDTH INT32_WIDTH +#define INT_FAST64_WIDTH INT64_WIDTH +#ifdef __LP64__ +#define INTPTR_WIDTH INT64_WIDTH +#else +#define INTPTR_WIDTH INT32_WIDTH +#endif +#define INTMAX_WIDTH INT64_WIDTH + +/* + * ISO/IEC 9899:2023 + * 7.22.3 Width of other integer types + */ +#ifdef __LP64__ +#define PTRDIFF_WIDTH INT64_WIDTH +#define SIG_ATOMIC_WIDTH INT64_WIDTH +#define SIZE_WIDTH INT64_WIDTH +#else +#define PTRDIFF_WIDTH INT32_WIDTH +#define SIG_ATOMIC_WIDTH INT32_WIDTH +#define SIZE_WIDTH INT32_WIDTH +#endif +#define WCHAR_WIDTH INT32_WIDTH +#define WINT_WIDTH INT32_WIDTH +#endif /* __ISO_C_VISIBLE >= 2023 */ + #endif /* !defined(__cplusplus) || defined(__STDC_LIMIT_MACROS) */ #endif /* !_MACHINE__STDINT_H_ */ From nobody Thu Jan 1 22:21:38 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dj1Wl5Qh6z6Mnwd for ; Thu, 01 Jan 2026 22:21:39 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dj1Wl0vv7z49Vy for ; Thu, 01 Jan 2026 22:21:39 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767306099; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=90eW0pkbqDcxTaGPflvjlwuV1haBDqDllVdZZ6WYKrs=; b=qxUH3YrAZ5qkUkicrPwOwaKVpossB5qiToiDNV52l30OgA3SU9rIBHluC2PO7xcHbTQksC mLpnPqeuaP1RbVoByshsEQmUkCQQJDrtDL7g91eh/h7ZJej+LVSe5QEP/5rrVOZt2gf1uU 8KzOv/l7/VJggVkNJPhgU7D/VXx8Mzw1C8mLLXdEadirjHSlBuP4wry6wB5ECC9K2DTs1o BCkgqi3+MifgHElSdPlvPV/X7gVefce2yzZCCoG6ZI9sstg1+KSGyol1pFMfL8ZoXguhib 7BJ0c7WVw3+qko4hMPTjZb2HCmlIZWeRmuCCWDHNHSZmYMaatgShqioyjQHK9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767306099; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=90eW0pkbqDcxTaGPflvjlwuV1haBDqDllVdZZ6WYKrs=; b=rW4RTJabIatKMoKqDGu7yd9oEPsrkJsVWqrnesTIcnPVkSp+3h0CNGQkYn8jc/EBC2BqE7 HvllRn9/FS/7hrd13lH8nzjYEGI0+9SJ/ppuuRZ+HJCzXMq+6g9PzmykWOAiu1B0CZJWUP PTEiNLNP0wxemJLT4cYnvTgLyOjeguCqOHg0eG1OLL+xW8sF5MfIsxsjSnntqA7W1gqlJE RE12QDz8c0A/TKQAhtm2g4kHE41QJIXR59HXDTRgWvpJ5WIMZ7YeO6pzJ7H3myU5Ve2Vxf ZA+1aI39ZklmS4hcsYWxSCZYQIPcc50ERH4MrRDSDuUmnCGz3Ok9tffVAuwpeQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767306099; a=rsa-sha256; cv=none; b=C4oV08NaVE2AcLDnk9WDrnAI7VtkpLVipWij/zR+/QwBRH8mu0CuRDHBP3nj0WEz1rKr3b rgpuANC7KpxXkoUz/m8GShNwVg9bNIB1/Y9mQ7P/pjp292xxCNTt0ktwMIbDQKHfXsGmiT E7yaZbPoU3woymGfD5YyyGESWRVozecB8YdYrJ14PAc6BG9RvEzKSBvRYH2GzXOz/8Zqtt FP+N6NVG/ziWoqoSboQFESp+7WkihD8fps3HxLEwXbKr6HOeYHkVgIMf+5Yd6W1/s+qAbE aAfIvN4S06nE4o8LR4oWkMBRo+ujXRiV3Ge+uip9PwwysYET6GyHBadcWjp9XA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dj1Wk6rXxzrLS for ; Thu, 01 Jan 2026 22:21:38 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id ebc6 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 01 Jan 2026 22:21:38 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Robert Clausecker Subject: git: 44fcd991dd28 - stable/15 - powerpc/_stdint.h: fix SIG_ATOMIC_{MIN,MAX,WIDTH} List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: fuz X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 44fcd991dd2803984260d69f4991651c0d64e0d1 Auto-Submitted: auto-generated Date: Thu, 01 Jan 2026 22:21:38 +0000 Message-Id: <6956f372.ebc6.238b422@gitrepo.freebsd.org> The branch stable/15 has been updated by fuz: URL: https://cgit.FreeBSD.org/src/commit/?id=44fcd991dd2803984260d69f4991651c0d64e0d1 commit 44fcd991dd2803984260d69f4991651c0d64e0d1 Author: Robert Clausecker AuthorDate: 2025-12-02 00:59:05 +0000 Commit: Robert Clausecker CommitDate: 2026-01-01 20:51:52 +0000 powerpc/_stdint.h: fix SIG_ATOMIC_{MIN,MAX,WIDTH} On powerpc/powerpc64, sig_atomic_t is an int, but was treated as if it was a long by . This was finally caught by the unit test added with 4a1c752 / D53831. Reported by: kib Reviewed by: kib, imp Approved by: markj (mentor) Fixes: c3e289e1ce8c9af8d14e9f727632e22b3bf901f9 MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D54026 (cherry picked from commit f417c9ed6642836c386c922d6e184b618d28127d) --- sys/powerpc/include/_stdint.h | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/sys/powerpc/include/_stdint.h b/sys/powerpc/include/_stdint.h index 983db38ccf25..385c33389809 100644 --- a/sys/powerpc/include/_stdint.h +++ b/sys/powerpc/include/_stdint.h @@ -167,15 +167,15 @@ * ISO/IEC 9899:1999 * 7.18.3 Limits of other integer types */ +/* Limits of sig_atomic_t. */ +#define SIG_ATOMIC_MIN INT32_MIN +#define SIG_ATOMIC_MAX INT32_MAX + #ifdef __LP64__ /* Limits of ptrdiff_t. */ #define PTRDIFF_MIN INT64_MIN #define PTRDIFF_MAX INT64_MAX -/* Limits of sig_atomic_t. */ -#define SIG_ATOMIC_MIN INT64_MIN -#define SIG_ATOMIC_MAX INT64_MAX - /* Limit of size_t. */ #define SIZE_MAX UINT64_MAX #else @@ -183,10 +183,6 @@ #define PTRDIFF_MIN INT32_MIN #define PTRDIFF_MAX INT32_MAX -/* Limits of sig_atomic_t. */ -#define SIG_ATOMIC_MIN INT32_MIN -#define SIG_ATOMIC_MAX INT32_MAX - /* Limit of size_t. */ #define SIZE_MAX UINT32_MAX #endif @@ -217,13 +213,12 @@ */ #ifdef __LP64__ #define PTRDIFF_WIDTH INT64_WIDTH -#define SIG_ATOMIC_WIDTH INT64_WIDTH #define SIZE_WIDTH INT64_WIDTH #else #define PTRDIFF_WIDTH INT32_WIDTH -#define SIG_ATOMIC_WIDTH INT32_WIDTH #define SIZE_WIDTH INT32_WIDTH #endif +#define SIG_ATOMIC_WIDTH INT32_WIDTH #define WCHAR_WIDTH INT32_WIDTH #define WINT_WIDTH INT32_WIDTH #endif /* __ISO_C_VISIBLE >= 2023 */ From nobody Thu Jan 1 22:21:40 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dj1Wm4J60z6Mnwk for ; Thu, 01 Jan 2026 22:21:40 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dj1Wm23Wkz4B3r for ; Thu, 01 Jan 2026 22:21:40 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767306100; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=TtsDXvejQRAHNZN7lGbTMPkfK12G7ON5W7VU2SemUVY=; b=BAfbtXk3Bl9rS4UGRd6hkVHgmEAslTkb6ZkDCrwyaNh0BAJ1H+AkjCTkOcW2MCKNbcVmLb 83T7A7tX0HHhDIW9lFpxVQUREqPXgPqDO6gfYPhpIMam3c7B5hBkBn/jsZuTIZg/achmk0 Vk2DgCABxVKdb2RD5umz+ipoaAEnVZZ1V4iidmH2lGtqDsFQ7rim8Z00Le5R+l2YxMCuSt m8n3GRhNg4AfO1ocNUiG/lSo2waylLBcOZNKQfkLdW8hoK+EbMMPrVGTzwY48KMBIw/v/U RqINJpqKI8dlUg5wQPdu8xgTxYRtDBK7TzVHcHhcTZ25iRTal9O1W6GE5uzUWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767306100; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=TtsDXvejQRAHNZN7lGbTMPkfK12G7ON5W7VU2SemUVY=; b=nXGEeSUn04Q38dzWUs6BzjSuaDzbVBoJuXoqyh+Ip4kFdkv4Uu1UT3TTCJxgtcvRnbasz0 +2+MSH+Uyq0o2VCbA87jFCBfn7AZIKRjzB9pKS8Zc4gSXGypU1AxxzE4xIKmpeb8RULXEN 4fOEOGR1TAlA0zhQkOjX8/wQCJYvPvgyJ86lULRn911IHzWkm71UGY5JCkM+vH0McCYEZ+ B9z4H0J1qdRh40PHbGZ3egxhVXBHMpX2XCEYAkFt051hj/676y0BK+DMfBw62CbUjVQndZ 2ZVWCVksmH7Y+mpIbGZN3WNnqcVxbBMXgnWG9BhTlsrFBCUAHan27ds+C4H+Zw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767306100; a=rsa-sha256; cv=none; b=ebtVecO4/uCFUSK5AQOlfNGGMZjpxFpU/ftJAZvXTzzVS3/0BNKRy9DqAcOdxCUBn/o3u4 exxJYior+qNR9/+36Ojx271wVMaAhaJwPOHuLAaSyMvwpZrd202WQd3WIhQSQiIOT4vxRc +4o2R38EDVCZ9OtgGnX9tb/U2i6QxXNug8pEGMg7DFmaOyzHan5Ueg1SC18iAfRy0AAIYb J5hufV7JqFsmdp7Yh4ZW0l0iOuu68cDDPUGWm2K7u/Ew5ds3SJPX8Xb77Gx74vzCqt2AUG 1OVbZmNwE+EE/dqiR6r9ZbjbhbOG0bnGqJn6hco1RshyQKH2weh9Y1Gau0BpCw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dj1Wm0Xggzr1b for ; Thu, 01 Jan 2026 22:21:40 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id f439 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 01 Jan 2026 22:21:40 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Robert Clausecker Subject: git: 12f87885206b - stable/15 - libc/tests: add test for *_MAX, *_MIN, and *_WIDTH List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: fuz X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 12f87885206b25b7400d447059cb207341febf92 Auto-Submitted: auto-generated Date: Thu, 01 Jan 2026 22:21:40 +0000 Message-Id: <6956f374.f439.12bfbcc8@gitrepo.freebsd.org> The branch stable/15 has been updated by fuz: URL: https://cgit.FreeBSD.org/src/commit/?id=12f87885206b25b7400d447059cb207341febf92 commit 12f87885206b25b7400d447059cb207341febf92 Author: Robert Clausecker AuthorDate: 2025-11-19 19:26:11 +0000 Commit: Robert Clausecker CommitDate: 2026-01-01 20:51:52 +0000 libc/tests: add test for *_MAX, *_MIN, and *_WIDTH This file checks the correctness of the various _MAX, _MIN, and _WIDTH macros defined for the libc types. It assumes that none of the types have padding bits. Approved by: markj (mentor) MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D53831 (cherry picked from commit 4a1c7529c96ff54657ef701fa89b92230ee6bac2) --- lib/libc/tests/gen/Makefile | 1 + lib/libc/tests/gen/limits_test.c | 101 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 102 insertions(+) diff --git a/lib/libc/tests/gen/Makefile b/lib/libc/tests/gen/Makefile index 8c2151105209..054b1b426b3d 100644 --- a/lib/libc/tests/gen/Makefile +++ b/lib/libc/tests/gen/Makefile @@ -19,6 +19,7 @@ ATF_TESTS_C+= glob2_test .if ${COMPILER_FEATURES:Mblocks} ATF_TESTS_C+= glob_blocks_test .endif +ATF_TESTS_C+= limits_test ATF_TESTS_C+= makecontext_test ATF_TESTS_C+= opendir_test ATF_TESTS_C+= popen_test diff --git a/lib/libc/tests/gen/limits_test.c b/lib/libc/tests/gen/limits_test.c new file mode 100644 index 000000000000..b4e8bf3178f1 --- /dev/null +++ b/lib/libc/tests/gen/limits_test.c @@ -0,0 +1,101 @@ +/* + * Copyright (c) 2025 Robert Clausecker + * + * SPDX-License-Identifier: FreeBSD-2-Clause + */ + +#include +#include +#include +#include +#include + +#include + +/* if this file builds, the unit tests have passed */ +#define CHECK_STYPE(type, TYPE) \ + static_assert(sizeof(type) * CHAR_BIT == TYPE ## _WIDTH, \ + __XSTRING(TYPE) "_WIDTH wrongly defined"); \ + static_assert((1ULL << (TYPE ## _WIDTH - 1)) - 1 == TYPE ## _MAX, \ + __XSTRING(TYPE) "_MAX wrongly defined"); \ + static_assert(TYPE ## _MIN == -TYPE ## _MAX - 1, \ + __XSTRING(TYPE) "_MIN wrongly defined") +#define CHECK_UTYPE(type, TYPE) \ + static_assert(sizeof(type) * CHAR_BIT == TYPE ## _WIDTH, \ + __XSTRING(TYPE) "_WIDTH wrongly defined"); \ + static_assert((type)~0ULL == TYPE ## _MAX, \ + __XSTRING(TYPE) "_MAX wrongly defined"); + +/* primitive types */ +#ifdef __CHAR_UNSIGNED__ +CHECK_UTYPE(char, CHAR); +#else +CHECK_STYPE(char, CHAR); +#endif + +CHECK_STYPE(signed char, SCHAR); +CHECK_STYPE(short, SHRT); +CHECK_STYPE(int, INT); +CHECK_STYPE(long, LONG); +CHECK_STYPE(long long, LLONG); + +CHECK_UTYPE(unsigned char, UCHAR); +CHECK_UTYPE(unsigned short, USHRT); +CHECK_UTYPE(unsigned int, UINT); +CHECK_UTYPE(unsigned long, ULONG); +CHECK_UTYPE(unsigned long long, ULLONG); + +/* fixed-width types */ +CHECK_STYPE(int8_t, INT8); +CHECK_STYPE(int16_t, INT16); +CHECK_STYPE(int32_t, INT32); +CHECK_STYPE(int64_t, INT64); + +CHECK_UTYPE(uint8_t, UINT8); +CHECK_UTYPE(uint16_t, UINT16); +CHECK_UTYPE(uint32_t, UINT32); +CHECK_UTYPE(uint64_t, UINT64); + +CHECK_STYPE(int_least8_t, INT_LEAST8); +CHECK_STYPE(int_least16_t, INT_LEAST16); +CHECK_STYPE(int_least32_t, INT_LEAST32); +CHECK_STYPE(int_least64_t, INT_LEAST64); + +CHECK_UTYPE(uint_least8_t, UINT_LEAST8); +CHECK_UTYPE(uint_least16_t, UINT_LEAST16); +CHECK_UTYPE(uint_least32_t, UINT_LEAST32); +CHECK_UTYPE(uint_least64_t, UINT_LEAST64); + +CHECK_STYPE(int_fast8_t, INT_FAST8); +CHECK_STYPE(int_fast16_t, INT_FAST16); +CHECK_STYPE(int_fast32_t, INT_FAST32); +CHECK_STYPE(int_fast64_t, INT_FAST64); + +CHECK_UTYPE(uint_fast8_t, UINT_FAST8); +CHECK_UTYPE(uint_fast16_t, UINT_FAST16); +CHECK_UTYPE(uint_fast32_t, UINT_FAST32); +CHECK_UTYPE(uint_fast64_t, UINT_FAST64); + +/* other types */ +#if WCHAR_MIN == 0 +CHECK_UTYPE(wchar_t, WCHAR); +#else +CHECK_STYPE(wchar_t, WCHAR); +#endif +CHECK_STYPE(intmax_t, INTMAX); +CHECK_STYPE(intptr_t, INTPTR); +CHECK_STYPE(ptrdiff_t, PTRDIFF); +CHECK_STYPE(wint_t, WINT); +CHECK_STYPE(sig_atomic_t, SIG_ATOMIC); + +CHECK_UTYPE(uintmax_t, UINTMAX); +CHECK_UTYPE(uintptr_t, UINTPTR); +CHECK_UTYPE(size_t, SIZE); + +/* dummy */ +ATF_TP_ADD_TCS(tp) +{ + (void)tp; + + return (atf_no_error()); +} From nobody Thu Jan 1 22:21:41 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dj1Wn4Dyqz6Mnh3 for ; Thu, 01 Jan 2026 22:21:41 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dj1Wn1PQVz49wp for ; Thu, 01 Jan 2026 22:21:41 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767306101; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=TRX9dOKDCDSTtWjPgE8moy7rKmOMAEF8qimBaxtLOxM=; b=ud++bsm60zd/gDi5FzXo8G8wSU5dMJLiMUbgQxjwLeWOszlQNzySewLhsJOHN2DfmjE5VK k2TAZKaMtnEj9HseqqAsvBQ+/HN/U/k1DSGGbke2lzydlfZBVvP6eFJx+qaPvDGrph978n 6hjUjspnlsWivgHOyfCQJemELN88fymCVWzXLL7RRsx3xFhMYk4MjVMzzLjhfUSuk3mb8F G7w52LDWtXUsJEXOwXbiQSSntYe4C5eTbXn+C8zUAZxyXTFnySrpq8Q40yPXRkULexBIsQ 4ISYHrnn0Fh6o4mgrXVuUvO5klUdt02u1HcecFYOR8pZ+5BQCxH3nDx0EGYWMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767306101; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=TRX9dOKDCDSTtWjPgE8moy7rKmOMAEF8qimBaxtLOxM=; b=GfIkJaicaiTEDqBFBb108XmuUZPM7fmkyOZuCmaNBTWUtVm+lh1tlWOw4zskRmBq+/OYpt 3UOSXDkSi/TJUhiCwWrAiTqidr5DG8qtaRygYaMJpfSxOAIb/TqUnBIjQ5MeyW7Hv4R3Y3 gSpFUMKG/QY87HFc/d8Ujv3TMBLiqGmISJou7rIaVOoMa5FZE1T+3N6isHu1wLFRnUjUNV p8dTOwd4ZqX7YH6p8wnfbPLMRuTkn65F1NQhypPLTlzhhGHW2FAxGDjj0/aITWRx0/IENG OASk1ljt+U04Lj9HidBiVtMlP9lHse+4zqjzcmEJGgbMlMVMCmPuQkw+Cb22uQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767306101; a=rsa-sha256; cv=none; b=OAitLl55WDVZGp8sF1IOZhDCmHU3ZrZspFgP0sfqcBBRozrPZ8K7uAQEGEs4zoZE7J4sE1 kvJsmjcK3THRUMf32zW4fXBkM59NKudsqbZIgwLMD86q9ldpdyRH6+E1waa4k65Auy6zIA Tk4guYb9kTZylpEn4pGMaRK7AoTlIV+uOecgaCS6oJgKaN05kGh0n0kcVbj3OI/JZJITyx BD15UVm0wCFXYs2b9GwCJF7CsNbFOztQlueqmMrxdk7ucr61nrZqP0lgHCHyvJqVdrLPwr We+Yr2vvr5JTxoUD2qAJ47t4rAipmI4b0H3lbK69F9ZE+qm8t/zwsPsBkOVh+g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dj1Wn0xxszr1c for ; Thu, 01 Jan 2026 22:21:41 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id d7c9 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 01 Jan 2026 22:21:41 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Cc: Siva Mahadevan From: Robert Clausecker Subject: git: 325b327ff7d7 - stable/15 - libc/limits_test: add no-op testcase to satisfy kyua List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: fuz X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 325b327ff7d7ece7646058c4d42f087c026c9d08 Auto-Submitted: auto-generated Date: Thu, 01 Jan 2026 22:21:41 +0000 Message-Id: <6956f375.d7c9.619d9c2e@gitrepo.freebsd.org> The branch stable/15 has been updated by fuz: URL: https://cgit.FreeBSD.org/src/commit/?id=325b327ff7d7ece7646058c4d42f087c026c9d08 commit 325b327ff7d7ece7646058c4d42f087c026c9d08 Author: Siva Mahadevan AuthorDate: 2025-10-23 13:17:25 +0000 Commit: Robert Clausecker CommitDate: 2026-01-01 20:51:52 +0000 libc/limits_test: add no-op testcase to satisfy kyua This test suite is purely tested with compile-time assertions, so it needs a dummy runtime test to ensure that kyua reports the file as passing. Pull Request: https://github.com/freebsd/freebsd-src/pull/1915 Sponsored by: The FreeBSD Foundation Reviewed by: fuz Approved by: markj (mentor) MFC after: 1 month Signed-off-by: Siva Mahadevan (cherry picked from commit 27ff0bbcfd27df588d3f486cb21180a26031b889) --- lib/libc/tests/gen/limits_test.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/libc/tests/gen/limits_test.c b/lib/libc/tests/gen/limits_test.c index b4e8bf3178f1..7324ef74319e 100644 --- a/lib/libc/tests/gen/limits_test.c +++ b/lib/libc/tests/gen/limits_test.c @@ -93,9 +93,12 @@ CHECK_UTYPE(uintptr_t, UINTPTR); CHECK_UTYPE(size_t, SIZE); /* dummy */ +ATF_TC_WITHOUT_HEAD(dummy); +ATF_TC_BODY(dummy, tc) {} + ATF_TP_ADD_TCS(tp) { - (void)tp; + ATF_TP_ADD_TC(tp, dummy); return (atf_no_error()); } From nobody Thu Jan 1 22:21:42 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dj1Wp3ZKTz6MnqN for ; Thu, 01 Jan 2026 22:21:42 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dj1Wp2C5Bz4B1T for ; Thu, 01 Jan 2026 22:21:42 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767306102; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=frFVgrxDvAYqgJ/NG73CRLWYQk6XqLkGTUKDmzHXdlk=; b=dtcV9hxBA6BIFHunjJgiqzvSj5OkbKPK5z8I3B/LTGU4IK7fqSSWbOsSwwJPj4RjJb3Eu2 LcrPEDK6glSu4RCxt0rt2gMxwh3q+iP9i4PmnpJWmgG+LUfvR3ls4zl/wrdyDE+Z7pfCW6 DprBV+vc1Ou+GOT36eupWpeyfqRrmMfAaZ0dX3PFM7eWTtooNySkOj8OuZF3Ru5PnmkRhp yUDatiAWrGZdvUt5hmTOvO/7Oi6NR29t0uFlI0sqngq7apxgj8PCNfGKj6pwWl9lXNVfMp fMECev4QXqhZkADniMUeSjijirnBhjx/+YVYQsq6xwAKk4lRiFbe/QBYC3NIpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767306102; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=frFVgrxDvAYqgJ/NG73CRLWYQk6XqLkGTUKDmzHXdlk=; b=OEU2Nd09r/krGByIQEVUCJOz6OM+U+r3eN21KpAK/AnfHLPPiK/gkXNRY8M+lxk/Bf5BDL 67AFZw3JYrTzlxB7LQQEz0x59FVjfvPiyPGbb6y/Hf7YB0wJh+BpLhD/eC6u9+qptiZ4xa jxZ7Lx9AyCfbprt0jSulHw2gulwfWKn5omef75miXKhk6OqadTwyVyIHhOSjnjbx6gPQD8 T8EM3ec6wVM9sXZ2BjWSYURlQQdkwdycwrLOe5uHs2kK4yM5Lu444qW+bd82zYlcds5Yt4 MB1xuJCmhFtrdq/yeDg9Cx8XnbX+CauSpb6ijvdZJHHUMRvAtE3dQYA8oOxAqQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767306102; a=rsa-sha256; cv=none; b=xh4z7pqVj8SRNimSX2efin/JOl0Qkt6jIySTD427zHwc+QI8yqyuI5GJe8+dMnbCAjXLsc oQ+GnSI59wr980nr0eY9MA7aQb+7Q16r6c05JQuZ8+BCsfO05xUtjC4NSfG+gqn7aC5/CZ zAw15lGUdNE/Od2B9TyeT6uhVSIY0640ZgfE7FETZNG3B0wJz61bgg7nbmhwtWwCx/BcWZ zEEXdQxmUdobwFjBu0gg8883e7PLHduyR/vYXqhF6ZqNfIaaFFs6K6Zsb0+r5efxeZMSa2 uh2tnTdb21q1Ogw4iRepkgT9b7C/A37YreYWbo2Hjn9Lh5RqZA+uYVEccukXTg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dj1Wp1mfXzr1d for ; Thu, 01 Jan 2026 22:21:42 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id c8e6 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 01 Jan 2026 22:21:42 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Robert Clausecker Subject: git: 275c11b7ccff - stable/15 - libc: implement C23 functions List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: fuz X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 275c11b7ccffffb8faf31fb0fb98e99ea5b413da Auto-Submitted: auto-generated Date: Thu, 01 Jan 2026 22:21:42 +0000 Message-Id: <6956f376.c8e6.5e1d7eac@gitrepo.freebsd.org> The branch stable/15 has been updated by fuz: URL: https://cgit.FreeBSD.org/src/commit/?id=275c11b7ccffffb8faf31fb0fb98e99ea5b413da commit 275c11b7ccffffb8faf31fb0fb98e99ea5b413da Author: Robert Clausecker AuthorDate: 2025-11-18 17:32:53 +0000 Commit: Robert Clausecker CommitDate: 2026-01-01 20:51:52 +0000 libc: implement C23 functions This new header complies with ISO/IEC 9899:2024 (C23). Contrary to glibc, we do not provide inline definitions in as we expect our system compiler to soon recognise these as builtins anyway. Relnotes: yes MFC after: 1 month Reviewed by: adrian Approved by: markj (mentor) Differential Revision: https://reviews.freebsd.org/D53657 (cherry picked from commit 6296500a85c8474e3ff3fe2f8e4a9d56dd0acd64) --- include/Makefile | 4 +- include/stdbit.h | 124 +++++++++++++++++++++++++++++ lib/libc/Makefile | 1 + lib/libc/stdbit/Makefile.inc | 19 +++++ lib/libc/stdbit/Symbol.map | 85 ++++++++++++++++++++ lib/libc/stdbit/stdc_bit_ceil.c | 71 +++++++++++++++++ lib/libc/stdbit/stdc_bit_floor.c | 53 ++++++++++++ lib/libc/stdbit/stdc_bit_width.c | 53 ++++++++++++ lib/libc/stdbit/stdc_count_ones.c | 38 +++++++++ lib/libc/stdbit/stdc_count_zeros.c | 38 +++++++++ lib/libc/stdbit/stdc_first_leading_one.c | 57 +++++++++++++ lib/libc/stdbit/stdc_first_leading_zero.c | 57 +++++++++++++ lib/libc/stdbit/stdc_first_trailing_one.c | 52 ++++++++++++ lib/libc/stdbit/stdc_first_trailing_zero.c | 53 ++++++++++++ lib/libc/stdbit/stdc_has_single_bit.c | 38 +++++++++ lib/libc/stdbit/stdc_leading_ones.c | 60 ++++++++++++++ lib/libc/stdbit/stdc_leading_zeros.c | 60 ++++++++++++++ lib/libc/stdbit/stdc_trailing_ones.c | 56 +++++++++++++ lib/libc/stdbit/stdc_trailing_zeros.c | 56 +++++++++++++ 19 files changed, 973 insertions(+), 2 deletions(-) diff --git a/include/Makefile b/include/Makefile index 661b2ee131ca..57b2b34f6c6e 100644 --- a/include/Makefile +++ b/include/Makefile @@ -29,8 +29,8 @@ INCS= a.out.h ar.h assert.h bitstring.h byteswap.h \ pthread_np.h pwd.h ranlib.h readpassphrase.h regex.h \ res_update.h resolv.h runetype.h sched.h \ search.h semaphore.h setjmp.h \ - signal.h spawn.h stab.h stdalign.h stdbool.h stdckdint.h stddef.h \ - stdnoreturn.h stdio.h stdlib.h string.h stringlist.h \ + signal.h spawn.h stab.h stdalign.h stdbit.h stdbool.h stdckdint.h \ + stddef.h stdnoreturn.h stdio.h stdlib.h string.h stringlist.h \ strings.h sysexits.h tar.h termios.h tgmath.h \ time.h timeconv.h timers.h ttyent.h \ uchar.h ulimit.h unistd.h utime.h utmpx.h uuid.h varargs.h \ diff --git a/include/stdbit.h b/include/stdbit.h new file mode 100644 index 000000000000..a529676bed4b --- /dev/null +++ b/include/stdbit.h @@ -0,0 +1,124 @@ +/*- + * Copyright (c) 2025 Robert Clausecker + * + * SPDX-License-Identifier: BSD-2-Clause + */ + +#ifndef __STDC_VERSION_STDBIT_H__ +#define __STDC_VERSION_STDBIT_H__ 202311L + +#include + +/* byte order */ +#define __STDC_ENDIAN_LITTLE__ __ORDER_LITTLE_ENDIAN__ +#define __STDC_ENDIAN_BIG__ __ORDER_BIG_ENDIAN__ +#define __STDC_ENDIAN_NATIVE__ __BYTE_ORDER__ + +#define __generic_bitfunc(func, x) (_Generic(x, \ + unsigned char: func ## _uc, \ + unsigned short: func ## _us, \ + unsigned int: func ## _ui, \ + unsigned long: func ## _ul, \ + unsigned long long: func ## _ull)(x)) + +__BEGIN_DECLS +unsigned int stdc_leading_zeros_uc(unsigned char) __pure2; +unsigned int stdc_leading_zeros_us(unsigned short) __pure2; +unsigned int stdc_leading_zeros_ui(unsigned int) __pure2; +unsigned int stdc_leading_zeros_ul(unsigned long) __pure2; +unsigned int stdc_leading_zeros_ull(unsigned long long) __pure2; +#define stdc_leading_zeros(x) __generic_bitfunc(stdc_leading_zeros, x) + +unsigned int stdc_leading_ones_uc(unsigned char) __pure2; +unsigned int stdc_leading_ones_us(unsigned short) __pure2; +unsigned int stdc_leading_ones_ui(unsigned int) __pure2; +unsigned int stdc_leading_ones_ul(unsigned long) __pure2; +unsigned int stdc_leading_ones_ull(unsigned long long) __pure2; +#define stdc_leading_ones(x) __generic_bitfunc(stdc_leading_ones, x) + +unsigned int stdc_trailing_zeros_uc(unsigned char) __pure2; +unsigned int stdc_trailing_zeros_us(unsigned short) __pure2; +unsigned int stdc_trailing_zeros_ui(unsigned int) __pure2; +unsigned int stdc_trailing_zeros_ul(unsigned long) __pure2; +unsigned int stdc_trailing_zeros_ull(unsigned long long) __pure2; +#define stdc_trailing_zeros(x) __generic_bitfunc(stdc_trailing_zeros, x) + +unsigned int stdc_trailing_ones_uc(unsigned char) __pure2; +unsigned int stdc_trailing_ones_us(unsigned short) __pure2; +unsigned int stdc_trailing_ones_ui(unsigned int) __pure2; +unsigned int stdc_trailing_ones_ul(unsigned long) __pure2; +unsigned int stdc_trailing_ones_ull(unsigned long long) __pure2; +#define stdc_trailing_ones(x) __generic_bitfunc(stdc_trailing_ones, x) + +unsigned int stdc_first_leading_zero_uc(unsigned char) __pure2; +unsigned int stdc_first_leading_zero_us(unsigned short) __pure2; +unsigned int stdc_first_leading_zero_ui(unsigned int) __pure2; +unsigned int stdc_first_leading_zero_ul(unsigned long) __pure2; +unsigned int stdc_first_leading_zero_ull(unsigned long long) __pure2; +#define stdc_first_leading_zero(x) __generic_bitfunc(stdc_first_leading_zero, x) + +unsigned int stdc_first_leading_one_uc(unsigned char) __pure2; +unsigned int stdc_first_leading_one_us(unsigned short) __pure2; +unsigned int stdc_first_leading_one_ui(unsigned int) __pure2; +unsigned int stdc_first_leading_one_ul(unsigned long) __pure2; +unsigned int stdc_first_leading_one_ull(unsigned long long) __pure2; +#define stdc_first_leading_one(x) __generic_bitfunc(stdc_first_leading_one, x) + +unsigned int stdc_first_trailing_zero_uc(unsigned char) __pure2; +unsigned int stdc_first_trailing_zero_us(unsigned short) __pure2; +unsigned int stdc_first_trailing_zero_ui(unsigned int) __pure2; +unsigned int stdc_first_trailing_zero_ul(unsigned long) __pure2; +unsigned int stdc_first_trailing_zero_ull(unsigned long long) __pure2; +#define stdc_first_trailing_zero(x) __generic_bitfunc(stdc_first_trailing_zero, x) + +unsigned int stdc_first_trailing_one_uc(unsigned char) __pure2; +unsigned int stdc_first_trailing_one_us(unsigned short) __pure2; +unsigned int stdc_first_trailing_one_ui(unsigned int) __pure2; +unsigned int stdc_first_trailing_one_ul(unsigned long) __pure2; +unsigned int stdc_first_trailing_one_ull(unsigned long long) __pure2; +#define stdc_first_trailing_one(x) __generic_bitfunc(stdc_first_trailing_one, x) + +unsigned int stdc_count_zeros_uc(unsigned char) __pure2; +unsigned int stdc_count_zeros_us(unsigned short) __pure2; +unsigned int stdc_count_zeros_ui(unsigned int) __pure2; +unsigned int stdc_count_zeros_ul(unsigned long) __pure2; +unsigned int stdc_count_zeros_ull(unsigned long long) __pure2; +#define stdc_count_zeros(x) __generic_bitfunc(stdc_count_zeros, x) + +unsigned int stdc_count_ones_uc(unsigned char) __pure2; +unsigned int stdc_count_ones_us(unsigned short) __pure2; +unsigned int stdc_count_ones_ui(unsigned int) __pure2; +unsigned int stdc_count_ones_ul(unsigned long) __pure2; +unsigned int stdc_count_ones_ull(unsigned long long) __pure2; +#define stdc_count_ones(x) __generic_bitfunc(stdc_count_ones, x) + +_Bool stdc_has_single_bit_uc(unsigned char) __pure2; +_Bool stdc_has_single_bit_us(unsigned short) __pure2; +_Bool stdc_has_single_bit_ui(unsigned int) __pure2; +_Bool stdc_has_single_bit_ul(unsigned long) __pure2; +_Bool stdc_has_single_bit_ull(unsigned long long) __pure2; +#define stdc_has_single_bit(x) __generic_bitfunc(stdc_has_single_bit, x) + +unsigned int stdc_bit_width_uc(unsigned char) __pure2; +unsigned int stdc_bit_width_us(unsigned short) __pure2; +unsigned int stdc_bit_width_ui(unsigned int) __pure2; +unsigned int stdc_bit_width_ul(unsigned long) __pure2; +unsigned int stdc_bit_width_ull(unsigned long long) __pure2; +#define stdc_bit_width(x) __generic_bitfunc(stdc_bit_width, x) + +unsigned char stdc_bit_floor_uc(unsigned char) __pure2; +unsigned short stdc_bit_floor_us(unsigned short) __pure2; +unsigned stdc_bit_floor_ui(unsigned int) __pure2; +unsigned long stdc_bit_floor_ul(unsigned long) __pure2; +unsigned long long stdc_bit_floor_ull(unsigned long long) __pure2; +#define stdc_bit_floor(x) __generic_bitfunc(stdc_bit_floor, x) + +unsigned char stdc_bit_ceil_uc(unsigned char) __pure2; +unsigned short stdc_bit_ceil_us(unsigned short) __pure2; +unsigned int stdc_bit_ceil_ui(unsigned int) __pure2; +unsigned long stdc_bit_ceil_ul(unsigned long) __pure2; +unsigned long long stdc_bit_ceil_ull(unsigned long long) __pure2; +#define stdc_bit_ceil(x) __generic_bitfunc(stdc_bit_ceil, x) +__END_DECLS + +#endif /* __STDC_VERSION_STDBIT_H__ */ diff --git a/lib/libc/Makefile b/lib/libc/Makefile index 8705568f6d34..34474cfa9fe4 100644 --- a/lib/libc/Makefile +++ b/lib/libc/Makefile @@ -118,6 +118,7 @@ NOASM= .endif .include "${LIBC_SRCTOP}/regex/Makefile.inc" .include "${LIBC_SRCTOP}/resolv/Makefile.inc" +.include "${LIBC_SRCTOP}/stdbit/Makefile.inc" .include "${LIBC_SRCTOP}/stdio/Makefile.inc" .include "${LIBC_SRCTOP}/stdlib/Makefile.inc" .include "${LIBC_SRCTOP}/stdtime/Makefile.inc" diff --git a/lib/libc/stdbit/Makefile.inc b/lib/libc/stdbit/Makefile.inc new file mode 100644 index 000000000000..2ea96d2b6dfe --- /dev/null +++ b/lib/libc/stdbit/Makefile.inc @@ -0,0 +1,19 @@ +# sources for +.PATH: ${LIBC_SRCTOP}/stdbit + +SRCS+= stdc_bit_ceil.c \ + stdc_bit_floor.c \ + stdc_bit_width.c \ + stdc_count_ones.c \ + stdc_count_zeros.c \ + stdc_first_leading_one.c \ + stdc_first_leading_zero.c \ + stdc_first_trailing_one.c \ + stdc_first_trailing_zero.c \ + stdc_has_single_bit.c \ + stdc_leading_ones.c \ + stdc_leading_zeros.c \ + stdc_trailing_ones.c \ + stdc_trailing_zeros.c + +SYM_MAPS+=${LIBC_SRCTOP}/stdbit/Symbol.map diff --git a/lib/libc/stdbit/Symbol.map b/lib/libc/stdbit/Symbol.map new file mode 100644 index 000000000000..7014d6984c07 --- /dev/null +++ b/lib/libc/stdbit/Symbol.map @@ -0,0 +1,85 @@ +FBSD_1.9 { + stdc_leading_zeros_uc; + stdc_leading_zeros_us; + stdc_leading_zeros_ui; + stdc_leading_zeros_ul; + stdc_leading_zeros_ull; + + stdc_leading_ones_uc; + stdc_leading_ones_us; + stdc_leading_ones_ui; + stdc_leading_ones_ul; + stdc_leading_ones_ull; + + stdc_trailing_zeros_uc; + stdc_trailing_zeros_us; + stdc_trailing_zeros_ui; + stdc_trailing_zeros_ul; + stdc_trailing_zeros_ull; + + stdc_trailing_ones_uc; + stdc_trailing_ones_us; + stdc_trailing_ones_ui; + stdc_trailing_ones_ul; + stdc_trailing_ones_ull; + + stdc_first_leading_zero_uc; + stdc_first_leading_zero_us; + stdc_first_leading_zero_ui; + stdc_first_leading_zero_ul; + stdc_first_leading_zero_ull; + + stdc_first_leading_one_uc; + stdc_first_leading_one_us; + stdc_first_leading_one_ui; + stdc_first_leading_one_ul; + stdc_first_leading_one_ull; + + stdc_first_trailing_zero_uc; + stdc_first_trailing_zero_us; + stdc_first_trailing_zero_ui; + stdc_first_trailing_zero_ul; + stdc_first_trailing_zero_ull; + + stdc_first_trailing_one_uc; + stdc_first_trailing_one_us; + stdc_first_trailing_one_ui; + stdc_first_trailing_one_ul; + stdc_first_trailing_one_ull; + + stdc_count_zeros_uc; + stdc_count_zeros_us; + stdc_count_zeros_ui; + stdc_count_zeros_ul; + stdc_count_zeros_ull; + + stdc_count_ones_uc; + stdc_count_ones_us; + stdc_count_ones_ui; + stdc_count_ones_ul; + stdc_count_ones_ull; + + stdc_has_single_bit_uc; + stdc_has_single_bit_us; + stdc_has_single_bit_ui; + stdc_has_single_bit_ul; + stdc_has_single_bit_ull; + + stdc_bit_width_uc; + stdc_bit_width_us; + stdc_bit_width_ui; + stdc_bit_width_ul; + stdc_bit_width_ull; + + stdc_bit_floor_uc; + stdc_bit_floor_us; + stdc_bit_floor_ui; + stdc_bit_floor_ul; + stdc_bit_floor_ull; + + stdc_bit_ceil_uc; + stdc_bit_ceil_us; + stdc_bit_ceil_ui; + stdc_bit_ceil_ul; + stdc_bit_ceil_ull; +}; diff --git a/lib/libc/stdbit/stdc_bit_ceil.c b/lib/libc/stdbit/stdc_bit_ceil.c new file mode 100644 index 000000000000..2dfd7bbcbea2 --- /dev/null +++ b/lib/libc/stdbit/stdc_bit_ceil.c @@ -0,0 +1,71 @@ +/* + * Copyright (c) 2025 Robert Clausecker + * + * SPDX-License-Identifier: BSD-2-Clause + */ + +#include +#include +#include + +/* Ensure we don't shift 1U out of range. */ +static_assert(UCHAR_WIDTH < UINT_WIDTH, + "stdc_bit_ceil_uc needs UCHAR_WIDTH < UINT_WIDTH"); + +unsigned char +stdc_bit_ceil_uc(unsigned char x) +{ + if (x <= 1) + return (1); + + return (1U << (UINT_WIDTH - __builtin_clz(x - 1))); +} + +/* Ensure we don't shift 1U out of range. */ +static_assert(USHRT_WIDTH < UINT_WIDTH, + "stdc_bit_ceil_us needs USHRT_WIDTH < UINT_WIDTH"); + +unsigned short +stdc_bit_ceil_us(unsigned short x) +{ + if (x <= 1) + return (1); + + return (1U << (UINT_WIDTH - __builtin_clz(x - 1))); +} + +unsigned int +stdc_bit_ceil_ui(unsigned int x) +{ + if (x <= 1) + return (1); + + if (x > UINT_MAX/2 + 1) + return (0); + + return (1U << (UINT_WIDTH - __builtin_clz(x - 1))); +} + +unsigned long +stdc_bit_ceil_ul(unsigned long x) +{ + if (x <= 1) + return (1); + + if (x > ULONG_MAX/2 + 1) + return (0); + + return (1UL << (ULONG_WIDTH - __builtin_clzl(x - 1))); +} + +unsigned long long +stdc_bit_ceil_ull(unsigned long long x) +{ + if (x <= 1) + return (1); + + if (x > ULLONG_MAX/2 + 1) + return (0); + + return (1ULL << (ULLONG_WIDTH - __builtin_clzll(x - 1))); +} diff --git a/lib/libc/stdbit/stdc_bit_floor.c b/lib/libc/stdbit/stdc_bit_floor.c new file mode 100644 index 000000000000..0a491d6ec7b3 --- /dev/null +++ b/lib/libc/stdbit/stdc_bit_floor.c @@ -0,0 +1,53 @@ +/* + * Copyright (c) 2025 Robert Clausecker + * + * SPDX-License-Identifier: BSD-2-Clause + */ + +#include +#include + +unsigned char +stdc_bit_floor_uc(unsigned char x) +{ + if (x == 0) + return (0); + + return (1U << (UINT_WIDTH - __builtin_clz(x) - 1)); +} + +unsigned short +stdc_bit_floor_us(unsigned short x) +{ + if (x == 0) + return (0); + + return (1U << (UINT_WIDTH - __builtin_clz(x) - 1)); +} + +unsigned int +stdc_bit_floor_ui(unsigned int x) +{ + if (x == 0) + return (0); + + return (1U << (UINT_WIDTH - __builtin_clz(x) - 1)); +} + +unsigned long +stdc_bit_floor_ul(unsigned long x) +{ + if (x == 0) + return (0); + + return (1UL << (ULONG_WIDTH - __builtin_clzl(x) - 1)); +} + +unsigned long long +stdc_bit_floor_ull(unsigned long long x) +{ + if (x == 0) + return (0); + + return (1ULL << (ULLONG_WIDTH - __builtin_clzll(x) - 1)); +} diff --git a/lib/libc/stdbit/stdc_bit_width.c b/lib/libc/stdbit/stdc_bit_width.c new file mode 100644 index 000000000000..e248fae48e9f --- /dev/null +++ b/lib/libc/stdbit/stdc_bit_width.c @@ -0,0 +1,53 @@ +/* + * Copyright (c) 2025 Robert Clausecker + * + * SPDX-License-Identifier: BSD-2-Clause + */ + +#include +#include + +unsigned int +stdc_bit_width_uc(unsigned char x) +{ + if (x == 0) + return (0); + + return (UINT_WIDTH - __builtin_clz(x)); +} + +unsigned int +stdc_bit_width_us(unsigned short x) +{ + if (x == 0) + return (0); + + return (UINT_WIDTH - __builtin_clz(x)); +} + +unsigned int +stdc_bit_width_ui(unsigned int x) +{ + if (x == 0) + return (0); + + return (UINT_WIDTH - __builtin_clz(x)); +} + +unsigned int +stdc_bit_width_ul(unsigned long x) +{ + if (x == 0) + return (0); + + return (ULONG_WIDTH - __builtin_clzl(x)); +} + +unsigned int +stdc_bit_width_ull(unsigned long long x) +{ + if (x == 0) + return (0); + + return (ULLONG_WIDTH - __builtin_clzll(x)); +} diff --git a/lib/libc/stdbit/stdc_count_ones.c b/lib/libc/stdbit/stdc_count_ones.c new file mode 100644 index 000000000000..c5198dca84df --- /dev/null +++ b/lib/libc/stdbit/stdc_count_ones.c @@ -0,0 +1,38 @@ +/* + * Copyright (c) 2025 Robert Clausecker + * + * SPDX-License-Identifier: BSD-2-Clause + */ + +#include +#include + +unsigned int +stdc_count_ones_uc(unsigned char x) +{ + return (__builtin_popcount(x)); +} + +unsigned int +stdc_count_ones_us(unsigned short x) +{ + return (__builtin_popcount(x)); +} + +unsigned int +stdc_count_ones_ui(unsigned int x) +{ + return (__builtin_popcount(x)); +} + +unsigned int +stdc_count_ones_ul(unsigned long x) +{ + return (__builtin_popcountl(x)); +} + +unsigned int +stdc_count_ones_ull(unsigned long long x) +{ + return (__builtin_popcountll(x)); +} diff --git a/lib/libc/stdbit/stdc_count_zeros.c b/lib/libc/stdbit/stdc_count_zeros.c new file mode 100644 index 000000000000..35db965afcb5 --- /dev/null +++ b/lib/libc/stdbit/stdc_count_zeros.c @@ -0,0 +1,38 @@ +/* + * Copyright (c) 2025 Robert Clausecker + * + * SPDX-License-Identifier: BSD-2-Clause + */ + +#include +#include + +unsigned int +stdc_count_zeros_uc(unsigned char x) +{ + return (__builtin_popcount(x ^ UCHAR_MAX)); +} + +unsigned int +stdc_count_zeros_us(unsigned short x) +{ + return (__builtin_popcount(x ^ USHRT_MAX)); +} + +unsigned int +stdc_count_zeros_ui(unsigned int x) +{ + return (__builtin_popcount(~x)); +} + +unsigned int +stdc_count_zeros_ul(unsigned long x) +{ + return (__builtin_popcountl(~x)); +} + +unsigned int +stdc_count_zeros_ull(unsigned long long x) +{ + return (__builtin_popcountll(~x)); +} diff --git a/lib/libc/stdbit/stdc_first_leading_one.c b/lib/libc/stdbit/stdc_first_leading_one.c new file mode 100644 index 000000000000..de436856569f --- /dev/null +++ b/lib/libc/stdbit/stdc_first_leading_one.c @@ -0,0 +1,57 @@ +/* + * Copyright (c) 2025 Robert Clausecker + * + * SPDX-License-Identifier: BSD-2-Clause + */ + +#include +#include + +unsigned int +stdc_first_leading_one_uc(unsigned char x) +{ + const int offset = UINT_WIDTH - UCHAR_WIDTH; + + if (x == 0) + return (0); + + return (__builtin_clz(x << offset) + 1); +} + +unsigned int +stdc_first_leading_one_us(unsigned short x) +{ + const int offset = UINT_WIDTH - USHRT_WIDTH; + + if (x == 0) + return (0); + + return (__builtin_clz(x << offset) + 1); +} + +unsigned int +stdc_first_leading_one_ui(unsigned int x) +{ + if (x == 0) + return (0); + + return (__builtin_clz(x) + 1); +} + +unsigned int +stdc_first_leading_one_ul(unsigned long x) +{ + if (x == 0) + return (0); + + return (__builtin_clzl(x) + 1); +} + +unsigned int +stdc_first_leading_one_ull(unsigned long long x) +{ + if (x == 0) + return (0); + + return (__builtin_clzll(x) + 1); +} diff --git a/lib/libc/stdbit/stdc_first_leading_zero.c b/lib/libc/stdbit/stdc_first_leading_zero.c new file mode 100644 index 000000000000..e6609b51b648 --- /dev/null +++ b/lib/libc/stdbit/stdc_first_leading_zero.c @@ -0,0 +1,57 @@ +/* + * Copyright (c) 2025 Robert Clausecker + * + * SPDX-License-Identifier: BSD-2-Clause + */ + +#include +#include + +unsigned int +stdc_first_leading_zero_uc(unsigned char x) +{ + const int offset = UINT_WIDTH - UCHAR_WIDTH; + + if (x == UCHAR_MAX) + return (0); + + return (__builtin_clz(~(unsigned int)x << offset) + 1); +} + +unsigned int +stdc_first_leading_zero_us(unsigned short x) +{ + const int offset = UINT_WIDTH - USHRT_WIDTH; + + if (x == USHRT_MAX) + return (0); + + return (__builtin_clz(~(unsigned int)x << offset) + 1); +} + +unsigned int +stdc_first_leading_zero_ui(unsigned int x) +{ + if (x == ~0U) + return (0); + + return (__builtin_clz(~x) + 1); +} + +unsigned int +stdc_first_leading_zero_ul(unsigned long x) +{ + if (x == ~0UL) + return (0); + + return (__builtin_clzl(~x) + 1); +} + +unsigned int +stdc_first_leading_zero_ull(unsigned long long x) +{ + if (x == ~0ULL) + return (0); + + return (__builtin_clzll(~x) + 1); +} diff --git a/lib/libc/stdbit/stdc_first_trailing_one.c b/lib/libc/stdbit/stdc_first_trailing_one.c new file mode 100644 index 000000000000..22972758d25d --- /dev/null +++ b/lib/libc/stdbit/stdc_first_trailing_one.c @@ -0,0 +1,52 @@ +/* + * Copyright (c) 2025 Robert Clausecker + * + * SPDX-License-Identifier: BSD-2-Clause + */ + +#include + +unsigned int +stdc_first_trailing_one_uc(unsigned char x) +{ + if (x == 0) + return (0); + + return (__builtin_ctz(x) + 1); +} + +unsigned int +stdc_first_trailing_one_us(unsigned short x) +{ + if (x == 0) + return (0); + + return (__builtin_ctz(x) + 1); +} + +unsigned int +stdc_first_trailing_one_ui(unsigned int x) +{ + if (x == 0) + return (0); + + return (__builtin_ctz(x) + 1); +} + +unsigned int +stdc_first_trailing_one_ul(unsigned long x) +{ + if (x == 0) + return (0); + + return (__builtin_ctzl(x) + 1); +} + +unsigned int +stdc_first_trailing_one_ull(unsigned long long x) +{ + if (x == 0) + return (0); + + return (__builtin_ctzll(x) + 1); +} diff --git a/lib/libc/stdbit/stdc_first_trailing_zero.c b/lib/libc/stdbit/stdc_first_trailing_zero.c new file mode 100644 index 000000000000..27395c6977c3 --- /dev/null +++ b/lib/libc/stdbit/stdc_first_trailing_zero.c @@ -0,0 +1,53 @@ +/* + * Copyright (c) 2025 Robert Clausecker + * + * SPDX-License-Identifier: BSD-2-Clause + */ + +#include +#include + +unsigned int +stdc_first_trailing_zero_uc(unsigned char x) +{ + if (x == UCHAR_MAX) + return (0); + + return (__builtin_ctz(~x) + 1); +} + +unsigned int +stdc_first_trailing_zero_us(unsigned short x) +{ + if (x == USHRT_MAX) + return (0); + + return (__builtin_ctz(~x) + 1); +} + +unsigned int +stdc_first_trailing_zero_ui(unsigned int x) +{ + if (x == ~0U) + return (0); + + return (__builtin_ctz(~x) + 1); +} + +unsigned int +stdc_first_trailing_zero_ul(unsigned long x) +{ + if (x == ~0UL) + return (0); + + return (__builtin_ctzl(~x) + 1); +} + +unsigned int +stdc_first_trailing_zero_ull(unsigned long long x) +{ + if (x == ~0ULL) + return (0); + + return (__builtin_ctzll(~x) + 1); +} diff --git a/lib/libc/stdbit/stdc_has_single_bit.c b/lib/libc/stdbit/stdc_has_single_bit.c new file mode 100644 index 000000000000..e5f676265551 --- /dev/null +++ b/lib/libc/stdbit/stdc_has_single_bit.c @@ -0,0 +1,38 @@ +/* + * Copyright (c) 2025 Robert Clausecker + * + * SPDX-License-Identifier: BSD-2-Clause + */ + +#include +#include + +bool +stdc_has_single_bit_uc(unsigned char x) +{ + return (x != 0 && (x & x - 1) == 0); +} + +bool +stdc_has_single_bit_us(unsigned short x) +{ + return (x != 0 && (x & x - 1) == 0); +} + +bool +stdc_has_single_bit_ui(unsigned int x) +{ + return (x != 0 && (x & x - 1) == 0); +} + +bool +stdc_has_single_bit_ul(unsigned long x) +{ + return (x != 0 && (x & x - 1) == 0); +} + +bool +stdc_has_single_bit_ull(unsigned long long x) +{ + return (x != 0 && (x & x - 1) == 0); +} diff --git a/lib/libc/stdbit/stdc_leading_ones.c b/lib/libc/stdbit/stdc_leading_ones.c new file mode 100644 index 000000000000..79d3ec7f2065 --- /dev/null +++ b/lib/libc/stdbit/stdc_leading_ones.c @@ -0,0 +1,60 @@ +/* + * Copyright (c) 2025 Robert Clausecker + * + * SPDX-License-Identifier: BSD-2-Clause + */ + +#include +#include +#include + +/* Avoid triggering undefined behavior if x == 0. */ +static_assert(UCHAR_WIDTH < UINT_WIDTH, + "stdc_leading_ones_uc needs UCHAR_WIDTH < UINT_WIDTH"); + +unsigned int +stdc_leading_ones_uc(unsigned char x) +{ + const int offset = UINT_WIDTH - UCHAR_WIDTH; + + return (__builtin_clz(~(x << offset))); +} + +/* Avoid triggering undefined behavior if x == 0. */ +static_assert(USHRT_WIDTH < UINT_WIDTH, + "stdc_leading_ones_us needs USHRT_WIDTH < UINT_WIDTH"); + +unsigned int +stdc_leading_ones_us(unsigned short x) +{ + const int offset = UINT_WIDTH - USHRT_WIDTH; + + return (__builtin_clz(~(x << offset))); +} + +unsigned int +stdc_leading_ones_ui(unsigned int x) +{ + if (x == ~0U) + return (UINT_WIDTH); + + return (__builtin_clz(~x)); +} + +unsigned int +stdc_leading_ones_ul(unsigned long x) +{ + if (x == ~0UL) + return (ULONG_WIDTH); + + return (__builtin_clzl(~x)); +} + +unsigned int +stdc_leading_ones_ull(unsigned long long x) +{ + if (x == ~0ULL) + return (ULLONG_WIDTH); + + return (__builtin_clzll(~x)); +} diff --git a/lib/libc/stdbit/stdc_leading_zeros.c b/lib/libc/stdbit/stdc_leading_zeros.c new file mode 100644 index 000000000000..2fdf64ec93d4 --- /dev/null +++ b/lib/libc/stdbit/stdc_leading_zeros.c @@ -0,0 +1,60 @@ +/* + * Copyright (c) 2025 Robert Clausecker + * + * SPDX-License-Identifier: BSD-2-Clause + */ + +#include +#include +#include + +/* Offset must be greater than zero. */ +static_assert(UCHAR_WIDTH < UINT_WIDTH, + "stdc_leading_zeros_uc needs UCHAR_WIDTH < UINT_WIDTH"); + +unsigned int +stdc_leading_zeros_uc(unsigned char x) +{ + const int offset = UINT_WIDTH - UCHAR_WIDTH; + + return (__builtin_clz((x << offset) + (1U << (offset - 1)))); +} + +/* Offset must be greater than zero. */ +static_assert(USHRT_WIDTH < UINT_WIDTH, + "stdc_leading_zeros_us needs USHRT_WIDTH < UINT_WIDTH"); *** 159 LINES SKIPPED *** From nobody Thu Jan 1 22:21:43 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dj1Wq4c3rz6Mnh5 for ; Thu, 01 Jan 2026 22:21:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dj1Wq318Yz49rY for ; Thu, 01 Jan 2026 22:21:43 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767306103; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=+T2fveRGAEtAtAlz+E6jYRCsHkZUaZXTea/ILaKw5rY=; b=aGf+dZlGHYIzi0yFia64m2NS4lk9yAF9MfdcI9jgQga3ooix6CwOkaVT6tiZo5BfBnJx/l zxDPMmUjCXKGOukRZG8M5vqG8YCt+SP2NEHSJBwW6pkpvIEmo2+/QyGxS2xY8b2cjjZ4v1 1vWgWuYwBWC25fnrby1ljefjQFWs21PS5AGUtR5nglVS+pgwf5D4DBOaBy9zqfRljBfZxX BW1PAuER2ovZl+y1joFwLow8j/tbYaDdO5UUDL6kgiqbtz5JIjMlXbvoFyO3qwLJkULuv6 2/zNxXONLJbZIDj4gsvFZWen40MFpNlbBxmQOQpcKWtPl+Udx/Z2WHcYrtm/iQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767306103; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=+T2fveRGAEtAtAlz+E6jYRCsHkZUaZXTea/ILaKw5rY=; b=E9mPsNIQCCBU3FWD/l98QUI33yW49AkBaD9wImeakR4gpgs6knvmWrZsO9VKLj44U7eRLd jK151/iWZqvz4pl2nI11Itmcoei/3nXfZ4aKMCnRE+ajhBQcELIVhLnNvlGTpzxCW47CrR UMQWzcwnmha95iXO92ww5GRu7hJ15tEZ7wzXgRzFDONWjvdWbAX2goNl2QcU+0qNsM217W v0Ob+IEnvGQnSqRNzKL8WI6GgUcygBs4lznN66+6sPz06bcCZrznhV05I/i/icvVW2+oGs vz+YsU0SfFsVNR2sn/y2M3ovXe1neCYTABBajXHNHYQ1tB9Hg4KWXGP5yjmlQw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767306103; a=rsa-sha256; cv=none; b=taiOY8lQ9pZahtGEy7c8gW0PbguVxnkJYYHgylQK92lVs7RyihEuKblkLtsXtECXdsydFl fox3FjvbnnMUM4g/F8ADHNd9XYTEoeXf3lyZiVH7839Ydtsc/kAQzwCJ+/14B9wUuWKEib ldPjTBXPun3YQ0ihE54MqRI+mPpGPFYqyE9JhwQ7x+X3MPiqct1lh37WBuy8bDmcXfq70r 6S2lL0iB8m9LXdC55vhpzCSHOH/rVUhyOzmarXUdPfe7M9UvQLZNNZXvD0VJlGTfUmugtl 5iVTpIytYs3/Oz2TAywfyO2ozbM0eHETM+yIib8bdqzyG9YX1jTvV4wtDamvow== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dj1Wq2Z2hzrXC for ; Thu, 01 Jan 2026 22:21:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id c87f by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 01 Jan 2026 22:21:43 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Robert Clausecker Subject: git: fff2795baf1a - stable/15 - libc/stdc_has_single_bit.c: fix gcc warning (-Wparentheses) List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: fuz X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: fff2795baf1ae298b0fcf137bc584faf1d79c785 Auto-Submitted: auto-generated Date: Thu, 01 Jan 2026 22:21:43 +0000 Message-Id: <6956f377.c87f.1921335c@gitrepo.freebsd.org> The branch stable/15 has been updated by fuz: URL: https://cgit.FreeBSD.org/src/commit/?id=fff2795baf1ae298b0fcf137bc584faf1d79c785 commit fff2795baf1ae298b0fcf137bc584faf1d79c785 Author: Robert Clausecker AuthorDate: 2025-12-03 18:36:27 +0000 Commit: Robert Clausecker CommitDate: 2026-01-01 20:57:32 +0000 libc/stdc_has_single_bit.c: fix gcc warning (-Wparentheses) gcc14 is concerned that the operator precedence between - and & might be confusing. Throw in some redundant parentheses to make it shut up. The LLVM build was fine before this change. Reported by: Martin Filla Approved by: markj (mentor) MFC after: 1 month Fixes: 6296500a85c8474e3ff3fe2f8e4a9d56dd0acd64 Differential Revision: https://reviews.freebsd.org/D54057 (cherry picked from commit 3d71ce92eae9f1417f35a0d07912858fd8f6fa0b) --- lib/libc/stdbit/stdc_has_single_bit.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/libc/stdbit/stdc_has_single_bit.c b/lib/libc/stdbit/stdc_has_single_bit.c index e5f676265551..a448464b04d9 100644 --- a/lib/libc/stdbit/stdc_has_single_bit.c +++ b/lib/libc/stdbit/stdc_has_single_bit.c @@ -10,29 +10,29 @@ bool stdc_has_single_bit_uc(unsigned char x) { - return (x != 0 && (x & x - 1) == 0); + return (x != 0 && (x & (x - 1)) == 0); } bool stdc_has_single_bit_us(unsigned short x) { - return (x != 0 && (x & x - 1) == 0); + return (x != 0 && (x & (x - 1)) == 0); } bool stdc_has_single_bit_ui(unsigned int x) { - return (x != 0 && (x & x - 1) == 0); + return (x != 0 && (x & (x - 1)) == 0); } bool stdc_has_single_bit_ul(unsigned long x) { - return (x != 0 && (x & x - 1) == 0); + return (x != 0 && (x & (x - 1)) == 0); } bool stdc_has_single_bit_ull(unsigned long long x) { - return (x != 0 && (x & x - 1) == 0); + return (x != 0 && (x & (x - 1)) == 0); } From nobody Thu Jan 1 22:21:44 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dj1Wr63N4z6Lpn1 for ; Thu, 01 Jan 2026 22:21:44 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dj1Wr3yRBz4B7j for ; Thu, 01 Jan 2026 22:21:44 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767306104; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=onEgPzAQ51MelLciw/E3WlrBeU4G+1cYLN1LtDTophc=; b=qe5ogEVMrLHuLK3loHha6KL3UoVdqLD9JiiAYfXwhwrHGJ7El2YQ5ncphKwHGTyF3OHFr/ TAOTeoKB9Q4Ncz9kIvJsy0fuiC/Fj+Ro6rt2BZzax5D6Kpmb5kqp/jNPLo+VAzRbKC1IvD LOQOvV9758D693LqTtlt9k6MqgwpuZjp58VZv7vepzOz4v/akmYQp9Z2aFWEhuv15MVBsG JiulijTMCrzsZO8GK5gWaruXJeawWkVHUT2HvolnN1qiBPuUI6J7rfF4tiPGlU8ziMtnge IHYOaqj7m6RR19crWFoVM+77WjC9hO8EYfc2s5I7pycuwvQ9lINyNDUO8b4H/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767306104; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=onEgPzAQ51MelLciw/E3WlrBeU4G+1cYLN1LtDTophc=; b=lCiU5RKrFZolshysUKcbJf8PKpC5xFXqQ9sBL3Y6J86VzntMJ6bPV1AOD18GdOBt2sv5k+ 1N/jeX4rK2Nm6f0TqDvWKfffhez02xQcbWCOh3fvrlnHrfR3aTINJbMftiAazzJbMD8x8f 8aLswOUjzumz28c0PyLpV9xQfti0ZHVn476lOQIIhPWnGnbLL2tCZo8UfA+S29Mqccs1VL svzGFIhlk/4uhFAn0qOv5jkn2LyFjlyoKpToOdb+ppSgvlJ3ZeE3TjC8DoUYAmkzPcNPMh Zpj+tWjH/R1bCWsX3ZmO7MVN71NN8xp+LJZUKb7dJkCOSdPFEY2BlGsUIta0VQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767306104; a=rsa-sha256; cv=none; b=R7nauLjH7hT6be5GLTu8TD/jeNu/ECavWWW5I08q7LOnfIKF52EFiRjTSUDSo3skio9y7e te1OJtvQxso2nOCMjClz7LILmu+QINnQX5tt9d4b0cQf8CeGxGUVLP0TISzHFpRtNmNgMW CqnU2SzmavCFPXm++Pb+crAhaYVcJvXp9tGfBjLkYudsfGs2PFpCoP26Hzzy75vIsDbUip UXY6hjlEvHtvsUrsyIQJBk2qdQ8jgs2vNF8Kmc3rRyajzfC/Y3ITXuuYjL6t9AeN49SSC7 CmafVWSwUpp5eZQFXVLG4vDgUFNFmlDY3c05s4yN6nQih0gcr9wfbjh47s/hzw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dj1Wr3BXvzrNx for ; Thu, 01 Jan 2026 22:21:44 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id f483 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 01 Jan 2026 22:21:44 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Robert Clausecker Subject: git: 6b7ed283d4b4 - stable/15 - man/man3: add stdbit.3 List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: fuz X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 6b7ed283d4b40c4e17c35e2581b9c2329c8669b6 Auto-Submitted: auto-generated Date: Thu, 01 Jan 2026 22:21:44 +0000 Message-Id: <6956f378.f483.58110c29@gitrepo.freebsd.org> The branch stable/15 has been updated by fuz: URL: https://cgit.FreeBSD.org/src/commit/?id=6b7ed283d4b40c4e17c35e2581b9c2329c8669b6 commit 6b7ed283d4b40c4e17c35e2581b9c2329c8669b6 Author: Robert Clausecker AuthorDate: 2025-11-18 17:33:04 +0000 Commit: Robert Clausecker CommitDate: 2026-01-01 20:57:32 +0000 man/man3: add stdbit.3 This is the overview man page for the functions. Reviewed by: pauamma@gundo.com, adrian Approved by: markj (mentor) MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D53658 (cherry picked from commit d39e310c7d6a42b459aa7919310e3c99cc478d50) --- share/man/man3/Makefile | 1 + share/man/man3/stdbit.3 | 120 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 121 insertions(+) diff --git a/share/man/man3/Makefile b/share/man/man3/Makefile index bce57291f073..8e4aadc460a6 100644 --- a/share/man/man3/Makefile +++ b/share/man/man3/Makefile @@ -31,6 +31,7 @@ MAN= alloca.3 \ snl.3 \ stats.3 \ stdarg.3 \ + stdbit.3 \ stdckdint.3 \ sysexits.3 \ tgmath.3 \ diff --git a/share/man/man3/stdbit.3 b/share/man/man3/stdbit.3 new file mode 100644 index 000000000000..bdee56cc8013 --- /dev/null +++ b/share/man/man3/stdbit.3 @@ -0,0 +1,120 @@ +.\" +.\" Copyright (c) 2025 Robert Clausecker +.\" +.\" SPDX-License-Identifier: BSD-2-Clause +.\" +.Dd November 9, 2025 +.Dt STDBIT 3 +.Os +.Sh NAME +.Nm stdbit +.Nd bit and byte utilities +.Sh SYNOPSIS +.Lb libc +.In stdbit.h +.Fd #define __STDC_ENDIAN_LITTLE__ +.Fd #define __STDC_ENDIAN_BIG__ +.Fd #define __STDC_ENDIAN_NATIVE__ +.Ft unsigned int +.Fn stdc_count_leading_zeros "value" +.Ft unsigned int +.Fn stdc_count_leading_ones "value" +.Ft unsigned int +.Fn stdc_count_trailing_zeros "value" +.Ft unsigned int +.Fn stdc_count_trailing_ones "value" +.Ft unsigned int +.Fn stdc_first_leading_zero "value" +.Ft unsigned int +.Fn stdc_first_leading_one "value" +.Ft unsigned int +.Fn stdc_first_trailing_zero "value" +.Ft unsigned int +.Fn stdc_first_trailing_one "value" +.Ft unsigned int +.Fn stdc_count_zeros "value" +.Ft unsigned int +.Fn stdc_count_ones "value" +.Ft bool +.Fn stdc_has_single_bit "value" +.Ft unsigned int +.Fn stdc_bit_width "value" +.Ft typeof Ns Pq Em value +.Fn stdc_bit_floor "value" +.Ft typeof Ns Pq Em value +.Fn stdc_bit_ceil "value" +.Sh DESCRIPTION +The +.Dv __STDC_ENDIAN_NATIVE__ +macro describes the byte order or endianness of the machine for which the +program is built. +If the machine has big-endian byte order, this macro is equal to +.Dv __STDC_ENDIAN_BIG__ . +If the machine has little-endian byte order, this macro is equal to +.Dv __STDC_ENDIAN_LITTLE__ . +Otherwise, the macro has a value that is equal to neither. +.Pp +The bit and byte utility functions analyze the bits within a datum. +Each function +.Em func +is provided in five variants +.Nm stdc_ Ns Em func Ns Em _ Ns Em type Ns Pq Em value +where +.Fa value +is of type +.Va unsigned char , +.Va unsigned short , +.Va unsigned int , +.Va unsigned long , +or +.Va unsigned long long +for +.Em type +being +.Sy uc , +.Sy us , +.Sy ui , +.Sy ul , +or +.Sy ull +respectively. +Additionally, for each +.Em func , +a type-generic macro +.Nm stdc_ Ns Em func Ns Pq Em value +that picks the appropriate function +.Nm stdc_ Ns Em func Ns Em _ Ns Em type Ns Pq Em value +based on the type of +.Fa value +is provided. +.Sh SEE ALSO +.Xr arch 7 , +.Xr bitstring 3 , +.Xr ffs 3 , +.Xr fls 3 , +.Xr stdc_count_leading_zeros 3 , +.Xr stdc_count_leading_ones 3 , +.Xr stdc_count_trailing_zeros 3 , +.Xr stdc_count_trailing_ones 3 , +.Xr stdc_first_leading_zero 3 , +.Xr stdc_first_leading_one 3 , +.Xr stdc_first_trailing_zero 3 , +.Xr stdc_first_trailing_one 3 , +.Xr stdc_count_zeros 3 , +.Xr stdc_count_ones 3 , +.Xr stdc_has_single_bit 3 , +.Xr stdc_bit_width 3 , +.Xr stdc_bit_floor 3 , +.Xr stdc_bit_ceil 3 +.Sh STANDARDS +The macros and functions of the +.In stdbit.h +header conform to +.St -isoC-2023 . +.Sh HISTORY +The +.In stdbit.h +header and the macros and functions defined therein where added in +.Fx 15.1. +.Sh AUTHOR +.An Robert Clausecker Aq Mt fuz@FreeBSD.org From nobody Thu Jan 1 22:21:45 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dj1Wt3DcMz6MntB for ; Thu, 01 Jan 2026 22:21:46 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dj1Ws4TD0z3Bs8 for ; Thu, 01 Jan 2026 22:21:45 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767306105; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=mAuZE2PyBNgf4RWEnq4NCV3E7uTu6oDbQUBseoV3rHQ=; b=u9jHebMvx05Bd6uojeAMfHn6FszYdkC+E6hn+yAHfyIQy68MHZfYc972h1yUtxOBi46sm5 gF7X7WlMTZTd+eUcNvpTHM/jSvyiY68Pdf/85PHfutGB6BKnnAtjSGDuJHcUmEfToA90SN IBMvcgiiHAu/iRM2jsdrtEf+qtDQb5bnjQmRJRs1Qlmk5qLJnVAPzpXyCIhfxPNlqZptEa NRrcZ/yFWEwWLrN+W7ufcthh5dgVKIAy0snktvZP82qnaZGtMfVfLP+MPHYohAMKt5Pc5d LLHF4uwOBVFdcaPp9hCUThUijW171/Y0xOQASopXY+ujxFxZKRhav2wCo4fihw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767306105; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=mAuZE2PyBNgf4RWEnq4NCV3E7uTu6oDbQUBseoV3rHQ=; b=DoJHWId5VHyhFENCPazXfAkQ1Qet7Q/D1UtCm/x3HBZHKqddmcoMR8IWw1mU0EQZwtlCmk 6V+PuHKUx8AXUEzTclnk1Rx5vLEWEwiH9H5cjyyvam5kEhk+97sfBrpyyAIgeojcz99PQQ fw+55/vmRSWzJXpzjQgmH8zXNWMV05dxjra+T/H7G5vjxaTstx0yJTf7+9BN4BJoqpCi9P 3KVX+0e0VGcnHSWzCzLNZM38isdhoGVqAIx3Qt9iuBPsTMplRcSm9zg54VS20cdtaqNutQ cQ9HoraP9nlD3jVxSxRx+GDKY8DKEn7LZNV3cF/zfgrtjWs2/Y9SACAjptg6iw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767306105; a=rsa-sha256; cv=none; b=MObut3ihfBov8bldiPaD9WwxrH5gyTVlZBmlFL/AwgNZE5qLj8u8s8Gjyf5N2o9j9dyrWG uV3aXRTsUUiLQw/IZoe97KRSNXSOWEfhy8oyo6lKuTI3Ng6J7T2hnp2ZNZBi/Dr6lxOCee 3tKMZQNCeJqLjvro/l2b+kCkQI+6yDdLqIK11dVKcZw6NaMDP74xtSLZZdIA54pNfYhaZp UZVTOsMBfBW5jP3s5kipXsX6XKkdMyYYfIjBUTEQY2yCx9Z+iZIGSI2/g5ZAZV4dEDx4P1 Zm0gdik5Ci6CkiQB6CalZO6kHGPfSVxWkUXT7HNIft1yeWbifLdWDpX6iB3rLg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dj1Ws43LPzrm4 for ; Thu, 01 Jan 2026 22:21:45 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id f487 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 01 Jan 2026 22:21:45 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Robert Clausecker Subject: git: 27de6568a3ec - stable/15 - libc/stdbit: add man pages for stdbit functions List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: fuz X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 27de6568a3ec482804f7541afa219a9292f2c696 Auto-Submitted: auto-generated Date: Thu, 01 Jan 2026 22:21:45 +0000 Message-Id: <6956f379.f487.562703ea@gitrepo.freebsd.org> The branch stable/15 has been updated by fuz: URL: https://cgit.FreeBSD.org/src/commit/?id=27de6568a3ec482804f7541afa219a9292f2c696 commit 27de6568a3ec482804f7541afa219a9292f2c696 Author: Robert Clausecker AuthorDate: 2025-11-18 17:31:07 +0000 Commit: Robert Clausecker CommitDate: 2026-01-01 20:57:32 +0000 libc/stdbit: add man pages for stdbit functions This adds man pages for each group of functions in . The man pages have cross references to one-another. Cross references from external man pages to these will be added in a later commit. Reviewed by: pauamma@gundo.com, kib Approved by: markj (mentor) MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D53659 (cherry picked from commit d790b16bbf0c3055ef00200d01659dfb3c0e5e5e) --- lib/libc/stdbit/Makefile.inc | 15 ++++ lib/libc/stdbit/stdc_bit_ceil.3 | 81 +++++++++++++++++++++ lib/libc/stdbit/stdc_bit_floor.3 | 83 ++++++++++++++++++++++ lib/libc/stdbit/stdc_bit_width.3 | 104 +++++++++++++++++++++++++++ lib/libc/stdbit/stdc_count_ones.3 | 85 ++++++++++++++++++++++ lib/libc/stdbit/stdc_count_zeros.3 | 84 ++++++++++++++++++++++ lib/libc/stdbit/stdc_first_leading_one.3 | 93 ++++++++++++++++++++++++ lib/libc/stdbit/stdc_first_leading_zero.3 | 92 ++++++++++++++++++++++++ lib/libc/stdbit/stdc_first_trailing_one.3 | 110 +++++++++++++++++++++++++++++ lib/libc/stdbit/stdc_first_trailing_zero.3 | 93 ++++++++++++++++++++++++ lib/libc/stdbit/stdc_has_single_bit.3 | 98 +++++++++++++++++++++++++ lib/libc/stdbit/stdc_leading_ones.3 | 86 ++++++++++++++++++++++ lib/libc/stdbit/stdc_leading_zeros.3 | 86 ++++++++++++++++++++++ lib/libc/stdbit/stdc_trailing_ones.3 | 86 ++++++++++++++++++++++ lib/libc/stdbit/stdc_trailing_zeros.3 | 87 +++++++++++++++++++++++ 15 files changed, 1283 insertions(+) diff --git a/lib/libc/stdbit/Makefile.inc b/lib/libc/stdbit/Makefile.inc index 2ea96d2b6dfe..fceccb12b589 100644 --- a/lib/libc/stdbit/Makefile.inc +++ b/lib/libc/stdbit/Makefile.inc @@ -17,3 +17,18 @@ SRCS+= stdc_bit_ceil.c \ stdc_trailing_zeros.c SYM_MAPS+=${LIBC_SRCTOP}/stdbit/Symbol.map + +MAN+= stdc_bit_ceil.3 \ + stdc_bit_floor.3 \ + stdc_bit_width.3 \ + stdc_count_ones.3 \ + stdc_count_zeros.3 \ + stdc_first_leading_one.3 \ + stdc_first_leading_zero.3 \ + stdc_first_trailing_one.3 \ + stdc_first_trailing_zero.3 \ + stdc_has_single_bit.3 \ + stdc_leading_ones.3 \ + stdc_leading_zeros.3 \ + stdc_trailing_ones.3 \ + stdc_trailing_zeros.3 diff --git a/lib/libc/stdbit/stdc_bit_ceil.3 b/lib/libc/stdbit/stdc_bit_ceil.3 new file mode 100644 index 000000000000..470b255f471e --- /dev/null +++ b/lib/libc/stdbit/stdc_bit_ceil.3 @@ -0,0 +1,81 @@ +.\" +.\" Copyright (c) 2025 Robert Clausecker +.\" +.\" SPDX-License-Identifier: BSD-2-Clause +.\" +.Dd November 9, 2025 +.Dt STDC_BIT_CEIL 3 +.Os +.Sh NAME +.Nm stdc_bit_ceil +.Nd round up to the next power of\~2 +.Sh SYNOPSIS +.Lb libc +.In stdbit.h +.Ft unsigned char +.Fn stdc_bit_ceil_uc "unsigned char value" +.Ft unsigned short +.Fn stdc_bit_ceil_us "unsigned short value" +.Ft unsigned int +.Fn stdc_bit_ceil_ui "unsigned int value" +.Ft unsigned long +.Fn stdc_bit_ceil_ul "unsigned long value" +.Ft unsigned long long +.Fn stdc_bit_ceil_ull "unsigned long long value" +.Ft typeof Ns Pq Em value +.Fn stdc_bit_ceil "value" +.Sh DESCRIPTION +The +.Nm stdc_bit_ceil_ Ns Em type Ns () +family of functions rounds +.Fa value +up to the next power of\~2, where +.Fa value +is of type +.Va unsigned char , +.Va unsigned short , +.Va unsigned int , +.Va unsigned long , +or +.Va unsigned long long +for +.Em type +being +.Sy uc , +.Sy us , +.Sy ui , +.Sy ul , +or +.Sy ull +respectively. +The +.Fn stdc_bit_ceil "value" +type-generic macro picks the appropriate +.Nm stdc_bit_ceil_ Ns Em type Ns () +function based on the type of +.Fa value . +.Sh RETURN VALUES +Returns +.Fa value +round up to the next power of\~2. +If this value is not representable, +0\~is returned. +.Sh SEE ALSO +.Xr stdbit 3 , +.Xr stdc_bit_floor 3 +.Sh STANDARDS +The +.Nm stdc_bit_ceil_ Ns Em type Ns () +family of functions and the +.Fn stdc_bit_ceil +type-generic macro conform to +.St -isoC-2023 . +.Sh HISTORY +The +.Nm stdc_bit_ceil_ Ns Em type Ns () +family of functions and the +.Fn stdc_bit_ceil +type-generic macro were added in +.Fx 15.1. +.Sh AUTHOR +.An Robert Clausecker Aq Mt fuz@FreeBSD.org diff --git a/lib/libc/stdbit/stdc_bit_floor.3 b/lib/libc/stdbit/stdc_bit_floor.3 new file mode 100644 index 000000000000..3e90c34f070f --- /dev/null +++ b/lib/libc/stdbit/stdc_bit_floor.3 @@ -0,0 +1,83 @@ +.\" +.\" Copyright (c) 2025 Robert Clausecker +.\" +.\" SPDX-License-Identifier: BSD-2-Clause +.\" +.Dd November 9, 2025 +.Dt STDC_BIT_FLOOR 3 +.Os +.Sh NAME +.Nm stdc_bit_floor +.Nd round down to the previous power of\~2 +.Sh SYNOPSIS +.Lb libc +.In stdbit.h +.Ft unsigned char +.Fn stdc_bit_floor_uc "unsigned char value" +.Ft unsigned short +.Fn stdc_bit_floor_us "unsigned short value" +.Ft unsigned int +.Fn stdc_bit_floor_ui "unsigned int value" +.Ft unsigned long +.Fn stdc_bit_floor_ul "unsigned long value" +.Ft unsigned long long +.Fn stdc_bit_floor_ull "unsigned long long value" +.Ft typeof Ns Pq Em value +.Fn stdc_bit_floor "value" +.Sh DESCRIPTION +The +.Nm stdc_bit_floor_ Ns Em type Ns () +family of functions rounds +.Fa value +down to the previous power of\~2, where +.Fa value +is of type +.Va unsigned char , +.Va unsigned short , +.Va unsigned int , +.Va unsigned long , +or +.Va unsigned long long +for +.Em type +being +.Sy uc , +.Sy us , +.Sy ui , +.Sy ul , +or +.Sy ull +respectively. +The +.Fn stdc_bit_floor "value" +type-generic macro picks the appropriate +.Nm stdc_bit_floor_ Ns Em type Ns () +function based on the type of +.Fa value . +.Sh RETURN VALUES +Returns +.Fa value +round down to the previous power of\~2. +If +.Fa value +is equal to zero, +zero is returned. +.Sh SEE ALSO +.Xr stdbit 3 , +.Xr stdc_bit_ceil 3 +.Sh STANDARDS +The +.Nm stdc_bit_floor_ Ns Em type Ns () +family of functions and the +.Fn stdc_bit_floor +type-generic macro conform to +.St -isoC-2023 . +.Sh HISTORY +The +.Nm stdc_bit_floor_ Ns Em type Ns () +family of functions and the +.Fn stdc_bit_floor +type-generic macro were added in +.Fx 15.1. +.Sh AUTHOR +.An Robert Clausecker Aq Mt fuz@FreeBSD.org diff --git a/lib/libc/stdbit/stdc_bit_width.3 b/lib/libc/stdbit/stdc_bit_width.3 new file mode 100644 index 000000000000..8d59886818d3 --- /dev/null +++ b/lib/libc/stdbit/stdc_bit_width.3 @@ -0,0 +1,104 @@ +.\" +.\" Copyright (c) 2025 Robert Clausecker +.\" +.\" SPDX-License-Identifier: BSD-2-Clause +.\" +.Dd November 9, 2025 +.Dt STDC_BIT_WIDTH 3 +.Os +.Sh NAME +.Nm stdc_bit_width +.Nd find the first trailing one in an intege +.Sh SYNOPSIS +.Lb libc +.In stdbit.h +.Ft unsigned int +.Fn stdc_bit_width_uc "unsigned char value" +.Ft unsigned int +.Fn stdc_bit_width_us "unsigned short value" +.Ft unsigned int +.Fn stdc_bit_width_ui "unsigned int value" +.Ft unsigned int +.Fn stdc_bit_width_ul "unsigned long value" +.Ft unsigned int +.Fn stdc_bit_width_ull "unsigned long long value" +.Ft unsigned int +.Fn stdc_bit_width "value" +.Sh DESCRIPTION +The +.Nm stdc_bit_width_ Ns Em type Ns () +family of functions returns the number of bits needed to represent +.Fa value , +where +.Fa value +is of type +.Va unsigned char , +.Va unsigned short , +.Va unsigned int , +.Va unsigned long , +or +.Va unsigned long long +for +.Em type +being +.Sy uc , +.Sy us , +.Sy ui , +.Sy ul , +or +.Sy ull +respectively. +The +.Fn stdc_bit_width "value" +type-generic macro picks the appropriate +.Nm stdc_bit_width_ Ns Em type Ns () +function based on the type of +.Fa value . +.Pp +Functions +.Fn stdc_bit_width_ui , +.Fn stdc_bit_width_ul , +and +.Fn stdc_bit_width_ull +are identical to +.Bx 4.3 +functions +.Xr fls 3 , +.Xr flsl 3 , +and +.Xr flsll 3 +respectively, except for operating on unsigned instead of signed values. +.Sh RETURN VALUES +Returns the least number of bits needed to represent +.Fa value . +If +.Fa value +is zero, the return value is zero. +Otherwise it is +.EQ +1 + \(lf log sub 2 italic value \(rf . +.EN +.Sh SEE ALSO +.Xr bit_fls 3 , +.Xr fls 3 , +.Xr flsl 3 , +.Xr flsll 3 , +.Xr stdbit 3 , +.Xr stdc_count_leading_zeros 3 , +.Xr stdc_first_leading_one 3 +.Sh STANDARDS +The +.Nm stdc_bit_width_ Ns Em type Ns () +family of functions and the +.Fn stdc_bit_width +type-generic macro conform to +.St -isoC-2023 . +.Sh HISTORY +The +.Nm stdc_bit_width_ Ns Em type Ns () +family of functions and the +.Fn stdc_bit_width +type-generic macro were added in +.Fx 15.1. +.Sh AUTHOR +.An Robert Clausecker Aq Mt fuz@FreeBSD.org diff --git a/lib/libc/stdbit/stdc_count_ones.3 b/lib/libc/stdbit/stdc_count_ones.3 new file mode 100644 index 000000000000..6de92216c24b --- /dev/null +++ b/lib/libc/stdbit/stdc_count_ones.3 @@ -0,0 +1,85 @@ +.\" +.\" Copyright (c) 2025 Robert Clausecker +.\" +.\" SPDX-License-Identifier: BSD-2-Clause +.\" +.Dd November 9, 2025 +.Dt STDC_COUNT_ONES 3 +.Os +.Sh NAME +.Nm stdc_count_ones +.Nd count the ones in an integer +.Sh SYNOPSIS +.Lb libc +.In stdbit.h +.Ft unsigned int +.Fn stdc_count_ones_uc "unsigned char value" +.Ft unsigned int +.Fn stdc_count_ones_us "unsigned short value" +.Ft unsigned int +.Fn stdc_count_ones_ui "unsigned int value" +.Ft unsigned int +.Fn stdc_count_ones_ul "unsigned long value" +.Ft unsigned int +.Fn stdc_count_ones_ull "unsigned long long value" +.Ft unsigned int +.Fn stdc_count_ones "value" +.Sh DESCRIPTION +The +.Nm stdc_count_ones_ Ns Em type Ns () +family of functions returns the number of bits set to\~1 in +.Fa value , +where +.Fa value +is of type +.Va unsigned char , +.Va unsigned short , +.Va unsigned int , +.Va unsigned long , +or +.Va unsigned long long +for +.Em type +being +.Sy uc , +.Sy us , +.Sy ui , +.Sy ul , +or +.Sy ull +respectively. +This is also known as the +.Dq population count +(popcount) or +.Dq Hamming weight +operation. +The +.Fn stdc_count_ones "value" +type-generic macro picks the appropriate +.Nm stdc_count_ones_ Ns Em type Ns () +function based on the type of +.Fa value . +.Sh RETURN VALUES +Returns the number of bits set to\~1 in +.Fa value . +.Sh SEE ALSO +.Xr bit_count 3 , +.Xr stdbit 3 , +.Xr stdc_count_zeros 3 , +.Xr stdc_has_single_bit 3 +.Sh STANDARDS +The +.Nm stdc_count_ones_ Ns Em type Ns () +family of functions and the +.Fn stdc_count_ones +type-generic macro conform to +.St -isoC-2023 . +.Sh HISTORY +The +.Nm stdc_count_ones_ Ns Em type Ns () +family of functions and the +.Fn stdc_count_ones +type-generic macro were added in +.Fx 15.1. +.Sh AUTHOR +.An Robert Clausecker Aq Mt fuz@FreeBSD.org diff --git a/lib/libc/stdbit/stdc_count_zeros.3 b/lib/libc/stdbit/stdc_count_zeros.3 new file mode 100644 index 000000000000..762ba62d3793 --- /dev/null +++ b/lib/libc/stdbit/stdc_count_zeros.3 @@ -0,0 +1,84 @@ +.\" +.\" Copyright (c) 2025 Robert Clausecker +.\" +.\" SPDX-License-Identifier: BSD-2-Clause +.\" +.Dd November 9, 2025 +.Dt STDC_COUNT_ZEROS 3 +.Os +.Sh NAME +.Nm stdc_count_zeros +.Nd count the zeros in an integer +.Sh SYNOPSIS +.Lb libc +.In stdbit.h +.Ft unsigned int +.Fn stdc_count_zeros_uc "unsigned char value" +.Ft unsigned int +.Fn stdc_count_zeros_us "unsigned short value" +.Ft unsigned int +.Fn stdc_count_zeros_ui "unsigned int value" +.Ft unsigned int +.Fn stdc_count_zeros_ul "unsigned long value" +.Ft unsigned int +.Fn stdc_count_zeros_ull "unsigned long long value" +.Ft unsigned int +.Fn stdc_count_zeros "value" +.Sh DESCRIPTION +The +.Nm stdc_count_zeros_ Ns Em type Ns () +family of functions returns the number of bits set to\~0 in +.Fa value , +where +.Fa value +is of type +.Va unsigned char , +.Va unsigned short , +.Va unsigned int , +.Va unsigned long , +or +.Va unsigned long long +for +.Em type +being +.Sy uc , +.Sy us , +.Sy ui , +.Sy ul , +or +.Sy ull +respectively. +This is also known as the +.Dq population count +(popcount) or +.Dq Hamming weight +of the complement of +.Fa value . +The +.Fn stdc_count_zeros "value" +type-generic macro picks the appropriate +.Nm stdc_count_zeros_ Ns Em type Ns () +function based on the type of +.Fa value . +.Sh RETURN VALUES +Returns the number of bits set to\~0 in +.Fa value . +.Sh SEE ALSO +.Xr stdbit 3 , +.Xr stdc_count_ones 3 +.Sh STANDARDS +The +.Nm stdc_count_zeros_ Ns Em type Ns () +family of functions and the +.Fn stdc_count_zeros +type-generic macro conform to +.St -isoC-2023 . +.Sh HISTORY +The +.Nm stdc_count_zeros_ Ns Em type Ns () +family of functions and the +.Fn stdc_count_zeros +type-generic macro were added in +.Fx 15.1. +.Sh AUTHOR +.An Robert Clausecker Aq Mt fuz@FreeBSD.org diff --git a/lib/libc/stdbit/stdc_first_leading_one.3 b/lib/libc/stdbit/stdc_first_leading_one.3 new file mode 100644 index 000000000000..48f62d997043 --- /dev/null +++ b/lib/libc/stdbit/stdc_first_leading_one.3 @@ -0,0 +1,93 @@ +.\" +.\" Copyright (c) 2025 Robert Clausecker +.\" +.\" SPDX-License-Identifier: BSD-2-Clause +.\" +.Dd November 9, 2025 +.Dt STDC_FIRST_LEADING_ONE 3 +.Os +.Sh NAME +.Nm stdc_first_leading_one +.Nd find the first leading one in an integer +.Sh SYNOPSIS +.Lb libc +.In stdbit.h +.Ft unsigned int +.Fn stdc_first_leading_one_uc "unsigned char value" +.Ft unsigned int +.Fn stdc_first_leading_one_us "unsigned short value" +.Ft unsigned int +.Fn stdc_first_leading_one_ui "unsigned int value" +.Ft unsigned int +.Fn stdc_first_leading_one_ul "unsigned long value" +.Ft unsigned int +.Fn stdc_first_leading_one_ull "unsigned long long value" +.Ft unsigned int +.Fn stdc_first_leading_one "value" +.Sh DESCRIPTION +The +.Nm stdc_first_leading_one_ Ns Em type Ns () +family of functions returns the index of the most significant set bit in +.Fa value , +where +.Fa value +is of type +.Va unsigned char , +.Va unsigned short , +.Va unsigned int , +.Va unsigned long , +or +.Va unsigned long long +for +.Em type +being +.Sy uc , +.Sy us , +.Sy ui , +.Sy ul , +or +.Sy ull +respectively. +The +.Fn stdc_first_leading_one "value" +type-generic macro picks the appropriate +.Nm stdc_first_leading_one_ Ns Em type Ns () +function based on the type of +.Fa value . +.Sh RETURN VALUES +Returns the index of the most significant set bit in +.Fa value . +The bits are numbered such that the most significant bit has number\~1, +and the least significant bit has number +.Ms w +where +.Ms w +is the number of bits in the type of +.Fa value . +If no bits are set in +.Fa value +(i.\^e.\& +.Fa value +is zero), zero is returned. +.Sh SEE ALSO +.Xr fls 3 , +.Xr stdbit 3 , +.Xr stdc_leading_zeros 3 , +.Xr stdc_first_leading_zero 3 , +.Xr stdc_first_trailing_one 3 +.Sh STANDARDS +The +.Nm stdc_first_leading_one_ Ns Em type Ns () +family of functions and the +.Fn stdc_first_leading_one +type-generic macro conform to +.St -isoC-2023 . +.Sh HISTORY +The +.Nm stdc_first_leading_one_ Ns Em type Ns () +family of functions and the +.Fn stdc_first_leading_one +type-generic macro were added in +.Fx 15.1. +.Sh AUTHOR +.An Robert Clausecker Aq Mt fuz@FreeBSD.org diff --git a/lib/libc/stdbit/stdc_first_leading_zero.3 b/lib/libc/stdbit/stdc_first_leading_zero.3 new file mode 100644 index 000000000000..317b6263acb0 --- /dev/null +++ b/lib/libc/stdbit/stdc_first_leading_zero.3 @@ -0,0 +1,92 @@ +.\" +.\" Copyright (c) 2025 Robert Clausecker +.\" +.\" SPDX-License-Identifier: BSD-2-Clause +.\" +.Dd November 9, 2025 +.Dt STDC_FIRST_LEADING_ZERO 3 +.Os +.Sh NAME +.Nm stdc_first_leading_zero +.Nd find the first leading zero in an integer +.Sh SYNOPSIS +.Lb libc +.In stdbit.h +.Ft unsigned int +.Fn stdc_first_leading_zero_uc "unsigned char value" +.Ft unsigned int +.Fn stdc_first_leading_zero_us "unsigned short value" +.Ft unsigned int +.Fn stdc_first_leading_zero_ui "unsigned int value" +.Ft unsigned int +.Fn stdc_first_leading_zero_ul "unsigned long value" +.Ft unsigned int +.Fn stdc_first_leading_zero_ull "unsigned long long value" +.Ft unsigned int +.Fn stdc_first_leading_zero "value" +.Sh DESCRIPTION +The +.Nm stdc_first_leading_zero_ Ns Em type Ns () +family of functions returns the index of the most significant clear bit in +.Fa value , +where +.Fa value +is of type +.Va unsigned char , +.Va unsigned short , +.Va unsigned int , +.Va unsigned long , +or +.Va unsigned long long +for +.Em type +being +.Sy uc , +.Sy us , +.Sy ui , +.Sy ul , +or +.Sy ull +respectively. +The +.Fn stdc_first_leading_zero "value" +type-generic macro picks the appropriate +.Nm stdc_first_leading_zero_ Ns Em type Ns () +function based on the type of +.Fa value . +.Sh RETURN VALUES +Returns the index of the most significant clear bit in +.Fa value . +The bits are numbered such that the most significant bit has number\~1, +and the least significant bit has number +.Ms w +where +.Ms w +is the number of bits in the type of +.Fa value . +If no bits are clear in +.Fa value +(i.\^e.\& +.Fa value +is the bitwise complement of zero), zero is returned. +.Sh SEE ALSO +.Xr stdbit 3 , +.Xr stdc_leading_ones 3 , +.Xr stdc_first_leading_ones 3 , +.Xr stdc_first_trailing_zero 3 +.Sh STANDARDS +The +.Nm stdc_first_leading_zero_ Ns Em type Ns () +family of functions and the +.Fn stdc_first_leading_zero +type-generic macro conform to +.St -isoC-2023 . +.Sh HISTORY +The +.Nm stdc_first_leading_zero_ Ns Em type Ns () +family of functions and the +.Fn stdc_first_leading_zero +type-generic macro were added in +.Fx 15.1. +.Sh AUTHOR +.An Robert Clausecker Aq Mt fuz@FreeBSD.org diff --git a/lib/libc/stdbit/stdc_first_trailing_one.3 b/lib/libc/stdbit/stdc_first_trailing_one.3 new file mode 100644 index 000000000000..0b590ac39732 --- /dev/null +++ b/lib/libc/stdbit/stdc_first_trailing_one.3 @@ -0,0 +1,110 @@ +.\" +.\" Copyright (c) 2025 Robert Clausecker +.\" +.\" SPDX-License-Identifier: BSD-2-Clause +.\" +.Dd November 9, 2025 +.Dt STDC_FIRST_TRAILING_ONE 3 +.Os +.Sh NAME +.Nm stdc_first_trailing_one +.Nd find the first trailing one in an integer +.Sh SYNOPSIS +.Lb libc +.In stdbit.h +.Ft unsigned int +.Fn stdc_first_trailing_one_uc "unsigned char value" +.Ft unsigned int +.Fn stdc_first_trailing_one_us "unsigned short value" +.Ft unsigned int +.Fn stdc_first_trailing_one_ui "unsigned int value" +.Ft unsigned int +.Fn stdc_first_trailing_one_ul "unsigned long value" +.Ft unsigned int +.Fn stdc_first_trailing_one_ull "unsigned long long value" +.Ft unsigned int +.Fn stdc_first_trailing_one "value" +.Sh DESCRIPTION +The +.Nm stdc_first_trailing_one_ Ns Em type Ns () +family of functions returns the index of the least significant set bit in +.Fa value , +where +.Fa value +is of type +.Va unsigned char , +.Va unsigned short , +.Va unsigned int , +.Va unsigned long , +or +.Va unsigned long long +for +.Em type +being +.Sy uc , +.Sy us , +.Sy ui , +.Sy ul , +or +.Sy ull +respectively. +The +.Fn stdc_first_trailing_one "value" +type-generic macro picks the appropriate +.Nm stdc_first_trailing_one_ Ns Em type Ns () +function based on the type of +.Fa value . +.Pp +Functions +.Fn stdc_first_trailing_one_ui , +.Fn stdc_first_trailing_one_ul , +and +.Fn stdc_first_trailing_one_ull +are identical to +.Bx 4.3 +functions +.Xr ffs 3 , +.Xr ffsl 3 , +and +.Xr ffsll 3 +respectively, except for operating on unsigned instead of signed values. +.Sh RETURN VALUES +Returns the index of the least significant set bit in +.Fa value . +The bits are numbered such that the least significant bit has number\~1, +and the most significant bit has number +.Ms w +where +.Ms w +is the number of bits in the type of +.Fa value . +If no bits are set in +.Fa value +(i.\^e.\& +.Fa value +is zero), one is returned. +.Sh SEE ALSO +.Xr bit_ffs 3 , +.Xr ffs 3 , +.Xr ffsl 3 , +.Xr ffsll 3 , +.Xr stdbit 3 , +.Xr stdc_trailing_zeros 3 , +.Xr stdc_first_trailing_zero 3 , +.Xr stdc_first_leading_one 3 +.Sh STANDARDS +The +.Nm stdc_first_trailing_one_ Ns Em type Ns () +family of functions and the +.Fn stdc_first_trailing_one +type-generic macro conform to +.St -isoC-2023 . +.Sh HISTORY +The +.Nm stdc_first_trailing_one_ Ns Em type Ns () +family of functions and the +.Fn stdc_first_trailing_one +type-generic macro were added in +.Fx 15.1. +.Sh AUTHOR +.An Robert Clausecker Aq Mt fuz@FreeBSD.org diff --git a/lib/libc/stdbit/stdc_first_trailing_zero.3 b/lib/libc/stdbit/stdc_first_trailing_zero.3 new file mode 100644 index 000000000000..bc4f7982d765 --- /dev/null +++ b/lib/libc/stdbit/stdc_first_trailing_zero.3 @@ -0,0 +1,93 @@ +.\" +.\" Copyright (c) 2025 Robert Clausecker +.\" +.\" SPDX-License-Identifier: BSD-2-Clause +.\" +.Dd November 9, 2025 +.Dt STDC_FIRST_TRAILING_ZERO 3 +.Os +.Sh NAME +.Nm stdc_first_trailing_zero +.Nd find the first trailing zero in an integer +.Sh SYNOPSIS +.Lb libc +.In stdbit.h +.Ft unsigned int +.Fn stdc_first_trailing_zero_uc "unsigned char value" +.Ft unsigned int +.Fn stdc_first_trailing_zero_us "unsigned short value" +.Ft unsigned int +.Fn stdc_first_trailing_zero_ui "unsigned int value" +.Ft unsigned int +.Fn stdc_first_trailing_zero_ul "unsigned long value" +.Ft unsigned int +.Fn stdc_first_trailing_zero_ull "unsigned long long value" +.Ft unsigned int +.Fn stdc_first_trailing_zero "value" +.Sh DESCRIPTION +The +.Nm stdc_first_trailing_zero_ Ns Em type Ns () +family of functions returns the index of the least significant clear bit in +.Fa value , +where +.Fa value +is of type +.Va unsigned char , +.Va unsigned short , +.Va unsigned int , +.Va unsigned long , +or +.Va unsigned long long +for +.Em type +being +.Sy uc , +.Sy us , +.Sy ui , +.Sy ul , +or +.Sy ull +respectively. +The +.Fn stdc_first_trailing_zero "value" +type-generic macro picks the appropriate +.Nm stdc_first_trailing_zero_ Ns Em type Ns () +function based on the type of +.Fa value . +.Sh RETURN VALUES +Returns the index of the least significant clear bit in +.Fa value . +The bits are numbered such that the least significant bit has number\~1, +and the most significant bit has number +.Ms w +where +.Ms w +is the number of bits in the type of +.Fa value . +If no bits are clear in +.Fa value +(i.\^e.\& +.Fa value +is the bitwise complement of zero), zero is returned. +.Sh SEE ALSO +.Xr bit_ffc 3 , +.Xr stdbit 3 , +.Xr stdc_trailing_ones 3 , +.Xr stdc_first_trailing_ones 3 , +.Xr stdc_first_leading_zero 3 +.Sh STANDARDS +The +.Nm stdc_first_trailing_zero_ Ns Em type Ns () +family of functions and the +.Fn stdc_first_trailing_zero +type-generic macro conform to +.St -isoC-2023 . +.Sh HISTORY +The +.Nm stdc_first_trailing_zero_ Ns Em type Ns () +family of functions and the +.Fn stdc_first_trailing_zero +type-generic macro were added in +.Fx 15.1. +.Sh AUTHOR +.An Robert Clausecker Aq Mt fuz@FreeBSD.org diff --git a/lib/libc/stdbit/stdc_has_single_bit.3 b/lib/libc/stdbit/stdc_has_single_bit.3 new file mode 100644 index 000000000000..8f82c552216a --- /dev/null +++ b/lib/libc/stdbit/stdc_has_single_bit.3 @@ -0,0 +1,98 @@ +.\" +.\" Copyright (c) 2025 Robert Clausecker +.\" +.\" SPDX-License-Identifier: BSD-2-Clause +.\" +.Dd November 9, 2025 +.Dt STDC_HAS_SINGLE_BIT 3 +.Os +.Sh NAME +.Nm stdc_has_single_bit +.Nd check for single bit set +.Sh SYNOPSIS +.Lb libc +.In stdbit.h +.Ft bool +.Fn stdc_has_single_bit_uc "unsigned char value" +.Ft bool +.Fn stdc_has_single_bit_us "unsigned short value" +.Ft bool +.Fn stdc_has_single_bit_ui "unsigned int value" +.Ft bool +.Fn stdc_has_single_bit_ul "unsigned long value" +.Ft bool +.Fn stdc_has_single_bit_ull "unsigned long long value" +.Ft bool +.Fn stdc_has_single_bit "value" +.Sh DESCRIPTION +The +.Nm stdc_has_single_bit_ Ns Em type Ns () +family of functions checks if there is exactly one bit +set in +.Fa value , +where +.Fa value +is of type +.Va unsigned char , +.Va unsigned short , +.Va unsigned int , *** 429 LINES SKIPPED *** From nobody Thu Jan 1 22:21:47 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dj1Ww2mq1z6MntM for ; Thu, 01 Jan 2026 22:21:48 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dj1Wv64Xtz3C1q for ; Thu, 01 Jan 2026 22:21:47 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767306107; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=3UuokAta280nxoEMazgidz6leINur8wspyyvN84pblM=; b=UZ9EGIlUko7Efhotlj4AcIDDmXuRY1c8BQ3p6cwuttvO42BpwCcrgP64X93fCFKBrHBJhY mnSDvE7ZlBIfQH965fnQDAFBr9qf6jvW6zoleko8uKCyRoUcEXGZciakhyikadxSwX8X6+ S1VrcbHhHWMfz0gLHnhCEtLXdQXxhvNe8NxZmuDSvcJS+wIjk2P0KLP5vM++dQOp4qbD/s tXGdf0thw+8bV6ySYY7YHQGQ87CSxN/u2rbXVBrkPs+I1Y2jpqlTc/th9PZvHG3JBbvL8s 2CTEBdAHtk9Lc1de3zf76x4qZwNiZQQ5e5TUsEjSM8Ihno/m0y3Sw3uOXa1MoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767306107; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=3UuokAta280nxoEMazgidz6leINur8wspyyvN84pblM=; b=byhTOjfEXGDcd2/T81fBLBKaKFFfAU6l5farm4uIbE24TB+IJieo121PCZDmr2jHkVUtBJ fsQkxgTjU2SG8XRNk9mxUv/AuPtyp4ByMLBA/eYCMbmxWt0lV3/j7vbnRCDDqIhQsBb9HB MM73kIwIGWVO2qAO8xjX4s5Yqe+cpZVJSxTZzaM+gv3kMJDFQOwG7UQbFoNLz7mY72niX8 P2IeyiXrucT6vTAwALBFP4+cntRP+FwZHZz2jll9+H0uhkuMCr123WHcGBRqWZJXZhBnaS dSdLT3/2S/tNKUiwOXqEIEY8xQ9nPrPyaCZnuQIHdoE92xt/VHcI37A+q1XPcA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767306107; a=rsa-sha256; cv=none; b=J+arplXDOuYCwiK2tpZ+3ffo3UixyIe1ucwUf9M0MTDBGe9a2sXh17RJLEDtv3daQehVWH nvK+bLYMKWXa5miJ+jIIkkgjFD3/dvKUsXbV1ncsfi0U0wkBV2E5U/BF8VfsdjdxE/9wed y45gdAhjv76BwYKqLXPc8o4OyuYrRjirKrbgcae7MpIp3BPVO0ZU8HZT4QdpMByP5DYMnp m4Plz0SuKvTaDV4WMZvSsXSvrKvOY8xIpvs5r7fhj6MViQdLcp5rSxyZCy1w18OXspgEpk DvuUINh9tFIPuf92IcN8qdloajIgw90BApW/UmSE0sB5xD5x8AmtQYoNnia2Yw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dj1Wv5dPszrrx for ; Thu, 01 Jan 2026 22:21:47 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id ed2b by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 01 Jan 2026 22:21:47 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Cc: Jessica Clarke From: Robert Clausecker Subject: git: 41b346a6e3a7 - stable/15 - libc: Fix TESTSDIR for new stdbit tests List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: fuz X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 41b346a6e3a71af8654706fba8f8e25ffdbc37c9 Auto-Submitted: auto-generated Date: Thu, 01 Jan 2026 22:21:47 +0000 Message-Id: <6956f37b.ed2b.989727b@gitrepo.freebsd.org> The branch stable/15 has been updated by fuz: URL: https://cgit.FreeBSD.org/src/commit/?id=41b346a6e3a71af8654706fba8f8e25ffdbc37c9 commit 41b346a6e3a71af8654706fba8f8e25ffdbc37c9 Author: Jessica Clarke AuthorDate: 2025-12-01 14:06:21 +0000 Commit: Robert Clausecker CommitDate: 2026-01-01 20:57:33 +0000 libc: Fix TESTSDIR for new stdbit tests Otherwise the directory created by etc/mtree/BSD.tests.dist, which is where these belong, and referred to by the generated Kyuafile for /usr/tests/lib/libc (via stdbit's existence in TESTS_SUBDIRS), ends up empty with no Kyuafile, which is an error for kyua. Reported by: kp Fixes: 2fb8cbc6ef1b ("libc/tests: add stdbit test framework and unit tests") (cherry picked from commit 5f529f9e292a30c065c316ed5fd0d23e07b26e5c) --- lib/libc/tests/stdbit/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/libc/tests/stdbit/Makefile b/lib/libc/tests/stdbit/Makefile index 37450056007a..8dbc86528de3 100644 --- a/lib/libc/tests/stdbit/Makefile +++ b/lib/libc/tests/stdbit/Makefile @@ -1,3 +1,5 @@ +TESTSDIR= ${TESTSBASE}/lib/libc/stdbit + # ensure libc functions are tested, not clang's builtins CFLAGS+= -fno-builtin From nobody Thu Jan 1 22:21:46 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dj1Wv1hSKz6Mnx0 for ; Thu, 01 Jan 2026 22:21:47 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dj1Wt5Kj4z3C1Y for ; Thu, 01 Jan 2026 22:21:46 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767306106; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Q9CPJR2k3VXDUD6PXWftyuJQfA6A2pLDbKrHymzLseg=; b=y1F93EtzQIk5q7kaOv+oNkzajyK9kRjAk/qXVulKfA/vClcKsrtxejji3yglVvnePUvlis aabjnLkK7U8y73b8d0qmNeN1U3YH/m6F7cNnYSCKCRT7j8nW3OVdPhI3nBN3Z9mysS6CX+ uUpXna+kM38UvGNgJnJka9hXt5YIY1iIPaSrSFlOZiUpsO6DshD7cM7zHue0dYW2tiJBiE oNyuD6cmsZDPvX7Sr5wv601brvMOKIe2bjVGTCztT9dF0hw5uuBzJtDcm7K6oz/CjBMeR7 XaHmJkE+643JmB/YccDcf2v5S5c6cQf/tR1UKdmSxnsNzEs2/HUN4EOQI0UAVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767306106; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Q9CPJR2k3VXDUD6PXWftyuJQfA6A2pLDbKrHymzLseg=; b=M2gaJOcVsJhvq8mvgmEYqfZ4NEBC/8p2En+dTZh/h9+iEgdIQtSGNhp9o2Y/Obk7PaWY6u OW/eV0B0JxK6VNYlGqqJUCZRiQsUekrQ9Hg5ciYn6D006aVEBF6owgYLvdVhkQd93VL0jQ ZVBRSOjJNOOZgIhGUFsVbkddA1izZAaDvHi+/gKk6narsOx63dnYZt2iNYijqShRGp/qlf 8zsgxhf4fu0hDaRIskDnp+4iGKGXWFCfztkICLrVZSfUOrtB96+iT/S817FCPWoA8PL2CN wcoTkx25hbk7tp/Pfj+Po6BIJAYlMIzPH/ilA53FtfEnbqwQbUmZlN8Swg45Bw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767306106; a=rsa-sha256; cv=none; b=Sg904tYTMueCfCNas32aaH4lzChAD2LGYILjrpvWFvegQxnuyqiGdXzDtYb2Ly4QkKesEN TCw93sCvuq0lpm9V5ooNg8wGqf1vGrEMLZdfwSbUdyLkaOZ6ifIlc3/6bO+dkvPxiM9d68 SVl9Sxx5GDWuTRJyx16NZLTvz7cpkcN8PFIirgjnyRIQUCZYlGasaIqykwZL51MRE6YU1/ dYclTVj4fzkNKsJ+IKPHN1EPql10Tgos9+v3YTe8gZ0xSGXcyVfmFDOWMzkJuiru1xeYhd 1Kpn5uwztnN/12ZjzjJ9h1pHmNyCpTp19lhcSsJWjRN8lZw0bfWHDr49kxf55w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dj1Wt4t5mzrLX for ; Thu, 01 Jan 2026 22:21:46 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id c958 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 01 Jan 2026 22:21:46 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Robert Clausecker Subject: git: c9ec3fc0d507 - stable/15 - libc/tests: add stdbit test framework and unit tests List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: fuz X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: c9ec3fc0d5072b2d23d7d3dbd6dd2cedf4c7938d Auto-Submitted: auto-generated Date: Thu, 01 Jan 2026 22:21:46 +0000 Message-Id: <6956f37a.c958.600f3a71@gitrepo.freebsd.org> The branch stable/15 has been updated by fuz: URL: https://cgit.FreeBSD.org/src/commit/?id=c9ec3fc0d5072b2d23d7d3dbd6dd2cedf4c7938d commit c9ec3fc0d5072b2d23d7d3dbd6dd2cedf4c7938d Author: Robert Clausecker AuthorDate: 2025-11-18 17:33:12 +0000 Commit: Robert Clausecker CommitDate: 2026-01-01 20:57:32 +0000 libc/tests: add stdbit test framework and unit tests This adds unit tests for all 70 functions in . I'm sorry for the test framework, but it makes it so I don't have to write 70 unit tests by hand. Reviewed by: adrian, des Approved by: markj (mentor) MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D53660 (cherry picked from commit 2fb8cbc6ef1b3cc6cd60e5db07f8305623f9b044) --- etc/mtree/BSD.tests.dist | 2 + lib/libc/tests/Makefile | 1 + lib/libc/tests/stdbit/Makefile | 19 +++++ lib/libc/tests/stdbit/stdbit-test-framework.c | 80 ++++++++++++++++++++++ lib/libc/tests/stdbit/stdbit-test-kernel.c | 68 ++++++++++++++++++ lib/libc/tests/stdbit/stdc_bit_ceil_test.c | 20 ++++++ lib/libc/tests/stdbit/stdc_bit_floor_test.c | 25 +++++++ lib/libc/tests/stdbit/stdc_bit_width_test.c | 22 ++++++ lib/libc/tests/stdbit/stdc_count_ones_test.c | 22 ++++++ lib/libc/tests/stdbit/stdc_count_zeros_test.c | 23 +++++++ .../tests/stdbit/stdc_first_leading_one_test.c | 29 ++++++++ .../tests/stdbit/stdc_first_leading_zero_test.c | 30 ++++++++ .../tests/stdbit/stdc_first_trailing_one_test.c | 26 +++++++ .../tests/stdbit/stdc_first_trailing_zero_test.c | 27 ++++++++ lib/libc/tests/stdbit/stdc_has_single_bit_test.c | 21 ++++++ lib/libc/tests/stdbit/stdc_leading_ones_test.c | 26 +++++++ lib/libc/tests/stdbit/stdc_leading_zeros_test.c | 26 +++++++ lib/libc/tests/stdbit/stdc_trailing_ones_test.c | 23 +++++++ lib/libc/tests/stdbit/stdc_trailing_zeros_test.c | 23 +++++++ 19 files changed, 513 insertions(+) diff --git a/etc/mtree/BSD.tests.dist b/etc/mtree/BSD.tests.dist index 641846ebb603..89f98f5d9a29 100644 --- a/etc/mtree/BSD.tests.dist +++ b/etc/mtree/BSD.tests.dist @@ -382,6 +382,8 @@ .. ssp .. + stdbit + .. stdio .. stdlib diff --git a/lib/libc/tests/Makefile b/lib/libc/tests/Makefile index 975c895770ee..ae8e0e937676 100644 --- a/lib/libc/tests/Makefile +++ b/lib/libc/tests/Makefile @@ -14,6 +14,7 @@ TESTS_SUBDIRS+= resolv TESTS_SUBDIRS+= rpc TESTS_SUBDIRS+= secure TESTS_SUBDIRS+= setjmp +TESTS_SUBDIRS+= stdbit TESTS_SUBDIRS+= stdio TESTS_SUBDIRS+= stdlib TESTS_SUBDIRS+= stdtime diff --git a/lib/libc/tests/stdbit/Makefile b/lib/libc/tests/stdbit/Makefile new file mode 100644 index 000000000000..37450056007a --- /dev/null +++ b/lib/libc/tests/stdbit/Makefile @@ -0,0 +1,19 @@ +# ensure libc functions are tested, not clang's builtins +CFLAGS+= -fno-builtin + +ATF_TESTS_C+= stdc_bit_ceil_test \ + stdc_bit_floor_test \ + stdc_bit_width_test \ + stdc_count_ones_test \ + stdc_count_zeros_test \ + stdc_first_leading_one_test \ + stdc_first_leading_zero_test \ + stdc_first_trailing_one_test \ + stdc_first_trailing_zero_test \ + stdc_has_single_bit_test \ + stdc_leading_ones_test \ + stdc_leading_zeros_test \ + stdc_trailing_ones_test \ + stdc_trailing_zeros_test + +.include diff --git a/lib/libc/tests/stdbit/stdbit-test-framework.c b/lib/libc/tests/stdbit/stdbit-test-framework.c new file mode 100644 index 000000000000..368b38fb4745 --- /dev/null +++ b/lib/libc/tests/stdbit/stdbit-test-framework.c @@ -0,0 +1,80 @@ +/* + * Copyright (c) 2025 Robert Clausecker + * + * SPDX-License-Identifier: BSD-2-Clause + */ + +/* + * Test framework for stdbit functions. + * Requires the following macros to be defined: + * + * FUNCSTEM -- name of the function without type suffix + * MKREFFUNC(name, type) -- macro to generate a reference + * implementation of the function as a static function + * named name with give argument type. + */ + +#include +#include +#include +#include +#include + +#define ATF_TC_WITHOUT_HEAD1(stem, suffix) ATF_TC_WITHOUT_HEAD2(__CONCAT(stem, suffix)) +#define ATF_TC_WITHOUT_HEAD2(case) ATF_TC_WITHOUT_HEAD(case) +#define ATF_TC_BODY1(stem, suffix, tc) ATF_TC_BODY2(__CONCAT(stem, suffix), tc) +#define ATF_TC_BODY2(case, tc) ATF_TC_BODY(case, tc) + +#define SUFFIX _uc +#define TYPE unsigned char +#define TYPE_WIDTH UCHAR_WIDTH +#include "stdbit-test-kernel.c" +#undef TYPE_WIDTH +#undef TYPE +#undef SUFFIX + +#define SUFFIX _us +#define TYPE unsigned short +#define TYPE_WIDTH USHRT_WIDTH +#include "stdbit-test-kernel.c" +#undef TYPE_WIDTH +#undef TYPE +#undef SUFFIX + +#define SUFFIX _ui +#define TYPE unsigned int +#define TYPE_WIDTH UINT_WIDTH +#include "stdbit-test-kernel.c" +#undef TYPE_WIDTH +#undef TYPE +#undef SUFFIX + +#define SUFFIX _ul +#define TYPE unsigned long +#define TYPE_WIDTH ULONG_WIDTH +#include "stdbit-test-kernel.c" +#undef TYPE_WIDTH +#undef TYPE +#undef SUFFIX + +#define SUFFIX _ull +#define TYPE unsigned long long +#define TYPE_WIDTH ULLONG_WIDTH +#include "stdbit-test-kernel.c" +#undef TYPE_WIDTH +#undef TYPE +#undef SUFFIX + +#define ADD_CASE(stem, suffix) ADD_CASE1(__CONCAT(stem, suffix)) +#define ADD_CASE1(case) ATF_TP_ADD_TC(tp, case) + +ATF_TP_ADD_TCS(tp) +{ + ADD_CASE(FUNCSTEM, _uc); + ADD_CASE(FUNCSTEM, _us); + ADD_CASE(FUNCSTEM, _ui); + ADD_CASE(FUNCSTEM, _ul); + ADD_CASE(FUNCSTEM, _ull); + + return (atf_no_error()); +} diff --git a/lib/libc/tests/stdbit/stdbit-test-kernel.c b/lib/libc/tests/stdbit/stdbit-test-kernel.c new file mode 100644 index 000000000000..d584e391ff6f --- /dev/null +++ b/lib/libc/tests/stdbit/stdbit-test-kernel.c @@ -0,0 +1,68 @@ +/* + * Copyright (c) 2025 Robert Clausecker + * + * SPDX-License-Identifier: BSD-2-Clause + */ + +/* + * test kernel for stdbit functions. + * Requires the following macros to be defined: + * + * FUNCSTEM -- stem of the function name + * SUFFIX -- type suffic + * TYPE -- argument type + * MKREFFUNC(ref, type) -- reference function builder + */ + +#define FUNC __CONCAT(FUNCSTEM, SUFFIX) +#define REF __CONCAT(FUNCSTEM, __CONCAT(SUFFIX, _ref)) + +MKREFFUNC(REF, TYPE) + +ATF_TC_WITHOUT_HEAD1(FUNCSTEM, SUFFIX); +ATF_TC_BODY1(FUNCSTEM, SUFFIX, tc) +{ + uintmax_t has, want; + size_t i, j; + TYPE value; + + /* test all single-bit patterns */ + for (i = 0; i < TYPE_WIDTH; i++) { + value = (TYPE)1 << i; + has = FUNC(value); + want = REF(value); + ATF_CHECK_EQ_MSG(has, want, "%s(%#jx) == %#jx != %#jx == %s(%#jx)", + __XSTRING(FUNC), (uintmax_t)value, has, want, __XSTRING(REF), (uintmax_t)value); + } + + /* test all double-bit patterns */ + for (i = 0; i < TYPE_WIDTH; i++) { + for (j = 0; j < i; j++) { + value = (TYPE)1 << i | (TYPE)1 << j; + has = FUNC(value); + want = REF(value); + ATF_CHECK_EQ_MSG(has, want, "%s(%#jx) == %#jx != %#jx == %s(%#jx)", + __XSTRING(FUNC), (uintmax_t)value, has, want, __XSTRING(REF), (uintmax_t)value); + } + } + + /* test all barber-pole patterns */ + value = ~(TYPE)0; + for (i = 0; i < TYPE_WIDTH; i++) { + has = FUNC(value); + want = REF(value); + ATF_CHECK_EQ_MSG(has, want, "%s(%#jx) == %#jx != %#jx == %s(%#jx)", + __XSTRING(FUNC), (uintmax_t)value, has, want, __XSTRING(REF), (uintmax_t)value); + + value = ~value; + has = FUNC(value); + want = REF(value); + ATF_CHECK_EQ_MSG(has, want, "%s(%#jx) == %#jx != %#jx == %s(%#jx)", + __XSTRING(FUNC), (uintmax_t)value, has, want, __XSTRING(REF), (uintmax_t)value); + + value = ~value << 1; + } +} + +#undef REF +#undef FUNC diff --git a/lib/libc/tests/stdbit/stdc_bit_ceil_test.c b/lib/libc/tests/stdbit/stdc_bit_ceil_test.c new file mode 100644 index 000000000000..0495da55c5d9 --- /dev/null +++ b/lib/libc/tests/stdbit/stdc_bit_ceil_test.c @@ -0,0 +1,20 @@ +/* + * Copyright (c) 2025 Robert Clausecker + * + * SPDX-License-Identifier: BSD-2-Clause + */ + +#define FUNCSTEM stdc_bit_ceil +#define MKREFFUNC(name, type) \ + static type \ + name(type value) \ + { \ + type ceil = 1; \ + \ + while (ceil < value && ceil != 0) \ + ceil <<= 1; \ + \ + return (ceil); \ + } + +#include "stdbit-test-framework.c" diff --git a/lib/libc/tests/stdbit/stdc_bit_floor_test.c b/lib/libc/tests/stdbit/stdc_bit_floor_test.c new file mode 100644 index 000000000000..a2c5b5f7d8ce --- /dev/null +++ b/lib/libc/tests/stdbit/stdc_bit_floor_test.c @@ -0,0 +1,25 @@ +/* + * Copyright (c) 2025 Robert Clausecker + * + * SPDX-License-Identifier: BSD-2-Clause + */ + +#define FUNCSTEM stdc_bit_floor +#define MKREFFUNC(name, type) \ + static type \ + name(type value) \ + { \ + type floor = 1; \ + \ + if (value == 0) \ + return (0); \ + \ + while (value != 1) { \ + floor <<= 1; \ + value >>= 1; \ + } \ + \ + return (floor); \ + } + +#include "stdbit-test-framework.c" diff --git a/lib/libc/tests/stdbit/stdc_bit_width_test.c b/lib/libc/tests/stdbit/stdc_bit_width_test.c new file mode 100644 index 000000000000..bfcb2b3bd779 --- /dev/null +++ b/lib/libc/tests/stdbit/stdc_bit_width_test.c @@ -0,0 +1,22 @@ +/* + * Copyright (c) 2025 Robert Clausecker + * + * SPDX-License-Identifier: BSD-2-Clause + */ + +#define FUNCSTEM stdc_bit_width +#define MKREFFUNC(name, type) \ + static unsigned \ + name(type value) \ + { \ + unsigned width = 0; \ + \ + while (value != 0) { \ + value >>= 1; \ + width++; \ + } \ + \ + return (width); \ + } + +#include "stdbit-test-framework.c" diff --git a/lib/libc/tests/stdbit/stdc_count_ones_test.c b/lib/libc/tests/stdbit/stdc_count_ones_test.c new file mode 100644 index 000000000000..9093edde495b --- /dev/null +++ b/lib/libc/tests/stdbit/stdc_count_ones_test.c @@ -0,0 +1,22 @@ +/* + * Copyright (c) 2025 Robert Clausecker + * + * SPDX-License-Identifier: BSD-2-Clause + */ + +#define FUNCSTEM stdc_count_ones +#define MKREFFUNC(name, type) \ + static unsigned \ + name(type value) \ + { \ + unsigned count = 0; \ + \ + while (value != 0) { \ + count += value & 1; \ + value >>= 1; \ + } \ + \ + return (count); \ + } + +#include "stdbit-test-framework.c" diff --git a/lib/libc/tests/stdbit/stdc_count_zeros_test.c b/lib/libc/tests/stdbit/stdc_count_zeros_test.c new file mode 100644 index 000000000000..a82de6696a64 --- /dev/null +++ b/lib/libc/tests/stdbit/stdc_count_zeros_test.c @@ -0,0 +1,23 @@ +/* + * Copyright (c) 2025 Robert Clausecker + * + * SPDX-License-Identifier: BSD-2-Clause + */ + +#define FUNCSTEM stdc_count_zeros +#define MKREFFUNC(name, type) \ + static unsigned \ + name(type value) \ + { \ + unsigned count = 0; \ + \ + value = ~value; \ + while (value != 0) { \ + count += value & 1; \ + value >>= 1; \ + } \ + \ + return (count); \ + } + +#include "stdbit-test-framework.c" diff --git a/lib/libc/tests/stdbit/stdc_first_leading_one_test.c b/lib/libc/tests/stdbit/stdc_first_leading_one_test.c new file mode 100644 index 000000000000..7312789262ea --- /dev/null +++ b/lib/libc/tests/stdbit/stdc_first_leading_one_test.c @@ -0,0 +1,29 @@ +/* + * Copyright (c) 2025 Robert Clausecker + * + * SPDX-License-Identifier: BSD-2-Clause + */ + +#define FUNCSTEM stdc_first_leading_one +#define MKREFFUNC(name, type) \ + static unsigned \ + name(type value) \ + { \ + type bit = 1; \ + unsigned pos = 1; \ + \ + if (value == 0) \ + return (0); \ + \ + while ((type)(bit << 1) != 0) \ + bit <<= 1; \ + \ + while ((bit & value) == 0) { \ + bit >>= 1; \ + pos++; \ + } \ + \ + return (pos); \ + } + +#include "stdbit-test-framework.c" diff --git a/lib/libc/tests/stdbit/stdc_first_leading_zero_test.c b/lib/libc/tests/stdbit/stdc_first_leading_zero_test.c new file mode 100644 index 000000000000..df2a1f4b8673 --- /dev/null +++ b/lib/libc/tests/stdbit/stdc_first_leading_zero_test.c @@ -0,0 +1,30 @@ +/* + * Copyright (c) 2025 Robert Clausecker + * + * SPDX-License-Identifier: BSD-2-Clause + */ + +#define FUNCSTEM stdc_first_leading_zero +#define MKREFFUNC(name, type) \ + static unsigned \ + name(type value) \ + { \ + type bit = 1; \ + unsigned pos = 1; \ + \ + value = ~value; \ + if (value == 0) \ + return (0); \ + \ + while ((type)(bit << 1) != 0) \ + bit <<= 1; \ + \ + while ((bit & value) == 0) { \ + bit >>= 1; \ + pos++; \ + } \ + \ + return (pos); \ + } + +#include "stdbit-test-framework.c" diff --git a/lib/libc/tests/stdbit/stdc_first_trailing_one_test.c b/lib/libc/tests/stdbit/stdc_first_trailing_one_test.c new file mode 100644 index 000000000000..43284786cd0e --- /dev/null +++ b/lib/libc/tests/stdbit/stdc_first_trailing_one_test.c @@ -0,0 +1,26 @@ +/* + * Copyright (c) 2025 Robert Clausecker + * + * SPDX-License-Identifier: BSD-2-Clause + */ + +#define FUNCSTEM stdc_first_trailing_one +#define MKREFFUNC(name, type) \ + static unsigned \ + name(type value) \ + { \ + type bit = 1; \ + unsigned pos = 1; \ + \ + if (value == 0) \ + return (0); \ + \ + while ((bit & value) == 0) { \ + bit <<= 1; \ + pos++; \ + } \ + \ + return (pos); \ + } + +#include "stdbit-test-framework.c" diff --git a/lib/libc/tests/stdbit/stdc_first_trailing_zero_test.c b/lib/libc/tests/stdbit/stdc_first_trailing_zero_test.c new file mode 100644 index 000000000000..ab2a995dcc86 --- /dev/null +++ b/lib/libc/tests/stdbit/stdc_first_trailing_zero_test.c @@ -0,0 +1,27 @@ +/* + * Copyright (c) 2025 Robert Clausecker + * + * SPDX-License-Identifier: BSD-2-Clause + */ + +#define FUNCSTEM stdc_first_trailing_zero +#define MKREFFUNC(name, type) \ + static unsigned \ + name(type value) \ + { \ + type bit = 1; \ + unsigned pos = 1; \ + \ + value = ~value; \ + if (value == 0) \ + return (0); \ + \ + while ((bit & value) == 0) { \ + bit <<= 1; \ + pos++; \ + } \ + \ + return (pos); \ + } + +#include "stdbit-test-framework.c" diff --git a/lib/libc/tests/stdbit/stdc_has_single_bit_test.c b/lib/libc/tests/stdbit/stdc_has_single_bit_test.c new file mode 100644 index 000000000000..3426deccd8d0 --- /dev/null +++ b/lib/libc/tests/stdbit/stdc_has_single_bit_test.c @@ -0,0 +1,21 @@ +/* + * Copyright (c) 2025 Robert Clausecker + * + * SPDX-License-Identifier: BSD-2-Clause + */ + +#define FUNCSTEM stdc_has_single_bit +#define MKREFFUNC(name, type) \ + static bool \ + name(type value) \ + { \ + type bit; \ + \ + for (bit = 1; bit != 0; bit <<= 1) \ + if (value == bit) \ + return (true); \ + \ + return (false); \ + } + +#include "stdbit-test-framework.c" diff --git a/lib/libc/tests/stdbit/stdc_leading_ones_test.c b/lib/libc/tests/stdbit/stdc_leading_ones_test.c new file mode 100644 index 000000000000..616b3d5e6279 --- /dev/null +++ b/lib/libc/tests/stdbit/stdc_leading_ones_test.c @@ -0,0 +1,26 @@ +/* + * Copyright (c) 2025 Robert Clausecker + * + * SPDX-License-Identifier: BSD-2-Clause + */ + +#define FUNCSTEM stdc_leading_ones +#define MKREFFUNC(name, type) \ + static unsigned \ + name(type value) \ + { \ + type bit = 1; \ + unsigned count = 0; \ + \ + while ((type)(bit << 1) != 0) \ + bit <<= 1; \ + \ + while (bit != 0 && (bit & value) != 0) { \ + bit >>= 1; \ + count++; \ + } \ + \ + return (count); \ + } + +#include "stdbit-test-framework.c" diff --git a/lib/libc/tests/stdbit/stdc_leading_zeros_test.c b/lib/libc/tests/stdbit/stdc_leading_zeros_test.c new file mode 100644 index 000000000000..7c9d26e86456 --- /dev/null +++ b/lib/libc/tests/stdbit/stdc_leading_zeros_test.c @@ -0,0 +1,26 @@ +/* + * Copyright (c) 2025 Robert Clausecker + * + * SPDX-License-Identifier: BSD-2-Clause + */ + +#define FUNCSTEM stdc_leading_zeros +#define MKREFFUNC(name, type) \ + static unsigned \ + name(type value) \ + { \ + type bit = 1; \ + unsigned count = 0; \ + \ + while ((type)(bit << 1) != 0) \ + bit <<= 1; \ + \ + while (bit != 0 && (bit & value) == 0) { \ + bit >>= 1; \ + count++; \ + } \ + \ + return (count); \ + } + +#include "stdbit-test-framework.c" diff --git a/lib/libc/tests/stdbit/stdc_trailing_ones_test.c b/lib/libc/tests/stdbit/stdc_trailing_ones_test.c new file mode 100644 index 000000000000..9e261cc543de --- /dev/null +++ b/lib/libc/tests/stdbit/stdc_trailing_ones_test.c @@ -0,0 +1,23 @@ +/* + * Copyright (c) 2025 Robert Clausecker + * + * SPDX-License-Identifier: BSD-2-Clause + */ + +#define FUNCSTEM stdc_trailing_ones +#define MKREFFUNC(name, type) \ + static unsigned \ + name(type value) \ + { \ + type bit = 1; \ + unsigned count = 0; \ + \ + while (bit != 0 && (bit & value) != 0) { \ + bit <<= 1; \ + count++; \ + } \ + \ + return (count); \ + } + +#include "stdbit-test-framework.c" diff --git a/lib/libc/tests/stdbit/stdc_trailing_zeros_test.c b/lib/libc/tests/stdbit/stdc_trailing_zeros_test.c new file mode 100644 index 000000000000..81fe11c5c82a --- /dev/null +++ b/lib/libc/tests/stdbit/stdc_trailing_zeros_test.c @@ -0,0 +1,23 @@ +/* + * Copyright (c) 2025 Robert Clausecker + * + * SPDX-License-Identifier: BSD-2-Clause + */ + +#define FUNCSTEM stdc_trailing_zeros +#define MKREFFUNC(name, type) \ + static unsigned \ + name(type value) \ + { \ + type bit = 1; \ + unsigned count = 0; \ + \ + while (bit != 0 && (bit & value) == 0) { \ + bit <<= 1; \ + count++; \ + } \ + \ + return (count); \ + } + +#include "stdbit-test-framework.c" From nobody Thu Jan 1 22:21:48 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dj1Wx2rBQz6Mnyr for ; Thu, 01 Jan 2026 22:21:49 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dj1Wx0WX5z3C2G for ; Thu, 01 Jan 2026 22:21:49 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767306109; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=72kHoUiPct3aqUEVX3fBR/Tx2IAD0DTxnKbhjtxIaDk=; b=j9d0ICOFUu4otodihAzVo6Dk5imnhhuoCEcJl2KGxIY/3roxw56wSdtaANU1UrEB6bL3VC qVT7/pNLVqjxktlxL91ec80LnrEpcc7uG1TB0IjgDoXIiiwgVnSH/a4Dozc3Z6Kl+3QNBr eTnN7OjlE4SSukWYjxCYwj7bBh3Xs18b1dJUD6uLkwxdJ7E1+lCkNjyMTE1odi4p3wrWQr 1WZqNjYVoIlvzjyKdAz/xMunhF8z2SLL8EceqJ0tPcvKJrzhG1bAi3LdMTMrhN1jv45K80 cxaO1SMjYgqbP4xlFicwPlFODZ0PGmXU1yyD4yIy9Ua/xH9bKeWiYqE4xe83Sw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767306109; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=72kHoUiPct3aqUEVX3fBR/Tx2IAD0DTxnKbhjtxIaDk=; b=FUvZLS5YjZBq6Zbh/yUqi9/K4pTOYlJZtLKxKBfhXjbnI8+eu4ZVnTQLAyxqfUf8qtlTXC qYCex5N/jno0V7N4Uebzwd/KVxzKM3/LNYWQfzdYLJz2XsmDXIornTmvvUFquVyIjFSZom 60FVOICoTZf2XMlFyeqJ6GXTb7WDHXV2i7mnwcIWaHP+I2Qdirx29EpxqcYG8NsurdBYHB hB5TUWxfN6nZyzlsDGrhJWuQIbZt5P/3pslNTj6FB0kmwKuH6vvX0ZA5SVQzelmLtgZUGm 3+cQqxPj//VJY5XzURNaw6xs3ibKLz+MVvaS1UtoXqfpw+O04bHtIHX3iX9ycA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767306109; a=rsa-sha256; cv=none; b=bh7MlayLB8WFfqG162FHGselmwGfqHK/8OtvWXnA6D93gsWBnrVPkbLeQwmMxa88X+4DEK PTnC52nqkmoeLhNcszX2nJcHbvzcV3uU3GjX5g+okgkr8R02A6xtn2ctxUWp9goVtkDTr1 QBloYG54ByUYt3XV/XO9KiNnBQVu5c7HBxiP4LHzZ9UATlB/xhbFiiVfMKkoMsXgsNfZhw x6GN0dMjinObTuZCLf+8D6YAW7CeC/UbCmh+GpZUUtOMirmP5Ra26OgyYDgL0+V58yeaaL GSvWawMWr6KeM7zgSrEUsMHKUF8us2RPOyEOe2C6SZHd11lP3D8vvglUidK4/w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dj1Ww6XlGzr1j for ; Thu, 01 Jan 2026 22:21:48 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id eabd by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 01 Jan 2026 22:21:48 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Robert Clausecker Subject: git: be65a18424e7 - stable/15 - man/man3: add cross references to stdbit(3) List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: fuz X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: be65a18424e7189397ba30cd293c15668ffc32c0 Auto-Submitted: auto-generated Date: Thu, 01 Jan 2026 22:21:48 +0000 Message-Id: <6956f37c.eabd.58d27a15@gitrepo.freebsd.org> The branch stable/15 has been updated by fuz: URL: https://cgit.FreeBSD.org/src/commit/?id=be65a18424e7189397ba30cd293c15668ffc32c0 commit be65a18424e7189397ba30cd293c15668ffc32c0 Author: Robert Clausecker AuthorDate: 2025-11-10 09:43:37 +0000 Commit: Robert Clausecker CommitDate: 2026-01-01 20:57:33 +0000 man/man3: add cross references to stdbit(3) Add cross references to relevant stdbit man pages Approved by: markj (mentor) MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D53661 (cherry picked from commit 5bfdb66ad985774b123ecd0cadee65c071b7ded0) --- lib/libc/string/ffs.3 | 2 ++ share/man/man3/bitstring.3 | 1 + share/man/man3/intro.3 | 11 +++++++++-- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/lib/libc/string/ffs.3 b/lib/libc/string/ffs.3 index 1cca54c0b30b..14a64126e692 100644 --- a/lib/libc/string/ffs.3 +++ b/lib/libc/string/ffs.3 @@ -79,6 +79,8 @@ A return value of zero from any of these functions means that the argument was zero. .Sh SEE ALSO .Xr bitstring 3 , +.Xr stdc_first_trailing_one 3 , +.Xr stdc_trailing_zeros 3 , .Xr bitset 9 .Sh STANDARDS The diff --git a/share/man/man3/bitstring.3 b/share/man/man3/bitstring.3 index 07558bd41ec3..87ba9a24a1b5 100644 --- a/share/man/man3/bitstring.3 +++ b/share/man/man3/bitstring.3 @@ -461,6 +461,7 @@ make_lpr_available() .Ed .Sh SEE ALSO .Xr malloc 3 , +.Xr stdbit 3 , .Xr bitset 9 .Sh HISTORY The diff --git a/share/man/man3/intro.3 b/share/man/man3/intro.3 index 0cecdcab4069..952183d7dd2d 100644 --- a/share/man/man3/intro.3 +++ b/share/man/man3/intro.3 @@ -24,7 +24,7 @@ .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. -.Dd November 27, 2024 +.Dd November 10, 2025 .Dt INTRO 3 .Os .Sh NAME @@ -72,13 +72,20 @@ see .It database routines see .Xr db 3 -.It bit operators +.It bit string operators see .Xr bitstring 3 +.It bit and byte utilities +see +.Xr stdbit 3 .It string operators see .Xr string 3 +and +.Xr bstring 3 .It character tests and character operators +see +.Xr ctype 3 .It storage allocation see .Xr mpool 3 From nobody Thu Jan 1 22:21:49 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dj1Wy2bt8z6Lpp2 for ; Thu, 01 Jan 2026 22:21:50 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dj1Wy0MrSz3Byp for ; Thu, 01 Jan 2026 22:21:50 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767306110; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=irbJbPpUeLGfNtbC+26lE3WxIkPbtHQfvJ61omAWAbs=; b=RUZFy51io1zdGnHZs7TEPAYPAA5O8+de+PwbXIzbJPWXIvBKOYtrCmMHd5OaO9kug1ChND NGWypC7HcjW609QpGmT6hMtG4glv7nDaFUXgawjXKSvuXkwusgA5YmRKYicd9FT+tASHTs XHa3Ott2F8DVQJuRasqJbJ/mSJdnOrFaRI41FzgVky+rIdePoSJRvfMrKitBvhiTnP25OU lmVsi08XkYyJCsHEvpb7LdWD2715X9wlvxu/yI/SZ1BD0lX7Au1VJvMTX4HOLcVEyA8IA9 Cyiv5WFN+wybmw/bWVB9BAyzK7Byhvo+vr4HJZxEddXpd7IcEX8D/NcZ0MV21g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767306110; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=irbJbPpUeLGfNtbC+26lE3WxIkPbtHQfvJ61omAWAbs=; b=vGQrTPf2hoAypQGF4gP81fAy6ISzdvbh2GvETQvS/Ktm0XagsgW4YSExyc3aioO/n24EFJ NEEVF6MHSsyzellL5Srvn0+jI9lexfpb1Fj57+MWMwC6ZViH0OHY5+tRDIR6dr9aZ30jlQ gVKm0ouKPwhKOEIGMgJMcvhFfbS1ZU4+P3XDCd0al/e28QcugxKJvfoUoH+y6c9ruCmPhH zNMVFdLvt15paM2WjSV6l9zHsShdW2+DgaTiPa38PQa9R8U1jMnMRlLv9hR2SDfiX/Idac 4WqSQc3O9OmyUBb1kgnK6ZZn8BeEgKhfTZ8K0N2ZDIPvaj1pMj7XUww1UDjktQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767306110; a=rsa-sha256; cv=none; b=E9kI0/HvPqDGOziIYZ+6eOtJJgS9LOKpZi4xorhG6JKCzF5brzHbnl2yve/PoNxmSEK3Zt U56Od+UUtKeCisDjviQBI740lha4Tv9vb6ucrL+ReWYHyQahk8GZvBoYaLSPlSdwVE9iMG o0vGiQfTCe+L83Emhdru+TMq4h5I+C5sET695axQZJdfvZOqooLrXPIAekoXkogCO6HKdc aHZLTi47LRT16Wsoh6XaitBMhHuDKxVXl7mesddSd9EbWD/CQ0mXUxxQDULcqYX++dzEBn sL4hxNMuHNAgkEagh17biody3ppSK/1ia6QUlZ9jZOS01tOSFeTVpRwtyNmCwg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dj1Wx6w2gzrs0 for ; Thu, 01 Jan 2026 22:21:49 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id ebca by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 01 Jan 2026 22:21:49 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Robert Clausecker Subject: git: 54849107681d - stable/15 - libc/tests/string: improve stpncpy() "bounds" unit test List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: fuz X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 54849107681dadaf0aa7bc88d55b7defe3f7826d Auto-Submitted: auto-generated Date: Thu, 01 Jan 2026 22:21:49 +0000 Message-Id: <6956f37d.ebca.43daa179@gitrepo.freebsd.org> The branch stable/15 has been updated by fuz: URL: https://cgit.FreeBSD.org/src/commit/?id=54849107681dadaf0aa7bc88d55b7defe3f7826d commit 54849107681dadaf0aa7bc88d55b7defe3f7826d Author: Robert Clausecker AuthorDate: 2025-12-04 16:34:59 +0000 Commit: Robert Clausecker CommitDate: 2026-01-01 20:57:33 +0000 libc/tests/string: improve stpncpy() "bounds" unit test The test is extended the same way I previously extended the memccpy() test to fix what is probably the same kind of bug. PR: 291359 Reported by: Collin Funk Reviewed by: ngie Approved by: markj (mentor) Fixes: 6fa9e7d8737548ef93c573387ce62402c368d486 (D42519) See also: 61ed5748e4e9c7397fcb2638b442f46ac5c9e7c5 (D46051) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D54169 (cherry picked from commit 123c086200491819595abc271d360e605288fd18) (cherry picked from commit 8be8642826099368208efb2c1222f2a102cc5b08) --- lib/libc/tests/string/stpncpy_test.c | 55 +++++++++++++++++++++++++----------- 1 file changed, 39 insertions(+), 16 deletions(-) diff --git a/lib/libc/tests/string/stpncpy_test.c b/lib/libc/tests/string/stpncpy_test.c index 8574b2d591be..7fabe17bfe4a 100644 --- a/lib/libc/tests/string/stpncpy_test.c +++ b/lib/libc/tests/string/stpncpy_test.c @@ -1,6 +1,6 @@ /*- * Copyright (c) 2009 David Schultz - * Copyright (c) 2023 The FreeBSD Foundation + * Copyright (c) 2023, 2025 The FreeBSD Foundation * All rights reserved. * * Portions of this software were developed by Robert Clausecker @@ -52,34 +52,57 @@ makebuf(size_t len, int guard_at_end) buf = mmap(NULL, alloc_size, PROT_READ | PROT_WRITE, MAP_ANON, -1, 0); assert(buf); if (guard_at_end) { - assert(munmap(buf + alloc_size - page_size, page_size) == 0); + assert(mprotect(buf + alloc_size - page_size, page_size, PROT_NONE) == 0); return (buf + alloc_size - page_size - len); } else { - assert(munmap(buf, page_size) == 0); + assert(mprotect(buf, page_size, PROT_NONE) == 0); return (buf + page_size); } } static void -test_stpncpy(const char *s) +freebuf(char *buf, size_t len, int guard_at_end) { - char *src, *dst; - size_t size, len, bufsize, x; + size_t alloc_size, page_size; + + page_size = getpagesize(); + alloc_size = roundup2(len, page_size) + page_size; + + if (guard_at_end) + munmap(buf + len + page_size - alloc_size, alloc_size); + else + munmap(buf - page_size, alloc_size); +} + +static void +test_stpncpy(const char *s, size_t size) +{ + char *src, *dst, *expected; + size_t bufsize, x; int i, j; - size = strlen(s) + 1; for (i = 0; i <= 1; i++) { for (j = 0; j <= 1; j++) { - for (bufsize = 0; bufsize <= size + 10; bufsize++) { - src = makebuf(size, i); - memcpy(src, s, size); + for (bufsize = 0; bufsize <= size + 32; bufsize++) { dst = makebuf(bufsize, j); + if (bufsize < size) { + src = makebuf(bufsize, i); + memcpy(src, s, bufsize); + expected = dst + bufsize; + } else { + src = makebuf(size, i); + memcpy(src, s, size); + expected = dst + size - 1; + } + memset(dst, 'X', bufsize); - len = (bufsize < size) ? bufsize : size - 1; - assert(stpncpy_fn(dst, src, bufsize) == dst+len); - assert(memcmp(src, dst, len) == 0); - for (x = len; x < bufsize; x++) + assert(stpncpy_fn(dst, src, bufsize) == expected); + assert(memcmp(src, dst, MIN(bufsize, size)) == 0); + for (x = size; x < bufsize; x++) assert(dst[x] == '\0'); + + freebuf(dst, bufsize, j); + freebuf(src, MIN(bufsize, size), i); } } } @@ -140,12 +163,12 @@ ATF_TC_WITHOUT_HEAD(bounds); ATF_TC_BODY(bounds, tc) { size_t i; - char buf[64+1]; + char buf[64]; for (i = 0; i < sizeof(buf) - 1; i++) { buf[i] = ' ' + i; buf[i+1] = '\0'; - test_stpncpy(buf); + test_stpncpy(buf, i + 2); } } From nobody Fri Jan 2 19:09:05 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4djYC621hfz6M6P5 for ; Fri, 02 Jan 2026 19:09:06 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4djYC56gnTz3VG1 for ; Fri, 02 Jan 2026 19:09:05 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767380945; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=MUjs3pHdNvgjguH2qRMcW2yYwSiTM0n1IzZiHNdXjxU=; b=tXQFJCwKOnV13Bq91Js1vLU6wlw+hZWj/U34TQY98e7w44P7i4ivfxPqUUkOlxqFXABrU4 3Q6SZR7dBxtiU3hA9l1cSf7rQWtX799d1ZRj/xkNpmeU9eQLLvujLIw+zb1Kwj/ab+niGi Uo0l3DMvYCmAp1djpApuDLafAJ8TcDbVFkBE9c1UMNtNsvcv1HtfkRNmx1WkNTajuOIA8k 3ngzjzUMVOeH4FQxSc4mpyQ5DiQo9LrH/fdG1dTyfQkIo7JPHNlATw+xM7oejt8QWGErTj QsN/fHpV4Jvd3o/DvQ3qBVkI6MdUQtPstXR2/afiOPx6IAzrGNIpPHAME8f7ew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767380945; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=MUjs3pHdNvgjguH2qRMcW2yYwSiTM0n1IzZiHNdXjxU=; b=Kpm6c/SqgKGIDcAxEiWChIh1lcYKtoiDsBb5OmtNBFy4sZhSWj9albrnf2maGxlH2GT2r2 fqxLTqSYcWf/NdnClT/As7Uc48GAFGA/Lv1k2pjIuRLjq+UXQUIMqJ9F1kiaeBFPABLhXN lyvY5n4iRe/pQL+Jc+31sDwr/OgIOgSkKWHjMy7OfHGL/WXkWDOmzmUNVxhpC5pKSK2fwt gUVUXZQNDF3dPO6hCx9qaRulgH4c6Qkaph6ioyDvDPQ6d8Z3QChTelF2/I+2/otEbkdpFa hcIlDEhaT5w+R6LLKChRTjtvQONtViY/0UOefh5xiZiqOVIRfeQFhlR/BwKLfA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767380945; a=rsa-sha256; cv=none; b=sDhBDro0zTSptkQaGwkJ7/WFwfzc1R9FSzboIb0jffGxkWF5J3WjjjvxByLnRm5tU7KGxU ccc6GUDORoJnDTL6qkktOrmDR9gmfy7Rrd4yCs4dsF9IED0roaUaAmsvNZNAqruC0vJm40 D9AtUUDJR/A9bqpEf1jD/HvUSz9TdWx7Go/J/efNQjAVg30655XfuyAEYWii2BcSm0y+jK R1oVDAOMzYXSSVV5iMGkVHBk6RAMGm6mfmluQy/xOguSdrvgRi4qB0C55O0yMidwSMJQ0R jl+dmpxM+o4NNxNmFUB8hVCbRol5qYoBvQXiy5O4h2wZUpOv7ogUuVplMVvBrQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4djYC55XJZzVh6 for ; Fri, 02 Jan 2026 19:09:05 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 38ba7 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 02 Jan 2026 19:09:05 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Maxim Konovalov Subject: git: cb9c8e9768b8 - stable/15 - khelp: make the module compile again List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: maxim X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: cb9c8e9768b8e237e62aa3219b9ac5ffa46087c2 Auto-Submitted: auto-generated Date: Fri, 02 Jan 2026 19:09:05 +0000 Message-Id: <695817d1.38ba7.3d305041@gitrepo.freebsd.org> The branch stable/15 has been updated by maxim: URL: https://cgit.FreeBSD.org/src/commit/?id=cb9c8e9768b8e237e62aa3219b9ac5ffa46087c2 commit cb9c8e9768b8e237e62aa3219b9ac5ffa46087c2 Author: Maxim Konovalov AuthorDate: 2025-12-16 05:47:02 +0000 Commit: Maxim Konovalov CommitDate: 2026-01-02 19:08:20 +0000 khelp: make the module compile again PR: 291165 MFC after: 1 week (cherry picked from commit 27554189e5122d780dd295b1a1a81f15f459accb) --- share/examples/kld/khelp/h_example.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/share/examples/kld/khelp/h_example.c b/share/examples/kld/khelp/h_example.c index 92f0c885bbce..07102d30be21 100644 --- a/share/examples/kld/khelp/h_example.c +++ b/share/examples/kld/khelp/h_example.c @@ -45,6 +45,8 @@ #include #include +#include +#include #include #include From nobody Fri Jan 2 19:18:49 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4djYQK5904z6M77m for ; Fri, 02 Jan 2026 19:18:49 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4djYQK4X2Zz3XDw for ; Fri, 02 Jan 2026 19:18:49 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767381529; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=+uCBPTIscPsCbD4cbvxcqT0/yukjv1xW18h/l4QojRc=; b=UlX2+x8ugPkefXRo11rcTIktwJV01F+0V5FWLCOfA6I1+LbfK5qwfjwk1WiUfEMeYfLKdH oA9uQuGjko2txP2ZDFxl59lwpOOIe9v31ZNWmxbdpGWxEw5QPi0ToEfh6cKpTAsdTuRr+f cr7fBEQ01TlqclFoW4jPhNSnaWZVtYg+JTjapAaRVcsgW0LC5eg7v0zi7f81j8JDHkyOIy 1xzXcgGxQEmqATLCOvQ1MxcjYiKRMJmmvPa6BcbbMeVrr/sGFa9m4lUCgnOjLcKqrsxf6c +wCJCL9v5jNqKASa32PTzhXggwBJ+NVHInkELnJIMDFtb9wesRwVTAMc7As1jA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767381529; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=+uCBPTIscPsCbD4cbvxcqT0/yukjv1xW18h/l4QojRc=; b=pSV5C31Eegguof9VrRchv4KCBi89B4Pj4Yz0sHD/PZDCqrNUGgtPMQpNCm1HK2UPOXB6sB P1R3kz4QLqIK+LTRWr+FWNQ0CO4AKoxj3uYfPTcEA2KQICucuMza2eDLtLxK+yYLiOTSgh zuCkAoVbGkUyh0+nL5fkAKXtEKxETLA5Ah1gNmKHC2ZVu6J90lmyjgQfJhvPOcG0At9Kr1 +FGXZXfnaPnPVx2KBtOhRd3JbVKS74iuRr75H+ZbK85G/ZCje4wcOKWgviLIDEoSkqrk2u oNycKDPFfU/ewrdKAX9oDgLprGMG50yFO8JizFfpIuUWQcZFRh6TPQNSsrrXOw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767381529; a=rsa-sha256; cv=none; b=MujVOt2xfO7C+BV5qI1M7GaPm8PX78aU+3k5bzW0v1SnEOH2qnDwLUCVvH/YIZtt1sLjDY 59F1qZhWDaN4SCJ831+C2hJ9V+6ih2lQ4BloYBp64F5cxvMwu4X7o2G5bSi1hTuO4y3pTr gisO3FhYF4+QMaNhfEkGsvst+Zg7KFFT5vd9kN8HcEr2JZj6Fd3OfUenUe44elNYQ+pPqd F9lpDmLGzFgQ1spluqXXCjG+2DZo9xdO4fO5iFg4C/8x/zXE4zJXaejOx60NmAFsbqnU/2 +DxIF5FdrZceGmQc2PJdbTJIzjcgDh8QSz1R9yWhfJmAy6CSLFjU9ZWZmF+jgQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4djYQK46ypzWGs for ; Fri, 02 Jan 2026 19:18:49 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3aac5 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 02 Jan 2026 19:18:49 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Eugene Grosbein Subject: git: 1d0d0a8b4af5 - stable/15 - ipfw.8: fix documentation bug for setmark List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: eugen X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 1d0d0a8b4af525c3940647b10df45ec8efa6afb6 Auto-Submitted: auto-generated Date: Fri, 02 Jan 2026 19:18:49 +0000 Message-Id: <69581a19.3aac5.70db39a0@gitrepo.freebsd.org> The branch stable/15 has been updated by eugen: URL: https://cgit.FreeBSD.org/src/commit/?id=1d0d0a8b4af525c3940647b10df45ec8efa6afb6 commit 1d0d0a8b4af525c3940647b10df45ec8efa6afb6 Author: Eugene Grosbein AuthorDate: 2025-12-28 17:05:22 +0000 Commit: Eugene Grosbein CommitDate: 2026-01-02 19:18:04 +0000 ipfw.8: fix documentation bug for setmark A mark set with "setmark" keyword is intended to be "sticky" and documented as such but in fact it is not yet, as current implementation lacks "sticky" feature and its implementation will be not MFC'd, most probably. Correct the manual page until the implementation improved. Discussed with: Boris Lytochkin (author) (cherry picked from commit a7b8a5d37bcb0009297962137bfb6c6570e5af12) (cherry picked from commit 9fdf49e8a501047b61a615ab1b4b133159ad76e1) --- sbin/ipfw/ipfw.8 | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/sbin/ipfw/ipfw.8 b/sbin/ipfw/ipfw.8 index 249bd195b4de..c1df8399c333 100644 --- a/sbin/ipfw/ipfw.8 +++ b/sbin/ipfw/ipfw.8 @@ -841,8 +841,12 @@ When a packet matches a rule with the .Cm setmark keyword, a 32-bit numeric mark is assigned to the packet. The mark is an extension to the tags. -As tags, mark is "sticky" so the value is kept the same within the kernel and -is lost when the packet leaves the kernel. +The mark is preserved for a packet within a single ipfw ruleset traversal +and is lost when the packet is checked against the active ruleset +next time (see +.Sx PACKET FLOW +section) or leaves ipfw context (e.g. accepted, +diverted, bridged or routed). Unlike tags, mark can be matched as a lookup table key or compared with bitwise mask applied against another value. Each packet can have only one mark, so From nobody Fri Jan 2 19:21:27 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4djYTM61qtz6M7Dc for ; Fri, 02 Jan 2026 19:21:27 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4djYTM45Pyz3XTk for ; Fri, 02 Jan 2026 19:21:27 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767381687; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=qk9xhfCOz4hB3Dz/juBUBrpV2h9afZgjLv+L3D4P69I=; b=xQuP1i4oeS9bRjskd0/FUnb1jzJLaXk/IYyc6Z4Fcj1j4c75DlpJyT0ivKib35a5v7S8Bs 8VNS/ji0jTcO4vG62abTq1dzvRY1mbV2qM7LeH4ySgF/3kNbni++E2sjnDSLfrAXxi9Y/M Oxb/99ocoZYMw6hxv0WsDGHhxpgNllsrPWkIKIdZ7aYe1CQMPaXx21n022E06PWFtyUSVl dhtGQg4jt3fp+QLNKJ6kvSJL+pYq9+h1htdoPYZmxnQdtsEsl5IDzjlOha8POj9OO7wLdQ sEUutaaiDhmqmclYkSDK1SgieCNH/TEil8TtjIAJjg1rdr7xiPqofRJS8aFPkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767381687; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=qk9xhfCOz4hB3Dz/juBUBrpV2h9afZgjLv+L3D4P69I=; b=SzzrFWC+IWYWZ4DxyHlCQ6vxHx7/IYECZHR8HrNvUDDsd1O8La7kvH7vn8rrgYBMUTUUw9 At0s3uCeSG82fKD8oA+4UsDhpMWhTzNAfiySRJrJibkt2UrYJfMGfCHPkII0xbaaNnZD1b siVCh34cvnFnu0SypyJc+64T5l1tKKuYViSdjhg4zDqfCz8VrxG+BKl0PKxcMQ0XtX0HTO 0HMn677cfaH56ehA2O1QL7TSJ9V8AiYukj5jL/8UGoL/dMZFMgGmxw5T+5nl79Pmto+yii a7SmTOVPRlhKbT5YLCBSjjDVhe3wFoX+gNDAfYtEJN20oVdMnolfCLTpSSOXJw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767381687; a=rsa-sha256; cv=none; b=dA872uUc9a25GzMXdljsGZ3xf6nPdGjJsTtf9NWHI8gGY07uGqGObszoVQBsOuiEAXpaBm hWhrypN0ClqtD2MAA2XTIvfZS5l+DausdN+FuMzkNkm9in0dqV7PN1ZhUDtmtcRLbM5YjD n+xB8SNSE8mQon71voq3En2f6h55D+CUrYlgLWIT7xBG2Outi3/hny0UFvZFIbSl4t9NGy 4FIO0xCDEzAiwu2rBRs5ZgPuocVYbnIC0aplGDSuIY7/ZJCeVvrR+yWCgA6goEooWnYaXN SDqSXCZQCYgOwl0M67l2jW3mkX06+vaQBNz8HQ2D/rTn5H1wYLCPbi8q1GwOkQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4djYTM3SR8zX6m for ; Fri, 02 Jan 2026 19:21:27 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 39dc6 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 02 Jan 2026 19:21:27 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Eugene Grosbein Subject: git: a3559f398824 - stable/14 - ipfw.8: fix documentation bug for setmark List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: eugen X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: a3559f398824e3e7b7d102f4483610881119ff47 Auto-Submitted: auto-generated Date: Fri, 02 Jan 2026 19:21:27 +0000 Message-Id: <69581ab7.39dc6.4c735259@gitrepo.freebsd.org> The branch stable/14 has been updated by eugen: URL: https://cgit.FreeBSD.org/src/commit/?id=a3559f398824e3e7b7d102f4483610881119ff47 commit a3559f398824e3e7b7d102f4483610881119ff47 Author: Eugene Grosbein AuthorDate: 2025-12-28 17:05:22 +0000 Commit: Eugene Grosbein CommitDate: 2026-01-02 19:20:54 +0000 ipfw.8: fix documentation bug for setmark A mark set with "setmark" keyword is intended to be "sticky" and documented as such but in fact it is not yet, as current implementation lacks "sticky" feature and its implementation will be not MFC'd, most probably. Correct the manual page until the implementation improved. Discussed with: Boris Lytochkin (author) (cherry picked from commit a7b8a5d37bcb0009297962137bfb6c6570e5af12) (cherry picked from commit 9fdf49e8a501047b61a615ab1b4b133159ad76e1) --- sbin/ipfw/ipfw.8 | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/sbin/ipfw/ipfw.8 b/sbin/ipfw/ipfw.8 index 94ad9e0958cf..1f0ab5916bd7 100644 --- a/sbin/ipfw/ipfw.8 +++ b/sbin/ipfw/ipfw.8 @@ -796,8 +796,12 @@ When a packet matches a rule with the .Cm setmark keyword, a 32-bit numeric mark is assigned to the packet. The mark is an extension to the tags. -As tags, mark is "sticky" so the value is kept the same within the kernel and -is lost when the packet leaves the kernel. +The mark is preserved for a packet within a single ipfw ruleset traversal +and is lost when the packet is checked against the active ruleset +next time (see +.Sx PACKET FLOW +section) or leaves ipfw context (e.g. accepted, +diverted, bridged or routed). Unlike tags, mark can be matched as a lookup table key or compared with bitwise mask applied against another value. Each packet can have only one mark, so From nobody Fri Jan 2 19:32:26 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4djYk342FSz6M7bJ for ; Fri, 02 Jan 2026 19:32:27 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4djYk30WPJz3ZQn for ; Fri, 02 Jan 2026 19:32:27 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767382347; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=9y01skbf8qyCZulZfc4Xdz5Z4db8lXg5t4b8kVAdyws=; b=sPg4TD3sYSWdrr7zA4X2SEJghcwH3Uu65Vb3iC9aFQfFWLEGmkV5U8A48pY3S+F6XJYfNG zPJnTUGuM7shwJo3+Ei1Xzpt+W2YpJctikFXJFLkOx0z0MkN3gMXTuF5JHuBeqAehNyktF OIhpi1Z2iXbKQKbJq8GC0IZYcT4Z7ZpL8a8zLpaDk+nfHZKoUHKe5i//lsWpGuGM/N7SoX aLDOYEjcHJ5gQ1kyRsuThtyxYaIp17DUz7GvFHKBu6KC626s/2b8T1w99q4u6wnHYigran U6IGzkgDfxdc81EiCUWVaG7m5T3+KFwz4iATSRNGDPoOsJ3+SHnmPMln3bq9JA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767382347; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=9y01skbf8qyCZulZfc4Xdz5Z4db8lXg5t4b8kVAdyws=; b=LVCBIPksrWsfGureq+F62Hoy0pd+SoZiW9RMWQ27XPB0vgx+TO3sjHv63D51qonQnuZrAw SecBkn5wv6rNdN0I1UwPjv7rlV7Jyf0EMuZg92kQZ/++OdLAz+vYGm0wrPjyqdwg2gw+k5 7VaeOegdlJQEtF7orUjBjId0Hm6Y+45RW3ZtkwYTlVwZsQYiD5F2HxD9e9CaKtZnnEs146 HVnUKuSb0VOPbxWtUPIrbtaTfRS3JbM8HkNaF+R6qddY/zZlPWbFpPVE4MPha8YEawXX4x 4sNlzf3h3yYndBtmj8lmPc2S9lvS1IOZyIuXfF+ylxNbYBM9ec8eMAARCPpwMw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767382347; a=rsa-sha256; cv=none; b=AQAQCDRHFlMBw7ChU7Z5wvmJwMPOYaN9bXjQ520wPR6CWwYSjprrUhQDaf6ohvOSuHLFMK MWyeOWg8gctV5KTPRrQjyAZ65grCukdtEKJUqLTY8cKmHpF5rZLfyJcHUzDBGcs0j+W4n4 HfKO+lwWz1xRXzKNq2YWNz2rtMZDbAvN+A1qy8Rp9sXB0F07JUVBIBuuF52x4k41serYe3 4VRZQfptu8Uk4Dw+RXYTaKgMsUX8YRGOf2D8AsIojShSgNjj7+y3ir1f49iot2m/INfUGb 7085mKY5GrD0c0rifQJ+/y/wIpexGko7n9J6JooNonaxo0UiUGgTMV266ptf0Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4djYk26n12zXVQ for ; Fri, 02 Jan 2026 19:32:26 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3acc1 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 02 Jan 2026 19:32:26 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Eugene Grosbein Subject: git: f70c6054a63c - stable/15 - MFC: ipfw.8: document how to delete nat configuration instance List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: eugen X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: f70c6054a63cbe5d874827f40329de7464b4eb42 Auto-Submitted: auto-generated Date: Fri, 02 Jan 2026 19:32:26 +0000 Message-Id: <69581d4a.3acc1.382fde10@gitrepo.freebsd.org> The branch stable/15 has been updated by eugen: URL: https://cgit.FreeBSD.org/src/commit/?id=f70c6054a63cbe5d874827f40329de7464b4eb42 commit f70c6054a63cbe5d874827f40329de7464b4eb42 Author: Eugene Grosbein AuthorDate: 2025-12-28 17:47:08 +0000 Commit: Eugene Grosbein CommitDate: 2026-01-02 19:31:56 +0000 MFC: ipfw.8: document how to delete nat configuration instance (cherry picked from commit e51047118cb1d15abe8077a5b47b8063fa364ad9) --- sbin/ipfw/ipfw.8 | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/sbin/ipfw/ipfw.8 b/sbin/ipfw/ipfw.8 index c1df8399c333..c6eedbccb2f8 100644 --- a/sbin/ipfw/ipfw.8 +++ b/sbin/ipfw/ipfw.8 @@ -1,5 +1,5 @@ .\" -.Dd December 4, 2025 +.Dd December 29, 2025 .Dt IPFW 8 .Os .Sh NAME @@ -104,6 +104,11 @@ in-kernel NAT.\& .Cm config .Ar config-options .Nm +.Op Fl q +.Cm nat +.Ar number +.Cm delete +.Nm .Cm nat .Ar number .Cm show @@ -3513,6 +3518,15 @@ For more information about aliasing modes, refer to See Section .Sx EXAMPLES for some examples of nat usage. +.Pp +To delete specific nat configuration instance, use the following command: +.Bd -ragged -offset indent +.Bk -words +.Cm nat +.Ar nat_number +.Cm delete +.Ek +.Ed .Ss REDIRECT AND LSNAT SUPPORT IN IPFW Redirect and LSNAT support follow closely the syntax used in .Xr natd 8 . From nobody Fri Jan 2 19:34:12 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4djYm440YBz6M8BH for ; Fri, 02 Jan 2026 19:34:12 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4djYm41Zz8z3bk0 for ; Fri, 02 Jan 2026 19:34:12 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767382452; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=7yP8COOXJsile7P0V++UHXVr1ctYnlnUzbWEREwpsQE=; b=F/84+HuvQSmaJdv8+8RQFOFo1rlECraJjnbSuq6DsD+//mD24tLjgj4BjNnkxXbOlt8x48 VNZZOBfzOPu5pI3h90Koth/EvNnmpDfUXYAYdcuqYcKsTXq+ILxrWgF56LjfgXtZ+OgqHc ByCNmrTN8ZLt9zHJliNiAsXc/kJq2Zrqy4RYrpFVZwLEcvvh9LDvldZLfKI2VaBbs/i95X 2jo826m+O/bJT6CJVh5WqFt3vIlkd7bMSeB0ZcZJ2pYFvU6OHLI09fRa9Alb2nwoEdcxOT /R8/8CE815gtQS8zcN22NjdOcC4touurPS1jZvyw05R5r0cRtRUIUI0Qiw8aug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767382452; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=7yP8COOXJsile7P0V++UHXVr1ctYnlnUzbWEREwpsQE=; b=NE48JcPvakpnFUmxMl5iN0DaVmnJgNsKoEbD3oOJj4SCjixfMPx1JadNFBYt7i/e/12tfr 1Rx6PhWvb1lwOd8RCFDf8rd/MPdjhIv6SAP/6/VLVbvh3dYOvc9YpYBPjANob6xNmMWT+S k/VVFI87qdnlWbbvw21TNkGkfllRXrNaIjiUxxhyyF4GqLk3eYYqdgAxNmLY8pzBhQ3y+S Tf5/MDky1caQrsFXGTK8a0vg6KltCjA+6nptVar2pQJ7zNOxHITG4SlTtEnQ7hBVMfcaPQ /SyodT8JyjcNwEAmgdvhjUpKyTON0V8MxrhN5cqHtD8d1QOur8qA/ozXGXliCQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767382452; a=rsa-sha256; cv=none; b=MCyCEPmqs97C432pDysX6KP6FO0gsX2rmcQ4y/xAzwr6/FtN8OVcLfdEH8anovoqRtuhXn Ft5LBUIigg+i2EBT7S2D4C19AAYxi3tiRgmJ4o1/J8ySc/sYJOeitNZNqnDCZnjGZSp1M9 Q1oad9K7Y9BnAtaCdsohEmG27JGPrqibzCTvLzPA00xxlevRliqhrdNQDF/W9WJIDHSXww q7het5G+YSP7b549BIsux21M9ppUPNgdgkzSlC1ouVznvYbLJUOexNxlNwBU04daDBHtiP v8lZO7TWA9jN5lyR3EyK81byTbxHEKQ+Pqwk/6e1Jjpn12G2oblyi92jg8ShNQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4djYm40xv9zWq0 for ; Fri, 02 Jan 2026 19:34:12 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3bba2 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 02 Jan 2026 19:34:12 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Eugene Grosbein Subject: git: 186ac4724746 - stable/14 - MFC: ipfw.8: document how to delete nat configuration instance List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: eugen X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 186ac4724746b50acfa43e148ca99991aa1dbe9e Auto-Submitted: auto-generated Date: Fri, 02 Jan 2026 19:34:12 +0000 Message-Id: <69581db4.3bba2.2be39a8d@gitrepo.freebsd.org> The branch stable/14 has been updated by eugen: URL: https://cgit.FreeBSD.org/src/commit/?id=186ac4724746b50acfa43e148ca99991aa1dbe9e commit 186ac4724746b50acfa43e148ca99991aa1dbe9e Author: Eugene Grosbein AuthorDate: 2025-12-28 17:47:08 +0000 Commit: Eugene Grosbein CommitDate: 2026-01-02 19:33:50 +0000 MFC: ipfw.8: document how to delete nat configuration instance (cherry picked from commit e51047118cb1d15abe8077a5b47b8063fa364ad9) --- sbin/ipfw/ipfw.8 | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/sbin/ipfw/ipfw.8 b/sbin/ipfw/ipfw.8 index 1f0ab5916bd7..e9f05a7dba76 100644 --- a/sbin/ipfw/ipfw.8 +++ b/sbin/ipfw/ipfw.8 @@ -1,5 +1,5 @@ .\" -.Dd December 4, 2025 +.Dd December 29, 2025 .Dt IPFW 8 .Os .Sh NAME @@ -104,6 +104,11 @@ in-kernel NAT. .Cm config .Ar config-options .Nm +.Op Fl q +.Cm nat +.Ar number +.Cm delete +.Nm .Cm nat .Ar number .Cm show @@ -3403,6 +3408,15 @@ For more information about aliasing modes, refer to See Section .Sx EXAMPLES for some examples of nat usage. +.Pp +To delete specific nat configuration instance, use the following command: +.Bd -ragged -offset indent +.Bk -words +.Cm nat +.Ar nat_number +.Cm delete +.Ek +.Ed .Ss REDIRECT AND LSNAT SUPPORT IN IPFW Redirect and LSNAT support follow closely the syntax used in .Xr natd 8 . From nobody Fri Jan 2 19:35:38 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4djYnk3mpyz6M7ps for ; Fri, 02 Jan 2026 19:35:38 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4djYnk14NDz3btJ for ; Fri, 02 Jan 2026 19:35:38 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767382538; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=arM191cEwkSaBaPUSS+PGvovtlQIbhnL8WMNUzzIAO4=; b=uAzynPKRs2UPraVVuiSkfb3Pv0ophdkJSWk03JmJB5tJDo7Q92hJMgm/nU9IRYRpkSoCYZ ECzY40qobi/tDEcCX3q9/PrCXZ7sLdDz2k6aGHDlSukLCoU/G3TIEzBO491C0plUpVh/uK /BuyaztScLRrn62KKbuVeDUHLq30qaIdBAkTBvDlnYBUoh2A70kVHedueWSpJYqfz/FXeO TQURonRq/4tdAW19Fj88EgheybOBZADa+cgaupx8D9mX3FW5HgSrTZkg9iTJX0XVtI+THm xxIYh6macFytF+2kuS06sjsiZxc7exMyONKA5g4POSQjNgnOJpEIqF5L+s8yTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767382538; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=arM191cEwkSaBaPUSS+PGvovtlQIbhnL8WMNUzzIAO4=; b=QkeWqUagNYLzGUkPtn6zMKyaTljnbofTU18f2raX9cRVov3qbF/Tu/IeJImr/kBq4BfVTD fk9le2nf6+9yUXrW+KuSlP3+Tfk3Yl8DdOoM7NHUALeLZjAETLBEjAtAizObxrX1Rmv/Xp CcztIXpQcZ9pvM3Cak7X8zPXNuEk3/SVM+ecFeeT9lPhjKDam82haxtML7y3oh2hQw0GzY I6D3c9e4F6qlnhpPdwi93etz7tT4vu1QExWfx/N6cUqOSZjUPSrvjBtF5E/N73guu0WYAw wfjNe+5Kfne6DroFRhRQrrs67tYsD6GeigA4LD4XFScjaUBna7EUiMeOi6gZUg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767382538; a=rsa-sha256; cv=none; b=UVxWceuBsDYtRAD7EcPFVD5Q22inqNszWZtDD0K5s7WABirs7ZBKsU16uVsYhOviXJg1RM a4HJ8YOPH7TRYhgG5AxCr+EHVLa1wyIEhJDza+UsCdnbJzYntYwt7InqhqJnmuC7mONXQf exJOaDxLR+GomeD0/c1XEFOHJyo7TwZCvTOt0tbABLoDQouZEqEnND2BWhLb/c38tODGUr aYsRy+KHwZmYpPNtKb7RpOcqhqy7/nLVH4YwD078PFyoQQvG6kNFh45mETqUyA5CVw9nBz cQm4JtaBIiYoRhfU2IfBcy9D5TAmYnSWFuvQH/8lDPwBEpWPjOuD3/+AoQbkZA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4djYnk0QJCzXGb for ; Fri, 02 Jan 2026 19:35:38 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3a162 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 02 Jan 2026 19:35:38 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Eugene Grosbein Subject: git: 7a5dfa03dc6c - stable/13 - MFC: ipfw.8: document how to delete nat configuration instance List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: eugen X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 7a5dfa03dc6cb5bd0a161c7e2cc3d423cbd465ec Auto-Submitted: auto-generated Date: Fri, 02 Jan 2026 19:35:38 +0000 Message-Id: <69581e0a.3a162.5d9348b6@gitrepo.freebsd.org> The branch stable/13 has been updated by eugen: URL: https://cgit.FreeBSD.org/src/commit/?id=7a5dfa03dc6cb5bd0a161c7e2cc3d423cbd465ec commit 7a5dfa03dc6cb5bd0a161c7e2cc3d423cbd465ec Author: Eugene Grosbein AuthorDate: 2025-12-28 17:47:08 +0000 Commit: Eugene Grosbein CommitDate: 2026-01-02 19:34:57 +0000 MFC: ipfw.8: document how to delete nat configuration instance (cherry picked from commit e51047118cb1d15abe8077a5b47b8063fa364ad9) --- sbin/ipfw/ipfw.8 | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/sbin/ipfw/ipfw.8 b/sbin/ipfw/ipfw.8 index 4a9ded2b9867..4e3094b5ac43 100644 --- a/sbin/ipfw/ipfw.8 +++ b/sbin/ipfw/ipfw.8 @@ -1,5 +1,5 @@ .\" -.Dd September 28, 2023 +.Dd December 29, 2025 .Dt IPFW 8 .Os .Sh NAME @@ -104,6 +104,11 @@ in-kernel NAT. .Cm config .Ar config-options .Nm +.Op Fl q +.Cm nat +.Ar number +.Cm delete +.Nm .Cm nat .Ar number .Cm show @@ -3351,6 +3356,15 @@ For more information about aliasing modes, refer to See Section .Sx EXAMPLES for some examples of nat usage. +.Pp +To delete specific nat configuration instance, use the following command: +.Bd -ragged -offset indent +.Bk -words +.Cm nat +.Ar nat_number +.Cm delete +.Ek +.Ed .Ss REDIRECT AND LSNAT SUPPORT IN IPFW Redirect and LSNAT support follow closely the syntax used in .Xr natd 8 . From nobody Fri Jan 2 20:51:47 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4djbTc1gjpz6MFQt for ; Fri, 02 Jan 2026 20:51:48 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4djbTb6lFtz3pv9 for ; Fri, 02 Jan 2026 20:51:47 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767387108; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=egSu/i6K4w3B3h5V7QhObzq6TnV1OPe7T24w5l+peio=; b=VWMKHfM/Bq1mrf+nT1uGr0eDfgW36nMmOf2+ttOpJPUPPUhTGohOi3BrAyod8mQAsc/1/1 qWrQbad7nPyO/d5I21dI4/HKtoX4feIDuWJGt6IGjns13w72ReRBsCAc8EUrxYbTr92w7l 8AWJe/was7ut2dB71pZYa9RWhI6TKKDkuAWD4ZdYnTqcKb+tV6O/yqzjjCSAh9iTh0WmLm 7U9FnITCmYsPu0v+IV+3wSvuc5lMBggv4FEQzHd/BbTw7cxmIwueWvJvBYibfxkcBlgYBW Zd0zmpUAWKiEI3H0Xu7kZXIHb4lZrFzjYsRjL50Zpbu2h357golMX5kV8hBi6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767387107; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=egSu/i6K4w3B3h5V7QhObzq6TnV1OPe7T24w5l+peio=; b=A/wTI8U3P53bmP9Wjh8Xtv/R/by3FSlW5qCIp5dqYCqMjAB4LN2DQpLGZZnCrtw59HApr6 wEYkKdwNz9nY0kTIXtv5rha6ihX4vaFzHZQ0dr96eRSQspEBkhooLcXRXwK1ifC59moRTn OEQ2+f+P74aP2WGwuvDmY8A3+sGrKOVAkJ5OE7rxyxzNUoOrglwemsSNNwFMFJdIhqpZv4 toPzutrnuG2peJjJrlXRee+0VywWCGWro7i5TITtDsh3clIN0jtW70u+KunQW4st68/3qy geb8uXc8KXwNzGIH6cBkN2TTPYbfuEcIdbZr2d21jTN+14r8g9/HOOatw9knrQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767387107; a=rsa-sha256; cv=none; b=lDsOV0sfeazDwCDIk6wA/Wkccl+fpZbzOhrbOSGbOhkCkeN0b5ixdIUINiiuJnhMvYaSgH UJ6W2wZl98HYoXj9mE7+ATqtmmTCsZhG8Md+0HbifV7xBqtNeg//cGYiB2gZkdlpchjJTJ 8SJCbBx3fog/PHqOA6VljLkcAo/6UBgphEtXXkmX+z+AmPZsl8CFre+PL1vqNKxjLXJEma qg/ELXP9Q/3peiHcDScmxMA8BIyO2lvwZhsfWzrIs3A09D54MF69wazW22prgdsm4d2FI4 WFLRI+U0HP6FBa1KAPC+iwWj7Lr0rbf9OqRCHPwg/5Zx2b2VZe+1VkmPGFTnWg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4djbTb6GY3zbDY for ; Fri, 02 Jan 2026 20:51:47 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id a2e1 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 02 Jan 2026 20:51:47 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: 7c6a0ba19de4 - stable/15 - OptionalObsoleteFiles.inc: fix up WITH_LLVM_LINK_STATIC_LIBRARIES cases List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 7c6a0ba19de410b54c3e853c692d3df0d8636538 Auto-Submitted: auto-generated Date: Fri, 02 Jan 2026 20:51:47 +0000 Message-Id: <69582fe3.a2e1.60c5eede@gitrepo.freebsd.org> The branch stable/15 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=7c6a0ba19de410b54c3e853c692d3df0d8636538 commit 7c6a0ba19de410b54c3e853c692d3df0d8636538 Author: Dimitry Andric AuthorDate: 2025-12-24 15:52:48 +0000 Commit: Dimitry Andric CommitDate: 2026-01-02 20:40:31 +0000 OptionalObsoleteFiles.inc: fix up WITH_LLVM_LINK_STATIC_LIBRARIES cases In commit cf1eaaf41cef I added the WITH_LLVM_LINK_STATIC_LIBRARIES src.conf(5) build knob, which also affects OptionalObsoleteFiles.inc. However, the checks were incorrect: when WITH_LLVM_LINK_STATIC_LIBRARIES is active, the OLD_LIBS libprivatellvm.so.19, libprivateclang.so.19 and libprivatelldb.so.19 should always be cleaned up. Fixes: cf1eaaf41cef MFC after: 1 week (cherry picked from commit 160077a4d75186a979f28f0778259c66d8cac8be) --- tools/build/mk/OptionalObsoleteFiles.inc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tools/build/mk/OptionalObsoleteFiles.inc b/tools/build/mk/OptionalObsoleteFiles.inc index f91651fd235b..d7131d01ef37 100644 --- a/tools/build/mk/OptionalObsoleteFiles.inc +++ b/tools/build/mk/OptionalObsoleteFiles.inc @@ -892,14 +892,14 @@ OLD_FILES+=usr/share/man/man4/ccd.4.gz OLD_FILES+=usr/share/man/man8/ccdconfig.8.gz .endif -.if ${MK_CLANG} == no && ${MK_CLANG_FORMAT} == no && ${MK_LLDB} == no && \ - ${MK_LLVM_LINK_STATIC_LIBRARIES} == no +.if (${MK_CLANG} == no && ${MK_CLANG_FORMAT} == no && ${MK_LLDB} == no) || \ + ${MK_LLVM_LINK_STATIC_LIBRARIES} != no OLD_LIBS+=usr/lib/libprivateclang.so.19 .endif -.if ${MK_CLANG_EXTRAS} == no && ${MK_CLANG} == no && ${MK_LLDB} == no && \ - ${MK_LLD} == no && ${MK_LLVM_BINUTILS} == no && ${MK_LLVM_COV} == no && \ - ${MK_LLVM_LINK_STATIC_LIBRARIES} == no +.if (${MK_CLANG_EXTRAS} == no && ${MK_CLANG} == no && ${MK_LLDB} == no && \ + ${MK_LLD} == no && ${MK_LLVM_BINUTILS} == no && ${MK_LLVM_COV} == no) || \ + ${MK_LLVM_LINK_STATIC_LIBRARIES} != no OLD_LIBS+=usr/lib/libprivatellvm.so.19 .endif @@ -3866,7 +3866,7 @@ OLD_LIBS+=${DEBUG_LIB${LIBCOMPAT}_LIBS} OLD_FILES+=usr/bin/ld.lld .endif -.if ${MK_LLDB} == no && ${MK_LLVM_LINK_STATIC_LIBRARIES} == no +.if ${MK_LLDB} == no || ${MK_LLVM_LINK_STATIC_LIBRARIES} != no OLD_LIBS+=usr/lib/libprivatelldb.so.19 .endif From nobody Fri Jan 2 20:51:48 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4djbTd4DWvz6MFT1 for ; Fri, 02 Jan 2026 20:51:49 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4djbTd06Ykz3pnK for ; Fri, 02 Jan 2026 20:51:49 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767387109; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Jzxj3jW6+9hUQ9EmGwxloxk4FsmUt+ElQLS9+TIdHdw=; b=hYkg75fdbjQGRngLxEmsccmNVHxGELZ9OzfXgUezyO1Z9fh+GofgW/jBWKcJZXf4fNLes1 JDA+aLdZm8rWENym7MzL5jEpAHcSOA0b+ncRBFbecGgO2KOZ9pC0WRSIJTSsfBOnUAKkTh zjhZPnqXe52DNDB3fknGYdLZihfYmizoFhveGCuQqEIdbbk7+Li9p4NN3/ZsabFGWm5b4g hYmIeNqgmM9jMO3etVu17SdTFGlMu0oyUu2Q4W06dH3J0mkBEdvmrXjqmGLjJSDITsGkww SCXqsf6QN84tkYAIwMWm7AAjdNEghPRdCdFzcIohTcb4tYPCMAlO27ZmWJkLEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767387109; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Jzxj3jW6+9hUQ9EmGwxloxk4FsmUt+ElQLS9+TIdHdw=; b=XpH9Zhu+EvpD2hoPPihJLlm7vUDelE1QfZpRCYUPHZROijlFfwaBORO6fH09FKQuw/lehb XG2gTPFXxgi2p7gNWPwVMPkwTaa/9hqDJdjFyr11xy7MzKc38F2u+B2xN7iolvkrOixm6u xKXLcvw5Pj0IhjgkO7a/sOEXnkihp3ygf3lWee+mni5LkJoZpJzDdGxOX3saBP4fSczX8K XAIqmx5/NsY4tWSZJn44Q8p5WKNrfbgCwbxarwyoaR6i0gE8Bm5vfNPNCMQWjMsdbrGQwW csD3YXFWmOmeSf87jEgSWsVjPjbLbDFJLULlzS4285Ei8F9erQX3KqoZHw3zlQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767387109; a=rsa-sha256; cv=none; b=VSgaUcSsGgBH0KhuPEyzd/YMvcjY/ElGnNU46GpQbN7OuHlQLrpBekZJF3AMeq8Ns7pYm/ YuxMUuGlbjoFnYPVchP5nMGxY7EP51c/BYG1/fdleIcDYbWdBdTeNeSB1F93BFCBENzrel 8e325PrBC646JRKEO2u58iQOryPj4rfAm/FVqlUlCqYbiwKhOQ0b6aiaCyaepUMKLbHON7 CNW2HQp5GEe2GE042s5bBZYEvPAufM1AR+5wD44jwRmEDCQitgH72e+oiU9eLtT2+d/Yjd i6HFVpezFdXhl317xS4wAtJbK/YHu2HjihqUj3wvZsjmF7c1GIv4L2PHctD6TQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4djbTc6rLqzZX8 for ; Fri, 02 Jan 2026 20:51:48 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id b891 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 02 Jan 2026 20:51:48 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: b93a3312cd8c - stable/15 - sh: avoid warnings about too-long initializer strings List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: b93a3312cd8cde4b6026170fd9d64e2e113f5253 Auto-Submitted: auto-generated Date: Fri, 02 Jan 2026 20:51:48 +0000 Message-Id: <69582fe4.b891.6afc5c69@gitrepo.freebsd.org> The branch stable/15 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=b93a3312cd8cde4b6026170fd9d64e2e113f5253 commit b93a3312cd8cde4b6026170fd9d64e2e113f5253 Author: Dimitry Andric AuthorDate: 2025-12-25 20:13:48 +0000 Commit: Dimitry Andric CommitDate: 2026-01-02 20:40:38 +0000 sh: avoid warnings about too-long initializer strings Mark `optletter` and `t_op::op_text` as `__non_string`, to avoid warnings from clang 21 similar to: bin/sh/options.h:77:36: error: initializer-string for character array is too long, array size is 19 but initializer has size 20 (including the null terminating character); did you mean to use the 'nonstring' attribute? [-Werror,-Wunterminated-string-initialization] 77 | const char optletter[NSHORTOPTS] = "efIimnsxvVECabupTPh"; | ^~~~~~~~~~~~~~~~~~~~~ bin/test/test.c:153:3: error: initializer-string for character array is too long, array size is 2 but initializer has size 3 (including the null terminating character); did you mean to use the 'nonstring' attribute? [-Werror,-Wunterminated-string-initialization] 153 | {"==", STREQ}, | ^~~~ MFC after: 3 days Reviewed by: jilles Differential Revision: https://reviews.freebsd.org/D54362 (cherry picked from commit e6546807f4c1a8a6a6fa53fceab7b8c80e3ed802) --- bin/sh/options.h | 2 +- bin/test/test.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/sh/options.h b/bin/sh/options.h index a059e19707b1..2ce2e6ebedf2 100644 --- a/bin/sh/options.h +++ b/bin/sh/options.h @@ -74,7 +74,7 @@ extern char optval[NOPTS]; extern const char optletter[NSHORTOPTS]; #ifdef DEFINE_OPTIONS char optval[NOPTS]; -const char optletter[NSHORTOPTS] = "efIimnsxvVECabupTPh"; +const char optletter[NSHORTOPTS] __nonstring = "efIimnsxvVECabupTPh"; static const unsigned char optname[] = "\007errexit" "\006noglob" diff --git a/bin/test/test.c b/bin/test/test.c index a35c5b424d3f..5ba5df5d7e44 100644 --- a/bin/test/test.c +++ b/bin/test/test.c @@ -116,7 +116,7 @@ enum token { #define TOKEN_TYPE(token) ((token) & 0xff00) static const struct t_op { - char op_text[2]; + char op_text[2] __nonstring; short op_num; } ops1[] = { {"=", STREQ}, From nobody Fri Jan 2 20:51:50 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4djbTf42bdz6MF8p for ; Fri, 02 Jan 2026 20:51:50 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4djbTf17V2z3q16 for ; Fri, 02 Jan 2026 20:51:50 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767387110; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=JNh549ephSVaEzj0tWE5jwLj7AYYjcD4jahlH3CF1sc=; b=NgmvUQVoByDRmRVaZ+gKw8opWxav55xu7YzQUEK+xxD+nymafOk4EhoS7Xvomyp50wF+S8 cBgSyiZkM6i6rOZGs2mgnRnBL03mJphEzfdq2PWs6/B7QS+3NpjAopBN3QvqtVIfy1kVWD x+3RRj2emPrLdIB828odWbg5JXPWgV0VR2DJWMOFwqI5tAn/SnQJWdTGCtdZnjmi0NWZKh 6nFAsMJb570u1qtKOeEH1pkh4+gKtppKnO2O7i3qLXHYtqwOYSOVY8MvbPW54l5SK2S/Wa x2+vM1YSHIsNPMTCsGBnAuPEHPbDHer7ETHDFUHEQ03Rbm7005CR6qbccUIl0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767387110; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=JNh549ephSVaEzj0tWE5jwLj7AYYjcD4jahlH3CF1sc=; b=Fz/zHqpF0qTS7beaTltA5EQpZ585t+Kwn4xbn0AUsEfnzNESL/jChjhroQntq+PHRRfejg T6bgoekAK99cqOmjSW3IY5An45PtHFAbtaWbVHCnh+6U4hQwA0IRpQ6c8cH1XeMy8+k2ie d4eXUzBmQUgYFpaA5W5Q9fmyK0F5T8T+ooGVyV/bfxlfVIj9PJWfmlu9QXXZ9nkQkdTGaq LZI7KBTRNDou8NN4mRLdtLsxw+NnMw/eEzqG/1yrfAlWohWKaiGxXAxSDEu9x4c1wiVf5U cDdWnRoc9qQ1RUrRg78TukMlDulMhX0AfKDMHa4cNH6mffEHCKT4hoLvvsLSrg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767387110; a=rsa-sha256; cv=none; b=bzqi1DSsPiK8jTQmywn2Kd02rHaQSvVEUxudWEbwyjLau7233w5NQdBc27xbgFPvqdSw5u YVZIvpxa1orR5VE7DpJt9X15iajudOLklo0dhGYWWZbZur8SL9Way75IrZLxxAca4JkeE+ K5IWvRkvV3OhjEpn8nU5CYLAS5magUbG+ATyGimlbKFB+BVOtAFYvZLF7BtmenlOr57EAm Q4rmphi0s67tjMvArU1GKtzaSDjfluvmeqrKskRjaV3ZQeM7ZHp7gTd086UvMEIwXfSbH+ 7vlK+QaRxzIVFn/HcxXqZru5TN2cQVlZHRiDgM4Xnv5Niai60b5kycYAU297dw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4djbTf0cfyzZd4 for ; Fri, 02 Jan 2026 20:51:50 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 9b65 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 02 Jan 2026 20:51:50 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: 219872681feb - stable/15 - bsd.sys.mk: suppress some new clang 21 warnings for C++ List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 219872681febf00661ce99e1cc38332dbdc5c422 Auto-Submitted: auto-generated Date: Fri, 02 Jan 2026 20:51:50 +0000 Message-Id: <69582fe6.9b65.75fd8f25@gitrepo.freebsd.org> The branch stable/15 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=219872681febf00661ce99e1cc38332dbdc5c422 commit 219872681febf00661ce99e1cc38332dbdc5c422 Author: Dimitry Andric AuthorDate: 2025-12-25 18:44:34 +0000 Commit: Dimitry Andric CommitDate: 2026-01-02 20:40:46 +0000 bsd.sys.mk: suppress some new clang 21 warnings for C++ Otherwise, these lead to many -Werror warnings in libc++ headers, due to our use of -Wsystem-headers, which is not officially supported upstream: Suppress -Wc++20-extensions, due to: /usr/include/c++/v1/__algorithm/simd_utils.h:96:50: error: explicit template parameter list for lambdas is a C++20 extension [-Werror,-Wc++20-extensions] 96 | inline constexpr size_t __simd_vector_size_v = []() -> size_t { | ^ Suppress -Wc++23-lambda-attributes, due to: /usr/include/c++/v1/__format/format_functions.h:462:32: error: an attribute specifier sequence in this position is a C++23 extension [-Werror,-Wc++23-lambda-attributes] 462 | if (bool __is_identity = [&] [[__gnu__::__pure__]] // Make sure the compiler knows this call can be eliminated | ^ Suppress -Wnullability-completeness, due to: /usr/include/c++/v1/string:1068:80: error: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Werror,-Wnullability-completeness] 1068 | _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 basic_string(const _CharT* __s, size_type __n) { | ^ MFC after: 3 days (cherry picked from commit 63d1c3c43690ff3c3e76e1fb03c8640fe30a2663) --- share/mk/bsd.sys.mk | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk index 2134886abcf5..50eb04b9fd15 100644 --- a/share/mk/bsd.sys.mk +++ b/share/mk/bsd.sys.mk @@ -93,6 +93,11 @@ CWARNFLAGS.clang+= -Wno-error=unused-but-set-parameter # Similar to gcc >= 8.1 -Wno-error=cast-function-type below CWARNFLAGS.clang+= -Wno-error=cast-function-type-mismatch .endif +.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 210000 +CXXWARNFLAGS.clang+= -Wno-c++20-extensions +CXXWARNFLAGS.clang+= -Wno-c++23-lambda-attributes +CXXWARNFLAGS.clang+= -Wno-nullability-completeness +.endif .endif # WARNS <= 6 .if ${WARNS} <= 3 CWARNFLAGS.clang+= -Wno-tautological-compare -Wno-unused-value\ From nobody Fri Jan 2 20:51:51 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4djbTg4DBQz6MFT2 for ; Fri, 02 Jan 2026 20:51:51 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4djbTg2Vhvz3pqF for ; Fri, 02 Jan 2026 20:51:51 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767387111; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=PQVGD2/oXL4jwmC1yuBlxXE5OodTxLJuSv41YuisEL0=; b=MgcqAL6KN+/Gi/RdZU6G2cyCAY64T9DIGGmNrU8qQ+OvbD3bu2Ey133+jXY9zVTYQlKQ0s 054zJE895+GvwoOXryMiN1JP1EvwE5SAz5uksx43S3rN/aNBHKtk8tryZMQGWiJTEVhln4 fFzqwhl9ApXqaooUO+26GvJH1/o3d9tJtwLntLWos3BUJEbBa16NALf1IbhWfWFEqpNSFW VFxb6Ej4IgTuodhAn1/ZJja0KEFRKQR9v8rDyLP8jTpsee+Y/tp31bBLB2gd6HAl4EUaVQ SAZH+H6p6x+a84LBAj1KzfluczCdDdkV1A1q5ZGlzSAo+7XtosrZVmUhSrj8vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767387111; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=PQVGD2/oXL4jwmC1yuBlxXE5OodTxLJuSv41YuisEL0=; b=J1ZBVzzBe+/AiWFopAX67mmPfD6fLh8TRLmEXQpArGgbiqw2dx+nlrSyc0UuBtnwyPymqY N4jQz24Fw784ZIdbGGeGNkgrcAavazyoZ5k9lG3YXWALvyiz7on6MRLQi8dZXqTwKMwaiv 28xBBFWgXws2Tf4nD85m9nQU0JCqLwrJHtVetGHJCNU2hfvVzawUmYakgV4W95+YVYSvvG oXG27yyjwWGRKctxzaVtxEs7t2pzkDqW6a08oSVfKy9lPVgI2TeYdIoc4AC9Gp9ZP+5pvG gJZy153tSibKI2AFbFUzO4ljw7V6r9mfojX9COKPiPPWnbBxgNhKUkqgvS5bNw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767387111; a=rsa-sha256; cv=none; b=Iai1SpRZ30Yi0fPfBJs5Wg8KQ4454zBtR0hC+lojdBtQ5vjI6FpLwZ5cUPHB7fPpV9o1LJ buHgSscZIlmL2QqHMRTKRFOkISiCJq3DTdta6YLU5ZpSxO88qWw4J22bnEXtL+BbXYbDsk ov7UV80+qFT44lwZYP/E7WmEup2wgamwhhzcB+17werv84YZtJv15ZmLyqWnCSmw7T8dQ+ wyQLfDQCovP49fdYeTkDA5remh2qMV/jW3yjTCoebxrvU56J62WkaELwRFYU2a0er9Y1lX t/tIfRsqMgUQpbrGw+ocqyVE0fKBZ60a5rpa0Ust+N+CQkYGsETxoq8P7+hW+A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4djbTg1MXszZQp for ; Fri, 02 Jan 2026 20:51:51 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id bd11 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 02 Jan 2026 20:51:51 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Cc: Kyle Evans From: Dimitry Andric Subject: git: 7d0243317f3a - stable/15 - compat: linux: use appropriate variables for copying out old timers List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 7d0243317f3a6ccddc9b71fd3ea96e877a043ec8 Auto-Submitted: auto-generated Date: Fri, 02 Jan 2026 20:51:51 +0000 Message-Id: <69582fe7.bd11.efa1ab6@gitrepo.freebsd.org> The branch stable/15 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=7d0243317f3a6ccddc9b71fd3ea96e877a043ec8 commit 7d0243317f3a6ccddc9b71fd3ea96e877a043ec8 Author: Kyle Evans AuthorDate: 2025-12-28 22:02:04 +0000 Commit: Dimitry Andric CommitDate: 2026-01-02 20:40:53 +0000 compat: linux: use appropriate variables for copying out old timers We copyout &l_oval but do the conversions into &l_val, leaving us with stack garbage. A build with an LLVM21 cross-toolchain seems to catch this. Reported by: Florian Limberger Reviewed by: markj Fixes: a1fd2911ddb06 ("linux(4): Implement timer_settime64 syscall.") MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D52985 (cherry picked from commit 541a98d7e28a8e4697ac2fa78dd4c4203c2c3a9c) --- sys/compat/linux/linux_timer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/compat/linux/linux_timer.c b/sys/compat/linux/linux_timer.c index ed9133359302..230be9572b85 100644 --- a/sys/compat/linux/linux_timer.c +++ b/sys/compat/linux/linux_timer.c @@ -131,7 +131,7 @@ linux_timer_settime(struct thread *td, struct linux_timer_settime_args *uap) return (error); error = kern_ktimer_settime(td, uap->timerid, flags, &val, ovalp); if (error == 0 && uap->old != NULL) { - error = native_to_linux_itimerspec(&l_val, &val); + error = native_to_linux_itimerspec(&l_oval, &oval); if (error == 0) error = copyout(&l_oval, uap->old, sizeof(l_oval)); } @@ -158,7 +158,7 @@ linux_timer_settime64(struct thread *td, struct linux_timer_settime64_args *uap) return (error); error = kern_ktimer_settime(td, uap->timerid, flags, &val, ovalp); if (error == 0 && uap->old != NULL) { - error = native_to_linux_itimerspec64(&l_val, &val); + error = native_to_linux_itimerspec64(&l_oval, &oval); if (error == 0) error = copyout(&l_oval, uap->old, sizeof(l_oval)); } From nobody Fri Jan 2 20:51:52 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4djbTj15R7z6MFT5 for ; Fri, 02 Jan 2026 20:51:53 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4djbTh2jBtz3qFZ for ; Fri, 02 Jan 2026 20:51:52 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767387112; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=2ppJmqGAk+SRaSxIDfR7i3Ecs5LtZXtTWHOY/qh/zKs=; b=C8fNFH+q8MhYy3AtiFprlSW0FlGL/esWPsUrm21HEtWCzm+jOpIum9KeYHewbffPZFUqdY H/l0P2ozq5K0Xf/Y6O+1/h8ru1qRpGrwFZt42Izsc0vPeHBiucWxrUDxx4J/jSSFAT3zpW twN7CTKSXMtWybCj7Uo4CHGQ8LYootKISYBJUvs83Zpj1nTrp2GNzmOR0StTkLaUPaCE/1 Z7Y3eg6Izywda1bilysx4Axuqb7XkdAj+XOY9n3m1p+2fsT3lg6YjudVRk3PUzpTb1aQZk 5SezqotN32B8BHjQU/zC8VH/m3oYAgvwKq8L9qJg4wt7KF9y6ccJ3D6XQDhOeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767387112; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=2ppJmqGAk+SRaSxIDfR7i3Ecs5LtZXtTWHOY/qh/zKs=; b=Di93qSATGAFlkV7lrraCLl1P3oKR4MOcepu358qcVe+sqQWE0ugrenyXHKYufVbYEjYIky HOgTrCscOxC2DnrsZSuXsZu+cs6FmzzA6IZ4ya0Ee1R30jU4pKP9QaLVLfUBFcE2tpYkUJ MAcyDcZrdoqYcQ9g2yK2NBcxbPiZJ+0y3vgOFWriWQbFBW+8dvD7iPHCo08lARvbKvCUBL a+k+DaBLYwDY4A6EaGjxMPu0CR307ybZMXIfWUAubtDfpI1UUqDPGsNaT3XXnUJPKKeRc6 9J0M6FMGIR9AV9gQMYjIl4Q51ocO04XpdAvQd+wHr+GjBDa3OFoblDGczhFpxg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767387112; a=rsa-sha256; cv=none; b=nf3u9cLd2/qBGwBn1Tur1p2N1+Hk62+AfHrDuLB+38T5mt976hfZx8CsiGOJxmqp4hPpOQ 9SMa9OQZHk9oSfbmV2Wt51/7TZfPMFYcBJ74TuMqDly1HudN2RsHtO4zHGod0pAGLl2HpX UL+jXygRgq8sJyLMr6aRObtc35H5JzpKRTNuDW2M6bsZHg4LIBUpdYZHNwABlPHnMFMuRU CBIMfFKN59/y0sG950q0kERAkktmtvMseeLdlAiXT41QVZmGhl82UKRlWsrOFjsjLwtht7 amLGnkAbomcCSVr4683kZtwefYANOxf/sWtvYIA1gusbCOCve1DXOKJyh5888w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4djbTh2BGczZXB for ; Fri, 02 Jan 2026 20:51:52 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id b6a1 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 02 Jan 2026 20:51:52 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: bc1740839883 - stable/15 - ncurses: avoid warnings about too-long initializer strings List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: bc1740839883c36a05589e87b4cff42434bb1d7d Auto-Submitted: auto-generated Date: Fri, 02 Jan 2026 20:51:52 +0000 Message-Id: <69582fe8.b6a1.41f53fc0@gitrepo.freebsd.org> The branch stable/15 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=bc1740839883c36a05589e87b4cff42434bb1d7d commit bc1740839883c36a05589e87b4cff42434bb1d7d Author: Dimitry Andric AuthorDate: 2025-12-30 12:48:07 +0000 Commit: Dimitry Andric CommitDate: 2026-01-02 20:41:29 +0000 ncurses: avoid warnings about too-long initializer strings Increase the size of `assoc::from` to 8 bytes, to avoid warnings from clang 21 similar to: contrib/ncurses/progs/infocmp.c:702:10: error: initializer-string for character array is too long, array size is 4 but initializer has size 5 (including the null terminating character); did you mean to use the 'nonstring' attribute? [-Werror,-Wunterminated-string-initialization] 702 | DATA("\033[2J", "ED2"), /* clear page */ | ^~~~~~~~~ contrib/ncurses/progs/infocmp.c:716:10: error: initializer-string for character array is too long, array size is 4 but initializer has size 5 (including the null terminating character); did you mean to use the 'nonstring' attribute? [-Werror,-Wunterminated-string-initialization] 716 | DATA("\033[!p", "DECSTR"), /* soft reset */ | ^~~~~~~~~ Reviewed by: markj Obtained from: https://invisible-island.net/archives/ncurses/6.5/ncurses-6.5-20241207.patch.gz MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D54371 (cherry picked from commit 667259b392ec0a86d066ccc6ba0f4025b3d2a083) --- contrib/ncurses/progs/infocmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/ncurses/progs/infocmp.c b/contrib/ncurses/progs/infocmp.c index 7932203ac2b1..f61633cfad80 100644 --- a/contrib/ncurses/progs/infocmp.c +++ b/contrib/ncurses/progs/infocmp.c @@ -687,7 +687,7 @@ compare_predicate(PredType type, PredIdx idx, const char *name) #define DATAX() DATA("", "") typedef struct { - const char from[4]; + const char from[8]; const char to[12]; } assoc; From nobody Fri Jan 2 20:51:46 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4djbTh5Lmkz6MFFy for ; Fri, 02 Jan 2026 20:51:52 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4djbTg62nQz3prv for ; Fri, 02 Jan 2026 20:51:51 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767387111; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=L0//RNn1W8+H3Qu/ZLLEWSPMYNWrY9JGQGqRKji28vQ=; b=Tgsl44mKLmAebRWbR8FS23ALS91k0KVHRzAoITVGY6vKvVioNKkhw7BMQ5wSstUtPTiBlk bK4UnWS7ao5RLdRTfVq2OFH1aYfN4xArqT/pA9+DqUkAZ/sZOPOMJyTiz5xlR0PSUVJXt8 cz2SlHorA+h5rWEDBTJeZy6xjYRMJbea1xEzv9F1t0jAWMiGMMzBKp+1vb2/HEWOnWR/zL TCrizGZvlI0uWZVF4tl+nB67rK1Wma4QRXZPUfSTP1HRYZhH+yyycWz65D8CzTNhZxtnWw aiarueabXrXdfsxlZ5T6YtY9aWhCSWvjpCT3nM7/2zqFgVAf1XSHHJE8o+FpeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767387111; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=L0//RNn1W8+H3Qu/ZLLEWSPMYNWrY9JGQGqRKji28vQ=; b=ifkVpFy9R5nEy20TFLVy1nWXewfSdscFqRJbj0FmDkF4jaGyeZA8VaQD4RsWayrXXx6qFE jAXPxMxFYJp8wPH5JVr3cv7d5kLNN6w7zp//7eBxqSBxOLNT+6GrjCEG+41Om+y2glwXac 3T2w3MU1y5UKdsvurPRjTH0rJHLFLjE0S7fDvhz9EfErqO6qN3lU6x5k2kx5ZBH2nCxv5M HI7hji/tEPXSuI5QhY1WYgLTzcE8N8RHTvCn4mjuP07szYCAqbgO3KqjnL0ryZhEYAgO1w Zgn+PkIR5o4/IGHqAUjyhTaviKNpp2WGiUiH51rHj1Bbu+zlOxMKzAFS5m2CJA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767387111; a=rsa-sha256; cv=none; b=q3TSGKn81mfsP+q9nhzMiKNxewOQ0kqdnLur+MnCFze1wNAVD4GjQW/B1BDWGGYLaCunCL rKtQ6IDugmcm0etxUiLxxFb3en8ARp9fLZxrpqUNgGDRfBjxszdjoEF2FJY7AZ9r2c/HEn fSZmeNKtYKFKYRBhrQteapmYNXAOjrjWig1sQtgbIqHCoJRaGvim8zKzEvH4x1DuAc3yzo t5a7iP1XQRLBwjAVQmZEoIAKmBL2OpYpbuMnYUmmaimCR3FgvixxZGxmiALQUWJlbFhK6B UTYqr5hSW2bHH8m/O4lPT6olkc/TvFIoQdCh0BMgbftmNrZb/K57hf+M4XSCqA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4djbTg5bmFzZQq for ; Fri, 02 Jan 2026 20:51:51 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id a94f by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 02 Jan 2026 20:51:46 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: ded12d66a3eb - stable/15 - src.conf: Add WITH_LLVM_LINK_STATIC_LIBRARIES build knob List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: ded12d66a3ebdac657c24746f9b13d5d332f3cbd Auto-Submitted: auto-generated Date: Fri, 02 Jan 2026 20:51:46 +0000 Message-Id: <69582fe2.a94f.17da59ca@gitrepo.freebsd.org> The branch stable/15 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=ded12d66a3ebdac657c24746f9b13d5d332f3cbd commit ded12d66a3ebdac657c24746f9b13d5d332f3cbd Author: Dimitry Andric AuthorDate: 2025-06-18 10:06:25 +0000 Commit: Dimitry Andric CommitDate: 2026-01-02 20:40:18 +0000 src.conf: Add WITH_LLVM_LINK_STATIC_LIBRARIES build knob In commit 2e47f35be5dc libllvm, libclang and liblldb were converted into private shared libraries. This allowed clang, lld, lldb, and other llvm tools to be linked against these shared libraries, which makes them smaller and avoids duplication. However, this also comes at the cost of some performance, since the dynamic libraries are quite large, and contain lots of long symbols (mangled C++ identifiers). Add a WITH_LLVM_LINK_STATIC_LIBRARIES build knob that can be used to go back to the previous behavior: libllvm, libclang and liblldb are built as internal static libraries, i.e. only available during buildworld, and fully linked into the various executables such as clang, lld, etc. PR: 287447 Reviewed by: emaste MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D50956 (cherry picked from commit 8d5a11cd0137d3ad70f6b06e063ea91a776d510a) --- lib/clang/libclang/Makefile | 8 ++++---- lib/clang/liblldb/Makefile | 13 ++++++++++++- lib/clang/libllvm/Makefile | 9 ++++----- share/man/man5/src.conf.5 | 9 ++++++++- share/mk/src.opts.mk | 1 + tools/build/mk/OptionalObsoleteFiles.inc | 11 ++++++++--- tools/build/options/WITH_LLVM_LINK_STATIC_LIBRARIES | 6 ++++++ usr.bin/clang/Makefile.inc | 2 +- usr.bin/clang/clang.prog.mk | 2 +- usr.bin/clang/lld/Makefile | 2 +- usr.bin/clang/lldb-server/Makefile | 5 +++++ usr.bin/clang/lldb/Makefile | 5 +++++ usr.bin/clang/llvm.prog.mk | 5 +++++ 13 files changed, 61 insertions(+), 17 deletions(-) diff --git a/lib/clang/libclang/Makefile b/lib/clang/libclang/Makefile index 7eb2c99b25c8..56f6fd374fe5 100644 --- a/lib/clang/libclang/Makefile +++ b/lib/clang/libclang/Makefile @@ -1,8 +1,8 @@ -.include +.include .include "../clang.pre.mk" -.if defined(TOOLS_PREFIX) -# Build static library during cross-tools stage +.if defined(TOOLS_PREFIX) || ${MK_LLVM_LINK_STATIC_LIBRARIES} == "yes" +# Build static library during cross-tools stage, or when explicitly requested. LIB= clang INTERNALLIB= .else @@ -872,7 +872,7 @@ SRCS+= ${SRCS_ALL:O} LIBDEPS+= llvm -.if defined(TOOLS_PREFIX) +.if defined(TOOLS_PREFIX) || ${MK_LLVM_LINK_STATIC_LIBRARIES} == "yes" LIBPRIV= LIBEXT= a .else diff --git a/lib/clang/liblldb/Makefile b/lib/clang/liblldb/Makefile index a3ff8e367864..aa9e90b2f6f2 100644 --- a/lib/clang/liblldb/Makefile +++ b/lib/clang/liblldb/Makefile @@ -1,10 +1,16 @@ -.include +.include .include "../lldb.pre.mk" +.if ${MK_LLVM_LINK_STATIC_LIBRARIES} == "yes" +# Build static library when explicitly requested. +LIB= lldb +INTERNALLIB= +.else PACKAGE= lldb SHLIB_CXX= lldb SHLIB_MAJOR= 19 PRIVATELIB= +.endif SHARED_CXXFLAGS+= -UPIC # To avoid compile errors @@ -753,8 +759,13 @@ SRCS+= Version/Version.cpp LIBDEPS+= clang LIBDEPS+= llvm +.if defined(TOOLS_PREFIX) || ${MK_LLVM_LINK_STATIC_LIBRARIES} == "yes" +LIBPRIV= +LIBEXT= a +.else LIBPRIV= private LIBEXT= so +.endif .for lib in ${LIBDEPS} DPADD+= ${OBJTOP}/lib/clang/lib${lib}/lib${LIBPRIV}${lib}.${LIBEXT} diff --git a/lib/clang/libllvm/Makefile b/lib/clang/libllvm/Makefile index a4e9c628d99e..05128550827a 100644 --- a/lib/clang/libllvm/Makefile +++ b/lib/clang/libllvm/Makefile @@ -1,8 +1,8 @@ -.include +.include .include "../llvm.pre.mk" -.if defined(TOOLS_PREFIX) -# Build static library during cross-tools stage +.if defined(TOOLS_PREFIX) || ${MK_LLVM_LINK_STATIC_LIBRARIES} == "yes" +# Build static library during cross-tools stage, or when explicitly requested. LIB= llvm INTERNALLIB= .else @@ -14,6 +14,7 @@ PRIVATELIB= # Work around "relocation R_PPC_GOT16 out of range" errors PICFLAG= -fPIC .endif +CFLAGS+= -DLLVM_BUILD_LLVM_DYLIB .endif SHARED_CXXFLAGS+= -UPIC # To avoid compile errors @@ -48,8 +49,6 @@ CFLAGS+= -DBLAKE3_NO_AVX512 -DBLAKE3_NO_AVX2 -DBLAKE3_NO_SSE41 \ CFLAGS+= -DBLAKE3_USE_NEON=0 .endif -CFLAGS+= -DLLVM_BUILD_LLVM_DYLIB - SRCDIR= llvm/lib # Explanation of different SRCS variants below: diff --git a/share/man/man5/src.conf.5 b/share/man/man5/src.conf.5 index ba8b79b7c5bd..724f664e2a11 100644 --- a/share/man/man5/src.conf.5 +++ b/share/man/man5/src.conf.5 @@ -1,5 +1,5 @@ .\" DO NOT EDIT-- this file is @generated by tools/build/options/makeman. -.Dd October 22, 2025 +.Dd December 21, 2025 .Dt SRC.CONF 5 .Os .Sh NAME @@ -995,6 +995,13 @@ Install ELF Tool Chain's cxxfilt as c++filt, instead of LLVM's llvm-cxxfilt. .It Va WITH_LLVM_FULL_DEBUGINFO Generate full debug information for LLVM libraries and tools, which uses more disk space and build resources, but allows for easier debugging. +.It Va WITH_LLVM_LINK_STATIC_LIBRARIES +Link LLVM libraries (libllvm, libclang, liblldb) statically into each of +the binaries that use them. + +This means that binaries linked against these libraries, such as clang, +ld.lld and lldb will be much larger and position dependent, but will +start more quickly. .It Va WITHOUT_LLVM_TARGET_AARCH64 Do not build LLVM target support for AArch64. The diff --git a/share/mk/src.opts.mk b/share/mk/src.opts.mk index 91ea9534fcd6..1167d7f7b812 100644 --- a/share/mk/src.opts.mk +++ b/share/mk/src.opts.mk @@ -212,6 +212,7 @@ __DEFAULT_NO_OPTIONS = \ LOADER_VERIEXEC_PASS_MANIFEST \ LLVM_ASSERTIONS \ LLVM_FULL_DEBUGINFO \ + LLVM_LINK_STATIC_LIBRARIES \ OFED_EXTRA \ OPENLDAP \ PTHREADS_ASSERTIONS \ diff --git a/tools/build/mk/OptionalObsoleteFiles.inc b/tools/build/mk/OptionalObsoleteFiles.inc index df51f6955d2d..f91651fd235b 100644 --- a/tools/build/mk/OptionalObsoleteFiles.inc +++ b/tools/build/mk/OptionalObsoleteFiles.inc @@ -892,12 +892,14 @@ OLD_FILES+=usr/share/man/man4/ccd.4.gz OLD_FILES+=usr/share/man/man8/ccdconfig.8.gz .endif -.if ${MK_CLANG} == no && ${MK_CLANG_FORMAT} == no && ${MK_LLDB} == no +.if ${MK_CLANG} == no && ${MK_CLANG_FORMAT} == no && ${MK_LLDB} == no && \ + ${MK_LLVM_LINK_STATIC_LIBRARIES} == no OLD_LIBS+=usr/lib/libprivateclang.so.19 .endif .if ${MK_CLANG_EXTRAS} == no && ${MK_CLANG} == no && ${MK_LLDB} == no && \ - ${MK_LLD} == no && ${MK_LLVM_BINUTILS} == no && ${MK_LLVM_COV} == no + ${MK_LLD} == no && ${MK_LLVM_BINUTILS} == no && ${MK_LLVM_COV} == no && \ + ${MK_LLVM_LINK_STATIC_LIBRARIES} == no OLD_LIBS+=usr/lib/libprivatellvm.so.19 .endif @@ -3864,10 +3866,13 @@ OLD_LIBS+=${DEBUG_LIB${LIBCOMPAT}_LIBS} OLD_FILES+=usr/bin/ld.lld .endif +.if ${MK_LLDB} == no && ${MK_LLVM_LINK_STATIC_LIBRARIES} == no +OLD_LIBS+=usr/lib/libprivatelldb.so.19 +.endif + .if ${MK_LLDB} == no OLD_FILES+=usr/bin/lldb OLD_FILES+=usr/bin/lldb-server -OLD_LIBS+=usr/lib/libprivatelldb.so.19 OLD_FILES+=usr/share/man/man1/lldb-server.1.gz OLD_FILES+=usr/share/man/man1/lldb.1.gz .endif diff --git a/tools/build/options/WITH_LLVM_LINK_STATIC_LIBRARIES b/tools/build/options/WITH_LLVM_LINK_STATIC_LIBRARIES new file mode 100644 index 000000000000..7860ee862b1d --- /dev/null +++ b/tools/build/options/WITH_LLVM_LINK_STATIC_LIBRARIES @@ -0,0 +1,6 @@ +Link LLVM libraries (libllvm, libclang, liblldb) statically into each of +the binaries that use them. + +This means that binaries linked against these libraries, such as clang, +ld.lld and lldb will be much larger and position dependent, but will +start more quickly. diff --git a/usr.bin/clang/Makefile.inc b/usr.bin/clang/Makefile.inc index 1e9998061cf6..7ce07e2eac1d 100644 --- a/usr.bin/clang/Makefile.inc +++ b/usr.bin/clang/Makefile.inc @@ -1,6 +1,6 @@ .include -.if defined(TOOLS_PREFIX) +.if defined(TOOLS_PREFIX) || ${MK_LLVM_LINK_STATIC_LIBRARIES} == "yes" MK_PIE:= no # Explicit libXXX.a references .endif diff --git a/usr.bin/clang/clang.prog.mk b/usr.bin/clang/clang.prog.mk index 3baf3d0baf0f..e35425b0d280 100644 --- a/usr.bin/clang/clang.prog.mk +++ b/usr.bin/clang/clang.prog.mk @@ -18,7 +18,7 @@ LIBADD+= z LIBADD+= zstd .endif -.if defined(TOOLS_PREFIX) +.if defined(TOOLS_PREFIX) || ${MK_LLVM_LINK_STATIC_LIBRARIES} == "yes" LIBPRIV= LIBEXT= a .else diff --git a/usr.bin/clang/lld/Makefile b/usr.bin/clang/lld/Makefile index cbad6f2b3fcd..588dc5a198fc 100644 --- a/usr.bin/clang/lld/Makefile +++ b/usr.bin/clang/lld/Makefile @@ -81,7 +81,7 @@ SRCS+= tools/lld/lld.cpp LIBDEPS+= llvm -.if defined(TOOLS_PREFIX) +.if defined(TOOLS_PREFIX) || ${MK_LLVM_LINK_STATIC_LIBRARIES} == "yes" LIBPRIV= LIBEXT= a .else diff --git a/usr.bin/clang/lldb-server/Makefile b/usr.bin/clang/lldb-server/Makefile index 5042fa1fdf04..da4d83445050 100644 --- a/usr.bin/clang/lldb-server/Makefile +++ b/usr.bin/clang/lldb-server/Makefile @@ -22,8 +22,13 @@ LIBDEPS+= lldb LIBDEPS+= clang LIBDEPS+= llvm +.if defined(TOOLS_PREFIX) || ${MK_LLVM_LINK_STATIC_LIBRARIES} == "yes" +LIBPRIV= +LIBEXT= a +.else LIBPRIV= private LIBEXT= so +.endif .for lib in ${LIBDEPS} DPADD+= ${OBJTOP}/lib/clang/lib${lib}/lib${LIBPRIV}${lib}.${LIBEXT} diff --git a/usr.bin/clang/lldb/Makefile b/usr.bin/clang/lldb/Makefile index 452bfd23bfa2..880d4de1c8fc 100644 --- a/usr.bin/clang/lldb/Makefile +++ b/usr.bin/clang/lldb/Makefile @@ -15,8 +15,13 @@ LIBDEPS+= lldb LIBDEPS+= clang LIBDEPS+= llvm +.if defined(TOOLS_PREFIX) || ${MK_LLVM_LINK_STATIC_LIBRARIES} == "yes" +LIBPRIV= +LIBEXT= a +.else LIBPRIV= private LIBEXT= so +.endif .for lib in ${LIBDEPS} DPADD+= ${OBJTOP}/lib/clang/lib${lib}/lib${LIBPRIV}${lib}.${LIBEXT} diff --git a/usr.bin/clang/llvm.prog.mk b/usr.bin/clang/llvm.prog.mk index c369fe8d5944..00f319a246fb 100644 --- a/usr.bin/clang/llvm.prog.mk +++ b/usr.bin/clang/llvm.prog.mk @@ -14,8 +14,13 @@ LIBPRIV= LIBEXT= a .else LIBDEPS+= llvm +.if ${MK_LLVM_LINK_STATIC_LIBRARIES} == "yes" +LIBPRIV= +LIBEXT= a +.else LIBPRIV= private LIBEXT= so +.endif LIBADD+= z LIBADD+= zstd .endif From nobody Fri Jan 2 20:51:53 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4djbTk1CKLz6MFgb for ; Fri, 02 Jan 2026 20:51:54 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4djbTj430Mz3qCr for ; Fri, 02 Jan 2026 20:51:53 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767387113; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=HnlqAUjMEHUQR1fI4F6V+LWh1Lez3FT+9gTCGV23uUM=; b=QiLjMY7UBsBNmfUtuoUnQMboDPcXVqBu7nJil9wvtviF6IzI8UpaCXhxg7ttp7P9yiOv0E aJ5p7JY9dk9HeqFG02OciS55qIXzwogI9dvhLpnYJIS72AcOowJUTZrBk2T1hFvuTAtvWr 4ehFQ+HDJ2UY3IA+20IOHcwhg1wZL7t06SP8y7g/Yq/+iMX01aFhgFNs2O5MNfc60z+6UP HennELDLx6GhE1H2EDIud7tfB7M+UCpKTRSor8ZEZyM3PyxdRP9u9oYI9xpkG3N/ddVHmb RYcKt0BVLAJBqGcVyjmmXqNP0V4S98qL4PuQdONC6fxpxp31yQ03JRKWK+hs3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767387113; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=HnlqAUjMEHUQR1fI4F6V+LWh1Lez3FT+9gTCGV23uUM=; b=tFQnR8DVLhtK1WnpEelWkLgxLcGx9f7AJ1RjtfizueqfTty1Y6B2hJz05MK4CHHSI1qJzK QYsxweNUVQmRi5oJT1Xybc2egpv7gA0ELhKlf6vJy/w1oKAjl7IH3GfG2LCIeNPlMKHc9B F7gB60RYDkrp9hwt0t7r/KLNVqGXngkKGRmhxAVdOmbaE1qAuRFBijfd7HlSU2GVxGYmhl oPHnLSHY23LD4Baw+XbCwlx53NywA2qR3hTcD0gtLsDsHMcbs1ygwnwBagHmOFSbSaR0kb v+t7F8LydhlCqdBINI+9V8lbH3fQ4psCulbyYJ37i6g5vkQm5b2Pyi92+ah8gw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767387113; a=rsa-sha256; cv=none; b=VuGRqXX/knBvhdoJoV5nHNC1q/6uqOPmQslyeg8O2ckVGGuiMGob4Yt7RG3yTYj66TcOIk 7IOZzlCned7KbF+EPxgjpS+qQeCLLzVHOZ99wNQ5CtBjSOVMgbr3LoJKJG8QhELm0vz5Cl holXKq5fhiofm3DYJZqaAWGxtXP4J/gqY+wBjhjBUC7J5tQxndhciJI7DkrS4gzMnyplNd AM0jgvi4EE1nbX2NPCTwi1jJB4rzt2yo1WGuCxXJ+cug+bGY5lf4ZZgJAis4ZlkbYscr/k 3dVKup2tnloSH5p/lCr9MVPYYjEmAoARK1UZk//D9tYqC1yteNzBqPjnKNd4Ew== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4djbTj30btzZTf for ; Fri, 02 Jan 2026 20:51:53 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id b627 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 02 Jan 2026 20:51:53 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: c17271f92431 - stable/15 - crypto: avoid warnings about too-long initializer strings List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: c17271f9243159079f6f54fbf13a025e979ee79c Auto-Submitted: auto-generated Date: Fri, 02 Jan 2026 20:51:53 +0000 Message-Id: <69582fe9.b627.6847bd90@gitrepo.freebsd.org> The branch stable/15 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=c17271f9243159079f6f54fbf13a025e979ee79c commit c17271f9243159079f6f54fbf13a025e979ee79c Author: Dimitry Andric AuthorDate: 2025-12-30 12:46:20 +0000 Commit: Dimitry Andric CommitDate: 2026-01-02 20:41:35 +0000 crypto: avoid warnings about too-long initializer strings Mark `sigma` and `tau` as `__non_string`, to avoid warnings from clang 21 similar to: sys/crypto/chacha20/chacha.c:53:31: error: initializer-string for character array is too long, array size is 16 but initializer has size 17 (including the null terminating character); did you mean to use the 'nonstring' attribute? [-Werror,-Wunterminated-string-initialization] 53 | static const char sigma[16] = "expand 32-byte k"; | ^~~~~~~~~~~~~~~~~~ sys/crypto/chacha20/chacha.c:54:29: error: initializer-string for character array is too long, array size is 16 but initializer has size 17 (including the null terminating character); did you mean to use the 'nonstring' attribute? [-Werror,-Wunterminated-string-initialization] 54 | static const char tau[16] = "expand 16-byte k"; | ^~~~~~~~~~~~~~~~~~ MFC after: 3 days Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D54364 (cherry picked from commit 710ec409dffed3306ced253bba85dbdc7758510b) --- sys/crypto/chacha20/chacha.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/crypto/chacha20/chacha.c b/sys/crypto/chacha20/chacha.c index 52f7e18c651c..b5f51bd10cc9 100644 --- a/sys/crypto/chacha20/chacha.c +++ b/sys/crypto/chacha20/chacha.c @@ -50,8 +50,8 @@ typedef struct chacha_ctx chacha_ctx; a = PLUS(a,b); d = ROTATE(XOR(d,a), 8); \ c = PLUS(c,d); b = ROTATE(XOR(b,c), 7); -static const char sigma[16] = "expand 32-byte k"; -static const char tau[16] = "expand 16-byte k"; +static const char sigma[16] __nonstring = "expand 32-byte k"; +static const char tau[16] __nonstring = "expand 16-byte k"; LOCAL void chacha_keysetup(chacha_ctx *x,const u8 *k,u32 kbits) From nobody Fri Jan 2 20:51:54 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4djbTk6RLYz6MFdQ for ; Fri, 02 Jan 2026 20:51:54 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4djbTk40tzz3qCy for ; Fri, 02 Jan 2026 20:51:54 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767387114; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=NQNiZBUBQq2PH43ZCZ5xlhpEi67viKcECzpAZdQVgg8=; b=QU8MBu9l1nlVetuP2FmnohHIGJjWrkJbQom6CFxhH0EoRNvwFJ4tGU1ohn6dYnMPRLKD+d LtxfZHvnXa6NAH1TNH0NrKv5Z6qyLrVeb2/G2Xiz50Bh0OXF9bghl/w8cylWjU2Tnc3hwU 9xSykqkzqB58GgfoT5ymO/DJR8W2XGuuR3oXEnwbf3mqAiYn9bA5XD+dDACD6Yf5Evs+UK 18DuI6bYIlkpDe9gqWx3CJyEWXuAkrHIgCKEWobKq2NOObuhGnCGp4cBApeYmxJRkfkl87 Z7Qlr4P3OvNM/qXy53fIqgfqM/+xWs8dtyESdyidX2f2nCHKUWJaQeLI4AR8zA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767387114; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=NQNiZBUBQq2PH43ZCZ5xlhpEi67viKcECzpAZdQVgg8=; b=fzVOS4cAkALElDT6NCljbB17oMUpo4Y6Hro/MVXWbB+Avc1qYQgGSawDFNWEUjdwkZN0I8 6F8ZFKsckUpt/x7j5wN2kChEs001WxGVaHXu3TepIRnCCj6QNidSSC/PlF8aPtuKlRwfdX zk15r8RHVpnRXrpEUfRySviBm5wPvWF/o1Wn2GE3EB5h9hMENDp+3hIyRjN3tNZ7l6Pahc uZEgvPAtcXV+M1F5Jtz0tmhUDiDmqc8NRk7PvLkc5xPgVhVaBRMMX0DHaiXNT/c1N7KvGj tp7dZZoJBdLAl+E3muWmIEtlNLlM4bgKetUAjG7LC2uQUy9n90PYnVNUNyOQtw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767387114; a=rsa-sha256; cv=none; b=HiiwK6ddah9vh1wOWb8/wcbzfEMdVMpvE2gGjxxP+nCAWtPTFZjUp6hSxClL9bV7uk5yCg s3KhFYcu9NjEn95mFBwbDKrv8tdTY/2GvloidYTRTwFlTBqzJK0FrURb6TkX8ykOYhaC7w Fb2ipH8qsDHM2ucAh1FI1sO5rw2vT7ub9WPFSmz1VB2DSr6j271jcotlfB8NSTlZq1eMp3 U/YO6dhTiNWIpCDw2F4s5BuChZXXYxaLsN8+IQFHHKec6GrVANhmqpJJzeIP7xnzukc2+2 LUVhuBoRSo7SeIsovBUzyqZkXMroRPSa+44NaAtmln2+eHlTgY5uAu+pKQLkVg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4djbTk3PF3zZTg for ; Fri, 02 Jan 2026 20:51:54 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id b96e by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 02 Jan 2026 20:51:54 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: 9c0bedbb2064 - stable/15 - zfs: rename several printf attribute declarations to __printf__ List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 9c0bedbb2064e9e02e2c20d1aa909360924033d7 Auto-Submitted: auto-generated Date: Fri, 02 Jan 2026 20:51:54 +0000 Message-Id: <69582fea.b96e.2a316b69@gitrepo.freebsd.org> The branch stable/15 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=9c0bedbb2064e9e02e2c20d1aa909360924033d7 commit 9c0bedbb2064e9e02e2c20d1aa909360924033d7 Author: Dimitry Andric AuthorDate: 2025-12-30 12:50:24 +0000 Commit: Dimitry Andric CommitDate: 2026-01-02 20:41:41 +0000 zfs: rename several printf attribute declarations to __printf__ For kernel builds, we redefine `__printf__` to `__freebsd_kprintf__`, to support FreeBSD kernel printf(9) extensions with clang. In OpenZFS various printf related functions are declared with __attribute__((format(printf, X, Y))), so these won't work with the above redefinition. With clang 21 and higher, this leads to errors similar to: sys/contrib/openzfs/module/zfs/spa_misc.c:414:38: error: passing 'printf' format string where 'freebsd_kprintf' format string is expected [-Werror,-Wformat] 414 | (void) vsnprintf(buf, sizeof (buf), fmt, adx); | ^ Since attribute names can always be spelled with leading and trailing double underscores, rename these instances. Note that in FreeBSD proper we usually use `__printflike` from , but that does not apply to OpenZFS. Reviewed by: emaste MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D54388 (cherry picked from commit bcd9ea853b14c85a61eb9079c59e966eed336578) --- sys/contrib/openzfs/include/os/freebsd/spl/sys/cmn_err.h | 16 ++++++++-------- sys/contrib/openzfs/include/os/freebsd/spl/sys/kmem.h | 4 ++-- sys/contrib/openzfs/include/sys/spa.h | 4 ++-- sys/contrib/openzfs/include/sys/vdev.h | 2 +- sys/contrib/openzfs/include/sys/zfs_debug.h | 2 +- 5 files changed, 14 insertions(+), 14 deletions(-) diff --git a/sys/contrib/openzfs/include/os/freebsd/spl/sys/cmn_err.h b/sys/contrib/openzfs/include/os/freebsd/spl/sys/cmn_err.h index 93dd1196d977..fa55b3917669 100644 --- a/sys/contrib/openzfs/include/os/freebsd/spl/sys/cmn_err.h +++ b/sys/contrib/openzfs/include/os/freebsd/spl/sys/cmn_err.h @@ -52,28 +52,28 @@ extern "C" { #ifndef _ASM extern void cmn_err(int, const char *, ...) - __attribute__((format(printf, 2, 3))); + __attribute__((format(__printf__, 2, 3))); extern void vzcmn_err(zoneid_t, int, const char *, __va_list) - __attribute__((format(printf, 3, 0))); + __attribute__((format(__printf__, 3, 0))); extern void vcmn_err(int, const char *, __va_list) - __attribute__((format(printf, 2, 0))); + __attribute__((format(__printf__, 2, 0))); extern void zcmn_err(zoneid_t, int, const char *, ...) - __attribute__((format(printf, 3, 4))); + __attribute__((format(__printf__, 3, 4))); extern void vzprintf(zoneid_t, const char *, __va_list) - __attribute__((format(printf, 2, 0))); + __attribute__((format(__printf__, 2, 0))); extern void zprintf(zoneid_t, const char *, ...) - __attribute__((format(printf, 2, 3))); + __attribute__((format(__printf__, 2, 3))); extern void vuprintf(const char *, __va_list) - __attribute__((format(printf, 1, 0))); + __attribute__((format(__printf__, 1, 0))); extern void panic(const char *, ...) - __attribute__((format(printf, 1, 2), __noreturn__)); + __attribute__((format(__printf__, 1, 2), __noreturn__)); #define cmn_err_once(ce, ...) \ do { \ diff --git a/sys/contrib/openzfs/include/os/freebsd/spl/sys/kmem.h b/sys/contrib/openzfs/include/os/freebsd/spl/sys/kmem.h index a9619d7d0219..4ae96c91a5f3 100644 --- a/sys/contrib/openzfs/include/os/freebsd/spl/sys/kmem.h +++ b/sys/contrib/openzfs/include/os/freebsd/spl/sys/kmem.h @@ -55,9 +55,9 @@ MALLOC_DECLARE(M_SOLARIS); typedef struct vmem vmem_t; extern char *kmem_asprintf(const char *, ...) - __attribute__((format(printf, 1, 2))); + __attribute__((format(__printf__, 1, 2))); extern char *kmem_vasprintf(const char *fmt, va_list ap) - __attribute__((format(printf, 1, 0))); + __attribute__((format(__printf__, 1, 0))); extern int kmem_scnprintf(char *restrict str, size_t size, const char *restrict fmt, ...); diff --git a/sys/contrib/openzfs/include/sys/spa.h b/sys/contrib/openzfs/include/sys/spa.h index 2a4cc60c4aa8..db30b5a066de 100644 --- a/sys/contrib/openzfs/include/sys/spa.h +++ b/sys/contrib/openzfs/include/sys/spa.h @@ -1127,9 +1127,9 @@ extern void spa_set_allocator(spa_t *spa, const char *allocator); /* Miscellaneous support routines */ extern void spa_load_failed(spa_t *spa, const char *fmt, ...) - __attribute__((format(printf, 2, 3))); + __attribute__((format(__printf__, 2, 3))); extern void spa_load_note(spa_t *spa, const char *fmt, ...) - __attribute__((format(printf, 2, 3))); + __attribute__((format(__printf__, 2, 3))); extern void spa_activate_mos_feature(spa_t *spa, const char *feature, dmu_tx_t *tx); extern void spa_deactivate_mos_feature(spa_t *spa, const char *feature); diff --git a/sys/contrib/openzfs/include/sys/vdev.h b/sys/contrib/openzfs/include/sys/vdev.h index 510474d6c085..86f2235f03ac 100644 --- a/sys/contrib/openzfs/include/sys/vdev.h +++ b/sys/contrib/openzfs/include/sys/vdev.h @@ -54,7 +54,7 @@ extern int zfs_nocacheflush; typedef boolean_t vdev_open_children_func_t(vdev_t *vd); extern void vdev_dbgmsg(vdev_t *vd, const char *fmt, ...) - __attribute__((format(printf, 2, 3))); + __attribute__((format(__printf__, 2, 3))); extern void vdev_dbgmsg_print_tree(vdev_t *, int); extern int vdev_open(vdev_t *); extern void vdev_open_children(vdev_t *); diff --git a/sys/contrib/openzfs/include/sys/zfs_debug.h b/sys/contrib/openzfs/include/sys/zfs_debug.h index 4d4cd4c39e97..87fafec0c9e7 100644 --- a/sys/contrib/openzfs/include/sys/zfs_debug.h +++ b/sys/contrib/openzfs/include/sys/zfs_debug.h @@ -67,7 +67,7 @@ extern int zfs_dbgmsg_enable; extern void __set_error(const char *file, const char *func, int line, int err); extern void __zfs_dbgmsg(char *buf); extern void __dprintf(boolean_t dprint, const char *file, const char *func, - int line, const char *fmt, ...) __attribute__((format(printf, 5, 6))); + int line, const char *fmt, ...) __attribute__((format(__printf__, 5, 6))); /* * Some general principles for using zfs_dbgmsg(): From nobody Fri Jan 2 20:52:06 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4djbTy41ybz6MFKm for ; Fri, 02 Jan 2026 20:52:06 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4djbTy2DRcz3qdV for ; Fri, 02 Jan 2026 20:52:06 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767387126; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=dsf0/OS9SonrxvsUDYBYrX6OOgCjIxmJHQRZyDVlGHg=; b=ii2DS0WecPUQ/2IDVTOM2n4wnlHL2bAuimhmsxz/2kJsA8hdGzAgalA8r2qZUzHYpC5phz yCHfnl0YrdFK2VfE22Hjv+Gm3b5gOXrlQRi0/9pR0rKmFcQjgmz1PCTfzLaxx4B2367+U6 Pa3JixVhOt01D9YDlSuzQ9FVIVHzQsyb9z4zWk7wQZ80QKBgDN8gSm7upFtMFn0nMd4wHq S0+yBSVAL1zp7KAr1l+OgTHU2Jr3xjtzjAtKRlDfHtm8YRqfsovNiDDyFIJ5eilffm018a SpHrhQrXWVELheEbLDLIFGFVY0yMfGDlJUcnNfNQOKrr0rXz4sdUjcIPfs/ZnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767387126; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=dsf0/OS9SonrxvsUDYBYrX6OOgCjIxmJHQRZyDVlGHg=; b=NDLfWENcbQfZeI4XQGe9ZFrjvpJKMeoITjIokg5RBh9rX6Y+B6uNAlrLv7kXNeFQmB1npy WhEMlOCIjmK821R52rbPcJUyM4x8/MDHB8dvO+x3uGIbYlmWDYBMACtlhjEax4Jn/N6mG9 tvRnRtKctJBTd4UcCXISbz1MQ77wQcpre1wWNVk/PN70rNh1hyAz0y/4bKVQwTAhCHAAbG X1Si9ykP8nOOhB1stxH+h56HwHil3Z0mlnb0bFU5GGZhfXEMhPO+8NEX3nWfzI99pwgy4c GzMuVw5m+VmHpJxkDp9svV8Dk5C9pao25FxWczawnSbJnBzX40DgcWMyz8UhNA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767387126; a=rsa-sha256; cv=none; b=TQOUFKRfU1bduFgfEmp9v08CZvr3LhkKWCq5kAIosrpi0nDu9e7CISIyU5/jt38Y6xxMfT 4+IMcGMICIVPg66h4nf08Isrrs4eRrwMTihtBgz6Ss4xGfFMCTFtYhSdvtG3LasTljGuA0 K9mDKiIVidVp1Jbn0JMFMNRZuVxxlkm49hhahzbAaNTkC6GO4q41Zy/hJXoZm5pMlRsDnE 3ZJ9YudsD47fowfZtx0fVQE8b1C7KjdqfoTVIecePoPJUdzu2IixNLIioeTrZl9RmHgtQT syGe+ev6Tx4/xNF2jfew+MQKSE8VRTJT8tEFzjea8bs3/eWKWo0XFiuCyn3/Ow== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4djbTy1ghqzb0y for ; Fri, 02 Jan 2026 20:52:06 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id a075 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 02 Jan 2026 20:52:06 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: 908ca4f6af8a - stable/14 - src.conf: Add WITH_LLVM_LINK_STATIC_LIBRARIES build knob List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 908ca4f6af8a95d6c6ae65caed4371f96afb6409 Auto-Submitted: auto-generated Date: Fri, 02 Jan 2026 20:52:06 +0000 Message-Id: <69582ff6.a075.491e9700@gitrepo.freebsd.org> The branch stable/14 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=908ca4f6af8a95d6c6ae65caed4371f96afb6409 commit 908ca4f6af8a95d6c6ae65caed4371f96afb6409 Author: Dimitry Andric AuthorDate: 2025-06-18 10:06:25 +0000 Commit: Dimitry Andric CommitDate: 2026-01-02 20:44:10 +0000 src.conf: Add WITH_LLVM_LINK_STATIC_LIBRARIES build knob In commit 2e47f35be5dc libllvm, libclang and liblldb were converted into private shared libraries. This allowed clang, lld, lldb, and other llvm tools to be linked against these shared libraries, which makes them smaller and avoids duplication. However, this also comes at the cost of some performance, since the dynamic libraries are quite large, and contain lots of long symbols (mangled C++ identifiers). Add a WITH_LLVM_LINK_STATIC_LIBRARIES build knob that can be used to go back to the previous behavior: libllvm, libclang and liblldb are built as internal static libraries, i.e. only available during buildworld, and fully linked into the various executables such as clang, lld, etc. PR: 287447 Reviewed by: emaste MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D50956 (cherry picked from commit 8d5a11cd0137d3ad70f6b06e063ea91a776d510a) --- lib/clang/libclang/Makefile | 9 ++++----- lib/clang/liblldb/Makefile | 14 ++++++++++++-- lib/clang/libllvm/Makefile | 10 ++++------ share/man/man5/src.conf.5 | 9 ++++++++- share/mk/src.opts.mk | 1 + tools/build/mk/OptionalObsoleteFiles.inc | 11 ++++++++--- tools/build/options/WITH_LLVM_LINK_STATIC_LIBRARIES | 6 ++++++ usr.bin/clang/Makefile.inc | 2 +- usr.bin/clang/clang.prog.mk | 2 +- usr.bin/clang/lld/Makefile | 2 +- usr.bin/clang/lldb-server/Makefile | 5 +++++ usr.bin/clang/lldb/Makefile | 5 +++++ usr.bin/clang/llvm.prog.mk | 5 +++++ 13 files changed, 61 insertions(+), 20 deletions(-) diff --git a/lib/clang/libclang/Makefile b/lib/clang/libclang/Makefile index 9b9e0cbadcd7..56f6fd374fe5 100644 --- a/lib/clang/libclang/Makefile +++ b/lib/clang/libclang/Makefile @@ -1,9 +1,8 @@ - -.include +.include .include "../clang.pre.mk" -.if defined(TOOLS_PREFIX) -# Build static library during cross-tools stage +.if defined(TOOLS_PREFIX) || ${MK_LLVM_LINK_STATIC_LIBRARIES} == "yes" +# Build static library during cross-tools stage, or when explicitly requested. LIB= clang INTERNALLIB= .else @@ -873,7 +872,7 @@ SRCS+= ${SRCS_ALL:O} LIBDEPS+= llvm -.if defined(TOOLS_PREFIX) +.if defined(TOOLS_PREFIX) || ${MK_LLVM_LINK_STATIC_LIBRARIES} == "yes" LIBPRIV= LIBEXT= a .else diff --git a/lib/clang/liblldb/Makefile b/lib/clang/liblldb/Makefile index 408ebc440686..aa9e90b2f6f2 100644 --- a/lib/clang/liblldb/Makefile +++ b/lib/clang/liblldb/Makefile @@ -1,11 +1,16 @@ - -.include +.include .include "../lldb.pre.mk" +.if ${MK_LLVM_LINK_STATIC_LIBRARIES} == "yes" +# Build static library when explicitly requested. +LIB= lldb +INTERNALLIB= +.else PACKAGE= lldb SHLIB_CXX= lldb SHLIB_MAJOR= 19 PRIVATELIB= +.endif SHARED_CXXFLAGS+= -UPIC # To avoid compile errors @@ -754,8 +759,13 @@ SRCS+= Version/Version.cpp LIBDEPS+= clang LIBDEPS+= llvm +.if defined(TOOLS_PREFIX) || ${MK_LLVM_LINK_STATIC_LIBRARIES} == "yes" +LIBPRIV= +LIBEXT= a +.else LIBPRIV= private LIBEXT= so +.endif .for lib in ${LIBDEPS} DPADD+= ${OBJTOP}/lib/clang/lib${lib}/lib${LIBPRIV}${lib}.${LIBEXT} diff --git a/lib/clang/libllvm/Makefile b/lib/clang/libllvm/Makefile index 835da5545e81..05128550827a 100644 --- a/lib/clang/libllvm/Makefile +++ b/lib/clang/libllvm/Makefile @@ -1,9 +1,8 @@ - -.include +.include .include "../llvm.pre.mk" -.if defined(TOOLS_PREFIX) -# Build static library during cross-tools stage +.if defined(TOOLS_PREFIX) || ${MK_LLVM_LINK_STATIC_LIBRARIES} == "yes" +# Build static library during cross-tools stage, or when explicitly requested. LIB= llvm INTERNALLIB= .else @@ -15,6 +14,7 @@ PRIVATELIB= # Work around "relocation R_PPC_GOT16 out of range" errors PICFLAG= -fPIC .endif +CFLAGS+= -DLLVM_BUILD_LLVM_DYLIB .endif SHARED_CXXFLAGS+= -UPIC # To avoid compile errors @@ -49,8 +49,6 @@ CFLAGS+= -DBLAKE3_NO_AVX512 -DBLAKE3_NO_AVX2 -DBLAKE3_NO_SSE41 \ CFLAGS+= -DBLAKE3_USE_NEON=0 .endif -CFLAGS+= -DLLVM_BUILD_LLVM_DYLIB - SRCDIR= llvm/lib # Explanation of different SRCS variants below: diff --git a/share/man/man5/src.conf.5 b/share/man/man5/src.conf.5 index f7e523ea70bb..ad1ba48ffbab 100644 --- a/share/man/man5/src.conf.5 +++ b/share/man/man5/src.conf.5 @@ -1,5 +1,5 @@ .\" DO NOT EDIT-- this file is @generated by tools/build/options/makeman. -.Dd October 22, 2025 +.Dd December 21, 2025 .Dt SRC.CONF 5 .Os .Sh NAME @@ -971,6 +971,13 @@ Install ELF Tool Chain's cxxfilt as c++filt, instead of LLVM's llvm-cxxfilt. .It Va WITH_LLVM_FULL_DEBUGINFO Generate full debug information for LLVM libraries and tools, which uses more disk space and build resources, but allows for easier debugging. +.It Va WITH_LLVM_LINK_STATIC_LIBRARIES +Link LLVM libraries (libllvm, libclang, liblldb) statically into each of +the binaries that use them. + +This means that binaries linked against these libraries, such as clang, +ld.lld and lldb will be much larger and position dependent, but will +start more quickly. .It Va WITHOUT_LLVM_TARGET_AARCH64 Do not build LLVM target support for AArch64. The diff --git a/share/mk/src.opts.mk b/share/mk/src.opts.mk index 0c8eb737fa05..6395efc7469f 100644 --- a/share/mk/src.opts.mk +++ b/share/mk/src.opts.mk @@ -213,6 +213,7 @@ __DEFAULT_NO_OPTIONS = \ LLVM_ASSERTIONS \ LLVM_BINUTILS \ LLVM_FULL_DEBUGINFO \ + LLVM_LINK_STATIC_LIBRARIES \ OFED_EXTRA \ OPENLDAP \ RPCBIND_WARMSTART_SUPPORT \ diff --git a/tools/build/mk/OptionalObsoleteFiles.inc b/tools/build/mk/OptionalObsoleteFiles.inc index 42514dc61b8c..1fed797b8f24 100644 --- a/tools/build/mk/OptionalObsoleteFiles.inc +++ b/tools/build/mk/OptionalObsoleteFiles.inc @@ -877,12 +877,14 @@ OLD_FILES+=usr/share/man/man4/ccd.4.gz OLD_FILES+=usr/share/man/man8/ccdconfig.8.gz .endif -.if ${MK_CLANG} == no && ${MK_CLANG_FORMAT} == no && ${MK_LLDB} == no +.if ${MK_CLANG} == no && ${MK_CLANG_FORMAT} == no && ${MK_LLDB} == no && \ + ${MK_LLVM_LINK_STATIC_LIBRARIES} == no OLD_LIBS+=usr/lib/libprivateclang.so.19 .endif .if ${MK_CLANG_EXTRAS} == no && ${MK_CLANG} == no && ${MK_LLDB} == no && \ - ${MK_LLD} == no && ${MK_LLVM_BINUTILS} == no && ${MK_LLVM_COV} == no + ${MK_LLD} == no && ${MK_LLVM_BINUTILS} == no && ${MK_LLVM_COV} == no && \ + ${MK_LLVM_LINK_STATIC_LIBRARIES} == no OLD_LIBS+=usr/lib/libprivatellvm.so.19 .endif @@ -3704,10 +3706,13 @@ OLD_LIBS+=${DEBUG_LIB${LIBCOMPAT}_LIBS} OLD_FILES+=usr/bin/ld.lld .endif +.if ${MK_LLDB} == no && ${MK_LLVM_LINK_STATIC_LIBRARIES} == no +OLD_LIBS+=usr/lib/libprivatelldb.so.19 +.endif + .if ${MK_LLDB} == no OLD_FILES+=usr/bin/lldb OLD_FILES+=usr/bin/lldb-server -OLD_LIBS+=usr/lib/libprivatelldb.so.19 OLD_FILES+=usr/share/man/man1/lldb-server.1.gz OLD_FILES+=usr/share/man/man1/lldb.1.gz .endif diff --git a/tools/build/options/WITH_LLVM_LINK_STATIC_LIBRARIES b/tools/build/options/WITH_LLVM_LINK_STATIC_LIBRARIES new file mode 100644 index 000000000000..7860ee862b1d --- /dev/null +++ b/tools/build/options/WITH_LLVM_LINK_STATIC_LIBRARIES @@ -0,0 +1,6 @@ +Link LLVM libraries (libllvm, libclang, liblldb) statically into each of +the binaries that use them. + +This means that binaries linked against these libraries, such as clang, +ld.lld and lldb will be much larger and position dependent, but will +start more quickly. diff --git a/usr.bin/clang/Makefile.inc b/usr.bin/clang/Makefile.inc index 68e749ef131d..169958a9ea32 100644 --- a/usr.bin/clang/Makefile.inc +++ b/usr.bin/clang/Makefile.inc @@ -1,7 +1,7 @@ .include -.if defined(TOOLS_PREFIX) +.if defined(TOOLS_PREFIX) || ${MK_LLVM_LINK_STATIC_LIBRARIES} == "yes" MK_PIE:= no # Explicit libXXX.a references .endif diff --git a/usr.bin/clang/clang.prog.mk b/usr.bin/clang/clang.prog.mk index 36c601bcbe36..cf4e5e0ce47a 100644 --- a/usr.bin/clang/clang.prog.mk +++ b/usr.bin/clang/clang.prog.mk @@ -18,7 +18,7 @@ LIBADD+= z LIBADD+= zstd .endif -.if defined(TOOLS_PREFIX) +.if defined(TOOLS_PREFIX) || ${MK_LLVM_LINK_STATIC_LIBRARIES} == "yes" LIBPRIV= LIBEXT= a .else diff --git a/usr.bin/clang/lld/Makefile b/usr.bin/clang/lld/Makefile index 6403835b10b6..240061610a58 100644 --- a/usr.bin/clang/lld/Makefile +++ b/usr.bin/clang/lld/Makefile @@ -82,7 +82,7 @@ SRCS+= tools/lld/lld.cpp LIBDEPS+= llvm -.if defined(TOOLS_PREFIX) +.if defined(TOOLS_PREFIX) || ${MK_LLVM_LINK_STATIC_LIBRARIES} == "yes" LIBPRIV= LIBEXT= a .else diff --git a/usr.bin/clang/lldb-server/Makefile b/usr.bin/clang/lldb-server/Makefile index e51923545956..b6df20a07d74 100644 --- a/usr.bin/clang/lldb-server/Makefile +++ b/usr.bin/clang/lldb-server/Makefile @@ -23,8 +23,13 @@ LIBDEPS+= lldb LIBDEPS+= clang LIBDEPS+= llvm +.if defined(TOOLS_PREFIX) || ${MK_LLVM_LINK_STATIC_LIBRARIES} == "yes" +LIBPRIV= +LIBEXT= a +.else LIBPRIV= private LIBEXT= so +.endif .for lib in ${LIBDEPS} DPADD+= ${OBJTOP}/lib/clang/lib${lib}/lib${LIBPRIV}${lib}.${LIBEXT} diff --git a/usr.bin/clang/lldb/Makefile b/usr.bin/clang/lldb/Makefile index b7668c03e6e5..bab8e332a152 100644 --- a/usr.bin/clang/lldb/Makefile +++ b/usr.bin/clang/lldb/Makefile @@ -16,8 +16,13 @@ LIBDEPS+= lldb LIBDEPS+= clang LIBDEPS+= llvm +.if defined(TOOLS_PREFIX) || ${MK_LLVM_LINK_STATIC_LIBRARIES} == "yes" +LIBPRIV= +LIBEXT= a +.else LIBPRIV= private LIBEXT= so +.endif .for lib in ${LIBDEPS} DPADD+= ${OBJTOP}/lib/clang/lib${lib}/lib${LIBPRIV}${lib}.${LIBEXT} diff --git a/usr.bin/clang/llvm.prog.mk b/usr.bin/clang/llvm.prog.mk index f702082e31bd..bded98007542 100644 --- a/usr.bin/clang/llvm.prog.mk +++ b/usr.bin/clang/llvm.prog.mk @@ -14,8 +14,13 @@ LIBPRIV= LIBEXT= a .else LIBDEPS+= llvm +.if ${MK_LLVM_LINK_STATIC_LIBRARIES} == "yes" +LIBPRIV= +LIBEXT= a +.else LIBPRIV= private LIBEXT= so +.endif LIBADD+= z LIBADD+= zstd .endif From nobody Fri Jan 2 20:52:08 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4djbV06Wvbz6MFKp for ; Fri, 02 Jan 2026 20:52:08 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4djbV03dSMz3qNQ for ; Fri, 02 Jan 2026 20:52:08 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767387128; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=qgDf4wLDSkkE75NAMmLgaN70i2hMWQ6zYw1RSxnNsxc=; b=H3vs9mprZSegKiaswWDwnelkROjH34/5s1kv0XLaRYNmpN0zep1bGYV6aQ8gN39B4kQEIC wc3nUCuFLCsvB4FnJXSIcMcX/9B0lNvhsQwvEqIuAqvV3K8HgJN1j4qu7/4bQTTTnvPneu gssPfnOjbMYIEClqCD5XMv/AMuHXP2nf6PBFAxOES1RStClbAsVz5+mbM6PILW7Rh+0jUi Z5XdNnYf6OcGXCt3MfcHVRwauMG8OBjnO672nIfz0uzfMOpJIGTMTdp3cPWhomMPGZ++W5 F80L4x6ODMhqhY41m4iQ4mUkT9rB7NK5ZU7o6F39fGHtdYVjf0ZE6bPMWRLyNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767387128; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=qgDf4wLDSkkE75NAMmLgaN70i2hMWQ6zYw1RSxnNsxc=; b=ddhgy9oqVGX90ZQtzTW9fv/n8W8r8Pd6RBc1UMIWc80SEuWNRVh/csFo2eD6qicOIaJEhS b9BhH/gcFa5Mr9iSVAuyGistATZr4Vpid+bAcHdgEiHHTe//nDmBB4kWWJm6bGvzvGSjDs b3Eju0IfbuxFxYFjMsULGt562eUFhGtQ5AmXIW0ajIVV1+uaHSDKRBBSNVh/cz6H7tnlqk Y5l/Es6bF+FLXat/DaKoeOMa9Wy1D8L41Xwy6wdPTkr2jUI3AjXaEdHhoEGB+/lOfBUI2n sCi/viD6b2fV0w0llILTUS1Yq431MAJf5RxjJSDP7cmNDIMNLhfd2MQJIwOZfQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767387128; a=rsa-sha256; cv=none; b=PYtkU38WQyytkb3/gf4y1GuNGm/SC4/UncxYGnRbHFwUj25uLxTIbZMRNHv3EUxNexI2z1 kygiNUN4u1CaRpM0WaFdeHnTz5vf23Fue2pC5perYdU4Sc+3erkPjIcnGllNRv52tLfQK+ OqX7qGf4YkUeOy8PKux1GWEJ4ntc5/M+WQNmG4krpdxkDtQyV42V6YCCuVVKJFKft9JcC+ Ub7jVXulYn6rMNiKtd3lEIqN1Mn5p5jpuNukt3q0QJIavU+kgqYOJLjfcUW3gRqSTe4Dej rtJjwegtC4EkbxiN1BE69GXRdo4bfiINlEhvzLaetsKqB1X4DWpChGTC+XbIlw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4djbV02whtzb10 for ; Fri, 02 Jan 2026 20:52:08 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id b6a9 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 02 Jan 2026 20:52:08 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: 3cd0026966d0 - stable/14 - sh: avoid warnings about too-long initializer strings List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 3cd0026966d0174c7143ac1d8233ed81ffa68ddf Auto-Submitted: auto-generated Date: Fri, 02 Jan 2026 20:52:08 +0000 Message-Id: <69582ff8.b6a9.770a90c@gitrepo.freebsd.org> The branch stable/14 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=3cd0026966d0174c7143ac1d8233ed81ffa68ddf commit 3cd0026966d0174c7143ac1d8233ed81ffa68ddf Author: Dimitry Andric AuthorDate: 2025-12-25 20:13:48 +0000 Commit: Dimitry Andric CommitDate: 2026-01-02 20:44:28 +0000 sh: avoid warnings about too-long initializer strings Mark `optletter` and `t_op::op_text` as `__non_string`, to avoid warnings from clang 21 similar to: bin/sh/options.h:77:36: error: initializer-string for character array is too long, array size is 19 but initializer has size 20 (including the null terminating character); did you mean to use the 'nonstring' attribute? [-Werror,-Wunterminated-string-initialization] 77 | const char optletter[NSHORTOPTS] = "efIimnsxvVECabupTPh"; | ^~~~~~~~~~~~~~~~~~~~~ bin/test/test.c:153:3: error: initializer-string for character array is too long, array size is 2 but initializer has size 3 (including the null terminating character); did you mean to use the 'nonstring' attribute? [-Werror,-Wunterminated-string-initialization] 153 | {"==", STREQ}, | ^~~~ MFC after: 3 days Reviewed by: jilles Differential Revision: https://reviews.freebsd.org/D54362 (cherry picked from commit e6546807f4c1a8a6a6fa53fceab7b8c80e3ed802) --- bin/sh/options.h | 2 +- bin/test/test.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/sh/options.h b/bin/sh/options.h index a477f24e90ca..526383b5bc1c 100644 --- a/bin/sh/options.h +++ b/bin/sh/options.h @@ -76,7 +76,7 @@ extern char optval[NOPTS]; extern const char optletter[NSHORTOPTS]; #ifdef DEFINE_OPTIONS char optval[NOPTS]; -const char optletter[NSHORTOPTS] = "efIimnsxvVECabupTPh"; +const char optletter[NSHORTOPTS] __nonstring = "efIimnsxvVECabupTPh"; static const unsigned char optname[] = "\007errexit" "\006noglob" diff --git a/bin/test/test.c b/bin/test/test.c index 1cb3eca8fe13..b8f6845c221f 100644 --- a/bin/test/test.c +++ b/bin/test/test.c @@ -117,7 +117,7 @@ enum token { #define TOKEN_TYPE(token) ((token) & 0xff00) static const struct t_op { - char op_text[2]; + char op_text[2] __nonstring; short op_num; } ops1[] = { {"=", STREQ}, From nobody Fri Jan 2 20:52:07 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4djbTz5drSz6MFhv for ; Fri, 02 Jan 2026 20:52:07 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4djbTz3KFCz3qbc for ; Fri, 02 Jan 2026 20:52:07 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767387127; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=3T6Ebx3GpxNpkZYRAaoS2f8NoHwhFQIZ/NJNGjxYG2A=; b=WRIjlxi2kbyQNdpVYNBVKmLVy28GkJpaDxFSaIXp0Vd6IlJEumZx2cN+bH2SGxA+FdQ57l uqDDFyNKBT1k5z+M59NS20PpPo+AAHAk+6/OAfQQjblCjnLhLHvC/iW2OcUCEWN+ZYh8ZT mtKj17bjBs9rp1EO2cYDBlJKMQ8mHjQXomTMaTp5bu6wgd30SveBNT3ZgEZd203r2+GP6E mtnAH+wkCl97ByMeAAQp7WDCt2ZcugRBjuB1KYRxZVhR5f0UBzrJUJNR1rD5QoERzDtqw9 Q24KtmZex8uyU9IJrzr/CReR+u4x6wFH0SnwN6cqYWzxaBDFwEkF+CpmJd8KBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767387127; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=3T6Ebx3GpxNpkZYRAaoS2f8NoHwhFQIZ/NJNGjxYG2A=; b=HvMTih5GIoQxl2d01589XZZW9tEjyfYh/Hd1uKjPdknhPPsizNR9nsoz7btqdakOsMRW7O 0fkMlC9wBgHZnEw5Q31N8IXWZQQFrAZ9lNrcOVKUmyE+OTSBX1CHLHVt2ri1oh4E5cmTwf gT3EGPTrtabkK1s+4nUM70jfdAOvy2wTBRfUZBTJDypzu3/byUDzZI5e38jj/N/TFV0CCp 3MiM1187HdcyWNTnNfj88qkdJz16NLW9ybDrdtogCn87usxkZ+KkiB5yhG2pvBgsxuQ1Q7 3v2HRCcATVJSdRRB+rzVuXTSdi7pxfrZ6koeroHuEnrUyxwP8lnTp9fLZ2Cq+g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767387127; a=rsa-sha256; cv=none; b=IoTbIPV84zUXqg5DO52at8ic3ypeS2KZeuWl62CXr3yuI7KP4vVcPhrCZQfTDSMiG6t4Fx GE6RfXZsFHm9h3dr+XCjHAQuko2E41gn3V9kGrA2I1uA7SE3oUiKfP0iu+d15scfTPokq6 B2wxnKZrfzWAIhNWtK5T5y9Hel0MZN9yQi69C4Q2f1N4nJ7aSOn0OrweNLB76b7uxFeHmy xnyW8yi8kDLWyoqBR+KBUtzc1ZMoKsvhn0AwH+jxm7PZ9FN+EIVcg6nGaPg9GUgOi5oCi5 XO30FKxYGHxDz+EkY9OzFcOSJiNzDdjQbLr7mHIhrtPzvf9aSJ6QfsdRR5N7lw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4djbTz2X0VzZTj for ; Fri, 02 Jan 2026 20:52:07 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id c027 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 02 Jan 2026 20:52:07 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: 41626383b651 - stable/14 - OptionalObsoleteFiles.inc: fix up WITH_LLVM_LINK_STATIC_LIBRARIES cases List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 41626383b651d4229197c2f439d5ff940da025c3 Auto-Submitted: auto-generated Date: Fri, 02 Jan 2026 20:52:07 +0000 Message-Id: <69582ff7.c027.1c31e3ab@gitrepo.freebsd.org> The branch stable/14 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=41626383b651d4229197c2f439d5ff940da025c3 commit 41626383b651d4229197c2f439d5ff940da025c3 Author: Dimitry Andric AuthorDate: 2025-12-24 15:52:48 +0000 Commit: Dimitry Andric CommitDate: 2026-01-02 20:44:21 +0000 OptionalObsoleteFiles.inc: fix up WITH_LLVM_LINK_STATIC_LIBRARIES cases In commit cf1eaaf41cef I added the WITH_LLVM_LINK_STATIC_LIBRARIES src.conf(5) build knob, which also affects OptionalObsoleteFiles.inc. However, the checks were incorrect: when WITH_LLVM_LINK_STATIC_LIBRARIES is active, the OLD_LIBS libprivatellvm.so.19, libprivateclang.so.19 and libprivatelldb.so.19 should always be cleaned up. Fixes: cf1eaaf41cef MFC after: 1 week (cherry picked from commit 160077a4d75186a979f28f0778259c66d8cac8be) --- tools/build/mk/OptionalObsoleteFiles.inc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tools/build/mk/OptionalObsoleteFiles.inc b/tools/build/mk/OptionalObsoleteFiles.inc index 1fed797b8f24..8b2688f7e626 100644 --- a/tools/build/mk/OptionalObsoleteFiles.inc +++ b/tools/build/mk/OptionalObsoleteFiles.inc @@ -877,14 +877,14 @@ OLD_FILES+=usr/share/man/man4/ccd.4.gz OLD_FILES+=usr/share/man/man8/ccdconfig.8.gz .endif -.if ${MK_CLANG} == no && ${MK_CLANG_FORMAT} == no && ${MK_LLDB} == no && \ - ${MK_LLVM_LINK_STATIC_LIBRARIES} == no +.if (${MK_CLANG} == no && ${MK_CLANG_FORMAT} == no && ${MK_LLDB} == no) || \ + ${MK_LLVM_LINK_STATIC_LIBRARIES} != no OLD_LIBS+=usr/lib/libprivateclang.so.19 .endif -.if ${MK_CLANG_EXTRAS} == no && ${MK_CLANG} == no && ${MK_LLDB} == no && \ - ${MK_LLD} == no && ${MK_LLVM_BINUTILS} == no && ${MK_LLVM_COV} == no && \ - ${MK_LLVM_LINK_STATIC_LIBRARIES} == no +.if (${MK_CLANG_EXTRAS} == no && ${MK_CLANG} == no && ${MK_LLDB} == no && \ + ${MK_LLD} == no && ${MK_LLVM_BINUTILS} == no && ${MK_LLVM_COV} == no) || \ + ${MK_LLVM_LINK_STATIC_LIBRARIES} != no OLD_LIBS+=usr/lib/libprivatellvm.so.19 .endif @@ -3706,7 +3706,7 @@ OLD_LIBS+=${DEBUG_LIB${LIBCOMPAT}_LIBS} OLD_FILES+=usr/bin/ld.lld .endif -.if ${MK_LLDB} == no && ${MK_LLVM_LINK_STATIC_LIBRARIES} == no +.if ${MK_LLDB} == no || ${MK_LLVM_LINK_STATIC_LIBRARIES} != no OLD_LIBS+=usr/lib/libprivatelldb.so.19 .endif From nobody Fri Jan 2 20:52:10 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4djbV260MVz6MF98 for ; Fri, 02 Jan 2026 20:52:10 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4djbV24TQcz3qR6 for ; Fri, 02 Jan 2026 20:52:10 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767387130; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=8M9ldwaIOsbFvxwTomTPmEPZVC00dyR0wMnjxXEEq/o=; b=m+1Xws1VP4c2djoWJGOj6YT1efmuXPtVbkg5kt5+H/rUMyrj0hVI/1Ja2BnSWKOuTd9TTl 05zB0eD2gVn1ZlEvv7Fu6JXgkWrbzl++7sT8ZH4AaBb7sqPQKdfrTtSKBiPPftIIKY2DSe tXkPoA9OwaMLtIVonuOh/A6s75BzoL6B8dni7lZQ8RHsw8XR8C6/gxi5gM49iTEKc0npG9 ADtzYvF5NsFGTV9W2CbUc5DOcTCVdvPeuFSJoH9I0KVvY11PAJEjld5Urxaia5ESFh/C3b Tu06KhHSIg2DJ1Gz+deMzsYJaXj0UeeFBkKifgHorT7uYZ7NmiLUtRFpSdnscw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767387130; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=8M9ldwaIOsbFvxwTomTPmEPZVC00dyR0wMnjxXEEq/o=; b=QGSwtemyVRkp0LYYSFY0OC06XVlqdulMGKGWmlAzP6olL9deHb0UtNSSLMbMuOlpyY31dP D2KydiI/pDV2uWG5EgNLtvxdQ9aGbqJ1GVjxGKQVpaRZ7sXi3rk6tUpyU0CKOIAHiiU1q/ 1GILJAuBA0KsfwOVYJbiG9/xWcuzfueW5Kr6ha7TukUIq/b1GW8+DOF9kZSsvnA2V+JOj/ 53yRtq1GGDne5fBuENyARkHdEBvSJkw0Lts7u5TthXaLUuShHb0v9UfDk/aHM9Gxzh+Fla nawjqKL9fn1m9lGH7DH+Jr0SJWzy9iwjxRszbwLlDC7bucI4i2i5FuhzVYWgDA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767387130; a=rsa-sha256; cv=none; b=OVZ9RAEjQk13bJmcvn+fuBatHLIVMt4/7Ve6kBdpxLLXfOVgK188W9dC5q/HxG1OjIoR21 HyeTkGn+6fnu+YrRh53ONcz63gRWsyuGbmO7s+fZrul9Ux/jmd8NG3kzFxkWU6zqWtbhTg c8i8MaCJkNypumxwsuBvpZYZBrriNK0+8QLWGNwN2dLGK9NNnavPsjRKf/CmckMO0W+a/H 0gISE2GI+lzH75+PK5G2cwZ6gCQYjUp1KHGcMUW6u+dfjaCkL4MTE8SE2CV/FaimQ4tKJ+ 658TSMXDJUKCaEAWJdTug2XAZEfn0YnsOJFVmfTMAbpQ80csud57UXo8bkWIWg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4djbV244zgzb11 for ; Fri, 02 Jan 2026 20:52:10 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id bb78 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 02 Jan 2026 20:52:10 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Cc: Kyle Evans From: Dimitry Andric Subject: git: 0c5ac3e46e78 - stable/14 - compat: linux: use appropriate variables for copying out old timers List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 0c5ac3e46e789133a90e874b3e54e4fa9a2e665b Auto-Submitted: auto-generated Date: Fri, 02 Jan 2026 20:52:10 +0000 Message-Id: <69582ffa.bb78.4a4ed9e2@gitrepo.freebsd.org> The branch stable/14 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=0c5ac3e46e789133a90e874b3e54e4fa9a2e665b commit 0c5ac3e46e789133a90e874b3e54e4fa9a2e665b Author: Kyle Evans AuthorDate: 2025-12-28 22:02:04 +0000 Commit: Dimitry Andric CommitDate: 2026-01-02 20:44:39 +0000 compat: linux: use appropriate variables for copying out old timers We copyout &l_oval but do the conversions into &l_val, leaving us with stack garbage. A build with an LLVM21 cross-toolchain seems to catch this. Reported by: Florian Limberger Reviewed by: markj Fixes: a1fd2911ddb06 ("linux(4): Implement timer_settime64 syscall.") MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D52985 (cherry picked from commit 541a98d7e28a8e4697ac2fa78dd4c4203c2c3a9c) --- sys/compat/linux/linux_timer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/compat/linux/linux_timer.c b/sys/compat/linux/linux_timer.c index 2188006ec38f..2e0a8269c0f8 100644 --- a/sys/compat/linux/linux_timer.c +++ b/sys/compat/linux/linux_timer.c @@ -131,7 +131,7 @@ linux_timer_settime(struct thread *td, struct linux_timer_settime_args *uap) return (error); error = kern_ktimer_settime(td, uap->timerid, flags, &val, ovalp); if (error == 0 && uap->old != NULL) { - error = native_to_linux_itimerspec(&l_val, &val); + error = native_to_linux_itimerspec(&l_oval, &oval); if (error == 0) error = copyout(&l_oval, uap->old, sizeof(l_oval)); } @@ -158,7 +158,7 @@ linux_timer_settime64(struct thread *td, struct linux_timer_settime64_args *uap) return (error); error = kern_ktimer_settime(td, uap->timerid, flags, &val, ovalp); if (error == 0 && uap->old != NULL) { - error = native_to_linux_itimerspec64(&l_val, &val); + error = native_to_linux_itimerspec64(&l_oval, &oval); if (error == 0) error = copyout(&l_oval, uap->old, sizeof(l_oval)); } From nobody Fri Jan 2 20:52:09 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4djbV20jQFz6MF97 for ; Fri, 02 Jan 2026 20:52:10 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4djbV141prz3qQr for ; Fri, 02 Jan 2026 20:52:09 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767387129; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Q/XOdp3Vq5L4cKuxH7iz16sPpt6LG5v3Ckcpv1ZZFZw=; b=tAeJ/BiIn+++tSEwNcxcI1guhXgCmdBBjGshXhSrXZyx8gFehC811QrxLferuCmHXiycE1 soekoS0Ovv0FEDS1JzpWomc5f1PmvbAuOGS1GVmLb1w74gM30/P8oKbGPFLExF1fq6LDeY FcyxbJsjs7t97n7CXYySnncEENqy1hkyp04MgoVzPWj8bMXpIwl1e92a9kqL2kIK0yfSo4 IfP0Sn8ouvF4Ydhj70iaHsSOB7o3FiWq0QDx0XSuZuwRbIFKK00T4LChfkt9fhCvC/Rdo3 uq+eKF/S49AA4lMZBXkSnwWaPh+CN724x2RucHoVhq4RqArylIuUDhtK2WDwgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767387129; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Q/XOdp3Vq5L4cKuxH7iz16sPpt6LG5v3Ckcpv1ZZFZw=; b=AF/ITbOhxrHFszKsP1n1oeI5J1oIiLBwClgUFBKWOVqrw9Z1c6yrRaO+i+SLwOOkelGNYI eFdUE/XwLlN1mw5dlHWz4ojYta3FHyC6jwSxOZ6MS1OzOlYASYMSm6qXmWndBCZt0UW8J5 NUffVgZn/2qLy7l/TKRKRyHU5dWS8dU+tEDWonoElG7GOqWcDi6U+2YovohI7mov6H6XE8 BfmgbEnQlgRrnjZ44/YeQHOy/MTgVCQCspybxjSW0xoPsQEBFineBcliobF/qt5jRQ2Ez4 jYlm4OIMJ6HGW3uRNj2KSigpsohckXYxNM2KBsTye6UI1azGNzzemvPKIP5Izg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767387129; a=rsa-sha256; cv=none; b=Tc+yGhD0uSudjAGzVRgjehcGerKfudAozWOV3rUM8xPze9OcNLvJQbETygXVyjpUAFsRtv d/09mnisQu/vWZ1TrVHuNKjOBLsuMKjAv1h00RuZQUyAPGMb8kPmSgOhKURkOQRUkJej14 rScBcPiA/Ih1Q71hBNuGm4bU0CduwulayagON5xfuE3kEEm4jWi9gN7zXI+yrzFjnWwo6t du+Ky2FuC+mMxOn/M/N8Qp9+9s02uEjv738pxuqUFPSXMkA3Wn4vJg85ECSDPwfAB9URnV edrDUxyW0Ej+TRznmzMomFgddAZVPVIQbiKs4WHrluSOYC2RmMNe/rN7qnC1/A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4djbV13QkNzb36 for ; Fri, 02 Jan 2026 20:52:09 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id b79a by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 02 Jan 2026 20:52:09 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: c645b2f41833 - stable/14 - bsd.sys.mk: suppress some new clang 21 warnings for C++ List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: c645b2f41833063795f470e393c2b0f0961b1134 Auto-Submitted: auto-generated Date: Fri, 02 Jan 2026 20:52:09 +0000 Message-Id: <69582ff9.b79a.c951a58@gitrepo.freebsd.org> The branch stable/14 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=c645b2f41833063795f470e393c2b0f0961b1134 commit c645b2f41833063795f470e393c2b0f0961b1134 Author: Dimitry Andric AuthorDate: 2025-12-25 18:44:34 +0000 Commit: Dimitry Andric CommitDate: 2026-01-02 20:44:34 +0000 bsd.sys.mk: suppress some new clang 21 warnings for C++ Otherwise, these lead to many -Werror warnings in libc++ headers, due to our use of -Wsystem-headers, which is not officially supported upstream: Suppress -Wc++20-extensions, due to: /usr/include/c++/v1/__algorithm/simd_utils.h:96:50: error: explicit template parameter list for lambdas is a C++20 extension [-Werror,-Wc++20-extensions] 96 | inline constexpr size_t __simd_vector_size_v = []() -> size_t { | ^ Suppress -Wc++23-lambda-attributes, due to: /usr/include/c++/v1/__format/format_functions.h:462:32: error: an attribute specifier sequence in this position is a C++23 extension [-Werror,-Wc++23-lambda-attributes] 462 | if (bool __is_identity = [&] [[__gnu__::__pure__]] // Make sure the compiler knows this call can be eliminated | ^ Suppress -Wnullability-completeness, due to: /usr/include/c++/v1/string:1068:80: error: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Werror,-Wnullability-completeness] 1068 | _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 basic_string(const _CharT* __s, size_type __n) { | ^ MFC after: 3 days (cherry picked from commit 63d1c3c43690ff3c3e76e1fb03c8640fe30a2663) --- share/mk/bsd.sys.mk | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk index 061c6b36f84d..1b34b70504c5 100644 --- a/share/mk/bsd.sys.mk +++ b/share/mk/bsd.sys.mk @@ -92,6 +92,11 @@ CWARNFLAGS.clang+= -Wno-error=unused-but-set-parameter # Similar to gcc >= 8.1 -Wno-error=cast-function-type below CWARNFLAGS.clang+= -Wno-error=cast-function-type-mismatch .endif +.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 210000 +CXXWARNFLAGS.clang+= -Wno-c++20-extensions +CXXWARNFLAGS.clang+= -Wno-c++23-lambda-attributes +CXXWARNFLAGS.clang+= -Wno-nullability-completeness +.endif .endif # WARNS <= 6 .if ${WARNS} <= 3 CWARNFLAGS.clang+= -Wno-tautological-compare -Wno-unused-value\ From nobody Fri Jan 2 20:52:12 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4djbV537cHz6MFp0 for ; Fri, 02 Jan 2026 20:52:13 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4djbV46TQ7z3qfj for ; Fri, 02 Jan 2026 20:52:12 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767387133; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Q0cGhYuc0bS9IJorScFaCJhCqaW9Pc0ckUnCkmW3O+s=; b=mMjXmDCOP3rdiWsI44s5GDjezsOs0a60dcXssGdYrLArqoQTWFz/7TPexNveUItudaTjrf Dpmjdg6gIwljivBwJh2RK4vp7kAdS5rCQc1abUcLBEKOFfbLQE0cx4GV1gVNTu8elZudqW qJe9kZCRqrP6LNTTHoJs22VcnQkbcXjtIr3Sq9q+DOLjRKCnwV7iya9IwMaIn9jg/k4oZF sZGHJec/krna3Eh3nBOVRYZHXeOiQ+9zegQSm5X/V0nlG/hAW/BySbbYwGND/v3K3UGYq/ 4nvwrIP3yAErcNDpKorIRWktGX32Ev/6YGqMrvSKLZBSkqYAYIl5BX7eWFKC5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767387132; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Q0cGhYuc0bS9IJorScFaCJhCqaW9Pc0ckUnCkmW3O+s=; b=p3CBmudjoZf8UapRyuSisJyd96ZWURjlsReYH6Lhw5DNLcbW1GuV9+cqyPfu4pIxQay0Li vhJ3n4+5TBOII56TB/Jt2zQpivsd15OduQ3o+8v5cec+XdrFrJxXbhBkiZMC1ev8q/DKHm Ef/dsBFqXhp80C5A6QbxyfegAqn/xrQ6YJW6yPp1BgFiZcPpgHnLSbnvOCh5TxFmaXwadN Ii4LY3S8yfinm5qs0RRPNaJqcXOCFVwa7aB7aclbJIMRtPyMUXO3QEatJch54l2glh8nD+ L4U8N3S6+F7BI5/jRM07siL0xp7vRuTNwv5uhJHz7qAzMvDh4H+1egmMinNBaQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767387132; a=rsa-sha256; cv=none; b=lHg5E81NByBWtMnle3VfQJDGGWL6iz5uMb2pxhXN/Gd18r0EN92WK488Rvz8oREiAwAI4h BlPnEQHBSrr5YJOQRXkm6TKrtKye4lXP9nXZxwnUUfsNSWC3fAuFrScCLB4mmJByZnBW84 OaTendi1ZLB+V5vg9enA3yzB6JdTiGvgPO9b2KSsqwyH1Dbb0KmAd0n0AXDEKRlYQKdUb7 aH0s7iXgArkUclL8PRCdtTiudGW+Hsq3SLOMDP9qqf6HSuxepZbj/cwGruB/Vxo3930N7/ xQX2h5OAsU+L6gfto6AL1Q1KTBoC5pomqMLxwgx3me4A2ydrfMqQEzMqUAceiw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4djbV45LZLzb38 for ; Fri, 02 Jan 2026 20:52:12 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id baf4 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 02 Jan 2026 20:52:12 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: 752d056fce33 - stable/14 - crypto: avoid warnings about too-long initializer strings List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 752d056fce33052d482eeb24756497fc44dac579 Auto-Submitted: auto-generated Date: Fri, 02 Jan 2026 20:52:12 +0000 Message-Id: <69582ffc.baf4.4b7ec9ac@gitrepo.freebsd.org> The branch stable/14 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=752d056fce33052d482eeb24756497fc44dac579 commit 752d056fce33052d482eeb24756497fc44dac579 Author: Dimitry Andric AuthorDate: 2025-12-30 12:46:20 +0000 Commit: Dimitry Andric CommitDate: 2026-01-02 20:44:59 +0000 crypto: avoid warnings about too-long initializer strings Mark `sigma` and `tau` as `__non_string`, to avoid warnings from clang 21 similar to: sys/crypto/chacha20/chacha.c:53:31: error: initializer-string for character array is too long, array size is 16 but initializer has size 17 (including the null terminating character); did you mean to use the 'nonstring' attribute? [-Werror,-Wunterminated-string-initialization] 53 | static const char sigma[16] = "expand 32-byte k"; | ^~~~~~~~~~~~~~~~~~ sys/crypto/chacha20/chacha.c:54:29: error: initializer-string for character array is too long, array size is 16 but initializer has size 17 (including the null terminating character); did you mean to use the 'nonstring' attribute? [-Werror,-Wunterminated-string-initialization] 54 | static const char tau[16] = "expand 16-byte k"; | ^~~~~~~~~~~~~~~~~~ MFC after: 3 days Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D54364 (cherry picked from commit 710ec409dffed3306ced253bba85dbdc7758510b) --- sys/crypto/chacha20/chacha.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/crypto/chacha20/chacha.c b/sys/crypto/chacha20/chacha.c index e22c348d14bd..8ce69226635f 100644 --- a/sys/crypto/chacha20/chacha.c +++ b/sys/crypto/chacha20/chacha.c @@ -51,8 +51,8 @@ typedef struct chacha_ctx chacha_ctx; a = PLUS(a,b); d = ROTATE(XOR(d,a), 8); \ c = PLUS(c,d); b = ROTATE(XOR(b,c), 7); -static const char sigma[16] = "expand 32-byte k"; -static const char tau[16] = "expand 16-byte k"; +static const char sigma[16] __nonstring = "expand 32-byte k"; +static const char tau[16] __nonstring = "expand 16-byte k"; LOCAL void chacha_keysetup(chacha_ctx *x,const u8 *k,u32 kbits) From nobody Fri Jan 2 20:52:11 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4djbV41wc6z6MFTd for ; Fri, 02 Jan 2026 20:52:12 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4djbV36YqZz3qWq for ; Fri, 02 Jan 2026 20:52:11 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767387131; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=pC9Ye1TFwNXev1vJo6wPww1JMN2n1CFxW9RNvC4LUAQ=; b=OOIip1Crv4K+kuJViBIzbWBrMvCIOubL+lpbOvwKpMTywfBLt4b2PqB8uhzSxANvxfyqFe cyHiZoBDEB1JWAXEKuJOG3oXbbWfZ1lODjTQzq4S/1HeABXNhIyLoZfryWqyLuvcmE9Lwe q94U31TF4G0nxj4pnQT/wHHX1wilobu8ayS0zuSkhw5gi1NJ0r3xW7KLRn60q//rZsWgxV j6cBcFuf3CnswBA6jLoXm1yBjM0z5Ud0TWnkPyW49TFeHOxdof7yUbLsbidWUsovEByNSV b4Ew7bBOJwKIsVJME1U3YvXoe81BzVgIOZWcwcCGBlSp4Is+YnUOBqBcsotnww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767387131; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=pC9Ye1TFwNXev1vJo6wPww1JMN2n1CFxW9RNvC4LUAQ=; b=Y2yBM7TaTpwj5NMLq0w+hi92twW4uQNVik47xRtZ9LKUd7ErRgX+j/FMBWy4eqHpCkOpW9 vIMkQ3FYX4L4vTjqybxHoa2SBukhi7Z3q1HOVoATPJAGc19c8WgTLXTEbhthnnIyJZbB2e y6R0zbS5uC2HFbV2Mvpw2YdkQ3lQ1iwRs27XdLaRg3Ys1CVwZbAQVYBUERXyR/SoKrnCs8 E/X+9VkqA1/P89DbrTf576ZJjRUEB7bv3P5bFe9qVf/jCx6WSHbYZBBQNoUNb3Engkf2Ce Ni2wHCHfzSbGHzDKXO6CJYVb4E55CuJPllfPgFI6qWZNgB+QWrv56hfTc52SaA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767387131; a=rsa-sha256; cv=none; b=BFPBjbEn8mK7tmLVs4uv/KTcxY9ge98EReUJ5v8yrF8yXTJD8dE6CXYKJHo0XwSclYM7PA rNPxtYr8WJC9E15Azp5MUd0IPzyyGfg8tKWz0/IzsktaRsI05Gq6f6VxqNPC1k9ndn+VS3 g141gHys1Dstj0Lbk+/X2mT+cjzWlDOwly6qlApQVYvKd0YZk1Cv5BfWdWM0BPNtlMbsWp n7d5Xss0vPBZ8miRqJTPVVHYZAuJ9caESYR0aXHbjgm489OPSTCkRZOkIIj0WZ/ipnow5A 5ZsLx1SsMv+SpChEJU33/7dRectjEPjBFkt2IG0PIblLJc+WtCfOfsL6fhmNJA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4djbV34Z9fzZdJ for ; Fri, 02 Jan 2026 20:52:11 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id a7fe by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 02 Jan 2026 20:52:11 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: a7805f334170 - stable/14 - ncurses: avoid warnings about too-long initializer strings List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: a7805f3341705323f80c579173777f947bd8aae3 Auto-Submitted: auto-generated Date: Fri, 02 Jan 2026 20:52:11 +0000 Message-Id: <69582ffb.a7fe.7da7ea89@gitrepo.freebsd.org> The branch stable/14 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=a7805f3341705323f80c579173777f947bd8aae3 commit a7805f3341705323f80c579173777f947bd8aae3 Author: Dimitry Andric AuthorDate: 2025-12-30 12:48:07 +0000 Commit: Dimitry Andric CommitDate: 2026-01-02 20:44:54 +0000 ncurses: avoid warnings about too-long initializer strings Increase the size of `assoc::from` to 8 bytes, to avoid warnings from clang 21 similar to: contrib/ncurses/progs/infocmp.c:702:10: error: initializer-string for character array is too long, array size is 4 but initializer has size 5 (including the null terminating character); did you mean to use the 'nonstring' attribute? [-Werror,-Wunterminated-string-initialization] 702 | DATA("\033[2J", "ED2"), /* clear page */ | ^~~~~~~~~ contrib/ncurses/progs/infocmp.c:716:10: error: initializer-string for character array is too long, array size is 4 but initializer has size 5 (including the null terminating character); did you mean to use the 'nonstring' attribute? [-Werror,-Wunterminated-string-initialization] 716 | DATA("\033[!p", "DECSTR"), /* soft reset */ | ^~~~~~~~~ Reviewed by: markj Obtained from: https://invisible-island.net/archives/ncurses/6.5/ncurses-6.5-20241207.patch.gz MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D54371 (cherry picked from commit 667259b392ec0a86d066ccc6ba0f4025b3d2a083) --- contrib/ncurses/progs/infocmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/ncurses/progs/infocmp.c b/contrib/ncurses/progs/infocmp.c index 7932203ac2b1..f61633cfad80 100644 --- a/contrib/ncurses/progs/infocmp.c +++ b/contrib/ncurses/progs/infocmp.c @@ -687,7 +687,7 @@ compare_predicate(PredType type, PredIdx idx, const char *name) #define DATAX() DATA("", "") typedef struct { - const char from[4]; + const char from[8]; const char to[12]; } assoc; From nobody Fri Jan 2 20:52:13 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4djbV62Yq2z6MFRc for ; Fri, 02 Jan 2026 20:52:14 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4djbV56qWHz3qsq for ; Fri, 02 Jan 2026 20:52:13 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767387134; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=VIaGYsF9bi8KqKpHsj2S9xNCeBq2sjZo9a3jvSR4rf8=; b=sT0yZtlZNvFspxNrmtOTwz8HXe5li5v2N/BE5sxacJiQgDotDOqz2nNKak5e7Y4jPeq9wk gcWxFLySt/kahliICicmT09nVtArUkHW6yj8TYhkn9MqWqq9PJY9tZel06lo3M1cpRmlvx o0mCRA9jAYM7Uu2s7qScuwDb4SEnSSEcm2cspacrjCCI6Q39xoOpAEbqWi6EPQozxEOHGL 0HAJriTAHFaajdbJdezVEAhdwSBvO38qG0VxhJ9ZW8WcVt4fU9G9aECBDy/WqBe96vuP41 XJ+xErkSE5svPaChIG7wQudCcj/0OL762LaDEkAZlre7P1aeBLk9lcS6zvtang== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767387134; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=VIaGYsF9bi8KqKpHsj2S9xNCeBq2sjZo9a3jvSR4rf8=; b=f3uG7CLXH5gPPTYi8wn+sN5a7HNoRjFU4Lvt+DMSLDvuQnW5ivcYNhqUeR+YgB7c+HTYbA i3iH4s2XvMIRcFBI1mbHKEOW7M3b39oVMN1GLnEklIuLaCbFaD0XHrlIR0RxyBXt/9mZBp JcAdZJKsvi2Ioq4ecfDRrN238P5Qm4yoN5G7WCacW7knyCf9brY6jEZ6WhqAzuEoNoteXM FQqgdlAichOL92wBQCZ3mjF6V+es5yUg8RQ8f53fIpaRMGVSzsQjHS6Ymt/ee2HDh7HA0I Tq2fIYuQvdOpUBqby7/fYHRHt42a6rpN+CuwtVurcq6z6bbuknd88i134qdudA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767387134; a=rsa-sha256; cv=none; b=eEeH4vApkCVkkb376RqMPI6QwricCddYliUmx0YM9gPv3PraxARHDLmjn3cCqCd8Ar/LsT BKn6xXcJBUataeIWySFBn8BicSu9+iuX5cF+BEJIdGk1sUiyuIF18PCXrV6i4UaHzY8YeD 54kyHCQBgbN0cfYlF6kTxAHq/i7trO5zY+RAmcBJMlBqVXCQlpJUhhmdA4P+/Z5gla/vjz KbRPCOZgYd6cwvohMcN4Todmqy3c59EKehp4txYnY7fgQUJxb1FnPO7qZr9Qj4rYfkt+AD Qq9fSEjjpdEGbVDppW9TyyWYAU62+cSplaiMc3EbCoqwkA7dH17jr2THN5btvA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4djbV56BgbzZQx for ; Fri, 02 Jan 2026 20:52:13 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id c602 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 02 Jan 2026 20:52:13 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: 1a0377015e78 - stable/14 - zfs: rename several printf attribute declarations to __printf__ List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 1a0377015e78f6ed4b444133a8b5139a18737f42 Auto-Submitted: auto-generated Date: Fri, 02 Jan 2026 20:52:13 +0000 Message-Id: <69582ffd.c602.65fce8d9@gitrepo.freebsd.org> The branch stable/14 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=1a0377015e78f6ed4b444133a8b5139a18737f42 commit 1a0377015e78f6ed4b444133a8b5139a18737f42 Author: Dimitry Andric AuthorDate: 2025-12-30 12:50:24 +0000 Commit: Dimitry Andric CommitDate: 2026-01-02 20:45:08 +0000 zfs: rename several printf attribute declarations to __printf__ For kernel builds, we redefine `__printf__` to `__freebsd_kprintf__`, to support FreeBSD kernel printf(9) extensions with clang. In OpenZFS various printf related functions are declared with __attribute__((format(printf, X, Y))), so these won't work with the above redefinition. With clang 21 and higher, this leads to errors similar to: sys/contrib/openzfs/module/zfs/spa_misc.c:414:38: error: passing 'printf' format string where 'freebsd_kprintf' format string is expected [-Werror,-Wformat] 414 | (void) vsnprintf(buf, sizeof (buf), fmt, adx); | ^ Since attribute names can always be spelled with leading and trailing double underscores, rename these instances. Note that in FreeBSD proper we usually use `__printflike` from , but that does not apply to OpenZFS. Reviewed by: emaste MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D54388 (cherry picked from commit bcd9ea853b14c85a61eb9079c59e966eed336578) --- sys/contrib/openzfs/include/os/freebsd/spl/sys/cmn_err.h | 16 ++++++++-------- sys/contrib/openzfs/include/os/freebsd/spl/sys/kmem.h | 4 ++-- sys/contrib/openzfs/include/sys/spa.h | 4 ++-- sys/contrib/openzfs/include/sys/vdev.h | 2 +- sys/contrib/openzfs/include/sys/zfs_debug.h | 2 +- 5 files changed, 14 insertions(+), 14 deletions(-) diff --git a/sys/contrib/openzfs/include/os/freebsd/spl/sys/cmn_err.h b/sys/contrib/openzfs/include/os/freebsd/spl/sys/cmn_err.h index 87fce4955bc1..21f05c67334c 100644 --- a/sys/contrib/openzfs/include/os/freebsd/spl/sys/cmn_err.h +++ b/sys/contrib/openzfs/include/os/freebsd/spl/sys/cmn_err.h @@ -51,28 +51,28 @@ extern "C" { #ifndef _ASM extern void cmn_err(int, const char *, ...) - __attribute__((format(printf, 2, 3))); + __attribute__((format(__printf__, 2, 3))); extern void vzcmn_err(zoneid_t, int, const char *, __va_list) - __attribute__((format(printf, 3, 0))); + __attribute__((format(__printf__, 3, 0))); extern void vcmn_err(int, const char *, __va_list) - __attribute__((format(printf, 2, 0))); + __attribute__((format(__printf__, 2, 0))); extern void zcmn_err(zoneid_t, int, const char *, ...) - __attribute__((format(printf, 3, 4))); + __attribute__((format(__printf__, 3, 4))); extern void vzprintf(zoneid_t, const char *, __va_list) - __attribute__((format(printf, 2, 0))); + __attribute__((format(__printf__, 2, 0))); extern void zprintf(zoneid_t, const char *, ...) - __attribute__((format(printf, 2, 3))); + __attribute__((format(__printf__, 2, 3))); extern void vuprintf(const char *, __va_list) - __attribute__((format(printf, 1, 0))); + __attribute__((format(__printf__, 1, 0))); extern void panic(const char *, ...) - __attribute__((format(printf, 1, 2), __noreturn__)); + __attribute__((format(__printf__, 1, 2), __noreturn__)); #define cmn_err_once(ce, ...) \ do { \ diff --git a/sys/contrib/openzfs/include/os/freebsd/spl/sys/kmem.h b/sys/contrib/openzfs/include/os/freebsd/spl/sys/kmem.h index ae786f0e20ca..d365904727da 100644 --- a/sys/contrib/openzfs/include/os/freebsd/spl/sys/kmem.h +++ b/sys/contrib/openzfs/include/os/freebsd/spl/sys/kmem.h @@ -54,9 +54,9 @@ MALLOC_DECLARE(M_SOLARIS); typedef struct vmem vmem_t; extern char *kmem_asprintf(const char *, ...) - __attribute__((format(printf, 1, 2))); + __attribute__((format(__printf__, 1, 2))); extern char *kmem_vasprintf(const char *fmt, va_list ap) - __attribute__((format(printf, 1, 0))); + __attribute__((format(__printf__, 1, 0))); extern int kmem_scnprintf(char *restrict str, size_t size, const char *restrict fmt, ...); diff --git a/sys/contrib/openzfs/include/sys/spa.h b/sys/contrib/openzfs/include/sys/spa.h index 76e4446d3942..f7866e564778 100644 --- a/sys/contrib/openzfs/include/sys/spa.h +++ b/sys/contrib/openzfs/include/sys/spa.h @@ -1064,9 +1064,9 @@ extern spa_autotrim_t spa_get_autotrim(spa_t *spa); /* Miscellaneous support routines */ extern void spa_load_failed(spa_t *spa, const char *fmt, ...) - __attribute__((format(printf, 2, 3))); + __attribute__((format(__printf__, 2, 3))); extern void spa_load_note(spa_t *spa, const char *fmt, ...) - __attribute__((format(printf, 2, 3))); + __attribute__((format(__printf__, 2, 3))); extern void spa_activate_mos_feature(spa_t *spa, const char *feature, dmu_tx_t *tx); extern void spa_deactivate_mos_feature(spa_t *spa, const char *feature); diff --git a/sys/contrib/openzfs/include/sys/vdev.h b/sys/contrib/openzfs/include/sys/vdev.h index 05d18a36cbaa..3171edf8472c 100644 --- a/sys/contrib/openzfs/include/sys/vdev.h +++ b/sys/contrib/openzfs/include/sys/vdev.h @@ -53,7 +53,7 @@ extern int zfs_nocacheflush; typedef boolean_t vdev_open_children_func_t(vdev_t *vd); extern void vdev_dbgmsg(vdev_t *vd, const char *fmt, ...) - __attribute__((format(printf, 2, 3))); + __attribute__((format(__printf__, 2, 3))); extern void vdev_dbgmsg_print_tree(vdev_t *, int); extern int vdev_open(vdev_t *); extern void vdev_open_children(vdev_t *); diff --git a/sys/contrib/openzfs/include/sys/zfs_debug.h b/sys/contrib/openzfs/include/sys/zfs_debug.h index 62fa34cd14e1..3668d1a422c1 100644 --- a/sys/contrib/openzfs/include/sys/zfs_debug.h +++ b/sys/contrib/openzfs/include/sys/zfs_debug.h @@ -62,7 +62,7 @@ extern int zfs_dbgmsg_enable; extern void __set_error(const char *file, const char *func, int line, int err); extern void __zfs_dbgmsg(char *buf); extern void __dprintf(boolean_t dprint, const char *file, const char *func, - int line, const char *fmt, ...) __attribute__((format(printf, 5, 6))); + int line, const char *fmt, ...) __attribute__((format(__printf__, 5, 6))); /* * Some general principles for using zfs_dbgmsg(): From nobody Fri Jan 2 20:52:26 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4djbVM1ZqYz6MFpN for ; Fri, 02 Jan 2026 20:52:27 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4djbVL5W3Vz3qmV for ; Fri, 02 Jan 2026 20:52:26 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767387146; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=cMNtbO683O0zrCUQYn4uE4uNM67htOoSnObmVWGfYkM=; b=JBlM46QXt0fPfpYkMvsDzAgGQp0th9+3/DnRz54QCzS8PH6bk39neg7Ztlq0QuUkjRfjlQ OKdOkibbgXc2YdcrcK7t2zgk3pzpfhV173BnOpKhwLuCeTA8TKep7SutQutCrzpRtSGnvm bK1XYghY+StYlgrBADV/YJWcIYoSw0nwfVk9XEK3lNQxfJ5RalMddog1evjovjWMkMeJGU la5WI0DhCurysNSHNQeQPk2D3n8pCbCDmPNx++r9+Wz4k0PAaRYJQTUrgWyUE9gOgOYbz3 iZgw/tXOgGpX5g0cuGZpRprshFIKCek5h8+Rm032+3zxEX+kxpHhQO3KTC6Vdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767387146; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=cMNtbO683O0zrCUQYn4uE4uNM67htOoSnObmVWGfYkM=; b=ZDSWupyYE51ipXuN7I1CctcLTi3E1cs+lH8u+196ZNSf/VgO1T288Zrjg1xQcE3nc7S5gv c1FjkaXCuQEodfy+t8Ti9e4GbfUmn0MeD43dK3z39MjP7FBv8pFc4UH6MdYgoyfil9znif rk1f3zAvNTlDof/DCrbQ7b1oy9doSY2QBTBCmbNnubFOzdqDqyyFDTk9UNzhnEmfIJZg9x iEFcsXdwqFbXfaFcNF8y/sZmBSr+5arjGD6zYWIiUf5xAbs9NXwuebiad7dW51vwbODt1/ CiOTYpoI+X80Q1/W6xNYAdgeKWX6GfVgEW/2Eor4SnAHoMINqxXcqLg3jQ7tww== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767387146; a=rsa-sha256; cv=none; b=H5zmXZE0o/94Li5y7OLKeqW9jMHMQsiCz00O6vJSl4oEXxXYUQDSf49id0Hxqu8gWBZEqH q3uo+zPl8FG/gzpgdp1QOO6zWlbo7M4lU/wxX7CDvE9v7CTJNfYX0YbQ4Sq/hHjnSHpLtG dsgKm5p9veN75d/hx7KfoYj7sIwCmPe2s0Wty4F6B7SQ1nWw+r+p52b5+E+P8vL5loX+5G BWptAK6wn+2SNqTuILlxk7y44wR0nMLBW0Cla6Jw43y5ooV8XrTiCwxUMRYi5iUPWasfvF WE2zt67VBJIupKJTwy3jWb4HspqqFj/qtU+Z6+bMK+IlkZaOWAUmo8hQf1hAyA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4djbVL4xRpzbDw for ; Fri, 02 Jan 2026 20:52:26 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id b62d by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 02 Jan 2026 20:52:26 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: 6acae3bbe337 - stable/13 - src.conf: Add WITH_LLVM_LINK_STATIC_LIBRARIES build knob List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 6acae3bbe3377aa59fe44c8646dfb778c034ca78 Auto-Submitted: auto-generated Date: Fri, 02 Jan 2026 20:52:26 +0000 Message-Id: <6958300a.b62d.75918efd@gitrepo.freebsd.org> The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=6acae3bbe3377aa59fe44c8646dfb778c034ca78 commit 6acae3bbe3377aa59fe44c8646dfb778c034ca78 Author: Dimitry Andric AuthorDate: 2025-06-18 10:06:25 +0000 Commit: Dimitry Andric CommitDate: 2026-01-02 20:48:56 +0000 src.conf: Add WITH_LLVM_LINK_STATIC_LIBRARIES build knob In commit 2e47f35be5dc libllvm, libclang and liblldb were converted into private shared libraries. This allowed clang, lld, lldb, and other llvm tools to be linked against these shared libraries, which makes them smaller and avoids duplication. However, this also comes at the cost of some performance, since the dynamic libraries are quite large, and contain lots of long symbols (mangled C++ identifiers). Add a WITH_LLVM_LINK_STATIC_LIBRARIES build knob that can be used to go back to the previous behavior: libllvm, libclang and liblldb are built as internal static libraries, i.e. only available during buildworld, and fully linked into the various executables such as clang, lld, etc. PR: 287447 Reviewed by: emaste MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D50956 (cherry picked from commit 8d5a11cd0137d3ad70f6b06e063ea91a776d510a) --- lib/clang/libclang/Makefile | 9 ++++----- lib/clang/liblldb/Makefile | 14 ++++++++++++-- lib/clang/libllvm/Makefile | 10 ++++------ share/man/man5/src.conf.5 | 10 ++++++++-- share/mk/src.opts.mk | 1 + tools/build/mk/OptionalObsoleteFiles.inc | 11 ++++++++--- tools/build/options/WITH_LLVM_LINK_STATIC_LIBRARIES | 6 ++++++ usr.bin/clang/Makefile.inc | 2 +- usr.bin/clang/clang.prog.mk | 2 +- usr.bin/clang/lld/Makefile | 2 +- usr.bin/clang/lldb-server/Makefile | 5 +++++ usr.bin/clang/lldb/Makefile | 5 +++++ usr.bin/clang/llvm.prog.mk | 5 +++++ 13 files changed, 61 insertions(+), 21 deletions(-) diff --git a/lib/clang/libclang/Makefile b/lib/clang/libclang/Makefile index 9b9e0cbadcd7..56f6fd374fe5 100644 --- a/lib/clang/libclang/Makefile +++ b/lib/clang/libclang/Makefile @@ -1,9 +1,8 @@ - -.include +.include .include "../clang.pre.mk" -.if defined(TOOLS_PREFIX) -# Build static library during cross-tools stage +.if defined(TOOLS_PREFIX) || ${MK_LLVM_LINK_STATIC_LIBRARIES} == "yes" +# Build static library during cross-tools stage, or when explicitly requested. LIB= clang INTERNALLIB= .else @@ -873,7 +872,7 @@ SRCS+= ${SRCS_ALL:O} LIBDEPS+= llvm -.if defined(TOOLS_PREFIX) +.if defined(TOOLS_PREFIX) || ${MK_LLVM_LINK_STATIC_LIBRARIES} == "yes" LIBPRIV= LIBEXT= a .else diff --git a/lib/clang/liblldb/Makefile b/lib/clang/liblldb/Makefile index 408ebc440686..aa9e90b2f6f2 100644 --- a/lib/clang/liblldb/Makefile +++ b/lib/clang/liblldb/Makefile @@ -1,11 +1,16 @@ - -.include +.include .include "../lldb.pre.mk" +.if ${MK_LLVM_LINK_STATIC_LIBRARIES} == "yes" +# Build static library when explicitly requested. +LIB= lldb +INTERNALLIB= +.else PACKAGE= lldb SHLIB_CXX= lldb SHLIB_MAJOR= 19 PRIVATELIB= +.endif SHARED_CXXFLAGS+= -UPIC # To avoid compile errors @@ -754,8 +759,13 @@ SRCS+= Version/Version.cpp LIBDEPS+= clang LIBDEPS+= llvm +.if defined(TOOLS_PREFIX) || ${MK_LLVM_LINK_STATIC_LIBRARIES} == "yes" +LIBPRIV= +LIBEXT= a +.else LIBPRIV= private LIBEXT= so +.endif .for lib in ${LIBDEPS} DPADD+= ${OBJTOP}/lib/clang/lib${lib}/lib${LIBPRIV}${lib}.${LIBEXT} diff --git a/lib/clang/libllvm/Makefile b/lib/clang/libllvm/Makefile index 835da5545e81..05128550827a 100644 --- a/lib/clang/libllvm/Makefile +++ b/lib/clang/libllvm/Makefile @@ -1,9 +1,8 @@ - -.include +.include .include "../llvm.pre.mk" -.if defined(TOOLS_PREFIX) -# Build static library during cross-tools stage +.if defined(TOOLS_PREFIX) || ${MK_LLVM_LINK_STATIC_LIBRARIES} == "yes" +# Build static library during cross-tools stage, or when explicitly requested. LIB= llvm INTERNALLIB= .else @@ -15,6 +14,7 @@ PRIVATELIB= # Work around "relocation R_PPC_GOT16 out of range" errors PICFLAG= -fPIC .endif +CFLAGS+= -DLLVM_BUILD_LLVM_DYLIB .endif SHARED_CXXFLAGS+= -UPIC # To avoid compile errors @@ -49,8 +49,6 @@ CFLAGS+= -DBLAKE3_NO_AVX512 -DBLAKE3_NO_AVX2 -DBLAKE3_NO_SSE41 \ CFLAGS+= -DBLAKE3_USE_NEON=0 .endif -CFLAGS+= -DLLVM_BUILD_LLVM_DYLIB - SRCDIR= llvm/lib # Explanation of different SRCS variants below: diff --git a/share/man/man5/src.conf.5 b/share/man/man5/src.conf.5 index 01721e786aa1..eb501901008a 100644 --- a/share/man/man5/src.conf.5 +++ b/share/man/man5/src.conf.5 @@ -1,6 +1,5 @@ .\" DO NOT EDIT-- this file is @generated by tools/build/options/makeman. -.\" $FreeBSD$ -.Dd September 16, 2025 +.Dd December 21, 2025 .Dt SRC.CONF 5 .Os .Sh NAME @@ -922,6 +921,13 @@ Install ELF Tool Chain's cxxfilt as c++filt, instead of LLVM's llvm-cxxfilt. .It Va WITH_LLVM_FULL_DEBUGINFO Generate full debug information for LLVM libraries and tools, which uses more disk space and build resources, but allows for easier debugging. +.It Va WITH_LLVM_LINK_STATIC_LIBRARIES +Link LLVM libraries (libllvm, libclang, liblldb) statically into each of +the binaries that use them. + +This means that binaries linked against these libraries, such as clang, +ld.lld and lldb will be much larger and position dependent, but will +start more quickly. .It Va WITHOUT_LLVM_TARGET_AARCH64 Do not build LLVM target support for AArch64. The diff --git a/share/mk/src.opts.mk b/share/mk/src.opts.mk index d8872f93bfcd..dbc0cf31671f 100644 --- a/share/mk/src.opts.mk +++ b/share/mk/src.opts.mk @@ -212,6 +212,7 @@ __DEFAULT_NO_OPTIONS = \ LOADER_VERBOSE \ LOADER_VERIEXEC_PASS_MANIFEST \ LLVM_FULL_DEBUGINFO \ + LLVM_LINK_STATIC_LIBRARIES \ OFED_EXTRA \ OPENLDAP \ RPCBIND_WARMSTART_SUPPORT \ diff --git a/tools/build/mk/OptionalObsoleteFiles.inc b/tools/build/mk/OptionalObsoleteFiles.inc index b79dde1dd41f..2c07c61011e3 100644 --- a/tools/build/mk/OptionalObsoleteFiles.inc +++ b/tools/build/mk/OptionalObsoleteFiles.inc @@ -1157,12 +1157,14 @@ OLD_FILES+=usr/share/man/man8/zfsloader.8.gz OLD_FILES+=usr/share/man/man8/zpool.8.gz .endif -.if ${MK_CLANG} == no && ${MK_CLANG_FORMAT} == no && ${MK_LLDB} == no +.if ${MK_CLANG} == no && ${MK_CLANG_FORMAT} == no && ${MK_LLDB} == no && \ + ${MK_LLVM_LINK_STATIC_LIBRARIES} == no OLD_LIBS+=usr/lib/libprivateclang.so.19 .endif .if ${MK_CLANG_EXTRAS} == no && ${MK_CLANG} == no && ${MK_LLDB} == no && \ - ${MK_LLD} == no && ${MK_LLVM_BINUTILS} == no && ${MK_LLVM_COV} == no + ${MK_LLD} == no && ${MK_LLVM_BINUTILS} == no && ${MK_LLVM_COV} == no && \ + ${MK_LLVM_LINK_STATIC_LIBRARIES} == no OLD_LIBS+=usr/lib/libprivatellvm.so.19 .endif @@ -4327,10 +4329,13 @@ OLD_DIRS+=usr/include/c++/v1 OLD_FILES+=usr/bin/ld.lld .endif +.if ${MK_LLDB} == no && ${MK_LLVM_LINK_STATIC_LIBRARIES} == no +OLD_LIBS+=usr/lib/libprivatelldb.so.19 +.endif + .if ${MK_LLDB} == no OLD_FILES+=usr/bin/lldb OLD_FILES+=usr/bin/lldb-server -OLD_LIBS+=usr/lib/libprivatelldb.so.19 OLD_FILES+=usr/share/man/man1/lldb-server.1.gz OLD_FILES+=usr/share/man/man1/lldb.1.gz .endif diff --git a/tools/build/options/WITH_LLVM_LINK_STATIC_LIBRARIES b/tools/build/options/WITH_LLVM_LINK_STATIC_LIBRARIES new file mode 100644 index 000000000000..7860ee862b1d --- /dev/null +++ b/tools/build/options/WITH_LLVM_LINK_STATIC_LIBRARIES @@ -0,0 +1,6 @@ +Link LLVM libraries (libllvm, libclang, liblldb) statically into each of +the binaries that use them. + +This means that binaries linked against these libraries, such as clang, +ld.lld and lldb will be much larger and position dependent, but will +start more quickly. diff --git a/usr.bin/clang/Makefile.inc b/usr.bin/clang/Makefile.inc index d5c9658b1d90..7d713c54d518 100644 --- a/usr.bin/clang/Makefile.inc +++ b/usr.bin/clang/Makefile.inc @@ -1,7 +1,7 @@ .include -.if defined(TOOLS_PREFIX) +.if defined(TOOLS_PREFIX) || ${MK_LLVM_LINK_STATIC_LIBRARIES} == "yes" MK_PIE:= no # Explicit libXXX.a references .endif diff --git a/usr.bin/clang/clang.prog.mk b/usr.bin/clang/clang.prog.mk index 36c601bcbe36..cf4e5e0ce47a 100644 --- a/usr.bin/clang/clang.prog.mk +++ b/usr.bin/clang/clang.prog.mk @@ -18,7 +18,7 @@ LIBADD+= z LIBADD+= zstd .endif -.if defined(TOOLS_PREFIX) +.if defined(TOOLS_PREFIX) || ${MK_LLVM_LINK_STATIC_LIBRARIES} == "yes" LIBPRIV= LIBEXT= a .else diff --git a/usr.bin/clang/lld/Makefile b/usr.bin/clang/lld/Makefile index f87677c2b384..8a8b11a438d5 100644 --- a/usr.bin/clang/lld/Makefile +++ b/usr.bin/clang/lld/Makefile @@ -86,7 +86,7 @@ SRCS+= tools/lld/lld.cpp LIBDEPS+= llvm -.if defined(TOOLS_PREFIX) +.if defined(TOOLS_PREFIX) || ${MK_LLVM_LINK_STATIC_LIBRARIES} == "yes" LIBPRIV= LIBEXT= a .else diff --git a/usr.bin/clang/lldb-server/Makefile b/usr.bin/clang/lldb-server/Makefile index 1a5c96b65806..d43fc3278e20 100644 --- a/usr.bin/clang/lldb-server/Makefile +++ b/usr.bin/clang/lldb-server/Makefile @@ -23,8 +23,13 @@ LIBDEPS+= lldb LIBDEPS+= clang LIBDEPS+= llvm +.if defined(TOOLS_PREFIX) || ${MK_LLVM_LINK_STATIC_LIBRARIES} == "yes" +LIBPRIV= +LIBEXT= a +.else LIBPRIV= private LIBEXT= so +.endif .for lib in ${LIBDEPS} DPADD+= ${OBJTOP}/lib/clang/lib${lib}/lib${LIBPRIV}${lib}.${LIBEXT} diff --git a/usr.bin/clang/lldb/Makefile b/usr.bin/clang/lldb/Makefile index 0e9a9ebef7e8..529906abf5c2 100644 --- a/usr.bin/clang/lldb/Makefile +++ b/usr.bin/clang/lldb/Makefile @@ -16,8 +16,13 @@ LIBDEPS+= lldb LIBDEPS+= clang LIBDEPS+= llvm +.if defined(TOOLS_PREFIX) || ${MK_LLVM_LINK_STATIC_LIBRARIES} == "yes" +LIBPRIV= +LIBEXT= a +.else LIBPRIV= private LIBEXT= so +.endif .for lib in ${LIBDEPS} DPADD+= ${OBJTOP}/lib/clang/lib${lib}/lib${LIBPRIV}${lib}.${LIBEXT} diff --git a/usr.bin/clang/llvm.prog.mk b/usr.bin/clang/llvm.prog.mk index 8c898b4087fb..3121648431de 100644 --- a/usr.bin/clang/llvm.prog.mk +++ b/usr.bin/clang/llvm.prog.mk @@ -14,8 +14,13 @@ LIBPRIV= LIBEXT= a .else LIBDEPS+= llvm +.if ${MK_LLVM_LINK_STATIC_LIBRARIES} == "yes" +LIBPRIV= +LIBEXT= a +.else LIBPRIV= private LIBEXT= so +.endif LIBADD+= z LIBADD+= zstd .endif From nobody Fri Jan 2 20:52:27 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4djbVN0fbfz6MFhP for ; Fri, 02 Jan 2026 20:52:28 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4djbVM6HB1z3r3M for ; Fri, 02 Jan 2026 20:52:27 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767387147; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=OFgkSQXcUP2iEv/854h5kifVzCOOJj1X2lphLNXau4o=; b=oDPkl0gOegXr5ShtGq/e9L3hYQB2uPGTdLq7G7DFz1YRUXv5dVEYRW23PYWEJ2XhaZH95p XCZdTaK1AhL14h+uMu46ZNmclfQntgjab0U3MhEnjbL1OCr2hKZ0DVRNykysYPKSl+Vjpo toE3fwGZYFNUuA4oN4QxeUfv3KbDKFFw7qpiyQA9aldoqf75XjtygtszhBfXQ5V+YmDo+1 kc5Weywo52N9UMYpR+u5Os0Qy87BUJAuT+q4gk+nREJffTfR8f43uXoJGSXZsIYP6mB1vb zyE8JJA17ENqH/qLri1qDeCPoOKUZuYoTFKIxekRQ7rPc6HGpdhMxnUankPDBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767387147; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=OFgkSQXcUP2iEv/854h5kifVzCOOJj1X2lphLNXau4o=; b=wj4GADiAhgWwO8BItmO5v6caaQe3e72v3v6FEq8dzzrrnH8H2518S9ayYvej8adgGToIgn PnJ/Xn+rUttJ2qBlFOUtlxa9qoZE6Sb/z1fEi4stXE7INojBshw0sQ09gftsA0t1WimCs0 vsm7okiWL+I8t5kLD0zIzaX/McD1A/PQ4uzytRjG6UsULSxhv0cchyAxoEm4ED4j9VLH3g gDePZF14sEout855vZuZJ6mt6Uuka2E3KplQ6pfEqsVLzQ85cdfqvAmIWMMuLQsMzL/pwZ itVmbO7tw1hR/gdkNlGu1VOO90/nXu77HvfNwTf4ffXcRod7jvcH2TPPXlVjfA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767387147; a=rsa-sha256; cv=none; b=eaaY7UEMeqHsdILHw+hA1EU4aAJa7lRETgaUg+gdpL3K6oLpThKwQ9o1HTlVFrzNV6jSlu i/A28ABhQUveNZv5UKqM3el2huU4BpWBP8MOBqgs7Plf69mjjfR0+H2m+3rOpajSayd4qv 88yLg0ZCJb+9tQAPLyV0WQkwgcEnKpNiGp7V2d7f1RzCXiYDjhwKNqzkMZLQuJbg5hRayW Po86XsVzIPH8qrU5t9bDa6aXKsOPz2ckracAXpG/rWXueawwspkisodUxKiNw3cdosLDHF Ts9Ym4OkbzS0mx2A1CGTuISwEGgEYWN/gPWPcjpnhFXm/ugOdNOAhLOXVMAKNw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4djbVM5kH6zb3G for ; Fri, 02 Jan 2026 20:52:27 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id a953 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 02 Jan 2026 20:52:27 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: d3a575622839 - stable/13 - OptionalObsoleteFiles.inc: fix up WITH_LLVM_LINK_STATIC_LIBRARIES cases List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: d3a575622839c1998354dab202f0ca53216e41a8 Auto-Submitted: auto-generated Date: Fri, 02 Jan 2026 20:52:27 +0000 Message-Id: <6958300b.a953.4d0fe580@gitrepo.freebsd.org> The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=d3a575622839c1998354dab202f0ca53216e41a8 commit d3a575622839c1998354dab202f0ca53216e41a8 Author: Dimitry Andric AuthorDate: 2025-12-24 15:52:48 +0000 Commit: Dimitry Andric CommitDate: 2026-01-02 20:49:35 +0000 OptionalObsoleteFiles.inc: fix up WITH_LLVM_LINK_STATIC_LIBRARIES cases In commit cf1eaaf41cef I added the WITH_LLVM_LINK_STATIC_LIBRARIES src.conf(5) build knob, which also affects OptionalObsoleteFiles.inc. However, the checks were incorrect: when WITH_LLVM_LINK_STATIC_LIBRARIES is active, the OLD_LIBS libprivatellvm.so.19, libprivateclang.so.19 and libprivatelldb.so.19 should always be cleaned up. Fixes: cf1eaaf41cef MFC after: 1 week (cherry picked from commit 160077a4d75186a979f28f0778259c66d8cac8be) --- tools/build/mk/OptionalObsoleteFiles.inc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tools/build/mk/OptionalObsoleteFiles.inc b/tools/build/mk/OptionalObsoleteFiles.inc index 2c07c61011e3..5e5d83456ce3 100644 --- a/tools/build/mk/OptionalObsoleteFiles.inc +++ b/tools/build/mk/OptionalObsoleteFiles.inc @@ -1157,14 +1157,14 @@ OLD_FILES+=usr/share/man/man8/zfsloader.8.gz OLD_FILES+=usr/share/man/man8/zpool.8.gz .endif -.if ${MK_CLANG} == no && ${MK_CLANG_FORMAT} == no && ${MK_LLDB} == no && \ - ${MK_LLVM_LINK_STATIC_LIBRARIES} == no +.if (${MK_CLANG} == no && ${MK_CLANG_FORMAT} == no && ${MK_LLDB} == no) || \ + ${MK_LLVM_LINK_STATIC_LIBRARIES} != no OLD_LIBS+=usr/lib/libprivateclang.so.19 .endif -.if ${MK_CLANG_EXTRAS} == no && ${MK_CLANG} == no && ${MK_LLDB} == no && \ - ${MK_LLD} == no && ${MK_LLVM_BINUTILS} == no && ${MK_LLVM_COV} == no && \ - ${MK_LLVM_LINK_STATIC_LIBRARIES} == no +.if (${MK_CLANG_EXTRAS} == no && ${MK_CLANG} == no && ${MK_LLDB} == no && \ + ${MK_LLD} == no && ${MK_LLVM_BINUTILS} == no && ${MK_LLVM_COV} == no) || \ + ${MK_LLVM_LINK_STATIC_LIBRARIES} != no OLD_LIBS+=usr/lib/libprivatellvm.so.19 .endif @@ -4329,7 +4329,7 @@ OLD_DIRS+=usr/include/c++/v1 OLD_FILES+=usr/bin/ld.lld .endif -.if ${MK_LLDB} == no && ${MK_LLVM_LINK_STATIC_LIBRARIES} == no +.if ${MK_LLDB} == no || ${MK_LLVM_LINK_STATIC_LIBRARIES} != no OLD_LIBS+=usr/lib/libprivatelldb.so.19 .endif From nobody Fri Jan 2 20:52:28 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4djbVP21kWz6MFRr for ; Fri, 02 Jan 2026 20:52:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4djbVN6bDYz3rDT for ; Fri, 02 Jan 2026 20:52:28 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767387148; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=IQtcDmzO9/2eiZ0KWXDzbESN9Zpy8HQl+3kgPX6y/Wg=; b=N4F+B6sNKIHMW9VyYdDcB96L2QxhAfvoZMlj4HDRZHiDqlaVRf80A1l3A2t/gzqyqDb+Xs w/mrZDi32W/bTyUDkrXaP/B9sD2FVCy86+Ar6weNup4bqBuVhBbI8vn0uP9NG00m28/Q6v p2tVY3FegFyMYBH7FWcPIzUNiR/X+ZRySx3wrwKDJ0u/S5zxXnGjqWRJt7WodyZh7wgkJ1 2Pk9FIoGgt/JGDNarHa7yfGr+Pvm3bY0eEkgHzV0lB0sMzjl7daSHGqmbnFUfgLnuehvZu mNq2zNpuyDW/yJl4dustX0oDdX6vApxJwVVKxvUSlvDMXG+Wr0NVEI9BlBNeOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767387148; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=IQtcDmzO9/2eiZ0KWXDzbESN9Zpy8HQl+3kgPX6y/Wg=; b=qyBjmE2gq5Axtx5SV3jWMX1H1GOIu47QqraqqXfBSmiRqnYl1ZZ38FNH19u6AgdOiqenIy GG7HIEe/B8OggsycPWO4tpqPwcokr/9zon/4+tgGOw8WhAV/eVTRbmL5lKRBwSswu284fZ JkIiS43m6mjqPMxgWFQxX8+mWpsEUzuSCSj2CIsF/iCJPyg7SH1zfZPSmzjAnYTKNU5fbk 06FfVmCKLp+sda2mVcJv1Emrv7VKwmtUw0ILZkzaTufL5ZHYRCvkCf7KPRsNe7/ErZdTKX nRSxQUNDJvoDWgwxwp3nIi8IukFTh3Zowk9xvhkVaUwCsHs24qv7WUgrNSiMIQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767387148; a=rsa-sha256; cv=none; b=UJyFaxAVKHXZuv2kvY6oTtfGvsSMHkghvgA+MI1GxmfiY4DJkmu2P/XY/NTc/ppkkyS5sc x7oWXEY2/Nhf+rRKtVpW13Bedu+2VBfZ/Bc5Ni4g6ycFyzC3VWDGimWbLa3mgqADuTzMx3 c9AnjuTWkfkds/qZVkauNHyljPyayaiPilh884fl0QCigW8m43vsxMs0P2vQ7031yWfZYr yjHe0dXyOkKHPWi1z0IzeQHItNd2f7sM0RXUtBMmECAbN2tuMa7v5XjKXcJ/MfUipiy1Yj Pf2NZyigj7t1DEAouwZavn0IRf19MzAOWkbf13r34mVB0inlHv/+Fgeq3MbsWA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4djbVN65NDzbDy for ; Fri, 02 Jan 2026 20:52:28 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id a8bf by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 02 Jan 2026 20:52:28 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: 3015ca9407d1 - stable/13 - sh: avoid warnings about too-long initializer strings List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 3015ca9407d14876b1b6e8babc5b94acd939af68 Auto-Submitted: auto-generated Date: Fri, 02 Jan 2026 20:52:28 +0000 Message-Id: <6958300c.a8bf.bb890a2@gitrepo.freebsd.org> The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=3015ca9407d14876b1b6e8babc5b94acd939af68 commit 3015ca9407d14876b1b6e8babc5b94acd939af68 Author: Dimitry Andric AuthorDate: 2025-12-25 20:13:48 +0000 Commit: Dimitry Andric CommitDate: 2026-01-02 20:49:46 +0000 sh: avoid warnings about too-long initializer strings Mark `optletter` and `t_op::op_text` as `__non_string`, to avoid warnings from clang 21 similar to: bin/sh/options.h:77:36: error: initializer-string for character array is too long, array size is 19 but initializer has size 20 (including the null terminating character); did you mean to use the 'nonstring' attribute? [-Werror,-Wunterminated-string-initialization] 77 | const char optletter[NSHORTOPTS] = "efIimnsxvVECabupTPh"; | ^~~~~~~~~~~~~~~~~~~~~ bin/test/test.c:153:3: error: initializer-string for character array is too long, array size is 2 but initializer has size 3 (including the null terminating character); did you mean to use the 'nonstring' attribute? [-Werror,-Wunterminated-string-initialization] 153 | {"==", STREQ}, | ^~~~ MFC after: 3 days Reviewed by: jilles Differential Revision: https://reviews.freebsd.org/D54362 (cherry picked from commit e6546807f4c1a8a6a6fa53fceab7b8c80e3ed802) --- bin/sh/options.h | 2 +- bin/test/test.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/sh/options.h b/bin/sh/options.h index cd28baeeed6d..94fba049d2d4 100644 --- a/bin/sh/options.h +++ b/bin/sh/options.h @@ -75,7 +75,7 @@ extern char optval[NOPTS]; extern const char optletter[NSHORTOPTS]; #ifdef DEFINE_OPTIONS char optval[NOPTS]; -const char optletter[NSHORTOPTS] = "efIimnsxvVECabupTPh"; +const char optletter[NSHORTOPTS] __nonstring = "efIimnsxvVECabupTPh"; static const unsigned char optname[] = "\007errexit" "\006noglob" diff --git a/bin/test/test.c b/bin/test/test.c index 1cb3eca8fe13..b8f6845c221f 100644 --- a/bin/test/test.c +++ b/bin/test/test.c @@ -117,7 +117,7 @@ enum token { #define TOKEN_TYPE(token) ((token) & 0xff00) static const struct t_op { - char op_text[2]; + char op_text[2] __nonstring; short op_num; } ops1[] = { {"=", STREQ}, From nobody Fri Jan 2 20:52:29 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4djbVQ3tFVz6MFRv for ; Fri, 02 Jan 2026 20:52:30 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4djbVP744gz3rDj for ; Fri, 02 Jan 2026 20:52:29 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767387150; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ee847Vsrq5GWkkOUYMTQsWthNkxPA3AqODljHkJzaqc=; b=x49NeYiYf1ELZPp7rd226pTGO72SI9MQlNOtKe+i1VgY9PAyp7pUkW0edj3JtIGGx7aNvm 3bEarenZQb2MX4ppn+gP2rDbqhslweiZkkpjeXko1Uztx7LnELaptEtO92he493p0QUWZP S3kur1zjNe7g7zi9NJEjB/BibjTa4Qr+j/Tq3mqXnYT6n5KCosK43o9JXQP1i9sqnGnqU6 sv8RwQBWwo7Q9Bq2vgL3mjbQZa18RfdHsNNtLOHwUiV+rmiDNvqAxyktpSG96sTkVBl722 lmktlDasMQTn1ZDtSUcSdgr+mHdg5S3Ij7eIXfzPNiXj8ctuas6pnIp9XA/INA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767387150; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ee847Vsrq5GWkkOUYMTQsWthNkxPA3AqODljHkJzaqc=; b=KWmI9jhYBqaBPpvj/cvj0M3yvn0QnPSznnKH/tWEg0v8KhsC25Fth5cTemSR66/C8YErcS anfzBzPHCW+p7h7sK9OeVUuRyY5jP1O5c6aMRcFvXZ5nbLWeTnVWsRvSGkwp39M1aeeAEr TzR4rB4oNPCZP9fEirX9Yb/yOgjbRK+f3PpWdLpHLV6FmQraw2UNGt0AWdPYm6+OuO+VEh o4JYrbBGulMMxKqWViVy++itRUt8WeH1qEuQTR8tp1FDQli1ez2EhrjdVWxdFXNE7RDC59 wPcTWVasb74B+MXNYSQCWNwK3R6H9r9b/+nP8lLCU4ymAVY0SDQaa1n1JBAdFA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767387150; a=rsa-sha256; cv=none; b=x5vgDbMCueApydF/ugaaSU/Aj9BhUB7Ef0ss7eh38F1vASaKnvUeDXjcMmW6t6wwvQxi7Q TqyH9OPqehtmWvHnnH5M14wji0cgDHKU0eSezh7k/cxZGpjs3TlxzhvOOOR3hX+11D5b1/ 6Mq9dHAD6ZJNlQBqfUU7Ql3S8pmeYNXcet7L/SGuW8AjrZERg2Cawx6hqewx4m/jv2sqwb hvRbfAsFTwLnS2RFAefY8h9YJB/cpyqwqkYIjr0WcK3fjlZZCg1ikKPPC4Ux7TTJGEOqVG 58rXUEFsKL1TNsbPbJNXkDFyfDqyW9Y4nq3cDKPXgC79C9UzD3z88ql/G7djMQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4djbVP6Z87zbHW for ; Fri, 02 Jan 2026 20:52:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id bd16 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 02 Jan 2026 20:52:29 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: 02624874966d - stable/13 - bsd.sys.mk: suppress some new clang 21 warnings for C++ List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 02624874966d57e482baa6f0d1e87c37608506dc Auto-Submitted: auto-generated Date: Fri, 02 Jan 2026 20:52:29 +0000 Message-Id: <6958300d.bd16.38c638db@gitrepo.freebsd.org> The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=02624874966d57e482baa6f0d1e87c37608506dc commit 02624874966d57e482baa6f0d1e87c37608506dc Author: Dimitry Andric AuthorDate: 2025-12-25 18:44:34 +0000 Commit: Dimitry Andric CommitDate: 2026-01-02 20:49:54 +0000 bsd.sys.mk: suppress some new clang 21 warnings for C++ Otherwise, these lead to many -Werror warnings in libc++ headers, due to our use of -Wsystem-headers, which is not officially supported upstream: Suppress -Wc++20-extensions, due to: /usr/include/c++/v1/__algorithm/simd_utils.h:96:50: error: explicit template parameter list for lambdas is a C++20 extension [-Werror,-Wc++20-extensions] 96 | inline constexpr size_t __simd_vector_size_v = []() -> size_t { | ^ Suppress -Wc++23-lambda-attributes, due to: /usr/include/c++/v1/__format/format_functions.h:462:32: error: an attribute specifier sequence in this position is a C++23 extension [-Werror,-Wc++23-lambda-attributes] 462 | if (bool __is_identity = [&] [[__gnu__::__pure__]] // Make sure the compiler knows this call can be eliminated | ^ Suppress -Wnullability-completeness, due to: /usr/include/c++/v1/string:1068:80: error: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Werror,-Wnullability-completeness] 1068 | _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 basic_string(const _CharT* __s, size_type __n) { | ^ MFC after: 3 days (cherry picked from commit 63d1c3c43690ff3c3e76e1fb03c8640fe30a2663) --- share/mk/bsd.sys.mk | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk index e537d7f045c4..e3401bb35e77 100644 --- a/share/mk/bsd.sys.mk +++ b/share/mk/bsd.sys.mk @@ -99,6 +99,11 @@ CWARNFLAGS.clang+= -Wno-error=unused-but-set-parameter # Similar to gcc >= 8.1 -Wno-error=cast-function-type below CWARNFLAGS.clang+= -Wno-error=cast-function-type-mismatch .endif +.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 210000 +CXXWARNFLAGS.clang+= -Wno-c++20-extensions +CXXWARNFLAGS.clang+= -Wno-c++23-lambda-attributes +CXXWARNFLAGS.clang+= -Wno-nullability-completeness +.endif .endif # WARNS <= 6 .if ${WARNS} <= 3 CWARNFLAGS.clang+= -Wno-tautological-compare -Wno-unused-value\ From nobody Fri Jan 2 20:52:31 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4djbVR6htwz6MFL6 for ; Fri, 02 Jan 2026 20:52:31 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4djbVR0zRFz3rBN for ; Fri, 02 Jan 2026 20:52:31 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767387151; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=AEvhvTk1/0uYL8lR5VZkkgsHjmptooRK877nhjCl8k8=; b=mIpAESjJM1nTHY71mTCPyiPb18L8rz56ZZ2CB+k/pdsFE3OJmhtaQna24AGg5phwU3jiiR +9kVHOMMDHMTrE/JoEcNJ/dY86FTuNW5ytjfgS3kd85r8OgNL00TH1iTLSu9ToepLCsAgp m+T4OzOg/mKGhoRpOcBMelJyTvACEK3imZ8SM1NjNlcxPFxQjOKi+vnpW+3adx9xOWpw0X Bl7cLwkG+NTwVC9UKQo/DMT48halW2bmzEgDK3GcC6N3t/yilSpGBeSD53h3LlRthseeiU t6awMpFzgeh6zDo1JRQxUkgfcWziG++yosAgQxoLnSYOHKTG5XLVVmujUKmZyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767387151; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=AEvhvTk1/0uYL8lR5VZkkgsHjmptooRK877nhjCl8k8=; b=oGl7lZS4tptmT+SHcOuSe8zgLLaFrHaDe6C/nX83gyQgiPggM7WZPZjjgKZiURgQJ89ZJT ePM+thyvyc2CCdldpvD6qltkXxKGn8XN9gvE1+dT7PFm1Oz1v8iKvX+of/xqatfB1gzvZ8 K+c4CWQrkiBUj5/B+6vcLIyxAQGRFS/4BBXTTEaVAYLOO7LCuO/VgvEsk3DWBljcRlRFso +Qp34Nn/AtQixSldLz1sqtTw9AjvgR03FCQ2Ghsj5DADiQl0cjw3RiD17PjnmwDDo4I69B +HysX/2uyT7qjffCgaTPjmBshWQRZRVn58GWGrEw10Nrs3H66uAUOeYav9pnGA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767387151; a=rsa-sha256; cv=none; b=vrg36zwe26Ss3AUBw5AWF8bgOaPXdG0FGbritbS8en0FFA4XJC7K8RcEl32jKdurQmbV8j 8nrSA3OCPdl7tvUZ8ktdKbArIugE23ecdnIL/EVaGjqFrYlR2KlsDk7hj1ZmLD23DWTgUC ACwH80iBzid3m6TFJKdlNydTNlGHl/3WwIPh8ECLHisWVjwyBYC8hE8YjKV1aR14Jiuu+z V6T83cpRj+v2x2I86E7V6CKsoRKtxA7auPzVutmnS3od1hIK5XQyC5+Fj07pKYLyb+bXbU KLhMmF+gP2utvKFpOwWbAsXE58LkRovAe+sQlT8WAlphOEZqjlRQYN15ahvlmg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4djbVR0GrczbHY for ; Fri, 02 Jan 2026 20:52:31 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id a2e5 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 02 Jan 2026 20:52:31 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Cc: Kyle Evans From: Dimitry Andric Subject: git: 958f2ab6d400 - stable/13 - compat: linux: use appropriate variables for copying out old timers List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 958f2ab6d400de5a8990c392d17eecaf2e47e6c4 Auto-Submitted: auto-generated Date: Fri, 02 Jan 2026 20:52:31 +0000 Message-Id: <6958300f.a2e5.7c747a5d@gitrepo.freebsd.org> The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=958f2ab6d400de5a8990c392d17eecaf2e47e6c4 commit 958f2ab6d400de5a8990c392d17eecaf2e47e6c4 Author: Kyle Evans AuthorDate: 2025-12-28 22:02:04 +0000 Commit: Dimitry Andric CommitDate: 2026-01-02 20:49:59 +0000 compat: linux: use appropriate variables for copying out old timers We copyout &l_oval but do the conversions into &l_val, leaving us with stack garbage. A build with an LLVM21 cross-toolchain seems to catch this. Reported by: Florian Limberger Reviewed by: markj Fixes: a1fd2911ddb06 ("linux(4): Implement timer_settime64 syscall.") MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D52985 (cherry picked from commit 541a98d7e28a8e4697ac2fa78dd4c4203c2c3a9c) --- sys/compat/linux/linux_timer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/compat/linux/linux_timer.c b/sys/compat/linux/linux_timer.c index bfa17d7e8aa5..632c4c530eec 100644 --- a/sys/compat/linux/linux_timer.c +++ b/sys/compat/linux/linux_timer.c @@ -131,7 +131,7 @@ linux_timer_settime(struct thread *td, struct linux_timer_settime_args *uap) return (error); error = kern_ktimer_settime(td, uap->timerid, flags, &val, ovalp); if (error == 0 && uap->old != NULL) { - error = native_to_linux_itimerspec(&l_val, &val); + error = native_to_linux_itimerspec(&l_oval, &oval); if (error == 0) error = copyout(&l_oval, uap->old, sizeof(l_oval)); } @@ -158,7 +158,7 @@ linux_timer_settime64(struct thread *td, struct linux_timer_settime64_args *uap) return (error); error = kern_ktimer_settime(td, uap->timerid, flags, &val, ovalp); if (error == 0 && uap->old != NULL) { - error = native_to_linux_itimerspec64(&l_val, &val); + error = native_to_linux_itimerspec64(&l_oval, &oval); if (error == 0) error = copyout(&l_oval, uap->old, sizeof(l_oval)); } From nobody Fri Jan 2 20:52:33 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4djbVT4V54z6MFlm for ; Fri, 02 Jan 2026 20:52:33 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4djbVT2s1rz3rFM for ; Fri, 02 Jan 2026 20:52:33 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767387153; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=NvU6Zi5tAz5m/OUajehOuLMwYY+R1CGHgrAFbla2KFU=; b=F4aQJ+lyuXjiTSqCsTZcZwy/1mLVJUORK7HSl1b/F9iRmGYYaTB07NoeOqTgfsAB9W5gsh S1F+F6dNGqyjfZnA8/u6ZSWvtcZaClcaBpSDI39gnAlETCQ9WjJVzDO3rtSL3nSQ9wrwdR lS8Ixn8dXgHiZgwv/KCQZ4cmxDV2DzMbS1boXUqHtBQrcsQmqxPRrYUN8HVnEVzJ9xD6bc KTotLasEaXfxVWhqLIzEQx2M2u9op6suUrWl3bjbeJUEaPF4dlhqpdxc+Ou54WPAvz2YD4 4cLQM6uYEvX9L/FrMKrohnICC2/HTTRy5SPT4k/EIH7yiWcC6fWqBqYgb1Vixg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767387153; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=NvU6Zi5tAz5m/OUajehOuLMwYY+R1CGHgrAFbla2KFU=; b=nhlNSr/ku9dXkP1OozYo0Gt8/TydjXtqvCahA55m+QhytoRwyk/bUfSL7eLhbIFMXDSAgL OmQx2ngXcEpdvHY8LyPNS80MJ3aK0BpWyTnaEGCA7FWAt24ETgnCCgQzte+ODEHPrjWpif GY01EWT4KUzPJVTIzD8Ul/QyL8KbzHcN5KK1Ptd347dGzQnN2nwPA0rgu05GdO6jPvtNYS QMm4pkxVf3NKv0y27nyA0kF3j5iMdJ9K8W14hQahtaQbAfL18lPK+keuUQBwgxr0gaLP0d 66tQCewMJELkQLR8Kn5+ytGgdk+fk6nv4EmwxTrNcwlqUlSw6l6o/ZejxTKvOg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767387153; a=rsa-sha256; cv=none; b=LUzNKynbs0z9884Hoh72XdB04qgIX5hDBghF10S4Zv1CN/WMtTI2TAKInsKPbA82kv0usX AdjnsER7Pj79V6qu3o812VNaEYYaZ2zdl6cDFgAsieu+9xfo8Q9TfSkcACdxwU6thtccDv yLGsQ2isTqRYejFaNnVsOFqlFtdNKSmoEjki6SgIbc5WMJ38t9/zx2dyfw8B2q+SMI1cp3 zU/Z1YyHaDeNnOpQtgzXzEmCkCmAF/ZCkeRQq19UUIC1SOOejo96UHNy8S6Ys7W6l2nYDd wSEJg2n4EkGeYPIlXECJLcoOLdupwfz/jHX1fhaDw72Gf8iXvLzRUF6jLzjpFg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4djbVT21d8zbF1 for ; Fri, 02 Jan 2026 20:52:33 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id b0f0 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 02 Jan 2026 20:52:33 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: f5b76cb51e2c - stable/13 - crypto: avoid warnings about too-long initializer strings List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: f5b76cb51e2c5b5b939b4d759379907c69ea31db Auto-Submitted: auto-generated Date: Fri, 02 Jan 2026 20:52:33 +0000 Message-Id: <69583011.b0f0.29123ad0@gitrepo.freebsd.org> The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=f5b76cb51e2c5b5b939b4d759379907c69ea31db commit f5b76cb51e2c5b5b939b4d759379907c69ea31db Author: Dimitry Andric AuthorDate: 2025-12-30 12:46:20 +0000 Commit: Dimitry Andric CommitDate: 2026-01-02 20:50:19 +0000 crypto: avoid warnings about too-long initializer strings Mark `sigma` and `tau` as `__non_string`, to avoid warnings from clang 21 similar to: sys/crypto/chacha20/chacha.c:53:31: error: initializer-string for character array is too long, array size is 16 but initializer has size 17 (including the null terminating character); did you mean to use the 'nonstring' attribute? [-Werror,-Wunterminated-string-initialization] 53 | static const char sigma[16] = "expand 32-byte k"; | ^~~~~~~~~~~~~~~~~~ sys/crypto/chacha20/chacha.c:54:29: error: initializer-string for character array is too long, array size is 16 but initializer has size 17 (including the null terminating character); did you mean to use the 'nonstring' attribute? [-Werror,-Wunterminated-string-initialization] 54 | static const char tau[16] = "expand 16-byte k"; | ^~~~~~~~~~~~~~~~~~ MFC after: 3 days Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D54364 (cherry picked from commit 710ec409dffed3306ced253bba85dbdc7758510b) --- sys/crypto/chacha20/chacha.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/crypto/chacha20/chacha.c b/sys/crypto/chacha20/chacha.c index e22c348d14bd..8ce69226635f 100644 --- a/sys/crypto/chacha20/chacha.c +++ b/sys/crypto/chacha20/chacha.c @@ -51,8 +51,8 @@ typedef struct chacha_ctx chacha_ctx; a = PLUS(a,b); d = ROTATE(XOR(d,a), 8); \ c = PLUS(c,d); b = ROTATE(XOR(b,c), 7); -static const char sigma[16] = "expand 32-byte k"; -static const char tau[16] = "expand 16-byte k"; +static const char sigma[16] __nonstring = "expand 32-byte k"; +static const char tau[16] __nonstring = "expand 16-byte k"; LOCAL void chacha_keysetup(chacha_ctx *x,const u8 *k,u32 kbits) From nobody Fri Jan 2 20:52:32 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4djbVT23GLz6MFfB for ; Fri, 02 Jan 2026 20:52:33 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4djbVS1wjtz3rBj for ; Fri, 02 Jan 2026 20:52:32 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767387152; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Fxt+B+Gz+kvubxNDRvNtI8GdiPQlnaR20Qrxbgy7iUw=; b=OXpV1sYNHa/g1x/uoH9s7AjtZZRJuQJaxUzh0Rg+udU17pgT6lfngBMB7cMd8h+Kz40YOa ewFO/uGti76523204nFcrGhUplDu5dmhHe/n6mhfK4iPgqVh1csFsCDAxn60ia7gs8wZ07 AI3z/K7ZbPJGp7hIaUsCznBQBvKebO1vy6cs9IRZSPqqzggL2Gz3Ivh9OJqECl1NUVfegN wTm8eKxRMmEw2FOAncqJzQIN1u0ZQ9dGbLWweYzz2VnTgvlvsQNoBlhFbftE51xeMw6Oxg Lu9CxuyV3v+C7QDIbptOJjToOgfIVPv0g8HKIuI3+RXtyQUZt1NjKjc/5pA84w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767387152; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Fxt+B+Gz+kvubxNDRvNtI8GdiPQlnaR20Qrxbgy7iUw=; b=IkR2Nh+dygFl2/zba+ghRciZVDG+CcWH1SVfkHnT27m+3QhTVHI4blkwgfgNtWMRChIhSZ MiQPOnKHedW0i0eAe9lnR5jaw/kAg2TDmt6VyhpopgmpY5BqmcVuPintPoCC1PpDx2vqbu FzfVWA8YvCy36er2NMjkL3HDFz1Ejfr9gbDP9jiJVDv+D6e2JVC+DgCBucmw/cue7mWkIV iGxX4FSKkB1CJ0P6B/cRBHV+t7NP8R/FAJu7Ro4aJBx3QuIcq0g4RweRiJagQFmqGXmXkl LAMlJNxcrBhf26WvXAJnxQWO60NH3UV/Eea1EzynH7RLO3I8emW8bku8Whmwuw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767387152; a=rsa-sha256; cv=none; b=kvP60h/TYX3EMupqvFD9dyLt+GXMsSJ3EsFAVKxRxEwWmiV7IR/goJI2Js70DEP09d+Njd bzjPALNjVaifhiVBXfAAvFNhR6UukmUrfvDLzysQQrKkdEU+ZcpbeKe1RAf6tORrP9X1Uc WGdFIYg+qms8eF9Z8+P9sNm8C7NuZ5QQSsbs7E1pWW0HRXtb8IDDLrWZp820cCjt7H8VP1 WAK5CMsUcDB3aRxUUS+DxOZfd2yG0eTwzSs1VHdzfG5JeGpJyCK5n8AL1bnsq1SUpK/Axt RY2wf0AxWavnwmkvfNcERkIRZquCg/AzhhEa8/Af/Aa/O4ZrGbma0QbEqPt9jA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4djbVS1CMSzZTv for ; Fri, 02 Jan 2026 20:52:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id bd1a by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 02 Jan 2026 20:52:32 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: 936112e7ff70 - stable/13 - ncurses: avoid warnings about too-long initializer strings List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 936112e7ff707e3a9cfdbcc3737bed580f400d6b Auto-Submitted: auto-generated Date: Fri, 02 Jan 2026 20:52:32 +0000 Message-Id: <69583010.bd1a.1ca2e1f5@gitrepo.freebsd.org> The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=936112e7ff707e3a9cfdbcc3737bed580f400d6b commit 936112e7ff707e3a9cfdbcc3737bed580f400d6b Author: Dimitry Andric AuthorDate: 2025-12-30 12:48:07 +0000 Commit: Dimitry Andric CommitDate: 2026-01-02 20:50:13 +0000 ncurses: avoid warnings about too-long initializer strings Increase the size of `assoc::from` to 8 bytes, to avoid warnings from clang 21 similar to: contrib/ncurses/progs/infocmp.c:702:10: error: initializer-string for character array is too long, array size is 4 but initializer has size 5 (including the null terminating character); did you mean to use the 'nonstring' attribute? [-Werror,-Wunterminated-string-initialization] 702 | DATA("\033[2J", "ED2"), /* clear page */ | ^~~~~~~~~ contrib/ncurses/progs/infocmp.c:716:10: error: initializer-string for character array is too long, array size is 4 but initializer has size 5 (including the null terminating character); did you mean to use the 'nonstring' attribute? [-Werror,-Wunterminated-string-initialization] 716 | DATA("\033[!p", "DECSTR"), /* soft reset */ | ^~~~~~~~~ Reviewed by: markj Obtained from: https://invisible-island.net/archives/ncurses/6.5/ncurses-6.5-20241207.patch.gz MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D54371 (cherry picked from commit 667259b392ec0a86d066ccc6ba0f4025b3d2a083) --- contrib/ncurses/progs/infocmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/ncurses/progs/infocmp.c b/contrib/ncurses/progs/infocmp.c index f42ff3416ece..92a56b01669d 100644 --- a/contrib/ncurses/progs/infocmp.c +++ b/contrib/ncurses/progs/infocmp.c @@ -660,7 +660,7 @@ compare_predicate(PredType type, PredIdx idx, const char *name) #define DATAX() DATA("", "") typedef struct { - const char from[4]; + const char from[8]; const char to[12]; } assoc; From nobody Sun Jan 4 01:47:44 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dkL0c6nvVz6MD6P for ; Sun, 04 Jan 2026 01:47:44 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dkL0c5v5wz3S0X for ; Sun, 04 Jan 2026 01:47:44 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767491264; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=1o9tS2dPCjGjIdg1YZunTIju0XuDyHe7qcp6aOW4PXo=; b=rig8aaMBhipeHZGgmdgvee8kogiCZJgw+7FvOpqv1kEPstLTTUs77eboXVPOHCgh8Tuood HANIvQR14ROkNHrBssSWi3B3iHQk54UuMBDbRk2EiZPa6GugK4CSINRJyEO7cMJ1dUqTos c8d4UXkFzkxUBT8mi8ZxdtWWCHqmTCB0sjtGUBV4r7wsBA4P9YAzCZlLQuidzKmYuedJ4S F45PXcqtIkH1aCyfEFFdDjp46IxoMFXl9JiGifsk2q2EypZNHTntPaSBd2Gw2m+AovfSl4 COZgTLwSTbMEk0boMRNGaJVsZqI7HkEskaxC8l1rNq5dNh8LhzQNN0q8rASajQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767491264; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=1o9tS2dPCjGjIdg1YZunTIju0XuDyHe7qcp6aOW4PXo=; b=MZy4lG55H91N0uG/CV2zx6TOaHaMyS6BxK41EsXVjHy7xkakO7W7DUba9FqamCq3cIite7 BqDdSpV4vXKiUik5sbWtR1JhHEzxdZ3pPk8BRnChwkn+kN527Cnp49+DJIe2GEuYsW07oY Sa+BIf+QzRbi319Lw3S0Lvp3y9ptwGvih+cpkigtt9PKCDPKQ2utDuVrtQrc9Ohg/7kSAY VD9EQotEEeZ3lBPRYUQ39DKmh/Pgt0f9k9jZayU0GRFLTD/zIlR0ptjAEcGopylTTGlWXq 6MAQYowVFg4kUK91GaMiEfHZkbfGSCn8ikqswSJk3YVobz5Ld+ykS/21vHaaig== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767491264; a=rsa-sha256; cv=none; b=UMSx5/TpMgSaWla88Or/4lezfLkEaq+7Sn0O+KAW9QhOFCzf9E41hEzDAyjeacKwdgC0GR 3quZ4E+u1z6MgpB/bv7uZkdYtiMsV6IxLQJFFT4/bAY65Sm2TN6FngcwnCJl+OK6Zhaiol begWr+qSw0ZvezwWr2fc7EhDRx7PYhAqBcChKTFgjKo2TLQ/YniQFrT4Gza56KQ4SNgl4c NKhpOx9VAnKPcVbUv+f5OuVeOcGUVTwZBbwG+/LR1+WyAt8aWiatzst479vXsZCN4bTXIe fYaFPf8oNusDRktgrloqfySWZcKS1MEZ6IGrNC+Ybyz8Pmz8dX1mC44aKeSbaA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dkL0c4rdJz1S8V for ; Sun, 04 Jan 2026 01:47:44 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3dc9a by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Sun, 04 Jan 2026 01:47:44 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Cc: Alex Richardson From: Dimitry Andric Subject: git: 9742a31a12f3 - stable/15 - ocs_fc: Use __printflike() instead of format(printf) List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 9742a31a12f3a15d20b678dcb11ca451cdb336f3 Auto-Submitted: auto-generated Date: Sun, 04 Jan 2026 01:47:44 +0000 Message-Id: <6959c6c0.3dc9a.2a16d66d@gitrepo.freebsd.org> The branch stable/15 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=9742a31a12f3a15d20b678dcb11ca451cdb336f3 commit 9742a31a12f3a15d20b678dcb11ca451cdb336f3 Author: Alex Richardson AuthorDate: 2025-09-16 04:58:36 +0000 Commit: Dimitry Andric CommitDate: 2026-01-04 01:46:33 +0000 ocs_fc: Use __printflike() instead of format(printf) The __printflike macro sets the format to freebsd_kprintf which recent clang understands and warns about. Fixes the following error: `passing 'printf' format string where 'freebsd_kprintf' format string is expected [-Werror,-Wformat]` MFC after: 1 week (cherry picked from commit 3c0ea1b629764c49611e3e3adfa0c44f9afa3558) --- sys/dev/ocs_fc/ocs_ddump.h | 3 +-- sys/dev/ocs_fc/ocs_mgmt.h | 3 +-- sys/dev/ocs_fc/ocs_os.h | 2 +- sys/dev/ocs_fc/ocs_utils.h | 12 ++++-------- 4 files changed, 7 insertions(+), 13 deletions(-) diff --git a/sys/dev/ocs_fc/ocs_ddump.h b/sys/dev/ocs_fc/ocs_ddump.h index b7d7eefad813..3cffff6d9670 100644 --- a/sys/dev/ocs_fc/ocs_ddump.h +++ b/sys/dev/ocs_fc/ocs_ddump.h @@ -46,8 +46,7 @@ extern void ocs_ddump_startfile(ocs_textbuf_t *textbuf); extern void ocs_ddump_endfile(ocs_textbuf_t *textbuf); extern void ocs_ddump_section(ocs_textbuf_t *textbuf, const char *name, uint32_t instance); extern void ocs_ddump_endsection(ocs_textbuf_t *textbuf, const char *name, uint32_t instance); -__attribute__((format(printf,3,4))) -extern void ocs_ddump_value(ocs_textbuf_t *textbuf, const char *name, const char *fmt, ...); +extern void ocs_ddump_value(ocs_textbuf_t *textbuf, const char *name, const char *fmt, ...) __printflike(3, 4); extern void ocs_ddump_buffer(ocs_textbuf_t *textbuf, const char *name, uint32_t instance, void *buffer, uint32_t size); extern int32_t ocs_save_ddump(ocs_t *ocs, uint32_t flags, uint32_t qentries); extern int32_t ocs_get_saved_ddump(ocs_t *ocs, ocs_textbuf_t *textbuf); diff --git a/sys/dev/ocs_fc/ocs_mgmt.h b/sys/dev/ocs_fc/ocs_mgmt.h index 7b59a3916ca8..9781aec18462 100644 --- a/sys/dev/ocs_fc/ocs_mgmt.h +++ b/sys/dev/ocs_fc/ocs_mgmt.h @@ -95,8 +95,7 @@ extern void ocs_mgmt_end_section(ocs_textbuf_t *textbuf, const char *name, int i extern void ocs_mgmt_end_unnumbered_section(ocs_textbuf_t *textbuf, const char *name); extern void ocs_mgmt_emit_property_name(ocs_textbuf_t *textbuf, int access, const char *name); extern void ocs_mgmt_emit_string(ocs_textbuf_t *textbuf, int access, const char *name, const char *value); -__attribute__((format(printf,4,5))) -extern void ocs_mgmt_emit_int(ocs_textbuf_t *textbuf, int access, const char *name, const char *fmt, ...); +extern void ocs_mgmt_emit_int(ocs_textbuf_t *textbuf, int access, const char *name, const char *fmt, ...) __printflike(4, 5); extern void ocs_mgmt_emit_boolean(ocs_textbuf_t *textbuf, int access, const char *name, const int value); extern int parse_wwn(char *wwn_in, uint64_t *wwn_out); diff --git a/sys/dev/ocs_fc/ocs_os.h b/sys/dev/ocs_fc/ocs_os.h index 331d5b07aecd..55ee98b3cc58 100644 --- a/sys/dev/ocs_fc/ocs_os.h +++ b/sys/dev/ocs_fc/ocs_os.h @@ -711,7 +711,7 @@ typedef struct { * @return returns 0 for success, a negative error code value for failure. */ -extern int ocs_sem_init(ocs_sem_t *sem, int val, const char *name, ...) __attribute__((format(printf, 3, 4))); +extern int ocs_sem_init(ocs_sem_t *sem, int val, const char *name, ...) __printflike(3, 4); /** * @brief execute a P (decrement) operation diff --git a/sys/dev/ocs_fc/ocs_utils.h b/sys/dev/ocs_fc/ocs_utils.h index e3a952e0cf26..7c9c9ae85b74 100644 --- a/sys/dev/ocs_fc/ocs_utils.h +++ b/sys/dev/ocs_fc/ocs_utils.h @@ -103,10 +103,8 @@ extern int32_t ocs_textbuf_init(ocs_t *ocs, ocs_textbuf_t *textbuf, void *buffer extern void ocs_textbuf_free(ocs_t *ocs, ocs_textbuf_t *textbuf); extern void ocs_textbuf_putc(ocs_textbuf_t *textbuf, uint8_t c); extern void ocs_textbuf_puts(ocs_textbuf_t *textbuf, char *s); -__attribute__((format(printf,2,3))) -extern void ocs_textbuf_printf(ocs_textbuf_t *textbuf, const char *fmt, ...); -__attribute__((format(printf,2,0))) -extern void ocs_textbuf_vprintf(ocs_textbuf_t *textbuf, const char *fmt, va_list ap); +extern void ocs_textbuf_printf(ocs_textbuf_t *textbuf, const char *fmt, ...) __printflike(2, 3); +extern void ocs_textbuf_vprintf(ocs_textbuf_t *textbuf, const char *fmt, va_list ap) __printflike(2, 0); extern void ocs_textbuf_buffer(ocs_textbuf_t *textbuf, uint8_t *buffer, uint32_t buffer_length); extern void ocs_textbuf_copy(ocs_textbuf_t *textbuf, uint8_t *buffer, uint32_t buffer_length); extern int32_t ocs_textbuf_remaining(ocs_textbuf_t *textbuf); @@ -325,10 +323,8 @@ typedef struct ocs_ramlog_s ocs_ramlog_t; extern ocs_ramlog_t *ocs_ramlog_init(ocs_t *ocs, uint32_t buffer_len, uint32_t buffer_count); extern void ocs_ramlog_free(ocs_t *ocs, ocs_ramlog_t *ramlog); extern void ocs_ramlog_clear(ocs_t *ocs, ocs_ramlog_t *ramlog, int clear_start_of_day, int clear_recent); -__attribute__((format(printf,2,3))) -extern int32_t ocs_ramlog_printf(void *os, const char *fmt, ...); -__attribute__((format(printf,2,0))) -extern int32_t ocs_ramlog_vprintf(ocs_ramlog_t *ramlog, const char *fmt, va_list ap); +extern int32_t ocs_ramlog_printf(void *os, const char *fmt, ...) __printflike(2, 3); +extern int32_t ocs_ramlog_vprintf(ocs_ramlog_t *ramlog, const char *fmt, va_list ap) __printflike(2, 0); extern int32_t ocs_ddump_ramlog(ocs_textbuf_t *textbuf, ocs_ramlog_t *ramlog); #endif From nobody Sun Jan 4 01:47:45 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dkL0f1VCXz6MDN1 for ; Sun, 04 Jan 2026 01:47:46 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dkL0d5hJbz3S9C for ; Sun, 04 Jan 2026 01:47:45 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767491265; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ErmKobwkhm3nv0U39U3O1BMHXOUFeWb/gDVi7aLDSIo=; b=uLRaYQfbTtV1b3bpCz9UzmNHirMRcRiEO4cyvw+Q/2Texps6iy+gNnUVwuNL0nrZ57uwrN wyOrnKV1KzC5wveqDjx7Gce2jN6A6LMsF/qvqo+8ftZpkMQ1zYzhOzv9nxzPXBHSY+ecip KWVLWHzuJB3Cq+U0gAoWCZBOgcKCiUMmBoKM+YDF/9yO9DBK+g42c1HjkPQ3ljyW88Z436 jmPaCr5xAllQOPaW0ZKx5AUrkUOVAd4PzOxMnXDqY7l5pD+9E1dXb2/CUqg27juFSCV537 HAPst0VWjulWhaYjXnG5qUjp6R2jGvWZl+CIHgNDJo02bmfbO55fBJzlvupMJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767491265; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ErmKobwkhm3nv0U39U3O1BMHXOUFeWb/gDVi7aLDSIo=; b=adszRj5tCfgYO967sEF357W5WzftYXtKTCvmF35svKzdw/ODx4i0xCM95iFW5VPmtnJbuQ EKrhyH1HXKmC6UaNfnSq6+al+o3VzXDKfgLbu4LrItI/oNZWr8Xudr76j4IuBLhUtMfCJ2 OoupKwN2AXOcsW6z+e7DipRfZosjDU8vEwLF3nLUgtGrAB0vE0G8eEAOSyDacpIC0pO3P9 tCTziKLOSHdII/6EfCXeadVG9b9lPjppWVqxNkbeseZNsDjtSgf/QHYKnQQTWLR/D0CkZu /0glh3wBFtX9ZgR7BckC4kadbMDvoNoiKZc5lmkR8g4E07jXMoI2P3k/j3tddQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767491265; a=rsa-sha256; cv=none; b=PFNthDaHVpXujvx6xG+I32CLEL4KiYfXgmhqMuRCBEt6a61XrnV+NtRaV7b89H+EtJB8nF H4jD+e9T3m76qqEjhbMAHuKgnmSYCLzenz0AT+hYn2FwJKSnHXYo4d68AachbPOFNEn3SJ uK1O7jnJpsgdnnk5vCpNwkrowZNeNAn/3ELQVcgSjJHMqO+aFiXpBMJIxH13vIXtzvURUW RjMToThcR1BynjOZ+EzepV3iNqzRq2iLxMv6rYy/DDX9zcXG3S81ut6cScErYI1zG68rqc VLaGSc3h94QWexwNKfHJqmZVsWb1e3S6rQI6/tVJ69NN8cJGgThTvSrKW2cPIg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dkL0d57Jhz1SXY for ; Sun, 04 Jan 2026 01:47:45 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3ccfa by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Sun, 04 Jan 2026 01:47:45 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Cc: Alex Richardson From: Dimitry Andric Subject: git: 05230e3b27c6 - stable/15 - sys/xen: Use __printflike() instead of format(printf) List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 05230e3b27c69f5f02c69d9024bbdb857524cb76 Auto-Submitted: auto-generated Date: Sun, 04 Jan 2026 01:47:45 +0000 Message-Id: <6959c6c1.3ccfa.6a51cde6@gitrepo.freebsd.org> The branch stable/15 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=05230e3b27c69f5f02c69d9024bbdb857524cb76 commit 05230e3b27c69f5f02c69d9024bbdb857524cb76 Author: Alex Richardson AuthorDate: 2025-09-16 04:54:36 +0000 Commit: Dimitry Andric CommitDate: 2026-01-04 01:46:49 +0000 sys/xen: Use __printflike() instead of format(printf) The __printflike macro sets the format to freebsd_kprintf which recent clang understands and warns about. Fixes the following error: `passing 'printf' format string where 'freebsd_kprintf' format string is expected [-Werror,-Wformat]` MFC after: 1 week (cherry picked from commit 4cd7be3e81863bd22aacccc34fc2e8b2cfcb14d9) --- sys/dev/xen/blkback/blkback.c | 2 +- sys/xen/xen_intr.h | 2 +- sys/xen/xenbus/xenbusvar.h | 8 ++++---- sys/xen/xenstore/xenstorevar.h | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/sys/dev/xen/blkback/blkback.c b/sys/dev/xen/blkback/blkback.c index c6cba729b991..dcfdcafa9351 100644 --- a/sys/dev/xen/blkback/blkback.c +++ b/sys/dev/xen/blkback/blkback.c @@ -152,7 +152,7 @@ struct xbb_softc; struct xbb_xen_req; static void xbb_attach_failed(struct xbb_softc *xbb, int err, const char *fmt, - ...) __attribute__((format(printf, 3, 4))); + ...) __printflike(3, 4); static int xbb_shutdown(struct xbb_softc *xbb); /*------------------------------ Data Structures -----------------------------*/ diff --git a/sys/xen/xen_intr.h b/sys/xen/xen_intr.h index 75c3dc7c6060..4965928cc8b4 100644 --- a/sys/xen/xen_intr.h +++ b/sys/xen/xen_intr.h @@ -182,7 +182,7 @@ void xen_intr_unbind(xen_intr_handle_t *handle); */ int xen_intr_describe(xen_intr_handle_t port_handle, const char *fmt, ...) - __attribute__((format(printf, 2, 3))); + __printflike(2, 3); /** * Signal the remote peer of an interrupt source associated with an diff --git a/sys/xen/xenbus/xenbusvar.h b/sys/xen/xenbus/xenbusvar.h index ee444c132c0c..0f4168f17e6a 100644 --- a/sys/xen/xenbus/xenbusvar.h +++ b/sys/xen/xenbus/xenbusvar.h @@ -151,7 +151,7 @@ int xenbus_grant_ring(device_t dev, unsigned long ring_mfn, grant_ref_t *refp); * printf arguments. */ void xenbus_dev_error(device_t dev, int err, const char *fmt, ...) - __attribute__((format(printf, 3, 4))); + __printflike(3, 4); /** * va_list version of xenbus_dev_error(). @@ -162,7 +162,7 @@ void xenbus_dev_error(device_t dev, int err, const char *fmt, ...) * \param ap Va_list of printf arguments. */ void xenbus_dev_verror(device_t dev, int err, const char *fmt, va_list ap) - __attribute__((format(printf, 3, 0))); + __printflike(3, 0); /** * Equivalent to xenbus_dev_error(), followed by @@ -174,7 +174,7 @@ void xenbus_dev_verror(device_t dev, int err, const char *fmt, va_list ap) * printf arguments. */ void xenbus_dev_fatal(device_t dev, int err, const char *fmt, ...) - __attribute__((format(printf, 3, 4))); + __printflike(3, 4); /** * va_list version of xenbus_dev_fatal(). @@ -185,7 +185,7 @@ void xenbus_dev_fatal(device_t dev, int err, const char *fmt, ...) * \param ap Va_list of printf arguments. */ void xenbus_dev_vfatal(device_t dev, int err, const char *fmt, va_list) - __attribute__((format(printf, 3, 0))); + __printflike(3, 0); /** * Convert a member of the xenbus_state enum into an ASCII string. diff --git a/sys/xen/xenstore/xenstorevar.h b/sys/xen/xenstore/xenstorevar.h index 8b02262396e8..f34ad375bc3a 100644 --- a/sys/xen/xenstore/xenstorevar.h +++ b/sys/xen/xenstore/xenstorevar.h @@ -270,7 +270,7 @@ int xs_scanf(struct xs_transaction t, */ int xs_printf(struct xs_transaction t, const char *dir, const char *node, const char *fmt, ...) - __attribute__((format(printf, 4, 5))); + __printflike(4, 5); /** * va_list version of xenbus_printf(). From nobody Sun Jan 4 01:50:19 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dkL3b4gsgz6MD8F for ; Sun, 04 Jan 2026 01:50:19 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dkL3b1vg6z3Scj for ; Sun, 04 Jan 2026 01:50:19 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767491419; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=c5pynAhUVSMUAZ1PAX1pfOcHUmhfSbPKHwtCHYdUmPA=; b=ja6JxZi51cTsnwAiLXga9Uv8Xw/tNCnLll+CqAL5TgHoHD64ef12DRjVguYypUEvjABEFn 4bonaPY+Q8tN6MbDzCkI6AXfZ93LwGLwzqSSGNCiIucSm23ZP+lVhaA9qr8CJVrZdZB/NF 2TRlqq934bcKZqsNCw6j+0BteuFVLL1KcXARrsPQYgX8U1ZreCm8aCbAu3vds33Nd+Bc+l taQ6O6Xoe5GWjPvxtnXLckTjG/v3BoV9+9nWo+380gPTOiJflVDRcJRRb6sdhf0VhdlC3l y9ZXu1KeVQV4E20EDdvwUaNL1YRXsVlcY2YVDp1Xxuoup3ynF4vBt5OseWqThA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767491419; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=c5pynAhUVSMUAZ1PAX1pfOcHUmhfSbPKHwtCHYdUmPA=; b=YUvAAJD6Iu0c/7oOqyafvo9WQ0os/1jGKXZR62ObQwQdBCeQ+UkW8PTxrbDqrcuVxvYtZ5 4HDEo3c2O25NbpKU8FqKQuBtaEct9zlD61Jw0T1tPP1yPIRdJjGlQ7lA4lhSf0prRugfav dNrOUJwPsNTGzpVp0cvjLF2F+nyMArC6DJWyftAla5Daj4E5C+835lvwhDsQRHizfJABKz pEePBYqzYk9SJxpjHg+q6SUb/FbbzJylBktiH2tBwH+GI93kuIzx7ScZNZwtDMh9d5Tbwo OiX0bvo79TrwDECZm/G922crAoovoQjnJ5FZBY6jfcWkEo4PuzyNwnajmaDzcQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767491419; a=rsa-sha256; cv=none; b=w/hmR6gE3NHwO2n3ziLGQgQlpWOqK29wBc+pOwD/TwepylhSVfoFw1gB33zte0ReWMc7P2 ARyweUq3huGcjPZ5CP6GuhLn4SYSvckVbOuZ/mbH/ytneiBRwKyo6W9ZlovGnINbX3R/RF OQRTPBA6aocNeR1Fk45o1/dBdZKOXkN+o8pRMrw4cfyMhGz74aKAMuzv017AiRmrkcn8p9 XKuoXkkI5dlvcs65m6H06rqAMw/sviNmFJ+MrEvXASZW7HziDr5lkfD2ioZHf/74IFGJwW 9zxEOV0xwTl+sSURfh9v5l7q8hH9fRCPEmHY18iqMJT7I3b8pYYZU9eYfKAEKQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dkL3b0YGbz1RmM for ; Sun, 04 Jan 2026 01:50:19 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3ed94 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Sun, 04 Jan 2026 01:50:19 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Cc: Alex Richardson From: Dimitry Andric Subject: git: 108270f4c03d - stable/14 - ocs_fc: Use __printflike() instead of format(printf) List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 108270f4c03d4d39815c587627e650e558e22d2e Auto-Submitted: auto-generated Date: Sun, 04 Jan 2026 01:50:19 +0000 Message-Id: <6959c75b.3ed94.43e25f38@gitrepo.freebsd.org> The branch stable/14 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=108270f4c03d4d39815c587627e650e558e22d2e commit 108270f4c03d4d39815c587627e650e558e22d2e Author: Alex Richardson AuthorDate: 2025-09-16 04:58:36 +0000 Commit: Dimitry Andric CommitDate: 2026-01-04 01:46:37 +0000 ocs_fc: Use __printflike() instead of format(printf) The __printflike macro sets the format to freebsd_kprintf which recent clang understands and warns about. Fixes the following error: `passing 'printf' format string where 'freebsd_kprintf' format string is expected [-Werror,-Wformat]` MFC after: 1 week (cherry picked from commit 3c0ea1b629764c49611e3e3adfa0c44f9afa3558) --- sys/dev/ocs_fc/ocs_ddump.h | 3 +-- sys/dev/ocs_fc/ocs_mgmt.h | 3 +-- sys/dev/ocs_fc/ocs_os.h | 2 +- sys/dev/ocs_fc/ocs_utils.h | 12 ++++-------- 4 files changed, 7 insertions(+), 13 deletions(-) diff --git a/sys/dev/ocs_fc/ocs_ddump.h b/sys/dev/ocs_fc/ocs_ddump.h index b7d7eefad813..3cffff6d9670 100644 --- a/sys/dev/ocs_fc/ocs_ddump.h +++ b/sys/dev/ocs_fc/ocs_ddump.h @@ -46,8 +46,7 @@ extern void ocs_ddump_startfile(ocs_textbuf_t *textbuf); extern void ocs_ddump_endfile(ocs_textbuf_t *textbuf); extern void ocs_ddump_section(ocs_textbuf_t *textbuf, const char *name, uint32_t instance); extern void ocs_ddump_endsection(ocs_textbuf_t *textbuf, const char *name, uint32_t instance); -__attribute__((format(printf,3,4))) -extern void ocs_ddump_value(ocs_textbuf_t *textbuf, const char *name, const char *fmt, ...); +extern void ocs_ddump_value(ocs_textbuf_t *textbuf, const char *name, const char *fmt, ...) __printflike(3, 4); extern void ocs_ddump_buffer(ocs_textbuf_t *textbuf, const char *name, uint32_t instance, void *buffer, uint32_t size); extern int32_t ocs_save_ddump(ocs_t *ocs, uint32_t flags, uint32_t qentries); extern int32_t ocs_get_saved_ddump(ocs_t *ocs, ocs_textbuf_t *textbuf); diff --git a/sys/dev/ocs_fc/ocs_mgmt.h b/sys/dev/ocs_fc/ocs_mgmt.h index 7b59a3916ca8..9781aec18462 100644 --- a/sys/dev/ocs_fc/ocs_mgmt.h +++ b/sys/dev/ocs_fc/ocs_mgmt.h @@ -95,8 +95,7 @@ extern void ocs_mgmt_end_section(ocs_textbuf_t *textbuf, const char *name, int i extern void ocs_mgmt_end_unnumbered_section(ocs_textbuf_t *textbuf, const char *name); extern void ocs_mgmt_emit_property_name(ocs_textbuf_t *textbuf, int access, const char *name); extern void ocs_mgmt_emit_string(ocs_textbuf_t *textbuf, int access, const char *name, const char *value); -__attribute__((format(printf,4,5))) -extern void ocs_mgmt_emit_int(ocs_textbuf_t *textbuf, int access, const char *name, const char *fmt, ...); +extern void ocs_mgmt_emit_int(ocs_textbuf_t *textbuf, int access, const char *name, const char *fmt, ...) __printflike(4, 5); extern void ocs_mgmt_emit_boolean(ocs_textbuf_t *textbuf, int access, const char *name, const int value); extern int parse_wwn(char *wwn_in, uint64_t *wwn_out); diff --git a/sys/dev/ocs_fc/ocs_os.h b/sys/dev/ocs_fc/ocs_os.h index 9e3beff35548..e0024a198cb7 100644 --- a/sys/dev/ocs_fc/ocs_os.h +++ b/sys/dev/ocs_fc/ocs_os.h @@ -711,7 +711,7 @@ typedef struct { * @return returns 0 for success, a negative error code value for failure. */ -extern int ocs_sem_init(ocs_sem_t *sem, int val, const char *name, ...) __attribute__((format(printf, 3, 4))); +extern int ocs_sem_init(ocs_sem_t *sem, int val, const char *name, ...) __printflike(3, 4); /** * @brief execute a P (decrement) operation diff --git a/sys/dev/ocs_fc/ocs_utils.h b/sys/dev/ocs_fc/ocs_utils.h index e3a952e0cf26..7c9c9ae85b74 100644 --- a/sys/dev/ocs_fc/ocs_utils.h +++ b/sys/dev/ocs_fc/ocs_utils.h @@ -103,10 +103,8 @@ extern int32_t ocs_textbuf_init(ocs_t *ocs, ocs_textbuf_t *textbuf, void *buffer extern void ocs_textbuf_free(ocs_t *ocs, ocs_textbuf_t *textbuf); extern void ocs_textbuf_putc(ocs_textbuf_t *textbuf, uint8_t c); extern void ocs_textbuf_puts(ocs_textbuf_t *textbuf, char *s); -__attribute__((format(printf,2,3))) -extern void ocs_textbuf_printf(ocs_textbuf_t *textbuf, const char *fmt, ...); -__attribute__((format(printf,2,0))) -extern void ocs_textbuf_vprintf(ocs_textbuf_t *textbuf, const char *fmt, va_list ap); +extern void ocs_textbuf_printf(ocs_textbuf_t *textbuf, const char *fmt, ...) __printflike(2, 3); +extern void ocs_textbuf_vprintf(ocs_textbuf_t *textbuf, const char *fmt, va_list ap) __printflike(2, 0); extern void ocs_textbuf_buffer(ocs_textbuf_t *textbuf, uint8_t *buffer, uint32_t buffer_length); extern void ocs_textbuf_copy(ocs_textbuf_t *textbuf, uint8_t *buffer, uint32_t buffer_length); extern int32_t ocs_textbuf_remaining(ocs_textbuf_t *textbuf); @@ -325,10 +323,8 @@ typedef struct ocs_ramlog_s ocs_ramlog_t; extern ocs_ramlog_t *ocs_ramlog_init(ocs_t *ocs, uint32_t buffer_len, uint32_t buffer_count); extern void ocs_ramlog_free(ocs_t *ocs, ocs_ramlog_t *ramlog); extern void ocs_ramlog_clear(ocs_t *ocs, ocs_ramlog_t *ramlog, int clear_start_of_day, int clear_recent); -__attribute__((format(printf,2,3))) -extern int32_t ocs_ramlog_printf(void *os, const char *fmt, ...); -__attribute__((format(printf,2,0))) -extern int32_t ocs_ramlog_vprintf(ocs_ramlog_t *ramlog, const char *fmt, va_list ap); +extern int32_t ocs_ramlog_printf(void *os, const char *fmt, ...) __printflike(2, 3); +extern int32_t ocs_ramlog_vprintf(ocs_ramlog_t *ramlog, const char *fmt, va_list ap) __printflike(2, 0); extern int32_t ocs_ddump_ramlog(ocs_textbuf_t *textbuf, ocs_ramlog_t *ramlog); #endif From nobody Sun Jan 4 01:50:20 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dkL3c2ncLz6MDG4 for ; Sun, 04 Jan 2026 01:50:20 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dkL3c1Jf1z3SWn for ; Sun, 04 Jan 2026 01:50:20 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767491420; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=KthR+x17rA2MU70q1+p5PDxZyll2kaPIhkhfCh2EBg4=; b=w7eDCiPs/EjAzIjVdVNDyDJCIB+ZtFZ61/1f8AB21NIU4dWRE3uKRjcpvnpSz6rJ31y2Bu tvLqoI5ta43wwBOJU0NSByBpkJARe6LDVxH0iiglxbNufm/aev6xUe2F9l44pf0I0Bf3WP PdH5v3Al7Rv4OEuOnWUc26Q+OOJ9wu9q2kjInCgXXXP4ddM9zIf9fIcNj6o50hwiAJTrFu rWhNxFqzE2qw1DXscwAqL6uakYy0Nzlm2lEzqDPb1rS4XC6NNus3r2k4EG+2loS7dj4RbD 3Gtx0uX7/nLuA6An5vUNWBvnrKtzp/wY5XQsy8/aSSMwtxLxEjMTcbZFoFuWxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767491420; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=KthR+x17rA2MU70q1+p5PDxZyll2kaPIhkhfCh2EBg4=; b=BbRHCzyrYK8jsotvxkDd12ZPEwy4j6lj7zZmOarVoJ2uU0QmCJcF1sOcCtM+vCy6+fiCqz a/C8AbdzroE66gVlGtRrw4mzq2XLJYHrDBxcaYG3Oe3kzeSEvLMBoQZ9x9hT/oJZ0hgrI0 Ci7QwMJa8VUralNFaE+JbAEnkMQyC0ptRWapBHNZ42EJsCzQDPIjSEouQhERCTnOOqiEYI d1XekmoOUjy7kj5RLI3cFeRFtgpnY3ys8l8103Xy2nSqJ/cAUvR1XzT8KGpuDt4GLPxCuY hyPRbIcf/uVTn/nDuUR/rkvH9RFCAfdGEC2De6+RQuFUmKtOAferDFUJ+shVXA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767491420; a=rsa-sha256; cv=none; b=cRLigcSJ9aUX7LtYs5jAore+R/1mY2XeE6J+aXtDysNyfGK/GAXTrzPT/2f/+NkGnKKJ2x aLe6yqIfEHnDJ1VkLxw0ahPn+7eiRfAh3HUObHopZ6yMYShG7/SieZ+98mqShZyAwWVvXz UmB9sBQrGDu4uzcApXxC5t+guBSZC1ulkO1rGul6Y00K75r4GioA7Cz76UxoKf4JuJWDd8 dI5QAVrix4yH/r6FEaypUYA3PFfbh0zW8Wz7LN3eFin6iPP7gjUl9u0z6VV0VdzJDQIW82 iuYotJn+7uiD6A5YYINIO/KVj94q//TUH1ZTmbLNklDjCrnXurQcH80PM1VzyQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dkL3c0tySz1RvL for ; Sun, 04 Jan 2026 01:50:20 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3e160 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Sun, 04 Jan 2026 01:50:20 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Cc: Alex Richardson From: Dimitry Andric Subject: git: 21961607e631 - stable/14 - sys/xen: Use __printflike() instead of format(printf) List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 21961607e631a9c00a6a8aa1a20d3b2034f834ae Auto-Submitted: auto-generated Date: Sun, 04 Jan 2026 01:50:20 +0000 Message-Id: <6959c75c.3e160.5470aa6e@gitrepo.freebsd.org> The branch stable/14 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=21961607e631a9c00a6a8aa1a20d3b2034f834ae commit 21961607e631a9c00a6a8aa1a20d3b2034f834ae Author: Alex Richardson AuthorDate: 2025-09-16 04:54:36 +0000 Commit: Dimitry Andric CommitDate: 2026-01-04 01:46:52 +0000 sys/xen: Use __printflike() instead of format(printf) The __printflike macro sets the format to freebsd_kprintf which recent clang understands and warns about. Fixes the following error: `passing 'printf' format string where 'freebsd_kprintf' format string is expected [-Werror,-Wformat]` MFC after: 1 week (cherry picked from commit 4cd7be3e81863bd22aacccc34fc2e8b2cfcb14d9) --- sys/dev/xen/blkback/blkback.c | 2 +- sys/xen/xen_intr.h | 2 +- sys/xen/xenbus/xenbusvar.h | 8 ++++---- sys/xen/xenstore/xenstorevar.h | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/sys/dev/xen/blkback/blkback.c b/sys/dev/xen/blkback/blkback.c index 8711bf0b08f5..b6c780320db3 100644 --- a/sys/dev/xen/blkback/blkback.c +++ b/sys/dev/xen/blkback/blkback.c @@ -152,7 +152,7 @@ struct xbb_softc; struct xbb_xen_req; static void xbb_attach_failed(struct xbb_softc *xbb, int err, const char *fmt, - ...) __attribute__((format(printf, 3, 4))); + ...) __printflike(3, 4); static int xbb_shutdown(struct xbb_softc *xbb); /*------------------------------ Data Structures -----------------------------*/ diff --git a/sys/xen/xen_intr.h b/sys/xen/xen_intr.h index 75c3dc7c6060..4965928cc8b4 100644 --- a/sys/xen/xen_intr.h +++ b/sys/xen/xen_intr.h @@ -182,7 +182,7 @@ void xen_intr_unbind(xen_intr_handle_t *handle); */ int xen_intr_describe(xen_intr_handle_t port_handle, const char *fmt, ...) - __attribute__((format(printf, 2, 3))); + __printflike(2, 3); /** * Signal the remote peer of an interrupt source associated with an diff --git a/sys/xen/xenbus/xenbusvar.h b/sys/xen/xenbus/xenbusvar.h index 2e3d95795c43..22f192fdea8d 100644 --- a/sys/xen/xenbus/xenbusvar.h +++ b/sys/xen/xenbus/xenbusvar.h @@ -152,7 +152,7 @@ int xenbus_grant_ring(device_t dev, unsigned long ring_mfn, grant_ref_t *refp); * printf arguments. */ void xenbus_dev_error(device_t dev, int err, const char *fmt, ...) - __attribute__((format(printf, 3, 4))); + __printflike(3, 4); /** * va_list version of xenbus_dev_error(). @@ -163,7 +163,7 @@ void xenbus_dev_error(device_t dev, int err, const char *fmt, ...) * \param ap Va_list of printf arguments. */ void xenbus_dev_verror(device_t dev, int err, const char *fmt, va_list ap) - __attribute__((format(printf, 3, 0))); + __printflike(3, 0); /** * Equivalent to xenbus_dev_error(), followed by @@ -175,7 +175,7 @@ void xenbus_dev_verror(device_t dev, int err, const char *fmt, va_list ap) * printf arguments. */ void xenbus_dev_fatal(device_t dev, int err, const char *fmt, ...) - __attribute__((format(printf, 3, 4))); + __printflike(3, 4); /** * va_list version of xenbus_dev_fatal(). @@ -186,7 +186,7 @@ void xenbus_dev_fatal(device_t dev, int err, const char *fmt, ...) * \param ap Va_list of printf arguments. */ void xenbus_dev_vfatal(device_t dev, int err, const char *fmt, va_list) - __attribute__((format(printf, 3, 0))); + __printflike(3, 0); /** * Convert a member of the xenbus_state enum into an ASCII string. diff --git a/sys/xen/xenstore/xenstorevar.h b/sys/xen/xenstore/xenstorevar.h index 3b281ed21b0e..e602aac9e39c 100644 --- a/sys/xen/xenstore/xenstorevar.h +++ b/sys/xen/xenstore/xenstorevar.h @@ -271,7 +271,7 @@ int xs_scanf(struct xs_transaction t, */ int xs_printf(struct xs_transaction t, const char *dir, const char *node, const char *fmt, ...) - __attribute__((format(printf, 4, 5))); + __printflike(4, 5); /** * va_list version of xenbus_printf(). From nobody Sun Jan 4 01:50:32 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dkL3s02DJz6MD8Z for ; Sun, 04 Jan 2026 01:50:33 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dkL3r3qrpz3TBQ for ; Sun, 04 Jan 2026 01:50:32 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767491432; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=rrdTbBM+KjNGK35G/OjMH4Jr8u75FDttTR3hI4VkIWg=; b=k1jQqJIlK9YascB8AVcuMMv8r4JR4GC2tsM8mwJo1Tclm/78tw6KHOCWRz8Ec5EouRCVfI SlLJM7xj5P88ljaMy0qCM0pYyntmlz9lvesOVbsmTvsegHShIUz93yLnoREFDdrkfOYjwz 0N+S9ezpnTGAOrnNRQFaYsMK7I/qpAg4ehzJSAM49MC+i7flPahiBDc9M0fB/MWQcOYlVF YubV+QqFaVfu1m7b3FcRx0ToHe9RWb8EnPGkJ7Jx+c5bbKXOefLMVH7FyL5DygQhpV+ugV 84I1Yv5gwDRHi064RzlgDdYgOiSM2fCF2+0DMDmcFs9Hi7S2Oo+hliWAVXm+Pg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767491432; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=rrdTbBM+KjNGK35G/OjMH4Jr8u75FDttTR3hI4VkIWg=; b=MYTyuovni+BhQMToD4WPixPSKK24E7wLVOCovx96RvmDChTtBfrXe3LxZcVnKbt1lwOqiH 3B3VoaaY+4q5n2dInZxGf2WSIiSUa/FoH/o0eKyOglyGuYaB+ccjZxDuGiSFgstTLvS4pS bD11vOek8jK/OjBcjLEyd/5kUUuT7RSKvNm47hQgx4m66iWBlflPJ3A/ni6CH7yaRBHTE/ 8RWigQPS5MNQhgSVZVCWlFkYGjZX2FmYTiZyW/oD0lphu4POrZRp1GVfPBo19xq6IC76gM h/NVYC+0x63uX7QAZzAoKumABPPDzDy5K9mD2OtCvW+8xEzdIdvmBP5JrnwBzg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767491432; a=rsa-sha256; cv=none; b=l6L/8ALnn/sdgOWsp9UCPCihHM6YiL9FffMFYpQCWmj3/H10aSsMFd5hgb0ENmG4QDHo/F DwmjoW6APMUtZ4U+tvtl9KnRp/2NHvk3nNGh6ceBIGGF+ewpugd3sDsWHt52Lt1lnuO3lu MYCBb9JbkJNpQ9BNvqDtr5faug8e9D4RaBqXubRs8786S2baQ0+FDw+YpsMEGUrmWr0q5h xjbIX8n7yH/kUgHteKQHDEkkMEaAm5do+Qt/79qaKHJViPy0oQaNWVctSC8fbJot+V+xHz eQCupg3zCuOdZxN/PPEIbtkgp6H6barpCQWpvc2l+EmMoM7KPsadZvyULPx+Ow== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dkL3r35Jtz1RvN for ; Sun, 04 Jan 2026 01:50:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3ed9d by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Sun, 04 Jan 2026 01:50:32 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Cc: Alex Richardson From: Dimitry Andric Subject: git: b94022db9aed - stable/13 - ocs_fc: Use __printflike() instead of format(printf) List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: b94022db9aed8e01675baafde096e09c63bf6cf6 Auto-Submitted: auto-generated Date: Sun, 04 Jan 2026 01:50:32 +0000 Message-Id: <6959c768.3ed9d.74a037a5@gitrepo.freebsd.org> The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=b94022db9aed8e01675baafde096e09c63bf6cf6 commit b94022db9aed8e01675baafde096e09c63bf6cf6 Author: Alex Richardson AuthorDate: 2025-09-16 04:58:36 +0000 Commit: Dimitry Andric CommitDate: 2026-01-04 01:46:39 +0000 ocs_fc: Use __printflike() instead of format(printf) The __printflike macro sets the format to freebsd_kprintf which recent clang understands and warns about. Fixes the following error: `passing 'printf' format string where 'freebsd_kprintf' format string is expected [-Werror,-Wformat]` MFC after: 1 week (cherry picked from commit 3c0ea1b629764c49611e3e3adfa0c44f9afa3558) --- sys/dev/ocs_fc/ocs_ddump.h | 3 +-- sys/dev/ocs_fc/ocs_mgmt.h | 3 +-- sys/dev/ocs_fc/ocs_os.h | 2 +- sys/dev/ocs_fc/ocs_utils.h | 12 ++++-------- 4 files changed, 7 insertions(+), 13 deletions(-) diff --git a/sys/dev/ocs_fc/ocs_ddump.h b/sys/dev/ocs_fc/ocs_ddump.h index b7d7eefad813..3cffff6d9670 100644 --- a/sys/dev/ocs_fc/ocs_ddump.h +++ b/sys/dev/ocs_fc/ocs_ddump.h @@ -46,8 +46,7 @@ extern void ocs_ddump_startfile(ocs_textbuf_t *textbuf); extern void ocs_ddump_endfile(ocs_textbuf_t *textbuf); extern void ocs_ddump_section(ocs_textbuf_t *textbuf, const char *name, uint32_t instance); extern void ocs_ddump_endsection(ocs_textbuf_t *textbuf, const char *name, uint32_t instance); -__attribute__((format(printf,3,4))) -extern void ocs_ddump_value(ocs_textbuf_t *textbuf, const char *name, const char *fmt, ...); +extern void ocs_ddump_value(ocs_textbuf_t *textbuf, const char *name, const char *fmt, ...) __printflike(3, 4); extern void ocs_ddump_buffer(ocs_textbuf_t *textbuf, const char *name, uint32_t instance, void *buffer, uint32_t size); extern int32_t ocs_save_ddump(ocs_t *ocs, uint32_t flags, uint32_t qentries); extern int32_t ocs_get_saved_ddump(ocs_t *ocs, ocs_textbuf_t *textbuf); diff --git a/sys/dev/ocs_fc/ocs_mgmt.h b/sys/dev/ocs_fc/ocs_mgmt.h index 7b59a3916ca8..9781aec18462 100644 --- a/sys/dev/ocs_fc/ocs_mgmt.h +++ b/sys/dev/ocs_fc/ocs_mgmt.h @@ -95,8 +95,7 @@ extern void ocs_mgmt_end_section(ocs_textbuf_t *textbuf, const char *name, int i extern void ocs_mgmt_end_unnumbered_section(ocs_textbuf_t *textbuf, const char *name); extern void ocs_mgmt_emit_property_name(ocs_textbuf_t *textbuf, int access, const char *name); extern void ocs_mgmt_emit_string(ocs_textbuf_t *textbuf, int access, const char *name, const char *value); -__attribute__((format(printf,4,5))) -extern void ocs_mgmt_emit_int(ocs_textbuf_t *textbuf, int access, const char *name, const char *fmt, ...); +extern void ocs_mgmt_emit_int(ocs_textbuf_t *textbuf, int access, const char *name, const char *fmt, ...) __printflike(4, 5); extern void ocs_mgmt_emit_boolean(ocs_textbuf_t *textbuf, int access, const char *name, const int value); extern int parse_wwn(char *wwn_in, uint64_t *wwn_out); diff --git a/sys/dev/ocs_fc/ocs_os.h b/sys/dev/ocs_fc/ocs_os.h index 9e3beff35548..e0024a198cb7 100644 --- a/sys/dev/ocs_fc/ocs_os.h +++ b/sys/dev/ocs_fc/ocs_os.h @@ -711,7 +711,7 @@ typedef struct { * @return returns 0 for success, a negative error code value for failure. */ -extern int ocs_sem_init(ocs_sem_t *sem, int val, const char *name, ...) __attribute__((format(printf, 3, 4))); +extern int ocs_sem_init(ocs_sem_t *sem, int val, const char *name, ...) __printflike(3, 4); /** * @brief execute a P (decrement) operation diff --git a/sys/dev/ocs_fc/ocs_utils.h b/sys/dev/ocs_fc/ocs_utils.h index e3a952e0cf26..7c9c9ae85b74 100644 --- a/sys/dev/ocs_fc/ocs_utils.h +++ b/sys/dev/ocs_fc/ocs_utils.h @@ -103,10 +103,8 @@ extern int32_t ocs_textbuf_init(ocs_t *ocs, ocs_textbuf_t *textbuf, void *buffer extern void ocs_textbuf_free(ocs_t *ocs, ocs_textbuf_t *textbuf); extern void ocs_textbuf_putc(ocs_textbuf_t *textbuf, uint8_t c); extern void ocs_textbuf_puts(ocs_textbuf_t *textbuf, char *s); -__attribute__((format(printf,2,3))) -extern void ocs_textbuf_printf(ocs_textbuf_t *textbuf, const char *fmt, ...); -__attribute__((format(printf,2,0))) -extern void ocs_textbuf_vprintf(ocs_textbuf_t *textbuf, const char *fmt, va_list ap); +extern void ocs_textbuf_printf(ocs_textbuf_t *textbuf, const char *fmt, ...) __printflike(2, 3); +extern void ocs_textbuf_vprintf(ocs_textbuf_t *textbuf, const char *fmt, va_list ap) __printflike(2, 0); extern void ocs_textbuf_buffer(ocs_textbuf_t *textbuf, uint8_t *buffer, uint32_t buffer_length); extern void ocs_textbuf_copy(ocs_textbuf_t *textbuf, uint8_t *buffer, uint32_t buffer_length); extern int32_t ocs_textbuf_remaining(ocs_textbuf_t *textbuf); @@ -325,10 +323,8 @@ typedef struct ocs_ramlog_s ocs_ramlog_t; extern ocs_ramlog_t *ocs_ramlog_init(ocs_t *ocs, uint32_t buffer_len, uint32_t buffer_count); extern void ocs_ramlog_free(ocs_t *ocs, ocs_ramlog_t *ramlog); extern void ocs_ramlog_clear(ocs_t *ocs, ocs_ramlog_t *ramlog, int clear_start_of_day, int clear_recent); -__attribute__((format(printf,2,3))) -extern int32_t ocs_ramlog_printf(void *os, const char *fmt, ...); -__attribute__((format(printf,2,0))) -extern int32_t ocs_ramlog_vprintf(ocs_ramlog_t *ramlog, const char *fmt, va_list ap); +extern int32_t ocs_ramlog_printf(void *os, const char *fmt, ...) __printflike(2, 3); +extern int32_t ocs_ramlog_vprintf(ocs_ramlog_t *ramlog, const char *fmt, va_list ap) __printflike(2, 0); extern int32_t ocs_ddump_ramlog(ocs_textbuf_t *textbuf, ocs_ramlog_t *ramlog); #endif From nobody Sun Jan 4 01:50:33 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dkL3t1wsvz6MD8h for ; Sun, 04 Jan 2026 01:50:34 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dkL3s5ZPYz3Syg for ; Sun, 04 Jan 2026 01:50:33 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767491433; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=RvxgMl8E7PMpv2A+72VML+PYXRin7BPvBEkdJjppSQw=; b=mT2g/G9hUAcnG4g1uQmT/5AiUUMsFeeRHQ9AF50JOlzo+uaA7UQAnYmg6fswfqDd3fuFoh RnuJL2lwTUDO1YuE4mV6neT6LwHbSumS+d7fdshj5TwC5ZB4oR3dOE9nTDZ2J2oYP4cjca ucHbXdgPnUZDY/YtUfyfoSykFzTnDCkBCAvxGNoLr/vEcKwl8nFaP0qJpLaT8B+Js42B86 hKwYM/75wfcpYXAeZWmTaDgz+4fdvjv9agmeHx5o2l/LQH5ZM+W0EcrWMZ2wZa7KHOgdzB +qIcjOa0M9whMYNbR4kkWDLy93E6X9Un1pZdSknjaUM2LeyPa24TjGU5hICLNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767491433; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=RvxgMl8E7PMpv2A+72VML+PYXRin7BPvBEkdJjppSQw=; b=nT33//okqMzghmfcxVFrEcNAl7unl0/GFURTNwpYTrhBthbxw/b4E0U7/W8eWi8UK1mglc qb+/BblcecAe+GtDCi7Zcf9SLH+LA0gca0gwX4hldJ4nWAmmGGeu1B8JQJlWzIhFDmwpNm hpAsJP8nqeqX6IA5RopbWBLmtFrDBvjo+qkjXX0QmCVvdDpun/95q+BYiK/7ZU4uUvS6M6 q2mKBiCQxeu18ATLCj7X198s/cv6DWVEAvXUg/l9a2McF7sEP7XcSxRbPbCafEc4gS46eK u0eYz2e3sV1wODuSzf0XSoeUOrQqrEw3FjybJCOaR21okM4pkioZiG/2fwd6nw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767491433; a=rsa-sha256; cv=none; b=PMVmwH6x+ClVKQyNoe/3ZdjitRhIH2sdSdh/TpjEMpVGgzEXVLvk3iWwYDayfZy/lMtjGt +DbJFsyO/onectZ+rfIei4fJr4btQM/gN7pVfvaXgIvONjJyqsgWZoEUKoVmQSkQbeno47 04t39F9A5NwSFwj3r7a/hEJsmqFnvGmC0911vzJWFhWD/uoiKRN2Fp3vxyq3ZTfN6XNMOs Vl8XFzGHvTU3S3a6oZIvGze9tC+aDEWvt9j61+3cUvB9WDcRAcRmMKl5SzpKkrRN56rScj p1F/JPPHsZ/ni5IE3ylIvP9mzALrI77k0fV44NwyrBkFuPOtcqk1K9Ll0oF6Rg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dkL3s3qvKz1RmP for ; Sun, 04 Jan 2026 01:50:33 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3ef82 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Sun, 04 Jan 2026 01:50:33 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Cc: Alex Richardson From: Dimitry Andric Subject: git: a96eb797b2d4 - stable/13 - sys/xen: Use __printflike() instead of format(printf) List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: a96eb797b2d4eab42b8d03935850532939df8fcc Auto-Submitted: auto-generated Date: Sun, 04 Jan 2026 01:50:33 +0000 Message-Id: <6959c769.3ef82.2c7472b3@gitrepo.freebsd.org> The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=a96eb797b2d4eab42b8d03935850532939df8fcc commit a96eb797b2d4eab42b8d03935850532939df8fcc Author: Alex Richardson AuthorDate: 2025-09-16 04:54:36 +0000 Commit: Dimitry Andric CommitDate: 2026-01-04 01:46:55 +0000 sys/xen: Use __printflike() instead of format(printf) The __printflike macro sets the format to freebsd_kprintf which recent clang understands and warns about. Fixes the following error: `passing 'printf' format string where 'freebsd_kprintf' format string is expected [-Werror,-Wformat]` MFC after: 1 week (cherry picked from commit 4cd7be3e81863bd22aacccc34fc2e8b2cfcb14d9) --- sys/dev/xen/blkback/blkback.c | 2 +- sys/xen/xen_intr.h | 2 +- sys/xen/xenbus/xenbusvar.h | 8 ++++---- sys/xen/xenstore/xenstorevar.h | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/sys/dev/xen/blkback/blkback.c b/sys/dev/xen/blkback/blkback.c index c58af5e9c90f..57dafd762e41 100644 --- a/sys/dev/xen/blkback/blkback.c +++ b/sys/dev/xen/blkback/blkback.c @@ -173,7 +173,7 @@ struct xbb_softc; struct xbb_xen_req; static void xbb_attach_failed(struct xbb_softc *xbb, int err, const char *fmt, - ...) __attribute__((format(printf, 3, 4))); + ...) __printflike(3, 4); static int xbb_shutdown(struct xbb_softc *xbb); /*------------------------------ Data Structures -----------------------------*/ diff --git a/sys/xen/xen_intr.h b/sys/xen/xen_intr.h index 57e1337398f4..25d676a15632 100644 --- a/sys/xen/xen_intr.h +++ b/sys/xen/xen_intr.h @@ -194,7 +194,7 @@ void xen_intr_unbind(xen_intr_handle_t *handle); */ int xen_intr_describe(xen_intr_handle_t port_handle, const char *fmt, ...) - __attribute__((format(printf, 2, 3))); + __printflike(2, 3); /** * Signal the remote peer of an interrupt source associated with an diff --git a/sys/xen/xenbus/xenbusvar.h b/sys/xen/xenbus/xenbusvar.h index 6cb6033bdca1..c332b261a62e 100644 --- a/sys/xen/xenbus/xenbusvar.h +++ b/sys/xen/xenbus/xenbusvar.h @@ -152,7 +152,7 @@ int xenbus_grant_ring(device_t dev, unsigned long ring_mfn, grant_ref_t *refp); * printf arguments. */ void xenbus_dev_error(device_t dev, int err, const char *fmt, ...) - __attribute__((format(printf, 3, 4))); + __printflike(3, 4); /** * va_list version of xenbus_dev_error(). @@ -163,7 +163,7 @@ void xenbus_dev_error(device_t dev, int err, const char *fmt, ...) * \param ap Va_list of printf arguments. */ void xenbus_dev_verror(device_t dev, int err, const char *fmt, va_list ap) - __attribute__((format(printf, 3, 0))); + __printflike(3, 0); /** * Equivalent to xenbus_dev_error(), followed by @@ -175,7 +175,7 @@ void xenbus_dev_verror(device_t dev, int err, const char *fmt, va_list ap) * printf arguments. */ void xenbus_dev_fatal(device_t dev, int err, const char *fmt, ...) - __attribute__((format(printf, 3, 4))); + __printflike(3, 4); /** * va_list version of xenbus_dev_fatal(). @@ -186,7 +186,7 @@ void xenbus_dev_fatal(device_t dev, int err, const char *fmt, ...) * \param ap Va_list of printf arguments. */ void xenbus_dev_vfatal(device_t dev, int err, const char *fmt, va_list) - __attribute__((format(printf, 3, 0))); + __printflike(3, 0); /** * Convert a member of the xenbus_state enum into an ASCII string. diff --git a/sys/xen/xenstore/xenstorevar.h b/sys/xen/xenstore/xenstorevar.h index 021b609d2f9c..89cfa0dda32f 100644 --- a/sys/xen/xenstore/xenstorevar.h +++ b/sys/xen/xenstore/xenstorevar.h @@ -271,7 +271,7 @@ int xs_scanf(struct xs_transaction t, */ int xs_printf(struct xs_transaction t, const char *dir, const char *node, const char *fmt, ...) - __attribute__((format(printf, 4, 5))); + __printflike(4, 5); /** * va_list version of xenbus_printf(). From nobody Sun Jan 4 09:21:07 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dkX3l4bqDz6MlbX for ; Sun, 04 Jan 2026 09:21:07 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dkX3l1cHfz474B for ; Sun, 04 Jan 2026 09:21:07 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767518467; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ysbkxybkd6qzMVuX1XTUOcIHj0xUlicink8tGmaX+gI=; b=aYar4Ob4WE4sqUa+kV5u7tdJO/xe//9OWnb+54PzTN9WiDKGEELXNzZmWZMYKT/mFumxEM CJqvdK906MIMipxcbRg+YVCYfvfXqHr3pLRJiYqOClI7BDwCCchbB5DrLuTmq+v1oTo4xI rqWZavykwRycNaK65sDMLe6bOsf6PxUoDjacDVG31VNubQZ74bHUGrZ+uU0P4nysUvDA0m 1z8IRm4bxzV/2apob5GOxOQqj0cM85dD3obF+fcY5Pbecovsi/kbXfkwvA/FklVG4cj5Xp 0SPG+d/0YMmUThJyyY7S8EKwfQ4z2fALNXUWnq7EIN3iXFVUTYvziCCdEumCfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767518467; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ysbkxybkd6qzMVuX1XTUOcIHj0xUlicink8tGmaX+gI=; b=rXzZo3zCGt5UcUWcDiZfVg9yFOnk4SlQZsUgRhY9b8i59wicRyrR9zkGYNbgemiVnhKfh7 HFnCaGKRHR+eJbdr41FC9BfVoos16H0I2acUrE+muI4YHenLKMpDZweisjkULDAz3EBcm7 XCd1INwRhqOISxuVhB+WFUZSinY62k9JSlQytak4zNZ5+tL4Os1hNtebmo/TmoFY8+Zfm3 Fpf7uO4MjvbTPnQEdcehJ5iPWmzU6ODvrxS821A6DVv5+rHcK0onVKHpD6Pq0rOzEPZNBE g5MsuIdnSa4Yr/o37FQqvxDfIU4am5al9ixk3Co7HMcKDxS5N1rsjY+E47VHDg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767518467; a=rsa-sha256; cv=none; b=eo0RWbNPt3J/N5l+vEiwvoId3tVORpRsBD/uT55t92D59IP2yzIuHop2TeCqI4W74yUdDo 66LoBxywTv9235t9o2OJpS7cspVwMuHSBlvH5AfLqn8e8+w0cFpB57bxpecoUaHoKJDp0o vSMOvRckEI6uKk7Myyr9u70hOmaQWRhhVtdMBrLd0C0VFfyPiA/i1a5CXRog8yrxKRkhtI ojeueCvvvUSaeAG20fYXN5CwjuS6qA4ruubrGYIG104yvhFgCAGRvT8jNLDOKmoULZDaAQ A6g2xSwq8wMArJ3uSSGg/lIX7GYgQu9GoqWN0eauDMRLF6cqJpPrUwYvXq9LIg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dkX3l0xktzCSV for ; Sun, 04 Jan 2026 09:21:07 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 90e9 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Sun, 04 Jan 2026 09:21:07 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Roman Bogorodskiy Subject: git: a8fb6303b835 - stable/15 - bhyvectl: improve options error handling List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: novel X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: a8fb6303b835e07e94226f3ae8591a4fe71c6274 Auto-Submitted: auto-generated Date: Sun, 04 Jan 2026 09:21:07 +0000 Message-Id: <695a3103.90e9.5a2162c9@gitrepo.freebsd.org> The branch stable/15 has been updated by novel: URL: https://cgit.FreeBSD.org/src/commit/?id=a8fb6303b835e07e94226f3ae8591a4fe71c6274 commit a8fb6303b835e07e94226f3ae8591a4fe71c6274 Author: Roman Bogorodskiy AuthorDate: 2025-12-05 18:45:03 +0000 Commit: Roman Bogorodskiy CommitDate: 2026-01-04 05:15:25 +0000 bhyvectl: improve options error handling Currently, it is possible to execute bhyvectl(8) with mutually exclusive options, such as "--destroy" and "--suspend", and it will print out obscure errors, e.g.: bhyvectl --suspend=/var/run/vms/my_vm --destroy --vm my_vm connect() failed: Connection refused Address that by failing early if mutually exclusive options were specified. Additionally, move the BHYVE_SNAPSHOT block before the errors are printed, so its errors are also displayed. Approved by: markj Sponsored by: The FreeBSD Foundation MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D54092 (cherry picked from commit 148111d3775eb159d71a36e3a8b4c5c1bf53392c) --- usr.sbin/bhyvectl/bhyvectl.c | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/usr.sbin/bhyvectl/bhyvectl.c b/usr.sbin/bhyvectl/bhyvectl.c index 41055678ac30..8c37b670ab2e 100644 --- a/usr.sbin/bhyvectl/bhyvectl.c +++ b/usr.sbin/bhyvectl/bhyvectl.c @@ -326,7 +326,7 @@ int main(int argc, char *argv[]) { char *vmname; - int error, ch, vcpuid; + int action_opts, error, ch, vcpuid; struct vm_run vmrun; struct vmctx *ctx; struct vcpu *vcpu; @@ -338,6 +338,7 @@ main(int argc, char *argv[]) opts = setup_options(); + action_opts = 0; vcpuid = 0; vmname = NULL; progname = basename(argv[0]); @@ -388,6 +389,16 @@ main(int argc, char *argv[]) if (vmname == NULL) usage(opts); + action_opts = create + destroy + force_reset + force_poweroff; +#ifdef BHYVE_SNAPSHOT + if (checkpoint_file) + action_opts++; +#endif + + if (action_opts > 1) { + fprintf(stderr, "mutually exclusive actions specified\n"); + exit(1); + } ctx = vm_openf(vmname, create ? VMMAPI_OPEN_CREATE : 0); if (ctx == NULL) { @@ -508,17 +519,17 @@ main(int argc, char *argv[]) if (!error && force_poweroff) error = vm_suspend(ctx, VM_SUSPEND_POWEROFF); +#ifdef BHYVE_SNAPSHOT + if (!error && checkpoint_file) + error = snapshot_request(vmname, checkpoint_file, vm_suspend_opt); +#endif + if (error) printf("errno = %d\n", errno); if (!error && destroy) vm_destroy(ctx); -#ifdef BHYVE_SNAPSHOT - if (!error && checkpoint_file) - error = snapshot_request(vmname, checkpoint_file, vm_suspend_opt); -#endif - free(opts); exit(error); } From nobody Sun Jan 4 10:28:59 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dkYZ40DlHz6MqNw for ; Sun, 04 Jan 2026 10:29:00 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dkYZ34xfzz4H7D for ; Sun, 04 Jan 2026 10:28:59 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767522539; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=pv/mJSWKGUJ3Sgow004nubooUhRGutAdogPKK1F6bvY=; b=EKLLui6xG7wIflyOGFdpGDlILnqc1YqObl+dfL2zangAmu3MY7nE1GxKJLB7tt9KRqsleE FfWtx8zGGMG/r0Sfi1boFgKKvygUhBY6dMX9ipb5aF766pQa7Ryoc4zNZMpEXu7Yp4CvNc uvk0H2G/s3fCN/QIKxNDaYLN1zakhCXs3gZMbAMi4ZXzu2niOl2q5iQ+H2nKrq8cRcwbLh IC1gsYD+Sfhykeo5kp3efcxSZlUPs1nly53XyfWs3/cjTfFwDOBjbhhUXKfgMxE2/7CVs7 oGPVjA6XjNfFakglUyP6Jbpadb0pV/6na2u7FnqLdXxNW/PdfxgFFfxlgKVk2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767522539; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=pv/mJSWKGUJ3Sgow004nubooUhRGutAdogPKK1F6bvY=; b=Y5r4998U8Wsy/HIS029LIqKeC9MljmReWv0OWmIgwy5nMJyNvErEMCgls0yKJ5OS8xMZ9n /8d52Se8r3QxWv5w0HoLftKdvyB3BLKS30TfD5eNk7SVqvIjz6kwU/9PFBlFEnV+wc9Ugl RcTgkmBvjwVYve8mF8xitrC9Qr5XY3Be7itL+5jwn5yhZdchJe6HFaKtJqYSKUKGLfRy8e KRvmahPx9w01ADWDKzpvdiGBwJTUH90/Jr6lxKEMjurpd7oANdXbdu78ZrWQuYBAZtj6d7 3e//0IkP5bE4g3mvaId9qWhhZVnvGxtfsQjihdxihLmx8qQhoq+SaeklqquPDQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767522539; a=rsa-sha256; cv=none; b=sF0Ck69Az5L2asfCAu4ClNk3wmdOtPamb8wquqVurMARfQaXT7HPubyOX1LdCXwyZZAdXL xcr6Pad8yKXMSTL8tHaSyCX+PXXAgdf0sqJFVGGQNiBJRpGxd0I82PX1PFoQMXgz+wjles XACTrhp80Bwjsf+XnZENq8O9yQ52dvitwvtaV7brs+kVHLKzYpFPMm69jTwC8NxtBYSyQw ocsNIlkiq3XSyaz70I9en0U+RWwg+mxcxK0H5acJkNW6vVBYASc/fUwS1v5jnatvrJhxki ZJpAsgrRYkDEuqPkxV2D8B49hEO0DwyaML784GManT8EDNFGFbzeITdYyNWCiw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dkYZ33vmhzVlj for ; Sun, 04 Jan 2026 10:28:59 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 20e21 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Sun, 04 Jan 2026 10:28:59 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Roman Bogorodskiy Subject: git: 3f649d1edfbe - stable/14 - bhyve: change suspend exit code List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: novel X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 3f649d1edfbea6caccd3270fe0071875adb9651a Auto-Submitted: auto-generated Date: Sun, 04 Jan 2026 10:28:59 +0000 Message-Id: <695a40eb.20e21.2ec90f4a@gitrepo.freebsd.org> The branch stable/14 has been updated by novel: URL: https://cgit.FreeBSD.org/src/commit/?id=3f649d1edfbea6caccd3270fe0071875adb9651a commit 3f649d1edfbea6caccd3270fe0071875adb9651a Author: Roman Bogorodskiy AuthorDate: 2025-12-05 17:16:29 +0000 Commit: Roman Bogorodskiy CommitDate: 2026-01-04 10:24:47 +0000 bhyve: change suspend exit code Currently, after suspending, bhyve(8) exits with 0. This code is also used to indicate that a VM was rebooted. To differentiate reboot and suspend, use the next available exit code, 5, for suspend. Approved by: markj Sponsored by: The FreeBSD Foundation MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D54087 (cherry picked from commit 611bbb190ff593e0e424e311575d7e978e623659) --- usr.sbin/bhyve/bhyve.8 | 4 +++- usr.sbin/bhyve/snapshot.c | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/usr.sbin/bhyve/bhyve.8 b/usr.sbin/bhyve/bhyve.8 index a6e1f772a81f..48735c22e320 100644 --- a/usr.sbin/bhyve/bhyve.8 +++ b/usr.sbin/bhyve/bhyve.8 @@ -22,7 +22,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd December 26, 2025 +.Dd December 30, 2025 .Dt BHYVE 8 .Os .Sh NAME @@ -1025,6 +1025,8 @@ halted triple fault .It 4 exited due to an error +.It 5 +suspended .El .Sh EXAMPLES If not using a boot ROM, the guest operating system must have been loaded with diff --git a/usr.sbin/bhyve/snapshot.c b/usr.sbin/bhyve/snapshot.c index edce55c03eae..23f6fc627de1 100644 --- a/usr.sbin/bhyve/snapshot.c +++ b/usr.sbin/bhyve/snapshot.c @@ -1309,7 +1309,7 @@ vm_checkpoint(struct vmctx *ctx, int fddir, const char *checkpoint_file, if (stop_vm) { vm_destroy(ctx); - exit(0); + exit(5); } done: From nobody Sun Jan 4 10:29:00 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dkYZ50RxLz6MqTk for ; Sun, 04 Jan 2026 10:29:01 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dkYZ45GPBz4H4r for ; Sun, 04 Jan 2026 10:29:00 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767522540; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=9FRJGSV5y5B+ewdcbFw95KigO9KJ5G/trwk/UekY/2c=; b=NzVvbgNiZzdgEaIMex9iK5Q1oozwfhEBILSZuBO1cIhmuBBtttJp/IdYODfeN1sWruBZOA nnYHDZFJwk5NrvRpkPA/c3OmMYPdt0mztB2DF0a7FOD9SgHED+06KV1N5afGqVQLy6N/aQ WUMEP2P/1NwmshO8aWySXqdv798rEGYraf/8H82RWtsDbkc/tbSw5YziNbgXjPrtSFMLtY dJ/aXcGbx5ID5lRT190TvQrE4a8tPuB/FbKZjb7a7ZQUsHJWKRuCxl49hakZBLcfm8ivUX GCKnCnK3N8mp45tRv+WvEgujrsbFzES3WyO+G8l12Im3QlIF2ohc4IX7tL+Nlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767522540; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=9FRJGSV5y5B+ewdcbFw95KigO9KJ5G/trwk/UekY/2c=; b=vVmgd776pzZzCWkK0esmAD8FvvNb+OliBwQLf212WUCxJLNE1NZTND4R+7KKcl9FdmRejF HCURg8IbnGtMR2w2q2tJ1r0tZxPVR70WH9YR5zwjQuO28uS+qmO85fqRpicTPWGcV7pjbE JGMBoWC9LNED/Rn1ozUBQ/PkfHE6n0ZV/3QsdJ3KojchmD688z+SKQ1veDIRYO5umJM5yi AadmV2E6ui1zphK93Z3NmacWuHkaXUbuuMsGI4eDcbggXQwqArRNNIKCGlrvOoP1N3SI20 Nnhdf4OI/ZMPcC5rDyJwBQ+3cRHtfkjB79M3tg0wAyll9NbSsqOX4N7FOiMeIQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767522540; a=rsa-sha256; cv=none; b=Q1HwxYR2Xg39I2u/V8wzfmY2CeBJeM9BNp/FQ4vtkxTqmVnvsXwN166ox5jlIJJvmhQMo8 2ZnXTbZO46Jj8rq/Rj708AkO/CJXv9Hg61GWwQnbyZBpw7cNGCx8BQR9dVKH7mcRZ63ysC 9QkVUkavcqvB2BAaRNkUxgnZZMeAb8nfAcDm/uErdzSm7X/FO4l6YuVDe+52d1hVJzH1b8 XErl9fq8BuWf7lnNKjEiCPlMh/7zo/6n/84F6ed/HZqnr0UUvkqa4uUeYmC+dYC/wHHjiB QwtuTgBpcIB6YXUOZfqxHG9s/enMEfIGu54EbjPSJn+CiRDerb7L7GzjBnjapw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dkYZ44dTvzVLn for ; Sun, 04 Jan 2026 10:29:00 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 20e98 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Sun, 04 Jan 2026 10:29:00 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Roman Bogorodskiy Subject: git: b35e955333ef - stable/14 - bhyvectl: improve options error handling List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: novel X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: b35e955333efdd97a3a369740d2b2038fb86826c Auto-Submitted: auto-generated Date: Sun, 04 Jan 2026 10:29:00 +0000 Message-Id: <695a40ec.20e98.3527639a@gitrepo.freebsd.org> The branch stable/14 has been updated by novel: URL: https://cgit.FreeBSD.org/src/commit/?id=b35e955333efdd97a3a369740d2b2038fb86826c commit b35e955333efdd97a3a369740d2b2038fb86826c Author: Roman Bogorodskiy AuthorDate: 2025-12-05 18:45:03 +0000 Commit: Roman Bogorodskiy CommitDate: 2026-01-04 10:24:47 +0000 bhyvectl: improve options error handling Currently, it is possible to execute bhyvectl(8) with mutually exclusive options, such as "--destroy" and "--suspend", and it will print out obscure errors, e.g.: bhyvectl --suspend=/var/run/vms/my_vm --destroy --vm my_vm connect() failed: Connection refused Address that by failing early if mutually exclusive options were specified. Additionally, move the BHYVE_SNAPSHOT block before the errors are printed, so its errors are also displayed. Approved by: markj Sponsored by: The FreeBSD Foundation MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D54092 (cherry picked from commit 148111d3775eb159d71a36e3a8b4c5c1bf53392c) --- usr.sbin/bhyvectl/bhyvectl.c | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/usr.sbin/bhyvectl/bhyvectl.c b/usr.sbin/bhyvectl/bhyvectl.c index 050d72f013df..acd4950e10ca 100644 --- a/usr.sbin/bhyvectl/bhyvectl.c +++ b/usr.sbin/bhyvectl/bhyvectl.c @@ -1628,7 +1628,7 @@ int main(int argc, char *argv[]) { char *vmname; - int error, ch, vcpuid, ptenum; + int action_opts, error, ch, vcpuid, ptenum; vm_paddr_t gpa_pmap; struct vm_run vmrun; uint64_t rax, cr0, cr2, cr3, cr4, dr0, dr1, dr2, dr3, dr6, dr7; @@ -1648,6 +1648,7 @@ main(int argc, char *argv[]) cpu_intel = cpu_vendor_intel(); opts = setup_options(cpu_intel); + action_opts = 0; vcpuid = 0; vmname = NULL; assert_lapic_lvt = -1; @@ -1822,6 +1823,17 @@ main(int argc, char *argv[]) if (vmname == NULL) usage(opts); + action_opts = create + destroy + force_reset + force_poweroff; +#ifdef BHYVE_SNAPSHOT + if (checkpoint_file) + action_opts++; +#endif + + if (action_opts > 1) { + fprintf(stderr, "mutually exclusive actions specified\n"); + exit(1); + } + error = 0; if (!error && create) @@ -2290,17 +2302,17 @@ main(int argc, char *argv[]) if (!error && force_poweroff) error = vm_suspend(ctx, VM_SUSPEND_POWEROFF); +#ifdef BHYVE_SNAPSHOT + if (!error && checkpoint_file) + error = snapshot_request(vmname, checkpoint_file, vm_suspend_opt); +#endif + if (error) printf("errno = %d\n", errno); if (!error && destroy) vm_destroy(ctx); -#ifdef BHYVE_SNAPSHOT - if (!error && checkpoint_file) - error = snapshot_request(vmname, checkpoint_file, vm_suspend_opt); -#endif - free (opts); exit(error); } From nobody Sun Jan 4 13:23:59 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dkdS00WGRz6N207 for ; Sun, 04 Jan 2026 13:24:00 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dkdRz5FCqz3MvZ for ; Sun, 04 Jan 2026 13:23:59 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767533039; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=1tm9+rsWK7fH4bI6r+ppHlK/apq55oW1us84HVaKTtM=; b=JwmtpgEFWJALJxqBr5GoaABSdScNU4/wztOCAmjI6eCTOR+Yn4rxoFbxgN86/rtmV9lIyb CPcwMQCzOMCvAe4DkiQTC2B0VEanAFuQOG44VkiSdMgut6Bfv3kYFCeF9RSH0TkQBjsPO1 4HGSXCaSzpM5rw/STgCjugXxRsQsMrjQ3d6gj6gisqQsnEZXOLcwYagbv4WcCuS5gnvYOU EVhcgP+cYMwuIT+rCy9+dOCqgf4LvhjnNzC4Y7yfRI9ibxeoyn8bLZh+lEkwxWdzYN2Mw8 LRAo1x+7WE+R6SFKDMHlgX2CeqLS1RN6dpOSGjm2/2B5LbYYYW9jL6zLvzTawg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767533039; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=1tm9+rsWK7fH4bI6r+ppHlK/apq55oW1us84HVaKTtM=; b=VOa/Trc/OgoCwpiExlR9Z3EH+DfleUBNZRQfLpii1cIfPNprwtF2pRNwKvB9bRwDaH1gw0 8qNAc1evCR20smbezNzkDUhDBryXLOpl6JtvanYSYZRy58Jbe4wCPRDgB1pRJ30HH9kE7i crljJBbz4Bvq2Xq2H35iYmpNy9iv8n8BpiQEHf18p6GiqM5yxbmGeQAPbhyAy/yKRqFyRE FNM5DwqVRdDN4p2w0u8juMJOXaRyaPeUjP7jqlnqv9kWPGGniruxmEyJFizJgu67jUnzlv Hv1QU0AUilMIF5nlAo5yKFkjVW8Z+jz9QE37rCOR7gqjI2pylzMBfHx0hsva9g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767533039; a=rsa-sha256; cv=none; b=TPNJdr+OdLKrcCtkGIF4Xo1W4EPP0RnnaoPCdbh16aenZreer59DOLHtFofpcgBmmv3Cwy q9/A2eRH84IScnzkasvvIRXGDZ6VHC+SBozpIt5GrRKOq5WX3N+pH+3/TdLrVGz6zuifdl k72+AsH1APMNv3Eb1pSBi4VxhorKukFhy7cabc9WatKf74A0TEmersrqhn8rsOEA9fT8rH eH4Ewro15EGDMQJAO3WhEHF7fqYGWDnl5/T3A3e16uTWF/lpXBRqcH0xKNVaEdMZ8j+F2t zfmwc6A+G+IBbpGDViO7NugsxAWxAhffWU3N4ykscsrL1BC5382Bspa7oe5Pmw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dkdRz4W6Kzck0 for ; Sun, 04 Jan 2026 13:23:59 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3ad84 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Sun, 04 Jan 2026 13:23:59 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Robert Clausecker Subject: git: b49401c0bd4c - stable/15 - libc/amd64: fix overread conditions in stpncpy() List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: fuz X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: b49401c0bd4c2af16cee0561f6a9b90e6349193b Auto-Submitted: auto-generated Date: Sun, 04 Jan 2026 13:23:59 +0000 Message-Id: <695a69ef.3ad84.6e345b8@gitrepo.freebsd.org> The branch stable/15 has been updated by fuz: URL: https://cgit.FreeBSD.org/src/commit/?id=b49401c0bd4c2af16cee0561f6a9b90e6349193b commit b49401c0bd4c2af16cee0561f6a9b90e6349193b Author: Robert Clausecker AuthorDate: 2025-12-10 20:45:18 +0000 Commit: Robert Clausecker CommitDate: 2026-01-04 13:22:50 +0000 libc/amd64: fix overread conditions in stpncpy() Due to incorrect unit test design, two overread conditions went undetected in the amd64 baseline stpncpy() implementation. For buffers of 1--16 and 32 bytes that do not contain nul bytes and end exactly at a page boundary, the code would incorrectly read 16 bytes from the next page, possibly crossing into an unmapped page and crashing the program. If the next page was mapped, the code would then proceed with the expected behaviour of the stpncpy() function. Three changes were made to fix the bug: - an off-by-one error is fixed in the code deciding whether to enter the runt case or not, entering it for 0 Reviewed by: getz Approved by: markj (mentor) MFC after: 1 week Fixes: 90253d49db09a9b1490c448d05314f3e4bbfa468 (D42519) Differential Revision: https://reviews.freebsd.org/D54170 (cherry picked from commit 66eb78377bf109af1d9e25626bf254b4369436ec) --- lib/libc/amd64/string/stpncpy.S | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/libc/amd64/string/stpncpy.S b/lib/libc/amd64/string/stpncpy.S index 5ce0dd093a9e..df22bb9f0c53 100644 --- a/lib/libc/amd64/string/stpncpy.S +++ b/lib/libc/amd64/string/stpncpy.S @@ -100,7 +100,7 @@ ARCHENTRY(__stpncpy, baseline) movdqa (%rsi), %xmm0 # load head and $0xf, %ecx # offset from alignment mov $-1, %r9d - lea -32(%rcx), %rax # set up overflow-proof comparison rdx+rcx<=32 + lea -33(%rcx), %rax # set up overflow-proof comparison rdx+rcx<=32 shl %cl, %r9d # mask of bytes belonging to the string sub %rcx, %rdi # adjust RDI to correspond to RSI pxor %xmm1, %xmm1 @@ -223,8 +223,9 @@ ARCHENTRY(__stpncpy, baseline) /* 1--32 bytes to copy, bounce through the stack */ .Lrunt: movdqa %xmm1, bounce+16(%rsp) # clear out rest of on-stack copy - bts %r10d, %r8d # treat end of buffer as end of string - and %r9w, %r8w # end of string within first buffer? + bts %r10, %r8 # treat end of buffer as end of string + and %r9d, %r8d # mask out head before string + test $0x1ffff, %r8d # end of string within first chunk or right after? jnz 0f # if yes, do not inspect second buffer movdqa 16(%rsi), %xmm0 # load second chunk of input From nobody Sun Jan 4 13:24:01 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dkdS23m71z6N24q for ; Sun, 04 Jan 2026 13:24:02 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dkdS203sGz3Mvb for ; Sun, 04 Jan 2026 13:24:02 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767533042; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=39TIpkZj7PwQxjLTahalkjo4mHFvhKS/yE4dlQBzus4=; b=ATP3dknSKxpMwBMuqUg1wU9icGRslkYC5YEzGb44R/8rx3S663cEXs9VR/pm7LhRyHH6Cb C/JF3315Lo0McPunLxzja8apUKW8yKZcDDgEYHsWzvzuNc5hKU/JUJ0E2HgEdlmZ55jYik +HVFfeH4YXqwujVBGK1u7BSFTsYCjimm3sFSINy33LKbEilwxJCgSre6v5jJLTuowQiVBi NfXJIoydOnSrH4L3Xll9Kw4UeJdCL+75E+PCYMfl6ku5t1JVcJ8fEjSSepc223GvIV0D8w btJdi+AyGSvq1enXu+g9QxeffEKvwjt8Hs3UoV4u5eod0VLD6zlsGhAINbingw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767533042; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=39TIpkZj7PwQxjLTahalkjo4mHFvhKS/yE4dlQBzus4=; b=Vqmpff2GfVnXcQExAE5X7t9OD6aAlZJ2NNSByJMdycG3igp0Krk0QTRiATNLzSe1lt45Y0 78yFnmkH9bhARHSM+ArpFtjYn5bskrHNRD6/BQ/0if56K2G2wasESAJYh3IWXFxnfO5f+C QLVv7uumXwWy9cvrlD9qd6YJpN+jOSpIBX5bzCbk0hbR6v+lkOtHPXHfT/xJVUP3eNLN27 aTVGSf5AB6a5kO5uvEv0eouyE7Kzgk7fehyBU/eTxFUCjlloxeMC19/d/nzaU8LlP6QwZC orFJQfSXxERUAxwsUEFXauRikdqKJyVgDzjjTnUyx+emKvnEJQFDzxq2cXyfIg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767533042; a=rsa-sha256; cv=none; b=eMfXyqg3ZWEsNXUdpP4yoMlycxU39vmTkfS3UITTt1oJKUXUTPbOVrEDmnQh95hpHAYr0p emJnORM1KSHfE15VMIBtPK/aV+d15KZzEjT80X27iY8KSE+MjZ7fBjGuqnmqXY7KK+zRbG CTJF5agmmNIt8OLx9VR1s8m0ajU0MyfQqHW9/sSmoOPuFpaKvRpGYJkhs1MvEwTK9uCsT2 ctEsY4yI8sFw59cotY+80kcLLOdlf+ajpsuBhydxDigWIw2m56PX2zuJbkSBDKFL9OCJpP 0DLW4H8o3nSLVDU9niwceYauoT7EzrN1J7SupNWSynx3+iBmH8yVMdO/HjALeg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dkdS166ktzd3Z for ; Sun, 04 Jan 2026 13:24:01 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 39da1 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Sun, 04 Jan 2026 13:24:01 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Robert Clausecker Subject: git: 9c68745a5064 - stable/15 - libc/amd64: fix stpncpy.S again List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: fuz X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 9c68745a50640ccff37565e3cbfe53dddc18d7d3 Auto-Submitted: auto-generated Date: Sun, 04 Jan 2026 13:24:01 +0000 Message-Id: <695a69f1.39da1.5b9f90d9@gitrepo.freebsd.org> The branch stable/15 has been updated by fuz: URL: https://cgit.FreeBSD.org/src/commit/?id=9c68745a50640ccff37565e3cbfe53dddc18d7d3 commit 9c68745a50640ccff37565e3cbfe53dddc18d7d3 Author: Robert Clausecker AuthorDate: 2025-12-18 23:37:33 +0000 Commit: Robert Clausecker CommitDate: 2026-01-04 13:22:51 +0000 libc/amd64: fix stpncpy.S again The previous fix introduced a regression on machines without the BMI1 instruction set extension. The TZCNT instruction used in this function behaves different on old machines when the source operand is zero, but the code was originally designed to never trigger this case. The bug fix caused this case to be possible, leading to a regression on sufficiently old hardware. Fix the code by messing with things such that the source operand is never zero. PR: 291720 Fixes: 66eb78377bf109af1d9e25626bf254b4369436ec Tested by: cy Approved by: markj (mentor) Differential Revision: https://reviews.freebsd.org/D54303 (cherry picked from commit 2f83319214d9adb8ab7a77e35d1014658b3f9cae) --- lib/libc/amd64/string/stpncpy.S | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/lib/libc/amd64/string/stpncpy.S b/lib/libc/amd64/string/stpncpy.S index 764ee1d4008c..2efadc97a435 100644 --- a/lib/libc/amd64/string/stpncpy.S +++ b/lib/libc/amd64/string/stpncpy.S @@ -36,9 +36,7 @@ .set stpncpy, __stpncpy ARCHFUNCS(__stpncpy) ARCHFUNC(__stpncpy, scalar) -#if 0 /* temporarily disabled cf. PR 291720 */ ARCHFUNC(__stpncpy, baseline) -#endif ENDARCHFUNCS(__stpncpy) ARCHENTRY(__stpncpy, scalar) @@ -93,7 +91,6 @@ ARCHEND(__stpncpy, scalar) /* stpncpy(char *restrict rdi, const char *rsi, size_t rdx) */ ARCHENTRY(__stpncpy, baseline) #define bounce (-3*16-8) /* location of on-stack bounce buffer */ - test %rdx, %rdx # no bytes to copy? jz .L0 @@ -225,8 +222,8 @@ ARCHENTRY(__stpncpy, baseline) /* 1--32 bytes to copy, bounce through the stack */ .Lrunt: movdqa %xmm1, bounce+16(%rsp) # clear out rest of on-stack copy - bts %r10, %r8 # treat end of buffer as end of string and %r9d, %r8d # mask out head before string + bts %r10, %r8 # treat end of buffer as end of string test $0x1ffff, %r8d # end of string within first chunk or right after? jnz 0f # if yes, do not inspect second buffer @@ -235,10 +232,10 @@ ARCHENTRY(__stpncpy, baseline) pcmpeqb %xmm1, %xmm0 # NUL in second chunk? pmovmskb %xmm0, %r9d shl $16, %r9d - or %r9d, %r8d # merge found NUL bytes into NUL mask + or %r9, %r8 # merge found NUL bytes into NUL mask /* end of string after one buffer */ -0: tzcnt %r8d, %r8d # location of last char in string +0: tzcnt %r8, %r8 # location of last char in string movdqu %xmm1, bounce(%rsp, %r8, 1) # clear bytes behind string lea bounce(%rsp, %rcx, 1), %rsi # start of string copy on stack lea (%rdi, %r8, 1), %rax # return pointer to NUL byte From nobody Sun Jan 4 13:27:30 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dkdX25VwRz6N21F for ; Sun, 04 Jan 2026 13:27:30 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dkdX21wzPz3P3N for ; Sun, 04 Jan 2026 13:27:30 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767533250; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=epJ5kVENtkCBTISFhlkceHUD2MDAnOKGqgt1v9z7pL8=; b=l7n9EV+kX9TstrjLtjREJoSOBothX2WT7jupO6l/nOwnptypUK7lJ4l1s+nhw98u6I6qrY Y7KoBiHLoFKgZIrHKk+GhUSBNyKsJMSi2B/4uFuJS522lWZOvj5a/nwiPTYPmd2QQPUN3f AnL//8wyJQ9kSASYJBhm/u24vcSXXnyG7dCpHin5ADJHNMwfMd/4eQ6LmtJ7E/OCUo70A4 SpKnOQ6Gk8YuCFeCF0Xm0P/zuIaJXx7WUUpSHPyv8D2n8U+6EGiSNn8WsddtnO6u3TdBL0 LjW/eqNISKEzXx+5y73HPGMCm/wDZcF4+tRlE9u91nPt/Ekjk1wCx2TNr4humQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767533250; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=epJ5kVENtkCBTISFhlkceHUD2MDAnOKGqgt1v9z7pL8=; b=u1duMk4Jjph47BIuX6EZvbIWgKa3bQDQ163wlcyA0Akz76vrYqUgGYQOM4q7SDYV010Wu9 D7QJdtHFieN/K6sIYcUlJ9tXd3LU5RT3U4YQ6R4G+7V1SADWxDpVbm2hWTVlRoWVj0P5xh mlb5gYxMfFs9WYHgdQklvipTzqZZqIOT2a8klWnm8PwLq3HvrkZn84BK32LCa/KDBLB41i SPJSlvU99z3j2EKuw6FWod3d9PW4DLzqUnKaVdnPMRSXkHwM0LMLyfrT5c9ND13v5epjQO QX3XBAEQ7MCyHIzHVSmgX5VDSKbek1cYYoBHi2VEg3Fy2bfVl7Kc5TmnH2me5w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767533250; a=rsa-sha256; cv=none; b=Zsm9QDJsVjnTS38396ExUPIpzorOIoakPkb96DtOYdAjiBrDkR9E/IQs4/H8vavAqdzwQI 9cQVYLhgL9KQycYZfQYcraAOlP2vydWPtKDllKUfWKxurBTkCudV9/dYpddgpk9J7VlFBs eMVULDCLGU4OyduU3LsPVZBcSfJtWJc4zgFKakTXSlNLiN7xdQj1bdA7o7uFQdbbFXKY+U BaVBrWLmnwuGRuOaFklPhxeS6CFX1whveH4GrIoYaPzfe2kXec3Ny+n968+jP4qY3FrgaM qBFTmhgcsRRtaqjmHvXoTv8AlP6a/xKfmA/yEpqt3cH1gzGbYqft2ov0d33OTA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dkdX216Slzd3g for ; Sun, 04 Jan 2026 13:27:30 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3a166 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Sun, 04 Jan 2026 13:27:30 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Robert Clausecker Subject: git: b0dc25c6d378 - stable/14 - libc/amd64: fix overread conditions in stpncpy() List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: fuz X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: b0dc25c6d378fbab41f86e494d4e7fcbadeb1b74 Auto-Submitted: auto-generated Date: Sun, 04 Jan 2026 13:27:30 +0000 Message-Id: <695a6ac2.3a166.30e2c471@gitrepo.freebsd.org> The branch stable/14 has been updated by fuz: URL: https://cgit.FreeBSD.org/src/commit/?id=b0dc25c6d378fbab41f86e494d4e7fcbadeb1b74 commit b0dc25c6d378fbab41f86e494d4e7fcbadeb1b74 Author: Robert Clausecker AuthorDate: 2025-12-10 20:45:18 +0000 Commit: Robert Clausecker CommitDate: 2026-01-04 13:25:33 +0000 libc/amd64: fix overread conditions in stpncpy() Due to incorrect unit test design, two overread conditions went undetected in the amd64 baseline stpncpy() implementation. For buffers of 1--16 and 32 bytes that do not contain nul bytes and end exactly at a page boundary, the code would incorrectly read 16 bytes from the next page, possibly crossing into an unmapped page and crashing the program. If the next page was mapped, the code would then proceed with the expected behaviour of the stpncpy() function. Three changes were made to fix the bug: - an off-by-one error is fixed in the code deciding whether to enter the runt case or not, entering it for 0 Reviewed by: getz Approved by: markj (mentor) MFC after: 1 week Fixes: 90253d49db09a9b1490c448d05314f3e4bbfa468 (D42519) Differential Revision: https://reviews.freebsd.org/D54170 (cherry picked from commit 66eb78377bf109af1d9e25626bf254b4369436ec) --- lib/libc/amd64/string/stpncpy.S | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/libc/amd64/string/stpncpy.S b/lib/libc/amd64/string/stpncpy.S index 5ce0dd093a9e..df22bb9f0c53 100644 --- a/lib/libc/amd64/string/stpncpy.S +++ b/lib/libc/amd64/string/stpncpy.S @@ -100,7 +100,7 @@ ARCHENTRY(__stpncpy, baseline) movdqa (%rsi), %xmm0 # load head and $0xf, %ecx # offset from alignment mov $-1, %r9d - lea -32(%rcx), %rax # set up overflow-proof comparison rdx+rcx<=32 + lea -33(%rcx), %rax # set up overflow-proof comparison rdx+rcx<=32 shl %cl, %r9d # mask of bytes belonging to the string sub %rcx, %rdi # adjust RDI to correspond to RSI pxor %xmm1, %xmm1 @@ -223,8 +223,9 @@ ARCHENTRY(__stpncpy, baseline) /* 1--32 bytes to copy, bounce through the stack */ .Lrunt: movdqa %xmm1, bounce+16(%rsp) # clear out rest of on-stack copy - bts %r10d, %r8d # treat end of buffer as end of string - and %r9w, %r8w # end of string within first buffer? + bts %r10, %r8 # treat end of buffer as end of string + and %r9d, %r8d # mask out head before string + test $0x1ffff, %r8d # end of string within first chunk or right after? jnz 0f # if yes, do not inspect second buffer movdqa 16(%rsi), %xmm0 # load second chunk of input From nobody Sun Jan 4 13:27:29 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dkdX140VNz6N23H for ; Sun, 04 Jan 2026 13:27:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dkdX12BTBz3P6V for ; Sun, 04 Jan 2026 13:27:29 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767533249; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=vAVjOpuCghMIoh2wbKytJRKd3TGE7SkZoIQNcgGgzQU=; b=A9hR6rPrWPEKh2nAK1+/4mmUKJmFpFA9kXtlK4TyvK51foJK6zH4OQFILCv6b42/8NRX+M THO6zYTfuhMptpglFiinrN/+0xkYbe01VR13HzEFm+F318nxJFuQGcA4baHq7xMzYFRJUw TlizPqdQSgx6lD8T1qVmnoAkZFuoCgKHQ2MNQ1c9BFkn5Hi6HLZFhHHuDJvTf9t4mY/2JU v2+Fh9UWrfWAIFkJmxS5GqVuQHzK+Yal0xqLigYSTIvuTa1pIq/ZywTrHDZxKt/G6R2VIB qCpddAygDK0ngdg8Hs5J7/0jshIZl63AwZV1LCmJ19vR6o1anxM/Zjc4Nwudug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767533249; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=vAVjOpuCghMIoh2wbKytJRKd3TGE7SkZoIQNcgGgzQU=; b=wmBEjOe5UT4463mcGdeEhJOKFTo+MXeo7rM8FSPLsfYzH4iLs9k9n/lGqMcC4RE9YHA+jT jUz3fuNug8oKyJne/RokIc8D4KMHj6qoE6ra0sTaOpzIvvTQ4aifrhSKVsEFMYHNL+5HdL WClLNPzWxYqit2OYPKSqbqOGdYDyhVa3LHESxvUDcpKIzKlceqUGpatfpq10HKyUAnPMJ+ 5YveGd3qwZUYe+rwp1cpWPswYQDZDwYwVD+wM+VuZYTmYfY/swzQxcXbcGZXX/QyE4Geyh zYzeDlptC9hIbWTgt0v32OZAKCqK6AIcvz8z9U6X7wUUivW+D+k4r4y1dclNFA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767533249; a=rsa-sha256; cv=none; b=cninMv8ubZWI7HuGQcdo71O5uu9f7NoJ7ugFwq6lWHsneivWhzDKBDQyhrL/mRW0Z/3+qU jC9wqpfZEOTPKogeHiqbRi/70DIdGpev4fTSod8s77c9ACX4zJhtefLl0K/WMzR5a1nvzJ GY+bq2QqKhycYidk+UX9LnGIyjUJUi1mKDQsm7rvuCLVoZzAlg4wn5KtyiAl93NyrkU2z9 kTYfD+HdxBXDLMzigr9NllwogLiO4ZjN0qCunn2h5l+oi9UKthZXZ6gLMe24ZeTEvmcu/P X0m6j1/VVdd5mtCM/bExMPhNvdGIL9Tx/9EnjvuF2SvULvidZIZUYk9d2agpOg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dkdX10xh1zd3f for ; Sun, 04 Jan 2026 13:27:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3af68 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Sun, 04 Jan 2026 13:27:29 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Robert Clausecker Subject: git: e2f095779323 - stable/14 - libc/tests/string: improve stpncpy() "bounds" unit test List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: fuz X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: e2f095779323204e90843b405863c81dc02423d2 Auto-Submitted: auto-generated Date: Sun, 04 Jan 2026 13:27:29 +0000 Message-Id: <695a6ac1.3af68.37e5642f@gitrepo.freebsd.org> The branch stable/14 has been updated by fuz: URL: https://cgit.FreeBSD.org/src/commit/?id=e2f095779323204e90843b405863c81dc02423d2 commit e2f095779323204e90843b405863c81dc02423d2 Author: Robert Clausecker AuthorDate: 2025-12-04 16:34:59 +0000 Commit: Robert Clausecker CommitDate: 2026-01-04 13:25:21 +0000 libc/tests/string: improve stpncpy() "bounds" unit test The test is extended the same way I previously extended the memccpy() test to fix what is probably the same kind of bug. PR: 291359 Reported by: Collin Funk Reviewed by: ngie Approved by: markj (mentor) Fixes: 6fa9e7d8737548ef93c573387ce62402c368d486 (D42519) See also: 61ed5748e4e9c7397fcb2638b442f46ac5c9e7c5 (D46051) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D54169 lib/libc/tests/string/stpncpy_test.c: apply ngie's fixes (cherry picked from commit 123c086200491819595abc271d360e605288fd18) (cherry picked from commit 8be8642826099368208efb2c1222f2a102cc5b08) --- lib/libc/tests/string/stpncpy_test.c | 55 +++++++++++++++++++++++++----------- 1 file changed, 39 insertions(+), 16 deletions(-) diff --git a/lib/libc/tests/string/stpncpy_test.c b/lib/libc/tests/string/stpncpy_test.c index 8574b2d591be..7fabe17bfe4a 100644 --- a/lib/libc/tests/string/stpncpy_test.c +++ b/lib/libc/tests/string/stpncpy_test.c @@ -1,6 +1,6 @@ /*- * Copyright (c) 2009 David Schultz - * Copyright (c) 2023 The FreeBSD Foundation + * Copyright (c) 2023, 2025 The FreeBSD Foundation * All rights reserved. * * Portions of this software were developed by Robert Clausecker @@ -52,34 +52,57 @@ makebuf(size_t len, int guard_at_end) buf = mmap(NULL, alloc_size, PROT_READ | PROT_WRITE, MAP_ANON, -1, 0); assert(buf); if (guard_at_end) { - assert(munmap(buf + alloc_size - page_size, page_size) == 0); + assert(mprotect(buf + alloc_size - page_size, page_size, PROT_NONE) == 0); return (buf + alloc_size - page_size - len); } else { - assert(munmap(buf, page_size) == 0); + assert(mprotect(buf, page_size, PROT_NONE) == 0); return (buf + page_size); } } static void -test_stpncpy(const char *s) +freebuf(char *buf, size_t len, int guard_at_end) { - char *src, *dst; - size_t size, len, bufsize, x; + size_t alloc_size, page_size; + + page_size = getpagesize(); + alloc_size = roundup2(len, page_size) + page_size; + + if (guard_at_end) + munmap(buf + len + page_size - alloc_size, alloc_size); + else + munmap(buf - page_size, alloc_size); +} + +static void +test_stpncpy(const char *s, size_t size) +{ + char *src, *dst, *expected; + size_t bufsize, x; int i, j; - size = strlen(s) + 1; for (i = 0; i <= 1; i++) { for (j = 0; j <= 1; j++) { - for (bufsize = 0; bufsize <= size + 10; bufsize++) { - src = makebuf(size, i); - memcpy(src, s, size); + for (bufsize = 0; bufsize <= size + 32; bufsize++) { dst = makebuf(bufsize, j); + if (bufsize < size) { + src = makebuf(bufsize, i); + memcpy(src, s, bufsize); + expected = dst + bufsize; + } else { + src = makebuf(size, i); + memcpy(src, s, size); + expected = dst + size - 1; + } + memset(dst, 'X', bufsize); - len = (bufsize < size) ? bufsize : size - 1; - assert(stpncpy_fn(dst, src, bufsize) == dst+len); - assert(memcmp(src, dst, len) == 0); - for (x = len; x < bufsize; x++) + assert(stpncpy_fn(dst, src, bufsize) == expected); + assert(memcmp(src, dst, MIN(bufsize, size)) == 0); + for (x = size; x < bufsize; x++) assert(dst[x] == '\0'); + + freebuf(dst, bufsize, j); + freebuf(src, MIN(bufsize, size), i); } } } @@ -140,12 +163,12 @@ ATF_TC_WITHOUT_HEAD(bounds); ATF_TC_BODY(bounds, tc) { size_t i; - char buf[64+1]; + char buf[64]; for (i = 0; i < sizeof(buf) - 1; i++) { buf[i] = ' ' + i; buf[i+1] = '\0'; - test_stpncpy(buf); + test_stpncpy(buf, i + 2); } } From nobody Sun Jan 4 13:27:32 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dkdX4587Pz6N26J for ; Sun, 04 Jan 2026 13:27:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dkdX43djKz3Ny7 for ; Sun, 04 Jan 2026 13:27:32 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767533252; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=iGqil7mE4sjPqrDnjzS79J2bhFHEG2daUfPUkVcmtNY=; b=MjPwChwb/g6njZpruO3HM/vNia5Vcuzg2CqU4XOaSggemN6ULjlY3vfeRlFIdsO/Kfxngb zEqmjQ3c7AtnZNES1LkqPtaCSRjjB2P6/VOtzs3LoIzIILy8jXZyNBVy8idA/0o+FzNETz 6xuOSvorxP2MuxrZxCsKfem7IVLxFGPaNqvSigDdKO3oOcgEPmzgPrFPYA9jBqpxkj2Do3 9J77bVc6KNWNyVq5Mhm38QNDbzd26ANRnqN6K+8t3Wj7g1Jo4xmGhLy5Jzgmcm4Rlnn7Yy dDZGYvuOLfF3molk5GPIrbowhpgCEx8fqZQhPPnRk/0vfCPT09U53EeH/yZIlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767533252; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=iGqil7mE4sjPqrDnjzS79J2bhFHEG2daUfPUkVcmtNY=; b=nItt8rhjvR6TdlO2gCa89hTFBMawfyuU8Gf+zBusRE/PBDtbHOzxptNN+hUlubonsfEolE GkMeqfPcJcdr9q7CYLxKKLpVuRXXtTVE3AnA+dL7NV7NhQe8UrCBRbhNhfwwxo+CBW9DuD TY7l6NGZO/sr8JkLJyyiEEPyllRNTF0cVFCCnVjtBLoCQOH/bbOFbve5jhSyw1wwnDkxLK elWbZeDVxrtOFlMxfgyhDindtNj4eCiUTWoazK8FaWxm9NiUHGOcAUYKkAWuyXRhfvWI/S hXzP9aQjXfzIS9zuCrmRM4L5FmHf5dETiqWySv3HEj/iMyfqTs1LW8hn/T7I4Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767533252; a=rsa-sha256; cv=none; b=tQNIdGC+pDXtdvhVkoK4nUptncY3n6sRXpD3KZhmQ/POCcgymeMRJTzFfPdvb7ANgAaXdh ONA7VuvWrxjQ8ESRUMaNFD5n/WBPcZRXw3mwx2p3HtF4dypO80MxXzQKJx9P//cRDUAj0R Ku8yM2hvoc9Wp9IP0dPFmSoZOrlEZUNEq7yDS57jICkFgbE1PtZaJFSo/M15jZRM8XItpQ qF91jGwLvOdAFiMHsDluALyKzMmfv4mLSMoQ/C7wZ2ML/JliW/SiagKqhQ7ZgR8E7JfP0t p/ajkUt95UPkWmoXThq+mqBdZNyuBjcY/wn97s/O36lsZb8uy/Hu1nwH0OOZwQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dkdX42lflzcml for ; Sun, 04 Jan 2026 13:27:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 39c72 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Sun, 04 Jan 2026 13:27:32 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Robert Clausecker Subject: git: a5c6c9563119 - stable/14 - libc/amd64: fix stpncpy.S again List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: fuz X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: a5c6c95631195181bd3707d96ab79184235df6a6 Auto-Submitted: auto-generated Date: Sun, 04 Jan 2026 13:27:32 +0000 Message-Id: <695a6ac4.39c72.7c805f10@gitrepo.freebsd.org> The branch stable/14 has been updated by fuz: URL: https://cgit.FreeBSD.org/src/commit/?id=a5c6c95631195181bd3707d96ab79184235df6a6 commit a5c6c95631195181bd3707d96ab79184235df6a6 Author: Robert Clausecker AuthorDate: 2025-12-18 23:37:33 +0000 Commit: Robert Clausecker CommitDate: 2026-01-04 13:25:33 +0000 libc/amd64: fix stpncpy.S again The previous fix introduced a regression on machines without the BMI1 instruction set extension. The TZCNT instruction used in this function behaves different on old machines when the source operand is zero, but the code was originally designed to never trigger this case. The bug fix caused this case to be possible, leading to a regression on sufficiently old hardware. Fix the code by messing with things such that the source operand is never zero. PR: 291720 Fixes: 66eb78377bf109af1d9e25626bf254b4369436ec Tested by: cy Approved by: markj (mentor) Differential Revision: https://reviews.freebsd.org/D54303 (cherry picked from commit 2f83319214d9adb8ab7a77e35d1014658b3f9cae) --- lib/libc/amd64/string/stpncpy.S | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/lib/libc/amd64/string/stpncpy.S b/lib/libc/amd64/string/stpncpy.S index 764ee1d4008c..2efadc97a435 100644 --- a/lib/libc/amd64/string/stpncpy.S +++ b/lib/libc/amd64/string/stpncpy.S @@ -36,9 +36,7 @@ .set stpncpy, __stpncpy ARCHFUNCS(__stpncpy) ARCHFUNC(__stpncpy, scalar) -#if 0 /* temporarily disabled cf. PR 291720 */ ARCHFUNC(__stpncpy, baseline) -#endif ENDARCHFUNCS(__stpncpy) ARCHENTRY(__stpncpy, scalar) @@ -93,7 +91,6 @@ ARCHEND(__stpncpy, scalar) /* stpncpy(char *restrict rdi, const char *rsi, size_t rdx) */ ARCHENTRY(__stpncpy, baseline) #define bounce (-3*16-8) /* location of on-stack bounce buffer */ - test %rdx, %rdx # no bytes to copy? jz .L0 @@ -225,8 +222,8 @@ ARCHENTRY(__stpncpy, baseline) /* 1--32 bytes to copy, bounce through the stack */ .Lrunt: movdqa %xmm1, bounce+16(%rsp) # clear out rest of on-stack copy - bts %r10, %r8 # treat end of buffer as end of string and %r9d, %r8d # mask out head before string + bts %r10, %r8 # treat end of buffer as end of string test $0x1ffff, %r8d # end of string within first chunk or right after? jnz 0f # if yes, do not inspect second buffer @@ -235,10 +232,10 @@ ARCHENTRY(__stpncpy, baseline) pcmpeqb %xmm1, %xmm0 # NUL in second chunk? pmovmskb %xmm0, %r9d shl $16, %r9d - or %r9d, %r8d # merge found NUL bytes into NUL mask + or %r9, %r8 # merge found NUL bytes into NUL mask /* end of string after one buffer */ -0: tzcnt %r8d, %r8d # location of last char in string +0: tzcnt %r8, %r8 # location of last char in string movdqu %xmm1, bounce(%rsp, %r8, 1) # clear bytes behind string lea bounce(%rsp, %rcx, 1), %rsi # start of string copy on stack lea (%rdi, %r8, 1), %rax # return pointer to NUL byte From nobody Sun Jan 4 13:27:31 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dkdX35kG2z6N23R for ; Sun, 04 Jan 2026 13:27:31 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dkdX32QS9z3Nwd for ; Sun, 04 Jan 2026 13:27:31 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767533251; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=yAEsHFksg0nH3TA8sUM01wthyFfb/uY0duD1Txx0LM8=; b=eqEH5vR/AWduJ2MTiqbXyNIyGLtI2K288nvCuPYvZA0AFRFLPJX5mIg2SVJPbU4K0ZBK7D 8XGrrLf6XdD2XaS51zPsOtV28HShWTzF6dP60AN+p22EJOSsU2tEiBDC1IBCoq9A2c9y80 OLZ3NA+dGOvEPpDrM2epQwRlxDToJyS5HboWlsLRRcqTsdbS5y6L7EKKweCZooBIhnZKmz py0Exff+MrmRSvguGWlRfH5sEtO0kyVsUgHlIBDFFnqOoM6xSJ2mj+cqYL3W/qWIeAw+yA 4MLZnFCEkrd537UgWrDWRuZxEAb73DHY6mUTtbdYUg7GgC6BULk4hjmY2QaXBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767533251; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=yAEsHFksg0nH3TA8sUM01wthyFfb/uY0duD1Txx0LM8=; b=FyRHLrIOU6RSZwBkgB3tcFru7pipreeiFq0mUgfWnKM24wtH+AdlYTJZlLkGqANo/H9Gvg c50o+a75jxloiHtdz58X5248F+1cQ4mPESsMriO0RpVkjgOVqKUxBWNGdiQ28Fge+MykkB MxE0qzJUluOs876W8Oe4UYh+cSqjqArKTzjFo8UvRzsNT4FlraVmQBj+EL+Jn0hzJ/LzNk IElv3FE5dPBWlPclpeZFYjCj5IYcXK25fYhvC7ejTa3rg4UnABVG5HkjPMEA7CLvR9Hu2G r7Uaz/jKetk1L8dypArQdIQQCP1lFah3YDFQs87Qhe+tS716E7PaEUzdej4n8g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767533251; a=rsa-sha256; cv=none; b=a4Y5xz9LPkAQE2FRH5fJ6e/9f0B8bDQfvTnfRCTz6bbzFhYhruGmzkqqyi1DPh5s1/HzbE EOARypIpwTWcc2mBY4FdsnPWGS58eHgoA3ruJUj/3lYABkZjGIl4OVQsQiO9YRU4YOQ/dv +J3w+gdQuw0wqo67M67hO+6nmtbyjy7RxH4IAfbFag4+Rro7sDRUHODF9O395EXDfZWQ7p IJphgl7HxD3F4ZINcd7cLDJHFJmVje43CjYQCXI4UfQKMnsN7m759hibYP776bYRYLw8TK z/yJ9xmfmRU0hU4QMaPwp8/sIkCjCNLk23lF8ldaMxT6D6kllN28OlaUDTDZKA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dkdX31zDtzcqW for ; Sun, 04 Jan 2026 13:27:31 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3ab25 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Sun, 04 Jan 2026 13:27:31 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Cc: Dag-Erling=?utf-8?Q? Sm=C3=B8rg?=rav From: Robert Clausecker Subject: git: 793877e7667c - stable/14 - libc/amd64: Disable baseline version of stpncpy() List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: fuz X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 793877e7667ce667cdf3539de68af78fb511c06f Auto-Submitted: auto-generated Date: Sun, 04 Jan 2026 13:27:31 +0000 Message-Id: <695a6ac3.3ab25.712cd7db@gitrepo.freebsd.org> The branch stable/14 has been updated by fuz: URL: https://cgit.FreeBSD.org/src/commit/?id=793877e7667ce667cdf3539de68af78fb511c06f commit 793877e7667ce667cdf3539de68af78fb511c06f Author: Dag-Erling Smørgrav AuthorDate: 2025-12-16 19:04:51 +0000 Commit: Robert Clausecker CommitDate: 2026-01-04 13:25:33 +0000 libc/amd64: Disable baseline version of stpncpy() This implementation appears to be broken on some CPUs. Disable it until the issue can be investigated and fixed. PR: 291720 Fixes: 66eb78377bf1 ("libc/amd64: fix overread conditions in stpncpy()") Fixes: 90253d49db09 ("lib/libc/amd64/string: add stpncpy scalar, baseline implementation") (cherry picked from commit ce9557d4ee174267504a63b2c8f6009be27368c9) --- lib/libc/amd64/string/stpncpy.S | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/libc/amd64/string/stpncpy.S b/lib/libc/amd64/string/stpncpy.S index df22bb9f0c53..764ee1d4008c 100644 --- a/lib/libc/amd64/string/stpncpy.S +++ b/lib/libc/amd64/string/stpncpy.S @@ -36,7 +36,9 @@ .set stpncpy, __stpncpy ARCHFUNCS(__stpncpy) ARCHFUNC(__stpncpy, scalar) +#if 0 /* temporarily disabled cf. PR 291720 */ ARCHFUNC(__stpncpy, baseline) +#endif ENDARCHFUNCS(__stpncpy) ARCHENTRY(__stpncpy, scalar)