FreeBSD/src 2110ae0sys/rpc svc_auth_unix.c

sys/rpc: UNIX auth: Do not log on bogus AUTH_SYS messages

Remove the printf() stances added in commit d4cc791f3b2e ("sys/rpc: UNIX
auth: Fix OOB reads on too short message").

Even if it can be helpful to know why an authentication message is
rejected, printing explanatory messages on each request attempt is
a remote log filler that could be triggered by accident, and the generic
RPC code generally does not do that.  These printf() calls should be
restored only after some limiting or configuration mechanism is devised.

MFC with:       d4cc791f3b2e ("sys/rpc: UNIX auth: Fix OOB reads on too short message")
Sponsored by:   The FreeBSD Foundation
DeltaFile
+3-17sys/rpc/svc_auth_unix.c
+3-171 files

FreeBSD/src a4105a5sys/rpc authunix_prot.c svc_auth_unix.c

sys/rpc: UNIX auth: Style: Remove unnecessary headers, minor changes

MFC after:      2 days
Sponsored by:   The FreeBSD Foundation
DeltaFile
+3-7sys/rpc/authunix_prot.c
+1-3sys/rpc/svc_auth_unix.c
+4-102 files

FreeBSD/src 4ae70c3sys/rpc authunix_prot.c

sys/rpc: UNIX auth: Support XDR_FREE

xdr_authunix_parms() does not allocate any auxiliary memory, so we can
simply support XDR_FREE by just returning TRUE.

Although there are currently no callers passing XDR_FREE, this makes us
immune to such a change in a way that doesn't cost more but is more
constructive than a mere KASSERT().

Suggested by:   rmacklem
MFC after:      2 days
Sponsored by:   The FreeBSD Foundation
DeltaFile
+4-0sys/rpc/authunix_prot.c
+4-01 files

FreeBSD/src d4cc791sys/rpc svc_auth_unix.c

sys/rpc: UNIX auth: Fix OOB reads on too short message

In the inline version (_svcauth_unix()), fix multiple possible OOB reads
when the credentials part of a request is too short to contain mandatory
fields or with respect to the hostname length or number of groups it
advertises.  The previously existing check was arriving too late and
relied on possibly wrong data coming from earlier OOB reads.

While here, use 'uint32_t' as the length/size type, as it is more than
enough and removes the need for conversions, explicit or implicit.
While here, factor out setting 'stat' to AUTH_BADCRED and then jumping
to 'done' on error, through the new 'badcred' label.  While here,
through comments, refer to what the non-inline version is doing
(xdr_authunix_parms() in 'authunix_prot.c') and the reasons.

Reviewed by:    rmacklem
Fixes:          dfdcada31e79 ("Add the new kernel-mode NFS Lock Manager.")
MFC after:      2 days
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D52964
DeltaFile
+61-40sys/rpc/svc_auth_unix.c
+61-401 files

FreeBSD/src e665c0fsys/rpc svc_auth_unix.c

sys/rpc: UNIX auth: Use AUTH_SYS_MAX_{GROUPS,HOSTNAME} as limits (2/2)

Remove local defines from 'svc_auth_unix.c' and use the new limit
macros instead.

Reviewed by:    rmacklem
MFC after:      2 days
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D52963
DeltaFile
+2-5sys/rpc/svc_auth_unix.c
+2-51 files

FreeBSD/src 47e9c81sys/rpc authunix_prot.c

sys/rpc: UNIX auth: Fix OOB accesses, notably writes on decode

When the received authentication message had more than XU_NGROUPS, we
would write group IDs beyond the end of cr_groups[] in the 'struct
xucred' being filled (as 'ngroups_max' is always greater than
XU_NGROUPS).

For robustness, prevent various OOB accesses that would result from
a change of value of XU_NGROUPS or a 'struct xucred' with an invalid
'cr_ngroups' field, even if these cases are unlikely.

Reviewed by:    rmacklem
Fixes:          dfdcada31e79 ("Add the new kernel-mode NFS Lock Manager.")
MFC after:      2 days
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D52960
DeltaFile
+21-19sys/rpc/authunix_prot.c
+21-191 files

FreeBSD/src f7c4f80sys/rpc auth.h

sys/rpc: Define AUTH_SYS_MAX_{GROUPS,HOSTNAME}

As, respectively, the maximum number of "supplementary" groups and the
maximum hostname size allowed in the credentials structure for AUTH_SYS
(aka, AUTH_UNIX).

Will be used in subsequent commits.

Reviewed by:    rmacklem
MFC after:      2 days
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D52961
DeltaFile
+4-0sys/rpc/auth.h
+4-01 files

FreeBSD/src b119ef0sys/rpc authunix_prot.c

sys/rpc: UNIX auth: Use AUTH_SYS_MAX_{GROUPS,HOSTNAME} as limits (1/2)

