FreeBSD/src fe9e4ebsys/net pfvar.h, sys/netpfil/pf pf.c

pf: fix use of uninitialised variable

In pf_match_rule() we attempt to append matching rules to the end of
'match_rules'. We want to preserve the order to make the multiple
pflog entries easier to understand. So we keep track of the last added
rule item in 'rt'. However, that assumed that 'match_rules' was only
ever added to in that one call to pf_match_rules(). This isn't always
the case, for example if we have match rules in different anchors.
In that case we'd end up using the uninitialised 'rt' variable in the
SLIST_INSERT_AFTER call.

Instead track the match rules and the last matching rule (to enable
easy appending) in the struct pf_test_ctx.
This also allows us to reduce the number of arguments for some
functions, because we passed a ctx to most functions that needed
'match_rules'.

While here also make pf_match_rules() static, because it's only ever
used in pf.c

    [5 lines not shown]
DeltaFile
+58-0tests/sys/netpfil/pf/match.sh
+19-22sys/netpfil/pf/pf.c
+3-4sys/net/pfvar.h
+80-263 files

FreeBSD/src 895e1c6sys/kern kern_sysctl.c

sysctl(9): Booleans: Fix old value length discovery

When calling sysctl(3) with a null 'oldp', i.e., length discovery mode,
'oldix' can be equal to 'oldlen', and we should not fail.

More generally, let SYSCTL_OUT() and SYSCTL_IN() handle corner cases,
simply removing the comparisons between 'oldidx' and 'oldlen' and
'newidx' and 'newlen' done by hand as the test just after is an equality
that does not require to know if 'idx' is smaller than 'len'.

PR:             292917
Reported by:    cy
Fixes:          406da392ef8d ("sysctl(9): Booleans: Accept integers to ease knob conversion")
Sponsored by:   The FreeBSD Foundation
DeltaFile
+0-4sys/kern/kern_sysctl.c
+0-41 files

FreeBSD/ports be1cb6asecurity/hockeypuck distinfo Makefile.modules

security/hockeypuck: update to 2.3.1

Approved by:            lwhsu (mentor, implicitly)
Signed-off-by:          Siva Mahadevan <siva at FreeBSD.org>
Sponsored by:           The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D54906
DeltaFile
+3-99security/hockeypuck/distinfo
+0-49security/hockeypuck/Makefile.modules
+1-3security/hockeypuck/Makefile
+4-1513 files

FreeBSD/ports c4faf46lang/python312 Makefile, lang/python313 Makefile

lang/python3{12,13}: limit parallel .pyc compilation to MAKE_JOBS

This option is available since python312[0]. This fixes
python312 and python313 builds with qemu-user-static
emulating riscv64.

[0] https://github.com/python/cpython/commit/9a7e9f9921804f3f90151ca42703e612697dd430

