HardenedBSD/src 5a0bbc3 — libexec/rc safe_eval.sh, sys/net80211 README.md DRIVER_REGISTRATION.md

Merge remote-tracking branch 'rad/hardened/current/master' into hardened/current/pledge
DeltaFile
+252-0sys/net80211/DRIVER_REGISTRATION.md
+80-17libexec/rc/safe_eval.sh
+97-0sys/netlink/ktest_netlink_message_writer.c
+14-21sys/netinet/sctputil.c
+21-0tests/sys/netlink/test_netlink_message_writer.py
+5-5sys/net80211/README.md
+469-431 files not shown
+473-467 files

HardenedBSD/src 6f8486b — libexec/rc safe_eval.sh, sys/net80211 README.md DRIVER_REGISTRATION.md

Merge branch 'freebsd/current/main' into hardened/current/master
DeltaFile
+252-0sys/net80211/DRIVER_REGISTRATION.md
+80-17libexec/rc/safe_eval.sh
+97-0sys/netlink/ktest_netlink_message_writer.c
+14-21sys/netinet/sctputil.c
+21-0tests/sys/netlink/test_netlink_message_writer.py
+5-5sys/net80211/README.md
+469-431 files not shown
+473-467 files

HardenedBSD/ports f299635 — devel/jujutsu distinfo, lang/v8-beta/files temporal_capi-Cargo.lock

Merge branch 'freebsd/main' into hardenedbsd/main
DeltaFile
+371-377shells/meka/distinfo
+305-329devel/jujutsu/distinfo
+539-43misc/nanocoder/pkg-plist
+343-157misc/nanocoder/files/package-lock.json
+481-0lang/v8-beta/files/temporal_capi-Cargo.lock
+188-190shells/meka/Makefile
+2,227-1,096192 files not shown
+4,498-2,402198 files

FreeBSD/src 5180fce — sys/netlink netlink_message_writer.c ktest_netlink_message_writer.c, tests/sys/netlink test_netlink_message_writer.py

netlink: Make room for the unfinished message when growing the buffer

When a message outgrows the writer's buffer, _nlmsg_refill_buffer()
allocates a larger one and moves the unfinished message there.  The new
buffer was sized for the data about to be added alone, so with enough of
the message already written the caller wrote past its end and left it
with datalen > buflen.  A 20-byte message plus an attribute of 8176
bytes got a buffer of 8192 bytes for 8200 bytes of data, and reading it
panicked an INVARIANTS kernel in nl_soreceive().

Size the new buffer for both, and add a ktest for it.

Reviewed by:            glebius
Fixes:                  7e5bf68495cc ("netlink: add netlink support")
MFC after:              1 week
Sponsored by:           Rubicon Communications, LLC ("Netgate")
Differential Revision:  https://reviews.freebsd.org/D60541
DeltaFile
+97-0sys/netlink/ktest_netlink_message_writer.c
+21-0tests/sys/netlink/test_netlink_message_writer.py
+4-3sys/netlink/netlink_message_writer.c
+122-33 files

HardenedBSD/src 5180fce — sys/netlink netlink_message_writer.c ktest_netlink_message_writer.c, tests/sys/netlink test_netlink_message_writer.py

netlink: Make room for the unfinished message when growing the buffer

When a message outgrows the writer's buffer, _nlmsg_refill_buffer()
allocates a larger one and moves the unfinished message there.  The new
buffer was sized for the data about to be added alone, so with enough of
the message already written the caller wrote past its end and left it
with datalen > buflen.  A 20-byte message plus an attribute of 8176
bytes got a buffer of 8192 bytes for 8200 bytes of data, and reading it
panicked an INVARIANTS kernel in nl_soreceive().

Size the new buffer for both, and add a ktest for it.

Reviewed by:            glebius
Fixes:                  7e5bf68495cc ("netlink: add netlink support")
MFC after:              1 week
Sponsored by:           Rubicon Communications, LLC ("Netgate")
Differential Revision:  https://reviews.freebsd.org/D60541
DeltaFile
+97-0sys/netlink/ktest_netlink_message_writer.c
+21-0tests/sys/netlink/test_netlink_message_writer.py
+4-3sys/netlink/netlink_message_writer.c
+122-33 files

NetBSD/src TYR2rlX — sys/arch/amiga/clockport files.clockport

   add missing "device isp1763hc".  fixes GENERIC build for me.
VersionDeltaFile
1.8+2-1sys/arch/amiga/clockport/files.clockport
+2-11 files

NetBSD/pkgsrc-wip 5acaf0a — py-homeassistant Makefile

