HardenedBSD/src 670f0efsbin/ifconfig carp.c ifconfig.8, sys/netinet ip_carp.c ip_carp.h

Merge branch 'freebsd/current/main' into hardened/current/master
DeltaFile
+724-202sys/netinet/ip_carp.c
+97-1tests/sys/netinet/carp.sh
+57-11sbin/ifconfig/carp.c
+51-4sys/netinet/ip_carp.h
+15-1sbin/ifconfig/ifconfig.8
+14-0tests/sys/netinet/carp.py
+958-21910 files not shown
+995-22216 files

HardenedBSD/src f1de345release Makefile.mirrors

Merge branch 'freebsd/14-stable/main' into hardened/14-stable/master
DeltaFile
+14-0release/Makefile.mirrors
+14-01 files

HardenedBSD/ports 63d4225devel/jujutsu distinfo Makefile.crates, www/oauth2-proxy distinfo Makefile

Merge branch 'freebsd/main' into hardenedbsd/main
DeltaFile
+127-111www/oauth2-proxy/distinfo
+73-75devel/jujutsu/distinfo
+64-57www/oauth2-proxy/Makefile
+91-0www/oauth2-proxy/files/oauth2_proxy.in
+0-77www/oauth2-proxy/files/oauth2-proxy.in
+35-36devel/jujutsu/Makefile.crates
+390-35629 files not shown
+511-42435 files

HardenedBSD/src 301ec2csys/netpfil/pf pf.c

pf: always mark states as unlinked before detaching them

Users have reported crashes in pf_test_state_udp() where at least one state key
is NULL.

That suggests that pf_detach_state() ran concurrently with pf_test_state_udp().
pf_test_state_udp() holds the state lock (aka the id lock), but
pf_detach_state() does not.
The intent is that detached states are not returned by STATE_LOOKUP/
pf_find_state(), as the state's timeout is set to PFTM_UNLINKED and thus
pf_find_state() does not find the state.

There are other paths to pf_detach_state() (outside of pf_unlink_state())
though, where we did not set the timeout to PFTM_UNLINKED. Fix those, and assert
that the timeout is set correctly when we enter pf_detach_state().

MFC after:      1 week
See also:       https://redmine.pfsense.org/issues/15413
Sponsored by:   Rubicon Communications, LLC ("Netgate")
Differential Revision:  https://reviews.freebsd.org/D45101
DeltaFile
+3-0sys/netpfil/pf/pf.c
+3-01 files

HardenedBSD/src a254d68sys/netinet ip_carp.c

carp: isolate VRRP from CARP

There is only one functional change here - we don't allow SIOCSVH (or
netlink request) to change sc->sc_version.  I'm convinced that allowing
such a change doesn't brings any practical value, but creates enless
minefields in front of both developers and end users (sysadmins).  If
you want to switch from VRRP to CARP or vice versa, you'd need to recreate
the VHID.

Oh, one tiny funtional change: carp_ioctl_set() won't modify any fields
if it returns EINVAL.  Previously you could provide valid advbase with
invalid advskew - that used to modify advbase and return EINVAL.

All other changes is a sweep around not ever using CARP fields when
we are in VRRP mode and vice versa.  Also adding assertions on sc_version
where necessary.

Do not send VRRP vars in CARP mode via NetLink and vice versa.  However
in compat ioctl SIOCGVH for VRRP mode the CARP fields would be zeroes.

    [6 lines not shown]
DeltaFile
+199-159sys/netinet/ip_carp.c
+199-1591 files

HardenedBSD/src 601438fsys/netinet ip_carp.c

carp: refactor packet tagging for ether_output()

- Separate HMAC preparation (CARP specific) from tagging.
- In unicast mode (CARP specific) don't put tag at all.
- Don't put pointer to software context into the tag.  Putting just vhid,
  an integer value, is a safer design.

Reviewed by:    kp
Differential Revision:  https://reviews.freebsd.org/D45038
DeltaFile
+14-23sys/netinet/ip_carp.c
+14-231 files

HardenedBSD/src cda57d9sys/netinet ip_carp.c

carp: assert that we are calling correct input function. We are.

Reviewed by:    kp
Differential Revision:  https://reviews.freebsd.org/D45037
DeltaFile
+4-3sys/netinet/ip_carp.c
+4-31 files

HardenedBSD/src 5ee92cbsys/netinet ip_carp.c

carp: don't chain call vrrp_send_ad via carp_send_ad

Provide inline send_ad_locked() that switches between protocol
specific sending function.

Rename carp_send_ad() to carp_callout() to avoid getting lost in
all these multiple foo_send_ad.

No functional change intended.

Reviewed by:    kp
Differential Revision:  https://reviews.freebsd.org/D45036
DeltaFile
+22-14sys/netinet/ip_carp.c
+22-141 files

HardenedBSD/src 0d446a4sbin/ifconfig ifconfig.8, share/man/man4 carp.4

carp: document the new VRRPv3 support

