FreeBSD/src 61aa398 — sys/vm vm_kern.c

vm_kern: wrap around in kmem_back() when the last domain is empty

kmem_back() picks the domain from the address and, when that domain has
no memory, steps forward until it finds one that does:

domain = (addr >> KVA_QUANTUM_SHIFT) % vm_ndomains;
while (VM_DOMAIN_EMPTY(domain))
        domain++;

Nothing stops the walk at vm_ndomains.  When the empty domain is the
last one, the loop runs through the unused tail of vm_dom[] (all empty)
and on into whatever follows vm_dom[MAXMEMDOM] in memory, until a word
there happens to look like a non-zero page count; kmem_back_domain()
then allocates from that garbage domain.  Ordinary allocations never
get here, because the per-domain arenas and the domainset iterators
skip empty domains.  Only the direct callers of kmem_back() do: kinst
(one trampoline per thread, allocated when the module loads) and
memguard.


    [8 lines not shown]
DeltaFile
+1-1sys/vm/vm_kern.c
+1-11 files

FreeBSD/src 65b0251 — sys/kern kern_malloc.c

malloc: Fix realloc() for large allocations

min() truncates its parameters.

MFC after:      1 week
Sponsored by:   The FreeBSD Foundation

(cherry picked from commit ca16e7a4920415bf9d09cf76bd2c3cda7447c098)
DeltaFile
+2-2sys/kern/kern_malloc.c
+2-21 files

FreeBSD/src bc74694 — usr.sbin/bhyve pci_emul.h pci_emul.c

bhyve: Treat BAR registration failures as non-fatal

Some guest operating systems (at least 9front) will leave device I/O
space decoding enabled while probing BAR sizes.  In this case, a
sufficiently large 32-bit BAR can overlap with the HPET MMIO region
fixed at 0xfed00000.  This results in an assertion failure in
modify_bar_registration(), even though the collision is transient, i.e.,
the guest will promptly map the BAR elsewhere.

Tolerate such overlaps.  Keep track of a BAR's registration state and
make sure that modify_bar_registration() doesn't try to unregister an
I/O space if registration failed.

This fixes a problem where a 32MB framebuffer ends up overlapping with
the HPET MMIO region, causing some guests to crash with an assertion
failure when probing BARs during boot.

PR:             290098
Reviewed by:    bnovkov

    [5 lines not shown]
DeltaFile
+31-15usr.sbin/bhyve/pci_emul.c
+2-0usr.sbin/bhyve/pci_emul.h
+33-152 files

FreeBSD/src 59f9de9 — sys/dev/hyperv/utilities hv_kvp.c

hv_kvp: Fix some bugs and nits

- Use pending_mutex to synchronize several state flags.  In particular,
  ensure that two threads can't race to open the device file at the same
  time.[1]
- Fix an off-by-one in hv_kvp_dev_daemon_read() that would result in a
  one-byte OOB read if the caller supplied a large enough read buffer.[2]
- Change the device permissions to 0600: hv_kvp_dev_daemon_read()
  returns an error until the owning process registers itself with a
  write, so there's no sense in providing read-only access.
- Use bool instead of boolean_t.
- Don't return negative error numbers to userspace.
- Call seldrain() when closing the device.

Reported by:    pixelpop [1][2]
MFC after:      2 weeks
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D60387

(cherry picked from commit ebf1041fc854c531a27efd9f979e28d57306777d)
DeltaFile
+28-39sys/dev/hyperv/utilities/hv_kvp.c
+28-391 files

FreeBSD/src fcbc3ae — usr.sbin/bhyve pci_virtio_input.c

bhyve: Fix virtio-input event array resizing

Use the new array size when calling realloc().  Note that this queue
stores events read from a host evdev device, i.e., it is not
guest-controlled.

While here, use the cdefs.h __unused macro and use them correctly, i.e.,
don't mark "arg" as unused when it isn't.

