HardenedBSD/src ac641d5libexec/rc/tests rc_subr_test.sh

rc.subr: Drop duplicate SPDX tag in test script

I added a tag in the correct place in the previous commit, and somehow
managed to miss that there was already one in the wrong place.

Fixes:          7f04c09fe745
Sponsored by:   Klara, Inc.
Sponsored by:   NetApp, Inc.
DeltaFile
+0-2libexec/rc/tests/rc_subr_test.sh
+0-21 files

HardenedBSD/src 7f04c09libexec/rc rc.subr, libexec/rc/tests rc_subr_test.sh

rc.subr: Fix wait_for_pids

It looks like this function was intended to loop and print an update
whenever at least one of the waited-for processes terminates.  However,
the default behavior of pwait is to block until none of the watched
processes exist.  Use pwait -o instead so it only blocks until at least
one process terminates, and add a test.

Sponsored by:   Klara, Inc.
Sponsored by:   NetApp, Inc.
Reviewed by:    siderop1_netapp.com, kevans
Differential Revision:  https://reviews.freebsd.org/D51691
DeltaFile
+27-0libexec/rc/tests/rc_subr_test.sh
+2-2libexec/rc/rc.subr
+29-22 files

HardenedBSD/src 01e42celib/libarchive config_freebsd.h

libarchive: Stop using readdir_r()

It cannot be used safely, though libarchive goes to ridiculous lengths
to attempt to do so.

MFC after:      1 week
Sponsored by:   Klara, Inc.
Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D51679
DeltaFile
+0-1lib/libarchive/config_freebsd.h
+0-11 files

HardenedBSD/src 2bd157binclude dirent.h, lib/libc/gen readdir.c

libc: Deprecate readdir_r()

This function was never safe to use.  We marked it deprecated in the
manual page in 2016, and it is marked obsolete in POSIX 2024.  Add a
linker warning and annotate the prototype.

Sponsored by:   Klara, Inc.
Reviewed by:    imp, markj
Differential Revision:  https://reviews.freebsd.org/D51681
DeltaFile
+2-1include/dirent.h
+2-0lib/libc/gen/readdir.c
+4-12 files

HardenedBSD/src 65bae45contrib/kyua/utils/fs directory.cpp

kyua: Stop using readdir_r()

It cannot be used safely, and Kyua doesn't even pretend to try.

MFC after:      1 week
Sponsored by:   Klara, Inc.
Reviewed by:    igoro
Differential Revision:  https://reviews.freebsd.org/D51680
DeltaFile
+6-12contrib/kyua/utils/fs/directory.cpp
+6-121 files

HardenedBSD/src bf304a4usr.sbin/bsnmpd/modules/snmp_hostres hostres_swinstalled_tbl.c

bsnmpd: Fix an error message

MFC after:      1 week
Sponsored by:   Klara, Inc.
Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D51678
DeltaFile
+1-1usr.sbin/bsnmpd/modules/snmp_hostres/hostres_swinstalled_tbl.c
+1-11 files

HardenedBSD/ports 637c0cewww/phpmustache Makefile

www/phpmustace: Mark as deprecated

It should now be installed with the application that needs it,
instead of as a system-wide PHP library.

PR:             288554
Approved by:    yuri@ (Mentor)
DeltaFile
+3-0www/phpmustache/Makefile
+3-01 files

HardenedBSD/ports e54a384archivers/php-zstd distinfo Makefile

archivers/php-zstd: Update 0.11.0 => 0.14.0

Commit log:
https://github.com/kjdev/php-ext-zstd/compare/0.11.0...0.14.0

PR:     288592
DeltaFile
+3-3archivers/php-zstd/distinfo
+1-1archivers/php-zstd/Makefile
+4-42 files

HardenedBSD/ports 73d8471archivers/php-lz4 distinfo Makefile

archivers/php-lz4: Update 0.4.3 => 0.5.0