Sponsored by:   Rubicon Communications, LLC ("Netgate")
Differential Revision:  https://reviews.freebsd.org/D44776
DeltaFile
+15-1sbin/ifconfig/ifconfig.8
+12-1share/man/man4/carp.4
+27-22 files

HardenedBSD/src 5311e73tests/sys/netinet carp.sh carp.py

netinet tests: basic VRRP tests

Sponsored by:   Rubicon Communications, LLC ("Netgate")
Differential Revision:  https://reviews.freebsd.org/D44775
DeltaFile
+97-1tests/sys/netinet/carp.sh
+14-0tests/sys/netinet/carp.py
+111-12 files

HardenedBSD/src 3711515lib/libifconfig libifconfig_carp.c libifconfig.h, sbin/ifconfig carp.c

carp: support VRRPv3

Allow carp(4) to use the VRRPv3 protocol (RFC 5798). We can distinguish carp and
VRRP based on the protocol version number (carp is 2, VRRPv3 is 3), and support
both from the carp(4) code.

Reviewed by:    glebius
Sponsored by:   Rubicon Communications, LLC ("Netgate")
Differential Revision:  https://reviews.freebsd.org/D44774
DeltaFile
+568-86sys/netinet/ip_carp.c
+57-11sbin/ifconfig/carp.c
+51-4sys/netinet/ip_carp.h
+6-0lib/libifconfig/libifconfig_carp.c
+3-0lib/libifconfig/libifconfig.h
+3-0sys/netinet/ip_carp_nl.h
+688-1016 files

HardenedBSD/ports fdb884cnet/syncthing distinfo Makefile

net/syncthing: Update to 1.27.7

re: https://github.com/syncthing/syncthing/releases/tag/v1.27.7
DeltaFile
+3-3net/syncthing/distinfo
+1-2net/syncthing/Makefile
+4-52 files

HardenedBSD/ports fadfb19devel/jujutsu distinfo Makefile.crates

devel/jujutsu: upgrade to version 0.17.1

Compared to version 0.16.0, this version contains a number of fixes
and improvements.

See the release notes at

    https://github.com/martinvonz/jj/releases/tag/v0.17.0

for details.

Version 0.17.1 speeds up "jj status" by no longer scanning through
the entire history to look for ancestors with conflicts.
DeltaFile
+73-75devel/jujutsu/distinfo
+35-36devel/jujutsu/Makefile.crates
+1-1devel/jujutsu/Makefile
+109-1123 files

HardenedBSD/ports b429df8databases/py-pg8000 distinfo Makefile

databases/py-pg8000: Update to 1.31.2
DeltaFile
+3-3databases/py-pg8000/distinfo
+1-2databases/py-pg8000/Makefile
+4-52 files

HardenedBSD/ports 9aad6e6devel/p5-Data-Dumper-Interp distinfo Makefile

devel/p5-Data-Dumper-Interp: Update to 7.007
DeltaFile
+3-3devel/p5-Data-Dumper-Interp/distinfo
+1-1devel/p5-Data-Dumper-Interp/Makefile
+4-42 files

HardenedBSD/ports 70c9018science/pynn distinfo Makefile

science/pynn: Update to 0.12.3
DeltaFile
+3-3science/pynn/distinfo
+3-1science/pynn/Makefile
+6-42 files

HardenedBSD/ports a3d5a1amath/py-roman distinfo Makefile

math/py-roman: Update to 4.2
DeltaFile
+3-3math/py-roman/distinfo
+1-1math/py-roman/Makefile
+4-42 files

HardenedBSD/ports 7bfbd1ddevel/fbthrift/files patch-thrift_lib_cpp2_CMakeLists.txt

devel/fbthrift: Fix build with ninja >= 1.12.0

Address a potential race condition where generated headers not created
before they used in the build.

https://github.com/facebook/fbthrift/pull/599

PR:             278693
Approved by:    portmgr (blanket)
DeltaFile
+18-0devel/fbthrift/files/patch-thrift_lib_cpp2_CMakeLists.txt
+18-01 files

HardenedBSD/ports 4a035a2www/oauth2-proxy distinfo Makefile

www/oauth2-proxy: Update to 7.6.0.

PR:     277536
DeltaFile
+127-111www/oauth2-proxy/distinfo
+63-56www/oauth2-proxy/Makefile
+190-1672 files

HardenedBSD/ports 7f80d74. UPDATING, www/oauth2-proxy Makefile

www/oauth2-proxy: convert rc script to be instance-aware

Like the tomcat ports or openhab, make the rc script instance aware.
To use it:
 - cp /usr/local/etc/oauth2-proxy.cfg.sample /usr/local/etc/oauth2-proxy-myapp.cfg
 - vi /usr/local/etc/oauth2-proxy-myapp.cfg
 - ln -s oauth2_proxy /usr/local/etc/rc.d/oauth2_proxy_myapp
 - sysctl oauth2_proxy_myapp_enable=YES
 - service oauth2_proxy_myapp start

Approved by:    maintainer timeout (3 weeks)
PR:             278325
DeltaFile
+91-0www/oauth2-proxy/files/oauth2_proxy.in
+0-77www/oauth2-proxy/files/oauth2-proxy.in
+15-0UPDATING
+2-2www/oauth2-proxy/Makefile
+108-794 files