Reported by:    Brian Delgado from Intel using Anthropic Opus 4.8
Fixes:          054accac71e0 ("Add a virtio-input device emulation.")
MFC after:      2 weeks
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D60679

(cherry picked from commit f1986e5b88630b1404a202251499bca0f97f5f06)
DeltaFile
+7-13usr.sbin/bhyve/pci_virtio_input.c
+7-131 files

FreeBSD/src 916b63a — lib/libpam/modules/pam_exec pam_exec.c

pam_exec: fix the stderr close test and avoid a double close

The cleanup tested cherr[0] when closing cherr[1].  The parent also closed
chin[0]/chout[1]/cherr[1] after pdfork() without clearing them, so the out:
cleanup path closed them again.  Clear each fd after closing and test the right
one.

Reviewed by:    des, markj
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D60924

(cherry picked from commit 06abe08de45d251410949eac1bbb025367275260)
DeltaFile
+10-4lib/libpam/modules/pam_exec/pam_exec.c
+10-41 files

FreeBSD/src 48a3e1f — sbin/dhclient/tests functional.py

tests/dhclient: Skip tests if scapy is not installed

Fixes:  a143197801c6 ("dhclient: Add some regression tests")
(cherry picked from commit 8fa55fdcae4ecbd2ec13ef91cc9d172095e21189)
DeltaFile
+4-2sbin/dhclient/tests/functional.py
+4-21 files

FreeBSD/src 5dd70ec — sbin/dhclient dhclient.c

dhclient: Avoid out-of-bounds reads in check_classless_option()

The loop did not verify that the option buffer is large enough before
reading an address.

Reported by:    Andrew Griffiths <andrew at calif.io>
MFC after:      2 weeks
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D60484

(cherry picked from commit 368a1bfcd49315e8dd3e56ca6744ce5d74ef737b)
DeltaFile
+43-31sbin/dhclient/dhclient.c
+43-311 files

FreeBSD/src 0768a40 — usr.sbin/inetd inetd.c

inetd: use snprintf() in inetd_setproctitle()

inetd_setproctitle() formats se_service (the service name taken verbatim
from inetd.conf) and the peer address into an 80-byte buffer with
sprintf(). A long service name can overflow it. Bound both calls with
snprintf().

MFC after:      1 week
Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D60879

(cherry picked from commit 9ab2bf0f4296e8bfafe4dc70f2f200265e6933bd)
DeltaFile
+2-2usr.sbin/inetd/inetd.c
+2-21 files

FreeBSD/src 370dba1 — sbin/dhclient/tests functional.py

tests/dhclient: import scapy inside vnet

This fixes a [CI failure][0].

[0] https://ci.freebsd.org/job/FreeBSD-main-amd64-test/29813/testReport/sbin.dhclient.functional/py/__test_cases_list__/

PR:             299641
Reviewed by:    markj, ngie
MFC after:      3 days
Sponsored by:   The FreeBSD Foundation
Pull Request:   https://ron-dev.freebsd.org/FreeBSD/src/pulls/83

(cherry picked from commit bd87fc2a1c1a20a080c38b12a55b377967a7c4a7)
DeltaFile
+50-47sbin/dhclient/tests/functional.py
+50-471 files

FreeBSD/src d926285 — sbin/dhclient/tests Makefile functional.py

dhclient: Add some regression tests

Add tests for some recently fixed bugs in dhclient.  All of these tests
set up two VNET jails connected by an epair.  dhclient runs in one jail,
and the test code runs on the other end.  It uses scapy to inject
"interesting" packets in response to DHCPDISCOVER messages from
dhclient, then checks the configured interface and lease file.

MFC after:      2 weeks
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D60485

(cherry picked from commit a143197801c680b958ab662c88cf086668a1958b)
DeltaFile
+242-0sbin/dhclient/tests/functional.py
+2-0sbin/dhclient/tests/Makefile
+244-02 files

LLVM/project 23f7085 — llvm/test/CodeGen/MIR/X86 virtual-registers.mir registers-section-inline-class-conflict.mir