py-homeassistant: Choose GFORTRAN_VERSION to match base compiler

Previously, 10 was hardcoded because I only cared about NetBSD 10.
DeltaFile
+23-10py-homeassistant/Makefile
+23-101 files

HardenedBSD/ports faa2f0e — sysutils/leaf distinfo Makefile

sysutils/leaf: Update to 1.29.0

While here, simplify shell completions installation.

Changelog: https://github.com/RivoLink/leaf/blob/1.29.0/CHANGELOG.md

Reported by:    GitHub (watch releases)
DeltaFile
+6-10sysutils/leaf/Makefile
+3-3sysutils/leaf/distinfo
+9-132 files

FreeBSD/ports faa2f0e — sysutils/leaf distinfo Makefile

sysutils/leaf: Update to 1.29.0

While here, simplify shell completions installation.

Changelog: https://github.com/RivoLink/leaf/blob/1.29.0/CHANGELOG.md

Reported by:    GitHub (watch releases)
DeltaFile
+6-10sysutils/leaf/Makefile
+3-3sysutils/leaf/distinfo
+9-132 files

OpenBSD/src CtIjVjj — lib/libc/sys execve.2

   additonal -> additional
VersionDeltaFile
1.65+2-2lib/libc/sys/execve.2
+2-21 files

FreeBSD/ports e94cf0e — sysutils/cni-epair Makefile distinfo

sysutils/cni-epair: Update to 1.1.3

Request DHCP leases under the container's name instead of the host's
hostname, so a container no longer takes over the host's DNS record.

While here, update MAINTAINER to my FreeBSD address.

Reviewed by:  acm, dtxdf
Approved by:  acm, dtxdf (mentors)
Differential Revision:        https://reviews.freebsd.org/D60583
DeltaFile
+3-3sysutils/cni-epair/distinfo
+2-2sysutils/cni-epair/Makefile
+5-52 files

HardenedBSD/ports e94cf0e — sysutils/cni-epair Makefile distinfo

sysutils/cni-epair: Update to 1.1.3

Request DHCP leases under the container's name instead of the host's
hostname, so a container no longer takes over the host's DNS record.

While here, update MAINTAINER to my FreeBSD address.

Reviewed by:  acm, dtxdf
Approved by:  acm, dtxdf (mentors)
Differential Revision:        https://reviews.freebsd.org/D60583
DeltaFile
+3-3sysutils/cni-epair/distinfo
+2-2sysutils/cni-epair/Makefile
+5-52 files

LLVM/project ce2a498 — compiler-rt/lib/builtins truncsfhf2.c extendhfsf2.c