Approved by:            vishwin (#python), lwhsu (mentor)
Signed-off-by:          Siva Mahadevan <siva at FreeBSD.org>
Sponsored by:           The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D54906
DeltaFile
+2-1lang/python312/Makefile
+2-1lang/python313/Makefile
+4-22 files

FreeBSD/ports 919a4damultimedia/pipewire pkg-plist distinfo

multimedia/pipewire: update to 1.4.10

Approved by:            arrowd (maintainer), lwhsu (mentor)
Signed-off-by:          Siva Mahadevan <siva at FreeBSD.org>
Sponsored by:           The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D54906
DeltaFile
+5-4multimedia/pipewire/pkg-plist
+3-3multimedia/pipewire/distinfo
+1-1multimedia/pipewire/Makefile
+9-83 files

FreeBSD/ports eba3ec5www/forgejo distinfo Makefile

www/forgejo: Update to 14.0.2

Changelog:
* https://codeberg.org/forgejo/forgejo/src/branch/forgejo/release-notes-published/14.0.2.md

MFH:            2026Q1
(cherry picked from commit 4358aecad4f3bf669a00f5428edd18ebb831cae2)
DeltaFile
+3-3www/forgejo/distinfo
+1-1www/forgejo/Makefile
+4-42 files

FreeBSD/ports 4358aecwww/forgejo distinfo Makefile

www/forgejo: Update to 14.0.2

Changelog:
* https://codeberg.org/forgejo/forgejo/src/branch/forgejo/release-notes-published/14.0.2.md

MFH:            2026Q1
DeltaFile
+3-3www/forgejo/distinfo
+1-1www/forgejo/Makefile
+4-42 files

FreeBSD/ports d27150esecurity/arti distinfo Makefile.crates

security/arti: Update to 2.0.0
DeltaFile
+213-197security/arti/distinfo
+105-97security/arti/Makefile.crates
+2-3security/arti/Makefile
+320-2973 files

FreeBSD/ports d766b80devel/hs-spago distinfo Makefile, devel/spago Makefile pkg-descr

devel/hs-spago: Update to 1.0.3 and move to devel/spago

PR:             272064
DeltaFile
+0-481devel/hs-spago/distinfo
+0-215devel/hs-spago/Makefile
+29-0devel/spago/Makefile
+3-0devel/spago/pkg-descr
+0-3devel/hs-spago/pkg-descr
+3-0devel/spago/distinfo
+35-6991 files not shown
+36-6997 files

FreeBSD/ports 4d5a836net-p2p/libtorrent distinfo Makefile, net-p2p/rtorrent distinfo Makefile

net-p2p/{lib,r}torrent: Roll back to 0.16.5

Due to instability of 0.16.6, roll back to 0.16.5 stable.
As a temporary measure as upstream is working on a release fix, let's
roll back with a portrevision bump.

PR:             292914
Reported by:    glebius
Reviewed by:    glebius, novel
MFH:            2026Q1
See also:       https://github.com/rakshasa/rtorrent/issues/1689

(cherry picked from commit 73e88b9f23d4986b5862933ff0d07f9ebf0aeee7)
DeltaFile
+3-3net-p2p/libtorrent/distinfo
+3-3net-p2p/rtorrent/distinfo
+3-1net-p2p/libtorrent/Makefile
+3-1net-p2p/rtorrent/Makefile
+2-2net-p2p/libtorrent/pkg-plist
+14-105 files

FreeBSD/ports 73e88b9net-p2p/libtorrent distinfo pkg-plist, net-p2p/rtorrent distinfo Makefile

net-p2p/{lib,r}torrent: Roll back to 0.16.5

Due to instability of 0.16.6, roll back to 0.16.5 stable.
As a temporary measure as upstream is working on a release fix, let's
roll back with a portrevision bump.

PR:             292914
Reported by:    glebius
Reviewed by:    glebius, novel
MFH:            2026Q1
See also:       https://github.com/rakshasa/rtorrent/issues/1689
DeltaFile
+3-3net-p2p/rtorrent/distinfo
+3-3net-p2p/libtorrent/distinfo
+2-2net-p2p/libtorrent/pkg-plist
+3-1net-p2p/libtorrent/Makefile
+3-1net-p2p/rtorrent/Makefile
+14-105 files

FreeBSD/ports 42d0e40devel/tvision distinfo Makefile

devel/tvision: Update to g20260111

Changelog: https://github.com/magiblot/tvision/compare/df6424f...85aaeca

Approved by:    eduardo (mentor, implicit)
MFH:            2026Q1

(cherry picked from commit a9ad56f5b328818b0b345b2c6a098ca74e343a98)
DeltaFile
+3-3devel/tvision/distinfo
+2-2devel/tvision/Makefile
+5-52 files

FreeBSD/ports a9ad56fdevel/tvision distinfo Makefile

devel/tvision: Update to g20260111

Changelog: https://github.com/magiblot/tvision/compare/df6424f...85aaeca

Approved by:    eduardo (mentor, implicit)
MFH:            2026Q1
DeltaFile
+3-3devel/tvision/distinfo
+2-2devel/tvision/Makefile
+5-52 files

FreeBSD/ports e812322dns/dnsmasq-devel distinfo Makefile

dns/dnsmasq-devel: update to v2.93test3

Changes (Git log):

* fbfcf87 2026-02-01 | Rewrite blockdata_retrieve() and expand_buf() to use realloc(). (tag: v2.93test3) [Simon Kelley]
* 19f3e06 2026-02-01 | Fix compiler warning. [Simon Kelley]
* 40d1152 2026-01-31 | read_writev: avoid reading past the last iovec elem [Matthias Andree]
* 3c830c4 2026-01-31 | Avoid uninitialized-value warnings from the compiler [Matthias Andree]
* e9f400d 2026-01-31 | base32_decode: avoid shifting into the sign bit [Matthias Andree]
* 870f141 2026-01-31 | Tidy up memory allocation in read_event() [Simon Kelley]
* 714d362 2026-01-31 | Tidy up check for muticast DHCPv6 requests. [Simon Kelley]
* 60e90e2 2026-01-31 | Remove DHCPv6 UseMulticast option code. [Simon Kelley]

MFH:            2026Q1
(cherry picked from commit dcb383559b3e071df9f55e22f78fcc64a6d197e0)
DeltaFile
+3-3dns/dnsmasq-devel/distinfo
+2-2dns/dnsmasq-devel/Makefile
+5-52 files

FreeBSD/doc 75e328edocumentation/content/fr/books/handbook/x11 _index.adoc

Handbook/x11: Fix trivial typo

Reviewed by:    olivier
Submitted by:   ajoly18
Closes:         https://github.com/freebsd/freebsd-doc/pull/413
DeltaFile
+1-1documentation/content/fr/books/handbook/x11/_index.adoc
+1-11 files

FreeBSD/ports caa950bdevel/pmd pkg-plist distinfo

devel/pmd: Update to version 7.21.0

Release notes:
https://docs.pmd-code.org/pmd-doc-7.21.0/pmd_release_notes.html
https://docs.pmd-code.org/pmd-doc-7.20.0/pmd_release_notes.html
https://docs.pmd-code.org/pmd-doc-7.19.0/pmd_release_notes.html
https://docs.pmd-code.org/pmd-doc-7.18.0/pmd_release_notes.html
https://docs.pmd-code.org/pmd-doc-7.17.0/pmd_release_notes.html

Approved by:    eduardo (mentor, implicit)
MFH:            2026Q1

(cherry picked from commit 59c87d2966be74127ce00dade032e7a6cd6ec9f0)
DeltaFile
+27-31devel/pmd/pkg-plist
+3-3devel/pmd/distinfo
+1-1devel/pmd/Makefile
+31-353 files

FreeBSD/ports 59c87d2devel/pmd pkg-plist distinfo

devel/pmd: Update to version 7.21.0

Release notes:
https://docs.pmd-code.org/pmd-doc-7.21.0/pmd_release_notes.html
https://docs.pmd-code.org/pmd-doc-7.20.0/pmd_release_notes.html
https://docs.pmd-code.org/pmd-doc-7.19.0/pmd_release_notes.html
https://docs.pmd-code.org/pmd-doc-7.18.0/pmd_release_notes.html
https://docs.pmd-code.org/pmd-doc-7.17.0/pmd_release_notes.html

Approved by:    eduardo (mentor, implicit)
MFH:            2026Q1
DeltaFile
+27-31devel/pmd/pkg-plist
+3-3devel/pmd/distinfo
+1-1devel/pmd/Makefile
+31-353 files

FreeBSD/ports dcb3835dns/dnsmasq-devel distinfo Makefile

dns/dnsmasq-devel: update to v2.93test3

Changes (Git log):

* fbfcf87 2026-02-01 | Rewrite blockdata_retrieve() and expand_buf() to use realloc(). (tag: v2.93test3) [Simon Kelley]
* 19f3e06 2026-02-01 | Fix compiler warning. [Simon Kelley]
* 40d1152 2026-01-31 | read_writev: avoid reading past the last iovec elem [Matthias Andree]
* 3c830c4 2026-01-31 | Avoid uninitialized-value warnings from the compiler [Matthias Andree]
* e9f400d 2026-01-31 | base32_decode: avoid shifting into the sign bit [Matthias Andree]
* 870f141 2026-01-31 | Tidy up memory allocation in read_event() [Simon Kelley]
* 714d362 2026-01-31 | Tidy up check for muticast DHCPv6 requests. [Simon Kelley]
* 60e90e2 2026-01-31 | Remove DHCPv6 UseMulticast option code. [Simon Kelley]

MFH:            2026Q1
DeltaFile
+3-3dns/dnsmasq-devel/distinfo
+2-2dns/dnsmasq-devel/Makefile
+5-52 files

FreeBSD/src 8df7af9sys/compat/linuxkpi/common/include/linux string_choices.h

LinuxKPI: string_choices.h: use ternary operator

Switch from using if () else to a direct return (?:) code.
No functional changes.

Suggested by:   kib (D55029)
Sponosred by:   The FreeBSD Foundation
MFC after:      3 days
Reviewed by:    emaste (before removing more () as suggested by him)
Differential Revision: https://reviews.freebsd.org/D55088
DeltaFile
+5-20sys/compat/linuxkpi/common/include/linux/string_choices.h
+5-201 files

FreeBSD/ports 0f14b77databases/pg_textsearch distinfo Makefile

databases/pg_textsearch: Update to 0.5.0
DeltaFile
+3-3databases/pg_textsearch/distinfo
+3-1databases/pg_textsearch/Makefile
+2-1databases/pg_textsearch/pkg-plist
+8-53 files

FreeBSD/ports 9352a10graphics/shaderc distinfo Makefile, graphics/shaderc/files patch-system-glslang

graphics/shaderc: Update to 2026.1

Changelog: https://github.com/google/shaderc/blob/v2026.1/CHANGES

PR:             292737
Reported by:    vvd
Co-authored-by: Hiroki Tagato <tagattie at FreeBSD.org>
DeltaFile
+5-5graphics/shaderc/distinfo
+5-3graphics/shaderc/Makefile
+3-3graphics/shaderc/files/patch-system-glslang
+13-113 files

FreeBSD/ports 9f8aa82devel/libvirt distinfo Makefile

devel/libvirt: fix build on 16-CURRENT

As of src commit ac5a19ec6989675c8ec6c3ca245dba243d1a6416 xdrproc_t
accepts only two arguments. Address that change in libvirt.

Reported by:    pkg-fallout
Obtained from:  upstream
Sponsored by:   The FreeBSD Foundation
DeltaFile
+5-1devel/libvirt/distinfo
+4-0devel/libvirt/Makefile
+9-12 files

FreeBSD/ports fffcf97devel/ghidra pkg-plist distinfo

devel/ghidra: Update to 12.0.2

Release notes:
https://github.com/NationalSecurityAgency/ghidra/releases/tag/Ghidra_12.0.2_build
https://github.com/NationalSecurityAgency/ghidra/releases/tag/Ghidra_12.0.1_build
https://github.com/NationalSecurityAgency/ghidra/releases/tag/Ghidra_12.0_build
https://github.com/NationalSecurityAgency/ghidra/releases/tag/Ghidra_11.4.3_build

Approved by:    eduardo (mentor, implicit)
MFH:            2026Q1

(cherry picked from commit 78551a331e6ca1ab04b6f5b5e676fdf35705a662)
DeltaFile
+457-120devel/ghidra/pkg-plist
+3-3devel/ghidra/distinfo
+3-3devel/ghidra/Makefile
+463-1263 files

FreeBSD/ports 78551a3devel/ghidra pkg-plist Makefile

devel/ghidra: Update to 12.0.2

Release notes:
https://github.com/NationalSecurityAgency/ghidra/releases/tag/Ghidra_12.0.2_build
https://github.com/NationalSecurityAgency/ghidra/releases/tag/Ghidra_12.0.1_build
https://github.com/NationalSecurityAgency/ghidra/releases/tag/Ghidra_12.0_build
https://github.com/NationalSecurityAgency/ghidra/releases/tag/Ghidra_11.4.3_build

Approved by:    eduardo (mentor, implicit)
MFH:            2026Q1
DeltaFile
+457-120devel/ghidra/pkg-plist
+3-3devel/ghidra/Makefile
+3-3devel/ghidra/distinfo
+463-1263 files

FreeBSD/ports b61f37edevel/gradle distinfo Makefile

devel/gradle: Update to version 9.3.1

Release notes:
https://docs.gradle.org/9.3.1/release-notes.html
https://docs.gradle.org/9.3.0/release-notes.html
https://docs.gradle.org/9.2.1/release-notes.html
https://docs.gradle.org/9.2.0/release-notes.html
https://docs.gradle.org/9.1.0/release-notes.html

Approved by:    eduardo (mentor, implicit)
MFH:            2026Q1

(cherry picked from commit 42773c1afa73f4dc42bdf2d2a89c06bc796faaf8)
DeltaFile
+3-3devel/gradle/distinfo
+1-1devel/gradle/Makefile
+4-42 files

FreeBSD/ports 56fd10ewww/firefox distinfo Makefile

www/firefox: update to 147.0.3

Release Notes:
  https://www.firefox.com/en-US/firefox/147.0.3/releasenotes/

(cherry picked from commit 0ea50cc1be3506ece1be34e360e6efec9fcb84d5)
DeltaFile
+3-3www/firefox/distinfo
+1-1www/firefox/Makefile
+4-42 files

FreeBSD/ports 42773c1devel/gradle distinfo Makefile

devel/gradle: Update to version 9.3.1

Release notes:
https://docs.gradle.org/9.3.1/release-notes.html
https://docs.gradle.org/9.3.0/release-notes.html
https://docs.gradle.org/9.2.1/release-notes.html
https://docs.gradle.org/9.2.0/release-notes.html
https://docs.gradle.org/9.1.0/release-notes.html

Approved by:    eduardo (mentor, implicit)
MFH:            2026Q1
DeltaFile
+3-3devel/gradle/distinfo
+1-1devel/gradle/Makefile
+4-42 files

FreeBSD/ports 0ea50ccwww/firefox distinfo Makefile

www/firefox: update to 147.0.3

Release Notes:
  https://www.firefox.com/en-US/firefox/147.0.3/releasenotes/
DeltaFile
+3-3www/firefox/distinfo
+1-2www/firefox/Makefile
+4-52 files

FreeBSD/doc 096c63bdocumentation/content/en/books/handbook/zfs _index.adoc

handbook/zfs: Fix vfs.zfs.prefetch.disable sysctl

Reviewed by:    ziaee
Closes:         https://github.com/freebsd/freebsd-doc/pull/554
DeltaFile
+1-1documentation/content/en/books/handbook/zfs/_index.adoc
+1-11 files

FreeBSD/src 472fe29crypto/heimdal/lib/hdb hdb-private.h

heimdal: Add missing function prototypes

This fixes the build with GCC 14 on stable/14 which raises fatal
-Wimplicit-function-declaration warnings.

Reviewed by:    rmacklem, cy
Fixes:          5000d023a446 ("heimdal-kadmin: Add support for the -f dump option")
Differential Revision:  https://reviews.freebsd.org/D54931

(cherry picked from commit 8a8dc73ef87b538c369abc1b642e2a40b52c53c2)
DeltaFile
+12-0crypto/heimdal/lib/hdb/hdb-private.h
+12-01 files