MIR: Add tests for the registers section syntax

Most tests now put register classes inline. Add dedicated testing for
the registers section class handling so this coverage isn't lost when
tests are cleaned up.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+30-0llvm/test/CodeGen/MIR/X86/registers-section-inline-class-conflict.mir
+27-0llvm/test/CodeGen/MIR/X86/virtual-registers.mir
+57-02 files

LLVM/project c54ccc6 — utils/bazel/llvm-project-overlay/llvm binary_alias.bzl, utils/bazel/llvm-project-overlay/mlir tblgen.bzl

[bazel] Avoid deprecated ctx.outputs.executable and output_to_genfiles (#241742)

Modernize custom Starlark rules in `binary_alias.bzl` and
`mlir/tblgen.bzl`:

- Declare executable outputs explicitly via `ctx.actions.declare_file`
and return them in `DefaultInfo(files = ..., executable = ...)` instead
of relying on the deprecated `ctx.outputs.executable` predeclared
output.
- Remove the deprecated no-op `output_to_genfiles = True` argument from
`gentbl_shard_rule`.

Assisted-by: Gemini
DeltaFile
+7-3utils/bazel/llvm-project-overlay/mlir/tblgen.bzl
+4-2utils/bazel/llvm-project-overlay/llvm/binary_alias.bzl
+11-52 files

LLVM/project c75229f — clang/test/CodeGenHLSL/semantics SV_IsFrontFace.ps.hlsl, clang/test/SemaHLSL/Semantics isfrontface.ps.errors.hlsl

[HLSL][DirectX][SPIRV] Implement SV_IsFrontFace (#232071)

Fixes https://github.com/llvm/llvm-project/issues/136979 /
https://github.com/llvm/wg-hlsl/issues/162

Related to https://github.com/llvm/offload-test-suite/issues/1598

@dnovillo @inbelic 

Assisted by LLM
DeltaFile
+105-0llvm/test/CodeGen/DirectX/Metadata/semantic-signatures-is-front-face-errors.ll
+83-0llvm/test/CodeGen/DirectX/ContainerData/SemanticSignatures-is-front-face.ll
+77-0llvm/test/CodeGen/SPIRV/semantics/is-front-face.ps.ll
+68-0llvm/test/CodeGen/DirectX/Metadata/semantic-signatures-is-front-face.ll
+57-0clang/test/SemaHLSL/Semantics/isfrontface.ps.errors.hlsl
+44-0clang/test/CodeGenHLSL/semantics/SV_IsFrontFace.ps.hlsl
+434-08 files not shown
+579-314 files

FreeBSD/ports 8e7bd92 — mail/mu Makefile, mail/mu/files extra-patch-meson.build

mail/mu: Install info

Approved by: osa, fluffy (mentors, implicit)
DeltaFile
+10-0mail/mu/files/extra-patch-meson.build
+4-0mail/mu/Makefile
+14-02 files

LLVM/project 9447386 — clang/test/CIR/CodeGenCXX static-member-call.cpp

[CIR][NFC] Add test coverage for static member call side effects (#239291)

This patch adds tests for calling static member functions through
instance and pointer expressions in ClangIR
(`clang/test/CIR/CodeGenCXX/static-member-call.cpp`).

Under standard C++ Sema, calling a static member function via an object
instance (`s.static_func()`) or pointer (`p->static_func()`) is lowered
into a standard `CallExpr` with a `MemberExpr` callee.

This patch adds test coverage verifying that:
1. Direct instance calls (`s.static_func()`) emit expected CIR and OGCG
LLVM IR.
2. Pointer arrow calls (`p->static_func()`) emit expected CIR and OGCG
LLVM IR.
3. Temporary base object expressions are evaluated for side effects
(`get_s().static_func()`).
4. Mutating pointer expressions are evaluated for side effects
(`(p++)->static_func()`).

Split from #237420 as requested by @Men-cotton.
DeltaFile
+94-0clang/test/CIR/CodeGenCXX/static-member-call.cpp
+94-01 files

FreeBSD/ports 50f5f5c — misc/liblxi distinfo Makefile, misc/liblxi/files patch-src_meson.build

misc/liblxi: Update 1.18 => 1.22

Changelog:
https://github.com/lxi-tools/liblxi/blob/v1.22/NEWS

- Switch from generated by github tarball to prepared by upstream.

Sponsored by:   UNIS Labs
DeltaFile
+9-19misc/liblxi/files/patch-src_meson.build
+3-6misc/liblxi/Makefile
+3-3misc/liblxi/distinfo
+15-283 files

LLVM/project 81e1ca6 — llvm/test/Transforms/StraightLineStrengthReduce slsr-mul.ll

[SLSR][NFC] Regenerate slsr-mul.ll checks with update_test_checks.py (#242411)

Regenerate the checks in slsr-mul.ll with update_test_checks.py. This is
a pre-commit for #240431, split out so the functional change there can
be reviewed against already-autogenerated checks. No functional change.
DeltaFile
+71-21llvm/test/Transforms/StraightLineStrengthReduce/slsr-mul.ll
+71-211 files

FreeBSD/src 1db6e2c — sys/net/route nhgrp_ctl.c, sys/netlink/route nexthop.c

rtnetlink: Use default weight for unset weights in NHA_GROUP

newnhg() copied the weights of a nhgrp as is and a group
whose members all have a zero weight, which is what
userland sends when it leaves the weight unset, made
calc_min_mpath_slots_fast() divide by zero.

Therefore replace weight of zero with RT_DEFAULT_WEIGHT.

While here, return early from calc_min_mpath_slots_fast()
if all weights are zero.

MFC after:      3 days
Fixes:          7e5bf68495cc ("netlink: add netlink support")
DeltaFile
+1-1sys/netlink/route/nexthop.c
+1-1sys/net/route/nhgrp_ctl.c
+2-22 files

Linux/linux 97d73c8 — Documentation/arch/arm64 gcs.rst, arch/arm64 Kconfig

Merge tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux

Pull arm64 fixes from Catalin Marinas:
 "Fix hugetlb write fault livelock, permission overlay and GCS state
  preservation across CPU suspend, cpuidle context tracking during
  system suspend, GCS mode handling on signal return, AMU counter errata
  workarounds, kexec loading of images with a non-zero text_offset and a
  spurious ptrace warning:

   - Fix hugetlb write fault livelocks caused by stale read-only TLB
     entries after another CPU makes the page writable and only performs
     a local invalidate. Unlike the generic fault path, hugetlb has no
     fix_spurious_fault() fallback

   - Save and restore POR_EL0, GCSPR_EL0 and GCSCRE0_EL1 across CPU
     suspend

   - Restrict cpuidle context tracking in cpu_suspend() to idle tasks,
     avoiding context tracking warnings during system suspend

    [30 lines not shown]
DeltaFile
+41-3arch/arm64/Kconfig
+28-0arch/arm64/kernel/cpu_errata.c
+1-21arch/arm64/kernel/signal.c
+18-3arch/arm64/mm/hugetlbpage.c
+20-0arch/arm64/mm/proc.S
+4-9Documentation/arch/arm64/gcs.rst
+112-368 files not shown
+151-4414 files

LLVM/project 569dde2 — llvm/lib/Target/X86 X86AsmPrinter.cpp, llvm/test/CodeGen/X86 kcfi.ll

[X86/CFI] Emit __cfi symbol with same visibility as parent (#242004)

A hidden function should have a corresponding __cfi symbol with hidden
visibility.

Assisted by LLM
DeltaFile
+10-0llvm/test/CodeGen/X86/kcfi.ll
+4-3llvm/lib/Target/X86/X86AsmPrinter.cpp
+14-32 files

LLVM/project 7d7601b — lld/MachO MarkLive.cpp

[lld-macho] Collect S_ATTR_LIVE_SUPPORT sections with the markLive roots

Co-Authored-By: Claude Opus 5.5 <noreply at anthropic.com>
Claude-Session: https://claude.ai/code/session_0151E9Zq69e8fCB8jwD3kGLe
DeltaFile
+51-35lld/MachO/MarkLive.cpp
+51-351 files

LLVM/project 7ed27e4 — llvm/lib/DWARFLinker/Classic DWARFLinkerDeclContext.cpp, llvm/test/tools/dsymutil/Inputs compilation-prefix-map-odr.s

[dsymutil] Undo prefix mapping before resolving paths for ODR uniquing

The classic linker resolves the declaration file of a type with
realpath() to tell apart types with the same name, line and size. For
paths remapped by compilation caching, which don't exist on disk,
realpath() fails and only the file name is left, so different types
declared in headers with the same name in different directories were
merged. Undo the prefix mapping from compilation-prefix-map.json first.
DeltaFile
+679-0llvm/test/tools/dsymutil/Inputs/compilation-prefix-map-odr.s
+47-0llvm/test/tools/dsymutil/X86/compilation-prefix-map-odr.test
+3-0llvm/lib/DWARFLinker/Classic/DWARFLinkerDeclContext.cpp
+729-03 files

LLVM/project 1f8c78f — llvm/lib/DWARFLinker/Classic DWARFLinker.cpp, llvm/test/tools/dsymutil/Inputs swift-interface-prefix-map.s compilation-prefix-map.s

[dsymutil] Support compilation-prefix-map.json from compilation caching

Compilation caching can prefix map the paths that the compiler sees, so
that cache keys don't depend on where the build happens, for example
/path/to/project becomes /^src. The build system records the mapping in
a compilation-prefix-map.json file in a parent directory of the object
files, as a JSON object from each remapped prefix to the original one.

dsymutil didn't support it, so it used the remapped paths from the
debug info as is: it failed to copy the Swift interfaces that the debug
info refers to, didn't recognize interfaces from the SDK or the
toolchain that it should skip, and wrote the remapped paths into the
dSYM.

Load the compilation-prefix-map.json closest to each object file, and
use it to find Swift interfaces and Clang modules, and to restore the
original paths in the path attributes and line tables of the linked
debug info. Clang modules use the map of the object file that refers to
them. -object-prefix-map still only applies to looking up Clang

    [6 lines not shown]
DeltaFile
+349-0llvm/test/tools/dsymutil/Inputs/compilation-prefix-map.s
+262-0llvm/test/tools/dsymutil/Inputs/swift-interface-prefix-map.s
+70-0llvm/test/tools/dsymutil/X86/swift-interface-prefix-map.test
+58-0llvm/test/tools/dsymutil/X86/compilation-prefix-map.test
+52-0llvm/tools/dsymutil/DwarfLinkerForBinary.cpp
+36-14llvm/lib/DWARFLinker/Classic/DWARFLinker.cpp
+827-1412 files not shown
+972-5718 files

LLVM/project aace149 — llvm/include/llvm/Support VirtualFileSystem.h, llvm/lib/Support VirtualFileSystem.cpp

[Support] Add vfs::findFileInParentDirectories()

Several tools look for a file in a directory and its parent
directories, for example clang-format for .clang-format and clang-tidy
for .clang-tidy, and each has its own loop for that. Add a function for
it, which dsymutil will use to find the compilation-prefix-map.json
files that compilation caching writes.
DeltaFile
+30-0llvm/unittests/Support/VirtualFileSystemTest.cpp
+16-0llvm/lib/Support/VirtualFileSystem.cpp
+11-0llvm/include/llvm/Support/VirtualFileSystem.h
+57-03 files

LLVM/project b0b1e7e — llvm/include/llvm/Support PrefixMapper.h, llvm/lib/Support CMakeLists.txt PrefixMapper.cpp

[Support] Add PrefixMapper

Add a utility for remapping path prefixes, along with MappedPrefix for
parsing "old=new" mappings. Mappings are matched on whole path
components and respect the configured path style, so Windows paths are
matched case- and separator-insensitively.

This will be used by dsymutil to undo the path prefix mapping applied
by compilation caching.
DeltaFile
+355-0llvm/unittests/Support/PrefixMapperTest.cpp
+190-0llvm/lib/Support/PrefixMapper.cpp
+141-0llvm/include/llvm/Support/PrefixMapper.h
+1-0llvm/unittests/Support/CMakeLists.txt
+1-0llvm/lib/Support/CMakeLists.txt
+688-05 files

Illumos/gate b050c14 — usr/src/cmd/cmd-inet/lib/ipmgmtd ipmgmt_door.c, usr/src/cmd/cmd-inet/usr.lib/wpad wpa_supplicant.c

18536 door servers should use DOOR_PARAM_DATA_MIN to reject undersized requests
Reviewed by: Bill Sommerfeld <sommerfeld at hamachi.org>
Reviewed by: Dan McDonald <danmcd at oxide.computer>
Approved by: Gordon Ross <gordon.w.ross at gmail.com>
DeltaFile
+68-31usr/src/cmd/cmd-inet/lib/ipmgmtd/ipmgmt_door.c
+24-14usr/src/cmd/devfsadm/message.h
+22-13usr/src/cmd/vt/vtdaemon.c
+21-11usr/src/cmd/fs.d/autofs/autod_main.c
+24-4usr/src/cmd/cmd-inet/usr.lib/wpad/wpa_supplicant.c
+21-6usr/src/lib/libsysevent/libsysevent.c
+180-7931 files not shown
+525-23737 files

FreeBSD/ports 2adf877 — databases/py-postgresql distinfo Makefile, databases/py-postgresql/files patch-postgresql_bin_pg__dotconf.py patch-postgresql_python_command.py

databases/py-postgresql: Update 1.3.0 => 1.3.1

Commit log:
https://github.com/python-postgres/fe/compare/v1.3.0...v1.3.1

While here, strip the extension modules, define LICENSE_FILE
and add concurrent to USE_PYTHON.

PR:             300170
Approved by:    Volodymyr Kostyrko <arcade at b1t.name> (maintainer)
Approved by:    osa, vvd (mentors, implicit)
DeltaFile
+44-0databases/py-postgresql/pkg-message
+35-0databases/py-postgresql/files/patch-postgresql_____init____.py
+24-0databases/py-postgresql/files/patch-postgresql_python_command.py
+21-0databases/py-postgresql/files/patch-postgresql_bin_pg__dotconf.py
+8-4databases/py-postgresql/Makefile
+3-3databases/py-postgresql/distinfo
+135-76 files

LLVM/project c529abc — libc/shared/math dsubf128.h, libc/src/__support/math dsubf128.h

[libc] add emulated f128 support for dsubf128 (#242204)

this pr implements support for dsubf128 to use the emulated f128 type

addresses https://github.com/llvm/llvm-project/issues/234601
DeltaFile
+19-0libc/test/src/math/dsubf128_test.cpp
+12-3libc/test/src/math/smoke/dsubf128_test.cpp
+15-0libc/test/src/math/CMakeLists.txt
+4-7libc/src/__support/math/dsubf128.h
+8-0utils/bazel/llvm-project-overlay/libc/test/src/math/BUILD.bazel
+0-6libc/shared/math/dsubf128.h
+58-1624 files not shown
+95-3030 files

FreeBSD/ports 86cf4a0 — mail Makefile, mail/imapgoose pkg-plist pkg-descr

mail/imapgoose: [NEW PORT] Keep local Maildir directories synchronised with an IMAP server

PR:             298128
Approved by:    maintainer is submitter
DeltaFile
+48-0mail/imapgoose/Makefile
+21-0mail/imapgoose/distinfo
+17-0mail/imapgoose/pkg-descr
+3-0mail/imapgoose/pkg-plist
+1-0mail/Makefile
+90-05 files