[libc][test] Fix dangling temporary CString pointers in unit tests (#241063)
libc_make_test_file_path returns a temporary CString wrapping an owning
cpp::string. Passing its implicit const char * conversion directly to
TESTONLY_set_group_path (which stores the raw pointer without copying in
getgrouplist_test.cpp and initgroups_test.cpp) leaves a dangling heap
pointer once the full-expression ends whenever the filename exceeds
cpp::string's short-string buffer.
Annotate CString's pointer and string_view accessors with
LIBC_LIFETIMEBOUND so Clang diagnoses temporary lifetime escapes at
compile time, allow default and move construction/assignment on CString
for test fixture members, and keep the CString objects alive in
getgrouplist_test and initgroups_test.
Assisted-by: Gemini
Reset mountpoints before the unlock on pool.reimport
pool.reimport reset the mountpoints after the unlock. The unlock sets
the immutable flag on the /mnt/<dataset> path of each locked dataset.
When a parent dataset had a changed mountpoint, that path did not exist
during the unlock. The reset then moved the parent to /mnt/<dataset>,
and the directory of the locked child stayed writable.
The reset now runs after the recursive mount and before the unlock.
It cannot run before the mount: the inherit mounts the datasets, and
the pool root then mounts over them.
postgresql18-wal2json: update to 2.7.
Notable changes in this release include:
add PostgreSQL 18 and 19 support
support the new output_plugin_libraries parameter introduced in PostgreSQL 18.6, 17.11, 16.15, 15.19, and 14.24
treat wal2json as a module instead of an extension (#287)
remove support for PostgreSQL versions prior to 10
new partition-root option to report the root partitioned table instead of the partition
new include-empty-transaction option (#293)
fix invalid JSON for schema-qualified quoted type names (#296)
escape the default expression like every other string (#298)
fix out-of-bounds read on trailing escape in table/prefix options (#300)
emit columnoptionals regardless of include-types in format version 1
fix syscache reference leak for domains in format version 1
fix memory context leak on startup errors
print typeoid as unsigned in format version 2
update build infrastructure and regression tests (UTF8 database, drop test_decoding dependency)
update documentation to the latest PostgreSQL version
net-im/purple-gowhatsapp: Upgrade 1.26 => 1.28
Upstream changes since 1.26:
- secret encrypted messages are decrypted;
- message deletions are described;
- link previews show their title and description;
- names of subscribed channels are fetched;
- polls can be voted in;
- attached locations and contact cards are displayed;
- WebP images are sent as stickers;
- captions are escaped and file names sanitized;
- downloads work on file systems without fallocate;
- assorted memory leak and crash fixes.
https://github.com/hoehermann/purple-gowhatsapp/blob/v1.28.0/CHANGELOG.md
Update all Go dependencies to their latest versions, including
qrterminal's new major version v4, whose API the plugin uses unchanged.
PR: 301247
Co-Authored-By: Claude Opus 5.5 (effort medium)
Reset mountpoints before the unlock on pool.reimport
pool.reimport reset the mountpoints after the unlock. The unlock sets
the immutable flag on the /mnt/<dataset> path of each locked dataset.
When a parent dataset had a changed mountpoint, that path did not exist
during the unlock. The reset then moved the parent to /mnt/<dataset>,
and the directory of the locked child stayed writable.
The reset now runs after the recursive mount and before the unlock.
It cannot run before the mount: the inherit mounts the datasets, and
the pool root then mounts over them.
vm_pageout: Recheck PGA_SWAP_FREE after locking
vm_pageout_scan_active() reads PGA_SWAP_FREE without the object lock,
and once VM_OBJECT_TRYWLOCK() succeeds it calls
vm_pager_page_unswapped() without rereading the flag. In between,
another thread can move the page to the laundry, e.g., by performing
madvise(MADV_DONTNEED) on a dirty page, where swap_pager_putpages()
clears PGA_SWAP_FREE and assigns a new swap block. Then, the scan frees
that block, perhaps while the write to it is still in flight, and the
page's contents are lost or corrupted.
Recheck the flag with the object locked, and document the rule where
the flag is defined.
Found by: Claude Code (Opus 5.5)
Reviewed by: kib, markj
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D62202
Pi image: name the medium's root by its UFS id, not ufs/ROOTFS (#757)
Every NextBSD Pi image labels its root ROOTFS, and the kernel's
compiled-in root is ufs:/dev/ufs/ROOTFS. Measured on a Pi 500+: booting
this medium from USB with a NextBSD image also on the SD card mounted the
SD card's root under the stick's kernel.
cmdline.txt now says vfs.root.mountfrom=ufs:/dev/ufsid/<id>, the build's
own UFS id (fs_id from the superblock, as glabel prints it), with
vfs.mountroot.timeout=30 for a USB stick that attaches late. The build
stops if rootfs.ufs has no UFS2 superblock. The installer already
replaces both tokens for the disk it installs. Tested on the Pi with the
SD card in: the root came from the stick (/dev/ufsid/... on /).
Also corrects the comment that said cmdline.txt doesn't reach the kernel:
it does since nextbsd-kernel#93, and this boot relied on it.
Co-Authored-By: Claude Opus 5.5 <noreply at anthropic.com>
[LV] Add tests with dead vector loops (NFC). (#247011)
Add tests where the main or epilogue vector loop is dead due to the trip
count, with VF and IC chosen by the cost model or forced by the user.
security/yubioath-desktop: Deprecate and set to expire
Legacy Qt5 release depends on EOL Qt 5 with no Qt 6 migration path
(upstream rewrote Yubico Authenticator in Flutter, which is not
currently supported on FreeBSD).
Set EXPIRATION_DATE=2027-04-01 to align with planned Qt 5 removal.
Suggested by: makc (in D62203)
security/yubikey-manager-qt: Deprecate and set to expire
Archived upstream (replaced by Yubico Authenticator) and depends on
unsupported Qt 5 with no Qt 6 migration path.
Set EXPIRATION_DATE=2027-04-01 to align with planned Qt 5 removal.
Suggested by: makc (in D62203)
devel/pyotherside: Add qt5 flavor and unbreak YubiKey ports
Commit eb5a74ac2cf3 switched devel/pyotherside to Qt6-only, breaking
downstream Qt5 consumers that have no Qt6 migration path
(security/yubikey-manager-qt is archived upstream, and
security/yubioath-desktop was rewritten in Flutter which is not
currently viable on FreeBSD).
- Flavorize devel/pyotherside with qt6 (default) and qt5 (deprecated).
- Update MOVED to point devel/pyotherside-qt5 to devel/pyotherside at qt5.
- Point YubiKey consumers to devel/pyotherside at qt5 and bump PORTREVISION.
Reported by: antoine (via e-mail)
Reviewed by: makc
Fixes: eb5a74ac2cf3 ("devel/pyotherside-qt5: Update and switch to Qt6")
Differential Revision: https://reviews.freebsd.org/D62203
[VPlan] Remove redundant execute/printRecipe declarations (NFC) (#247012)
VPRecipeWithIRFlags, VPHeaderPHIRecipe and VPWidenInductionRecipe
re-declare the pure virtual VPRecipeBase::execute (and VPHeaderPHIRecipe
also VPRecipeBase::printRecipe) as pure virtual with the same signature,
which has no effect.
VPInterleaveBase::execute is unreachable: VPInterleaveBase is abstract
(clone is pure virtual) and both VPInterleaveRecipe and
VPInterleaveEVLRecipe override execute.
Assisted-by: Opus 5.5