Commit logs:
https://github.com/kjdev/php-ext-lz4/compare/0.4.3...0.4.4
https://github.com/kjdev/php-ext-lz4/compare/0.4.4...0.5.0

Changelog:
https://github.com/kjdev/php-ext-lz4/releases/tag/0.5.0

PR:     288592
DeltaFile
+3-3archivers/php-lz4/distinfo
+1-1archivers/php-lz4/Makefile
+4-42 files

HardenedBSD/ports eab7106graphics/pastel distinfo Makefile.crates

graphics/pastel: update 0.9.0 => 0.10.0

PR:             283645
Approved by:    lcook@ (maintainer, timeout > 7 months)
Approved by:    yuri@  (Mentor)
DeltaFile
+209-159graphics/pastel/distinfo
+122-0graphics/pastel/Makefile.crates
+7-103graphics/pastel/Makefile
+338-2623 files

HardenedBSD/src c2230adsys/kern vfs_inotify.c

inotify: Avoid calling vrele() with a namecache mutex held

In cache_vop_inotify(), we call inotify_log() with a namecache hash lock
held.  inotify_log() looks at all watches registered with the vnode to
see if any of them are interested in the event.  In some cases, we have
to detach and free the watch after logging the event.  This means we
must vrele() the watched vnode, and this must not be done while a
non-sleepable lock held.

Previously, I deferred the vrele() to until the inotify softc and vnode
pollinfo locks were dropped.  However, this is not enough since we may
still be holding the aforementioned namecache lock.  Go further and use
a taskqueue thread to release vnode references.  Introduce a set of
detached watches, and queue a threaded task which releases the vnode
reference.

Reported by:    syzbot+c128f121cb22df95559b at syzkaller.appspotmail.com
Reviewed by:    kib
Fixes:          f1f230439fa4 ("vfs: Initial revision of inotify")
Differential Revision:  https://reviews.freebsd.org/D51685
DeltaFile
+52-19sys/kern/vfs_inotify.c
+52-191 files

HardenedBSD/ports 3bf50f6www/node20 Makefile

www/node20: fix build on powerpc64

../deps/simdutf/simdutf.cpp:8339:37: error: use of 'long long' with '__vector' requires VSX support (available on POWER7 or later) to be enabled
 8339 | using vec_u64_t = __vector unsigned long long;
      |                                     ^
../deps/simdutf/simdutf.cpp:8340:35: error: use of 'long long' with '__vector' requires VSX support (available on POWER7 or later) to be enabled
 8340 | using vec_i64_t = __vector signed long long;
      |                                   ^
DeltaFile
+1-0www/node20/Makefile
+1-01 files

HardenedBSD/src 79059e0sys/netinet tcp_hpts.c

tcp: Fix wrap around comparison bug

The variables p_curtick and p_lasttick are not in usecs.

Reviewed by:    tuexen
MFC after:      1 week
Sponsored by:   Netflix, Inc.
DeltaFile
+1-2sys/netinet/tcp_hpts.c
+1-21 files

HardenedBSD/ports b629282net/keycloak pkg-plist Makefile

net/keycloak: Update 26.2.3 => 26.3.2

Release notes:
https://www.keycloak.org/2025/05/keycloak-2624-released
https://www.keycloak.org/2025/05/keycloak-2625-released
https://www.keycloak.org/2025/07/keycloak-2630-released
https://www.keycloak.org/2025/07/keycloak-2631-released
https://www.keycloak.org/2025/07/keycloak-2632-released

While here replace 4 mkdirs with 1.

PR:     288584
DeltaFile
+228-236net/keycloak/pkg-plist
+5-5net/keycloak/Makefile
+3-3net/keycloak/distinfo
+236-2443 files

HardenedBSD/ports 935de02biology/augustus Makefile, biology/bcf-score Makefile