[compiler-rt] Restrict __gnu_h2f_ieee and __gnu_f2h_ieee to arm32 EABI (#220170)
DeltaFile
+1-1compiler-rt/lib/builtins/truncsfhf2.c
+1-1compiler-rt/lib/builtins/extendhfsf2.c
+2-22 files

OpenBSD/src 4AqLGtv — usr.bin/mandoc mandoc.1

   mandoc(1) always support the -C option,
   not only together with -f or -k, as the manual claimed;
   noticed in a conversation with kristaps@
VersionDeltaFile
1.204+4-4usr.bin/mandoc/mandoc.1
+4-41 files

FreeBSD/ports be10385 — textproc/tgrep Makefile Makefile.crates, textproc/tgrep/files patch-tgrep-core_src_managed_process.rs

textproc/tgrep: Update to 1.2.0

Changelog: https://github.com/microsoft/tgrep/releases/tag/v1.2.0

Reported by:    GitHub (watch releases)
DeltaFile
+29-3textproc/tgrep/distinfo
+14-1textproc/tgrep/Makefile.crates
+11-0textproc/tgrep/files/patch-tgrep-core_src_managed_process.rs
+1-1textproc/tgrep/Makefile
+55-54 files

HardenedBSD/ports be10385 — textproc/tgrep Makefile Makefile.crates, textproc/tgrep/files patch-tgrep-core_src_managed_process.rs

textproc/tgrep: Update to 1.2.0

Changelog: https://github.com/microsoft/tgrep/releases/tag/v1.2.0

Reported by:    GitHub (watch releases)
DeltaFile
+29-3textproc/tgrep/distinfo
+14-1textproc/tgrep/Makefile.crates
+11-0textproc/tgrep/files/patch-tgrep-core_src_managed_process.rs
+1-1textproc/tgrep/Makefile
+55-54 files

NetBSD/pkgsrc m7P2liX — databases/postgresql14-server/files pgsql.sh, databases/postgresql15-server/files pgsql.sh

   databases/postgresql*-server: Drop duplicate -p in rc.d script

   (This change was applied a week ago to 18 after testing.  This commit
   applies it to the rest of the pgsql server packages, without testing.)

   While "${MKDIR} -p" looks right, the variable already has -p, so drop
   the extra one.

   Reported by Luis Falcon, and fix proposed on netbsd-users@ with
   $MAINTAINER CC without objections.
VersionDeltaFile
1.2+2-2databases/postgresql17-server/files/pgsql.sh
1.5+2-2databases/postgresql16-server/files/pgsql.sh
1.4+2-2databases/postgresql15-server/files/pgsql.sh
1.5+2-2databases/postgresql14-server/files/pgsql.sh
+8-84 files

LLVM/project 3853d20 — llvm/lib/Transforms/Vectorize VPlanRecipes.cpp

[VPlan] Use erase_if in VPIRMetadata::intersect (NFC) (#231038)

Simplify metadata removal using erase_if.
DeltaFile
+2-10llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
+2-101 files

LLVM/project 40ab028 — llvm/lib/Transforms/Vectorize VPlan.h VPlanRecipes.cpp

[VPlan] Build packs from lane values in replicateByVF (NFC). (#231040)

Previously materializePacksAndUnpacks created single-operand
BuildVectors for all per-lane definitions with vector users or users
inside replicate regions, which replicateByVF later extended with the
per-lane values. Recipes in replicate regions then accessed their lanes
via extractelement(BuildVector, Lane), which had to be folded by several
BuildVector look-throughs.

Instead, create the BuildVectors directly in replicateByVF from the
per-lane definitions, only for users that need a vector. Users inside
replicate regions keep using the original definition until the replicate
regions are dissolved; the resulting lane extracts are then replaced by
the corresponding per-lane definitions before the original definition is
removed. As BuildVectors are only created with all lanes, they now
always use only the first lane of their operands.

This removes a number of indirections and folds, and simplifies the
code.
DeltaFile
+23-24llvm/lib/Transforms/Vectorize/VPlanUnroll.cpp
+2-38llvm/lib/Transforms/Vectorize/VPlanLowering.cpp
+5-7llvm/lib/Transforms/Vectorize/VPlanTransforms.h
+0-7llvm/lib/Transforms/Vectorize/VPlan.cpp
+1-5llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
+2-1llvm/lib/Transforms/Vectorize/VPlan.h
+33-822 files not shown
+35-848 files

OpenBSD/src 0Sag5Cl — regress/usr.bin/mandoc Makefile.inc

   in the test suite, ignore /etc/man.conf;
   fixing small reliability issue noticed by kristaps@
VersionDeltaFile
1.31+3-3regress/usr.bin/mandoc/Makefile.inc
+3-31 files

LLVM/project 78a45e9 — orc-rt/include/orc-rt/bedrock Session.h, orc-rt/include/orc-rt/bedrock/sps SessionSPSCI.h

[orc-rt] Add Session instance symbols, SPS CI to look them up (#231043)

Objects created at runtime (e.g. service instances) have no symbols
under the standard object models, so the controller has no way to find
them by name. Instance symbols fill that gap:
Session::addInstanceSymbols registers (name, address) pairs for such
objects, and Session::lookupInstanceSymbols resolves a SymbolLookupSet
against them, with the same missing-symbol semantics as
SimpleSymbolTable::lookup.  Duplicate handling follows
SimpleSymbolTable::addUnique: a batch containing a conflicting
definition is rejected as a whole.

The new orc_rt_ci_sps_Session_lookupInstanceSymbols wrapper exposes the
lookup to the controller. It is registered by sps_ci::addSession, which
sps_ci::addAll now includes.
DeltaFile
+117-0orc-rt/test/unit/bedrock/sps/SessionSPSCITest.cpp
+70-0orc-rt/lib/bedrock/sps/SessionSPSCI.cpp
+45-0orc-rt/test/unit/bedrock/SessionTest.cpp
+32-0orc-rt/include/orc-rt/bedrock/Session.h
+28-0orc-rt/include/orc-rt/bedrock/sps/SessionSPSCI.h
+8-0orc-rt/test/unit/bedrock/BootstrapInfoTest.cpp
+300-04 files not shown
+310-010 files

FreeBSD/src 2409e24 — sys/net80211 DRIVER_REGISTRATION.md

net80211: add driver registration documentation

This is a brief introduction into the top-level newbus
driver methods and net80211 driver registration.

Differential Revision:  https://reviews.freebsd.org/D60503
Reviewed by: ziaee, zi
DeltaFile
+252-0sys/net80211/DRIVER_REGISTRATION.md
+252-01 files

FreeBSD/src e8b5899 — sys/net80211 README.md

net80211: add DRIVER_REGISTRATION to README.md ; fix links

* add the driver registration doc to README.md
* fix the links to resolve correctly with current doxygen
  (1.18.0) with the current file path -> sanity conversion ->
  html path rules.

Differential Revision:  https://reviews.freebsd.org/D60504
Reviewed by: ziaee
DeltaFile
+5-5sys/net80211/README.md
+5-51 files

HardenedBSD/src e8b5899 — sys/net80211 README.md

net80211: add DRIVER_REGISTRATION to README.md ; fix links

* add the driver registration doc to README.md
* fix the links to resolve correctly with current doxygen
  (1.18.0) with the current file path -> sanity conversion ->
  html path rules.

Differential Revision:  https://reviews.freebsd.org/D60504
Reviewed by: ziaee
DeltaFile
+5-5sys/net80211/README.md
+5-51 files

HardenedBSD/src 2409e24 — sys/net80211 DRIVER_REGISTRATION.md

net80211: add driver registration documentation

This is a brief introduction into the top-level newbus
driver methods and net80211 driver registration.

Differential Revision:  https://reviews.freebsd.org/D60503
Reviewed by: ziaee, zi
DeltaFile
+252-0sys/net80211/DRIVER_REGISTRATION.md
+252-01 files

LLVM/project af5dd51 — llvm/include/llvm/Transforms/Vectorize SLPVectorizer.h, llvm/lib/Transforms/Vectorize SLPVectorizer.cpp

[SLP][NFC]Move poor throughput insts logic into a helper function, NFC



Reviewers: 

Pull Request: https://github.com/llvm/llvm-project/pull/231042
DeltaFile
+23-19llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+5-0llvm/include/llvm/Transforms/Vectorize/SLPVectorizer.h
+28-192 files

LLVM/project 86d9538 — llvm/include/llvm/TableGen Record.h, llvm/lib/TableGen Record.cpp

TableGen: Cache resolved class instantiations

The same class instantiation is often referenced many times in one
record, and each reference was resolved again from scratch along with
everything nested in its arguments. Cache the results in MapResolver and
RecordResolver. The cache is cleared when the mappings change, and is
bypassed while a mapped variable is being resolved.

Nested instantiations are resolved through a TrackUnresolvedResolver,
which does not change the result. These share the cache of the
underlying resolver, which also records whether any references were left
unresolved so the trackers can be updated on a hit.

Gigainstructions executed by llvm-tblgen --null-backend

             before   after
  AMDGPU.td   71.75   18.22  -74.6%
  X86.td       6.10    6.15   +0.8%
  AArch64.td   3.28    3.32   +1.3%

    [3 lines not shown]
DeltaFile
+142-3llvm/include/llvm/TableGen/Record.h
+14-4llvm/lib/TableGen/Record.cpp
+156-72 files

LLVM/project f52d162 — llvm/include/llvm/TableGen Record.h, llvm/lib/TableGen Record.cpp

TableGen: Skip resolving values that cannot change

Lists, dags, bits and arguments made only of leaf values always resolve
to themselves, but resolving them still walked every element. Record
this when they are created and return early.

Gigainstructions executed by llvm-tblgen --null-backend

             before   after
  AMDGPU.td   79.12   71.73   -9.3%
  X86.td       6.25    6.12   -2.1%
  AArch64.td   3.40    3.28   -3.7%
  RISCV.td     8.34    8.19   -1.8%

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+18-2llvm/include/llvm/TableGen/Record.h
+19-0llvm/lib/TableGen/Record.cpp
+37-22 files

LLVM/project cc988af — llvm/lib/TableGen Record.cpp

TableGen: Use DenseMap for the IntInit pool

Gigainstructions executed by llvm-tblgen --null-backend

             before   after
  AMDGPU.td   79.34   79.13   -0.3%
  X86.td       6.30    6.25   -0.7%
  AArch64.td   3.43    3.41   -0.6%
  RISCV.td     8.40    8.34   -0.7%

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+1-2llvm/lib/TableGen/Record.cpp
+1-21 files

LLVM/project 6239a74 — llvm/lib/Transforms/Vectorize VPlan.h

[VPlan] Use getFastMathFlagsOrNone in VPIRFlags::applyFlags (NFC) (#231036)

applyFlags hand-rolled the same field-by-field FastMathFlagsTy to
FastMathFlags conversion as getFastMathFlagsOrNone. Use the latter
together with copyFastMathFlags.
DeltaFile
+2-10llvm/lib/Transforms/Vectorize/VPlan.h
+2-101 files