Consistently with the XDR_INLINE() variant of xdr_authunix_parms()
(_svcauth_unix() in 'svc_auth_unix.c'), reject messages with credentials
having a machine name length in excess of AUTH_SYS_MAX_HOSTNAME or more
than AUTH_SYS_MAX_GROUPS supplementary groups, which do not conform to
RFC 5531.  This is done mainly because we cannot store excess groups
anyway, even if at odds with the robustness principle ("be liberal in
what you accept").

While here, make sure the current code is immune to AUTH_SYS_MAX_GROUPS
changing value (in future RFCs?) even if that seems improbable.

Reviewed by:    rmacklem
Fixes:          dfdcada31e79 ("Add the new kernel-mode NFS Lock Manager.")
MFC after:      2 days
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D52962
DeltaFile
+23-10sys/rpc/authunix_prot.c
+23-101 files

FreeBSD/src bda3b61sys/rpc authunix_prot.c svc_auth_unix.c

sys/rpc: UNIX auth: Rename 'ngroups' => 'supp_ngroups' for clarity

MFC after:      2 days
Sponsored by:   The FreeBSD Foundation
DeltaFile
+8-8sys/rpc/authunix_prot.c
+8-8sys/rpc/svc_auth_unix.c
+16-162 files

FreeBSD/src af30e8dsys/fs/fuse fuse_vnops.c

fuse_flush: Reuse the struct mount *mp variable

Approved by: asomers
Differential Revision: https://reviews.freebsd.org/D53082
DeltaFile
+2-2sys/fs/fuse/fuse_vnops.c
+2-21 files

FreeBSD/ports e5d4ff5cad/qflow Makefile

cad/qflow: Chase cad/magic update 8.3.526 => 8.3.561

Approved by:            yuri@ (maintainer, Mentor, implicit)
Differential Revision:  https://reviews.freebsd.org/D53054
DeltaFile
+1-1cad/qflow/Makefile
+1-11 files

FreeBSD/ports 034509acad/magic Makefile pkg-plist, cad/magic/files patch-rules.mak patch-utils_path.c

cad/magic: Update 8.3.526 => 8.3.561

Changelogs:
* https://github.com/RTimothyEdwards/magic/releases/tag/8.3.561
* https://github.com/RTimothyEdwards/magic/compare/8.3.526...8.3.561

* Pet portfmt(1), sort entries

Approved by:            yuri@ (maintainer, Mentor)
Differential Revision:  https://reviews.freebsd.org/D53054
DeltaFile
+12-8cad/magic/Makefile
+12-0cad/magic/files/patch-rules.mak
+0-10cad/magic/files/patch-utils_path.c
+4-5cad/magic/files/patch-commands__Makefile
+4-4cad/magic/files/patch-textio__textioInt.h
+1-5cad/magic/pkg-plist
+33-322 files not shown
+38-378 files

FreeBSD/ports 3a5f6d8net/redpanda-connect distinfo Makefile

net/redpanda-connect: Update to 4.67.0
DeltaFile
+5-5net/redpanda-connect/distinfo
+1-2net/redpanda-connect/Makefile
+6-72 files

FreeBSD/doc 56607a5website/data/zh-tw/news news.toml

traditional Chinese Translation of the latest news items (2025-10-12)
DeltaFile
+5-0website/data/zh-tw/news/news.toml
+5-01 files

FreeBSD/ports 33df8f7devel/rubygem-opentelemetry-helpers-sql-processor distinfo

devel/rubygem-opentelemetry-helpers-sql-processor: fixed distinfo
DeltaFile
+3-3devel/rubygem-opentelemetry-helpers-sql-processor/distinfo
+3-31 files

FreeBSD/ports b78822bmisc/crush distinfo Makefile

misc/crush: update to 0.11.0

Changelog: https://github.com/charmbracelet/crush/releases/tag/v0.11.0

Reported by:    GitHub (watch releases)
DeltaFile
+5-5misc/crush/distinfo
+1-2misc/crush/Makefile
+6-72 files

FreeBSD/ports 1b95e4bx11/walker distinfo Makefile

x11/walker: update to 2.5.0

Changelog:
- https://github.com/abenz1267/walker/releases/tag/v2.4.0
- https://github.com/abenz1267/walker/releases/tag/v2.5.0

Reported by:    GitHub (watch releases)
DeltaFile
+3-3x11/walker/distinfo
+1-1x11/walker/Makefile
+4-42 files

FreeBSD/ports 5cee8ebsysutils/elephant distinfo Makefile

sysutils/elephant: update to 2.1.8

Changelog:
- https://github.com/abenz1267/elephant/releases/tag/v2.1.5
- https://github.com/abenz1267/elephant/releases/tag/v2.1.6
- https://github.com/abenz1267/elephant/releases/tag/v2.1.7
- https://github.com/abenz1267/elephant/releases/tag/v2.1.8

Reported by:    GitHub (watch releases)
DeltaFile
+5-5sysutils/elephant/distinfo
+1-1sysutils/elephant/Makefile
+6-62 files

FreeBSD/ports 0e84fbemisc/py-haystack_ai distinfo Makefile

misc/py-haystack_ai: Update to 2.18.1

- Enhancement Notes:
  - Added tools to agent run parameters to enhance the agent's
    flexibility. Users can now choose a subset of tools for the agent at
    runtime by providing a list of tool names, or supply an entirely new
    set by passing Tool objects or a Toolset.

- Bug Fixes
  - Fix Agent run_async method to correctly handle async streaming
    callbacks. This previously triggered errors due to a bug.
  - Prevent duplication of the last assistant message in the chat
    history when initializing from an AgentSnapshot.
  - We were setting response_format to None in OpenAIChatGenerator by
    default which doesn't follow the API spec. We now omit the variable
    if response_format is not passed by the user.

Sponsored by:   resulta.tech
DeltaFile
+3-3misc/py-haystack_ai/distinfo
+1-1misc/py-haystack_ai/Makefile
+4-42 files

FreeBSD/ports b618feffinance/nextcloud-cospend distinfo Makefile

finance/nextcloud-cospend: Update to 3.1.6
DeltaFile
+3-3finance/nextcloud-cospend/distinfo
+1-1finance/nextcloud-cospend/Makefile
+4-42 files

FreeBSD/ports acecf35mail/nextcloud-mail distinfo Makefile

mail/nextcloud-mail: Update to 5.5.8
DeltaFile
+3-3mail/nextcloud-mail/distinfo
+1-1mail/nextcloud-mail/Makefile
+4-42 files

FreeBSD/src dfd822bsbin/ipfw tables.c

ipfw: do not use errno value for error reporting

table_do_modify_record() already uses errno value on error.
Also this fixes problem when `ipfw table add` returns ENOTTY that
is unrelated to operation.

Tested by:      dhw
Fixes:          09025a714708
MFC after:      3 days
Differential Revision:  https://reviews.freebsd.org/D53050
DeltaFile
+0-3sbin/ipfw/tables.c
+0-31 files

FreeBSD/ports aede13emisc/p5-Business-ISBN-Data distinfo Makefile

misc/p5-Business-ISBN-Data: update to 20251003.001
DeltaFile
+3-3misc/p5-Business-ISBN-Data/distinfo
+1-1misc/p5-Business-ISBN-Data/Makefile
+4-42 files

FreeBSD/ports 1bcf545math/py-numpy Makefile, math/py-numpy/files patch-numpy_random_setup.py patch-numpy_core_setup.py

math/py-numpy: Revert "math/py-numpy: Migrate to PEP517"

This reverts commit 3f582fcf38bb0cee40f9346683490aceb3bda654.

The goal was to unblock package building ASAP while we investigate

Requested by:   antoine
DeltaFile
+0-23math/py-numpy/files/patch-numpy_random_setup.py
+0-19math/py-numpy/files/patch-numpy_core_setup.py
+0-17math/py-numpy/files/patch-numpy_distutils_mingw32ccompiler.py
+3-9math/py-numpy/Makefile
+0-11math/py-numpy/files/patch-pyproject.toml
+3-795 files

FreeBSD/ports bb46c6cgraphics/gowall Makefile distinfo, graphics/gowall/files patch-internal_image_upscale.go patch-vendor_github.com_gen2brain_go-fitz_fitz__cgo.go

graphics/gowall: Update 0.2.1 => 0.2.3

This release brings two big features: image compression and OCR. Added
new port options for both of those and also for upscaling feature.

Changelog: https://github.com/Achno/gowall/releases/tag/v0.2.3

PR:             290176
Reported by:    Yusuf Yaman <nxjoseph at protonmail.com> (maintainer)
DeltaFile
+34-8graphics/gowall/Makefile
+25-0graphics/gowall/files/i386/extra-patch-vendor_github.com_gen2brain_go-fitz_fitz__cgo.go
+19-0graphics/gowall/files/patch-internal_image_upscale.go
+16-0graphics/gowall/files/patch-vendor_github.com_gen2brain_go-fitz_fitz__cgo.go
+5-5graphics/gowall/distinfo
+10-0graphics/gowall/files/patch-internal_backends_compression_png_setup.go
+109-136 files

FreeBSD/src bf591dd. UPDATING

blocklist: Add an UPDATING entry

Add an UPDATING entry about the renaming of blocklist.

Approved by:    re (cperciva)
Approved by:    emaste (mentor)
Fixes:  7238317403b9 ("blocklist: Rename blacklist to blocklist")
MFC after:      1 day

(cherry picked from commit ffa8165009365ff93050626d880f2d1d6aacc31a)
(cherry picked from commit f22ca25404e795aa08efc35d8cdbb5b44304650f)
DeltaFile
+6-0UPDATING
+6-01 files

FreeBSD/src 621d4b1contrib/blocklist/bin blacklistd.8 blacklistd.conf.5, contrib/blocklist/lib libblacklist.3

blacklist: Avoid duplicate manual pages in METALOG

Previously, blacklist man pages were just a symlink to their blocklist
counterpart, this in turn installed blocklist man pages twice, and
resulted in a duplicate error when running metalog_reader.lua -c.

Take advantage of the duplication to document nuances in blacklist, such
as the fact that it uses the new database and socket name (blocklist).
Also, note that it has been renamed to blocklist.  In the future, it
will help to document its deprecation.

Approved by:    re (cperciva)
Approved by:    emaste (mentor)
Fixes:  7238317403b9 ("blocklist: Rename blacklist to blocklist")
MFC after:      2 days

(cherry picked from commit c6240045536548c22ce40d9ef36c1dc52abcfc9c)
(cherry picked from commit f935c0f66f75e882185ed8bc46f39054f2ced4e1)
DeltaFile
+308-0contrib/blocklist/bin/blacklistd.8
+242-0contrib/blocklist/bin/blacklistd.conf.5
+188-0contrib/blocklist/lib/libblacklist.3
+136-0contrib/blocklist/bin/blacklistctl.8
+7-8lib/libblacklist/Makefile
+1-3usr.sbin/blacklistd/Makefile
+882-111 files not shown
+883-137 files

FreeBSD/src f315a35contrib/blocklist/libexec blocklistd-helper, libexec/blocklistd-helper blacklistd-helper

blocklist-helper: Silence a bogus pf warning

Silence a bogus warning about (an ethernet) anchor not being found.

It has been reported as PR 280516.  In the meantime, just sweep under
the carpet.

Approved by:    re (cperciva)
Approved by:    emaste (mentor)
MFC after:      2 days

(cherry picked from commit 2347ca21d657121670e6e7246c6ac32efc996cac)
(cherry picked from commit ba5768504bee39191754fc1aece3927c8936f27c)
DeltaFile
+1-1libexec/blocklistd-helper/blacklistd-helper
+1-1contrib/blocklist/libexec/blocklistd-helper
+2-22 files

FreeBSD/src 2b6eb65contrib/blocklist/bin blacklistd.c blacklistctl.c, contrib/blocklist/lib old_bl.c blacklist.c

blocklist: Rename blacklist to blocklist

Follow up upstream rename from blacklist to blocklist.

- Old names and rc scripts are still valid, but emitting an ugly warning
- Old firewall rules and anchor names should work, but emitting an ugly
  warning
- Old MK_BLACKLIST* knobs are wired to the new ones

Although care has been taken not to break current configurations, this
is a large patch containing mostly duplicated code.  If issues arise, it
will be swiftly reverted.

Approved by:    re (cperciva)
Reviewed by:    ivy (pkgbase)
Approved by:    emaste (mentor)
MFC after:      2 days
Relnotes:       yes


    [2 lines not shown]
DeltaFile
+592-0contrib/blocklist/bin/blacklistd.c
+554-0contrib/blocklist/lib/old_bl.c
+293-0libexec/blocklistd-helper/blacklistd-helper
+170-0contrib/blocklist/bin/blacklistctl.c
+117-0contrib/blocklist/lib/blacklist.c
+0-97crypto/openssh/blacklist.c
+1,726-9760 files not shown
+2,570-28866 files

FreeBSD/src 803c373contrib/blocklist/bin blocklistd.c, contrib/blocklist/lib libblocklist.3

blocklist: Revert upstream commit ddf6d71

Upstream commit ddf6d71 ("implement BLOCKLIST_BAD_USER as a "one-count"
failure") introduced BLOCKLIST_BAD_USER with a one-count failure
mechanism.  BLOCKLIST_AUTH_FAIL was implemented with a two-count failure
mechanism.  Since we have been utilizing BLOCKLIST_AUTH_FAIL, the number
of failed attempts now doubles towards the maximum limit (nfails),
giving system administrators the impression that the number of failed
authentication attempts is inaccurate.

Revert this commit until a consensus has been reached.  We do not want
to introduce yet another breaking change with the renaming of the
library.

Approved by:    re (cperciva)
Approved by:    emaste (mentor)
MFC after:      2 days

(cherry picked from commit 4d56eb007b18881becb2107f87bd2a7edca3e6bf)
(cherry picked from commit a719ef67e8ed2cbae5f397d2a4680a02495b79ab)
DeltaFile
+19-13contrib/blocklist/lib/libblocklist.3
+9-9contrib/blocklist/bin/blocklistd.c
+28-222 files