*/*: chase the upgrade to SuiteSparse
DeltaFile
+1-1math/openturns/Makefile
+1-1biology/augustus/Makefile
+1-1biology/bcf-score/Makefile
+1-1biology/biosig/Makefile
+1-1games/naev/Makefile
+1-1graphics/libpano13/Makefile
+6-622 files not shown
+28-2228 files

HardenedBSD/ports 2b3088fmath Makefile, math/suitesparse Makefile bsd.suitesparse.mk

math/suitesparse-Example: adding the Example package of SuiteSparse

Like CSparse, do not install it by default.
DeltaFile
+40-0math/suitesparse-Example/Makefile
+11-0math/suitesparse-Example/pkg-plist
+2-1math/suitesparse/Makefile
+3-0math/suitesparse-Example/pkg-descr
+1-0math/suitesparse/bsd.suitesparse.mk
+1-0math/Makefile
+58-16 files

HardenedBSD/ports cc8c798math/suitesparse Makefile distinfo, math/suitesparse-klu pkg-plist

math/suitesparse*: upgrade to SuiteSparse v7.11.0

Release notes at
        https://github.com/DrTimothyAldenDavis/SuiteSparse/releases/tag/v7.11.0
DeltaFile
+3-3math/suitesparse/Makefile
+3-3math/suitesparse/distinfo
+4-0math/suitesparse-klu/pkg-plist
+1-2math/suitesparse-umfpack/Makefile
+1-2math/suitesparse-paru/Makefile
+1-2math/suitesparse-spqr/Makefile
+13-1231 files not shown
+60-2737 files

HardenedBSD/ports 1048896net/uriparser distinfo Makefile

net/uriparser: Update to 0.9.8

PR:             288566
Reported by:    cs@
Approved by:    maintainer
DeltaFile
+7-7net/uriparser/distinfo
+4-4net/uriparser/Makefile
+3-1net/uriparser/pkg-descr
+1-1net/uriparser/pkg-plist
+15-134 files

HardenedBSD/ports 16036b4devel/maven39 pkg-plist distinfo

devel/maven39: Update port to 3.9.11

Approved by:    jrm (mentor)
MFH:            2025Q3
Differential Revision:  https://reviews.freebsd.org/D51675
Release Notes:  https://maven.apache.org/docs/3.9.11/release-notes.html
DeltaFile
+13-9devel/maven39/pkg-plist
+3-3devel/maven39/distinfo
+1-1devel/maven39/Makefile
+17-133 files

HardenedBSD/src e6c623eusr.sbin/chroot chroot.c

chroot: Improve error message for unprivileged use

When the security.bsd.unprivileged_chroot sysctl is set, chroot(2) can
be used by unprivileged users as long as the PROC_NO_NEW_PRIVS_CTL
process control is set.

chroot(8) has a -n command line flag to set this process control.
Add an explicit error for EPERM from chroot(2) if the -n flag is
necessary, but not present.

Before:
  $ chroot / /bin/sh
  chroot: /: Operation not permitted

After:
  $ chroot / /bin/sh
  chroot: unprivileged use requires -n

Reviewed by:    kevans

    [2 lines not shown]
DeltaFile
+7-1usr.sbin/chroot/chroot.c
+7-11 files

HardenedBSD/ports 7bb1754multimedia/mkvtoolnix distinfo Makefile

multimedia/mkvtoolnix: Update to upstream release 94.0

Details:
- Mostly bugfix release, see
  https://mkvtoolnix.download/doc/NEWS.md

MFH:            2025Q3
DeltaFile
+3-3multimedia/mkvtoolnix/distinfo
+1-1multimedia/mkvtoolnix/Makefile
+4-42 files

HardenedBSD/src 095f630sys/vm vm_pageout.c swap_pager.c

vm_pageout: Scan inactive dirty pages less aggressively

Consider a database workload where the bulk of RAM is used for a
fixed-size file-backed cache.  Any leftover pages are used for
filesystem caching or anonymous memory.  In particular, there is little
memory pressure and the inactive queue is scanned rarely.

Once in a while, the free page count dips a bit below the setpoint,
triggering an inactive queue scan.  Since almost all of the memory there
is used by the database cache, the scan encounters only referenced
and/or dirty pages, moving them to the active and laundry queues.  In
particular, it ends up completely depleting the inactive queue, even for
a small, non-urgent free page shortage.

This scan might process many gigabytes worth of pages in one go,
triggering VM object lock contention (on the DB cache file's VM object)
and consuming CPU, which can cause application latency spikes.

Observing this behaviour, my observation is that we should abort

    [21 lines not shown]
DeltaFile
+47-14sys/vm/vm_pageout.c
+1-1sys/vm/swap_pager.c
+1-0sys/vm/swap_pager.h
+49-153 files

HardenedBSD/src 96a550esys/arm64/broadcom/genet if_genet.c

genet: Add a detach routine

PR:             288309
Co-authored by: Mike Belanger <mibelanger at qnx.com>
MFC after:      2 weeks
DeltaFile
+35-0sys/arm64/broadcom/genet/if_genet.c
+35-01 files

HardenedBSD/ports ec01207devel/aws-sdk-cpp distinfo Makefile

devel/aws-sdk-cpp: Update to 1.11.617

ChangeLog: https://github.com/aws/aws-sdk-cpp/compare/1.11.603...1.11.617
DeltaFile
+3-3devel/aws-sdk-cpp/distinfo
+1-1devel/aws-sdk-cpp/Makefile
+4-42 files

HardenedBSD/ports da72abfdevel/R-cran-future distinfo Makefile

devel/R-cran-future: Update to 1.67.0

ChangeLog: https://cran.r-project.org/web/packages/future/news/news.html
DeltaFile
+3-3devel/R-cran-future/distinfo
+1-1devel/R-cran-future/Makefile
+4-42 files

HardenedBSD/ports 600bba1emulators/sameboy distinfo Makefile

emulators/sameboy: Update to 1.0.2

ChangeLog: https://github.com/LIJI32/SameBoy/releases/tag/v1.0.2
DeltaFile
+3-3emulators/sameboy/distinfo
+1-1emulators/sameboy/Makefile
+1-1emulators/sameboy/pkg-plist
+5-53 files

HardenedBSD/ports 848064cdevel/aws-crt-cpp distinfo Makefile

devel/aws-crt-cpp: Update to 0.33.2

ChangeLog: https://github.com/awslabs/aws-crt-cpp/releases/tag/v0.33.2
DeltaFile
+3-3devel/aws-crt-cpp/distinfo
+1-1devel/aws-crt-cpp/Makefile
+4-42 files

HardenedBSD/ports bb0df92databases/cego distinfo Makefile

databases/cego: update 2.52.23 -> 2.52.25

- more fixes for CegoAttrCond
DeltaFile
+3-3databases/cego/distinfo
+1-1databases/cego/Makefile
+4-42 files

HardenedBSD/ports 159bd85deskutils/py-paperless-ngx pkg-plist Makefile, deskutils/py-paperless-ngx/files pkg-message.in patch-src_paperless__mail_mail.py

deskutils/py-paperless-ngx: Update to 2.17.1

PR:             287939
Co-authored-by: Sebastian <sko at rostwald.de>
DeltaFile
+47-0deskutils/py-paperless-ngx/pkg-plist
+21-0deskutils/py-paperless-ngx/files/pkg-message.in
+20-0deskutils/py-paperless-ngx/files/patch-src_paperless__mail_mail.py
+7-7deskutils/py-paperless-ngx/Makefile
+5-5deskutils/py-paperless-ngx/distinfo
+100-125 files

HardenedBSD/ports 17df9b7www/py-dj51-django-allauth distinfo Makefile, www/py-dj51-django-allauth/files patch-pyproject.toml

www/py-dj51-django-allauth: Update to 65.10.0
DeltaFile
+9-0www/py-dj51-django-allauth/files/patch-pyproject.toml
+3-3www/py-dj51-django-allauth/distinfo
+3-2www/py-dj51-django-allauth/Makefile
+15-53 files