HardenedBSD/ports d31af55security/vuxml/vuln 2024.xml

security/vuxml: document electron29 multiple vulnerabilities

Obtained from:  https://github.com/electron/electron/releases/tag/v29.3.2
DeltaFile
+32-0security/vuxml/vuln/2024.xml
+32-01 files

HardenedBSD/ports 7753b24shells/carapace distinfo Makefile

shells/carapace: update to 1.0.2

Changelog: https://github.com/carapace-sh/carapace-bin/releases/tag/v1.0.2

Reported by:    Repology
DeltaFile
+5-5shells/carapace/distinfo
+1-1shells/carapace/Makefile
+6-62 files

HardenedBSD/src 3fe25a9sys/dev/mii rgephy.c miidevs

mii: Add support for Realtek RTL8211F-VD PHY

The RTL8211F-VD is a replacement/upgrade for the RTL8211F. Based on
https://github.com/torvalds/linux/commit/bb726b753f75a4eeda291438f89dfd9b94783569,
the only difference is the lack of the PCR2 register, which FreeBSD
doesn't use.

This fixes autonegotiation problems using the RTL8211F with ukphy(4).
Reviewed by:    manu, bz
MFC after:      1 month
Differential Revision:  <https://reviews.freebsd.org/D45109
DeltaFile
+4-2sys/dev/mii/rgephy.c
+1-0sys/dev/mii/miidevs
+1-0sys/dev/mii/rgephyreg.h
+6-23 files

HardenedBSD/ports d608a4fnet-p2p/clboss distinfo Makefile, net-p2p/clboss/files patch-Util_Compiler.hpp

net-p2p/clboss: upgrade from 0.13 to 0.13.1
DeltaFile
+0-11net-p2p/clboss/files/patch-Util_Compiler.hpp
+3-3net-p2p/clboss/distinfo
+1-1net-p2p/clboss/Makefile
+4-153 files

HardenedBSD/src b54d4a1sys/modules/dtb/rockchip Makefile

dtb: rockchip: Add Radxa ROCK 4C Plus to the build.

The ROCK 4C Plus is a cost-reduced variant of the ROCK Pi 4 based on
the RockChip RK3399-T.

Reviewed by:    manu
MFC after:      1 week
Differential Revision:  <https://reviews.freebsd.org/D45110
DeltaFile
+1-0sys/modules/dtb/rockchip/Makefile
+1-01 files

HardenedBSD/ports 6d4f6e2misc/py-litellm distinfo Makefile

misc/py-litellm: update to 1.36.0

Changelog: https://github.com/BerriAI/litellm/releases

Reported by:    portscout
DeltaFile
+3-3misc/py-litellm/distinfo
+1-1misc/py-litellm/Makefile
+4-42 files

HardenedBSD/ports 26dcbf5www/tomcat9 distinfo Makefile

www/tomcat9: update to 9.0.89

Changelog:
https://tomcat.apache.org/tomcat-9.0-doc/changelog.html#Tomcat_9.0.89_(remm)

MFH:    2024Q2
DeltaFile
+3-3www/tomcat9/distinfo
+1-1www/tomcat9/Makefile
+4-42 files

HardenedBSD/ports c022f4aarchivers/lzip distinfo Makefile

archivers/lzip: Update to 1.24

This includes the following changes:
 - New option --empty-error, which forces exit status 2 if any empty
   member is found.
 - New option -marking-error, which forces exit status 2 if the first
   LZMA byte is non-zero in any member.
 - Improved diagnostics.
 - The option -o / --output preserves dates, permissions, and ownership
   of the file when (de)compressing exactly one file.
 - It also creates missing intermediate directories when writing a file.
DeltaFile
+3-3archivers/lzip/distinfo
+1-2archivers/lzip/Makefile
+4-52 files

HardenedBSD/src 3c1f3cfrelease Makefile.mirrors

release: Stage non-UFS images in vm-images-stage

When the VM image building code was updated to support building
non-UFS images, the vm-images-stage target was not updated to
install those newly built images to the FTP site.  As a result, we
have been sending weekly snapshot announcements since August claiming
that ZFS VM images are available when they are not in fact present
anywhere publicly accessible.

Fixes:  32ae9a6b3937 "release: Build UFS and ZFS VM images"
Reported by:    Michael Dexter
MFC after:      5 days

(cherry picked from commit f4b08097d8e274e1a8526d864c31462ea42d9e9f)
DeltaFile
+14-0release/Makefile.mirrors
+14-01 files

HardenedBSD/ports ca82a79net/speedtest-go distinfo Makefile

net/speedtest-go: update to 1.7.2

Changes:        https://github.com/showwin/speedtest-go/releases/tag/v1.7.1
Changes:        https://github.com/showwin/speedtest-go/releases/tag/v1.7.2
DeltaFile
+5-5net/speedtest-go/distinfo
+1-1net/speedtest-go/Makefile
+6-62 files