FreeBSD/src 36fdc42sys/dev/mlx5/mlx5_en mlx5_en_main.c

mlx5en: Fix SIOCSIFCAPNV

In 4cc5d081d8c23, a change was introduced that manipulated
drv_ioctl_data->reqcap using IFCAP2 bits.  This was noticed
when creating a mixed lagg with mce0 and ixl0 caused the
interfaces' txcsum caps to be disabled.

Fixes: 4cc5d081d8c23
Reviewed by: glebius
Sponsored by: Netflix
MFC After: 7 days
DeltaFile
+2-2sys/dev/mlx5/mlx5_en/mlx5_en_main.c
+2-21 files

FreeBSD/src 6cd973dshare/man/man4 ffs.4

Update date of ffs.4 manual page.
DeltaFile
+1-1share/man/man4/ffs.4
+1-11 files

FreeBSD/src 1111a44lib/libufs inode.c, sbin/fsck_ffs inode.c

Defer the January 19, 2038 date limit in UFS1 filesystems to February 7, 2106

UFS1 uses a signed 32-bit value for its times. Zero is
January 1, 1970 UTC. Negative values of 32-bit time predate
January 1, 1970 back to December 13, 1901. The maximum positive
value for 32-bit time is on January 19, 2038 (my 84th birthday).
On that date, time will go negative and start registering from
December 13, 1901. Note that this issue only affects UFS1 filesystems
since UFS2 has 64-bit times. This fix changes UFS1 times from
signed to unsigned 32-bit values. With this change it will no longer
be possible to represent time from before January 1, 1970, but it
will accurately track time until February 7, 2106. Hopefully there
will not be any FreeBSD systems using UFS1 still in existence by
that time (and by then I will have been dead long enough that no-one
will know at whom to yell :-).

It is possible that some existing UFS1 systems will have set times
predating January 1, 1970. With this commit they will appear as
later than the current time. This commit checks inode times when

    [9 lines not shown]
DeltaFile
+59-0sys/ufs/ffs/ffs_subr.c
+24-0sbin/fsck_ffs/inode.c
+13-1lib/libufs/inode.c
+3-3sys/ufs/ufs/dinode.h
+6-0sys/ufs/ffs/ffs_vfsops.c
+4-0share/man/man4/ffs.4
+109-42 files not shown
+112-48 files

FreeBSD/src a69ac6eusr.bin/bmake Makefile

Fix mangled bmake makefile
DeltaFile
+19-19usr.bin/bmake/Makefile
+19-191 files

FreeBSD/src 6a7405fcontrib/bmake var.c, contrib/bmake/mk rust.mk setopts.sh

Merge bmake-20250125

Merge commit '5ad769f660f3d00853bc739f82d9bc62f6a682cb'
DeltaFile
+129-104contrib/bmake/unit-tests/moderrs.exp
+203-0contrib/bmake/mk/rust.mk
+175-0contrib/bmake/mk/setopts.sh
+101-74contrib/bmake/unit-tests/moderrs.mk
+61-88contrib/bmake/var.c
+146-0contrib/bmake/unit-tests/suff.exp
+815-266198 files not shown
+3,249-1,811204 files

FreeBSD/src 5ad769f. var.c, mk rust.mk setopts.sh

Import bmake-20250125

Intersting/relevant changes since bmake-20240711

ChangeLog since bmake-20240711

2025-01-25  Simon J Gerraty  <sjg at beast.crufty.net>

        * VERSION (_MAKE_VERSION): 20250125
        Merge with NetBSD make, sync up below change.

        * unit-tests/Makefile: remove $TMPDIR via .END
        to avoid failure in test on NFS - since the temp file for the
        target script is open and thus gets renamed by the server rather
        than removed.

2025-01-20  Simon J Gerraty  <sjg at beast.crufty.net>

        * VERSION (_MAKE_VERSION): 20250120

    [244 lines not shown]
DeltaFile
+129-104unit-tests/moderrs.exp
+203-0mk/rust.mk
+175-0mk/setopts.sh
+101-74unit-tests/moderrs.mk
+61-88var.c
+146-0unit-tests/suff.exp
+815-266195 files not shown
+3,148-1,740201 files

FreeBSD/src 4a1b0a9usr.bin/unifdef/tests unifdef_test.sh

unifdef: Restore damaged test case.

The input for the hash_comment test case was damaged in a cleanup sweep.
Restore the original input and tweak it slightly so it no longer matches
the regex used in said sweep.

Sponsored by:   Klara, Inc.
Fixes: 5e3934b15a2741b2de6b217e77dc9d798d740804
DeltaFile
+3-1usr.bin/unifdef/tests/unifdef_test.sh
+3-11 files

FreeBSD/src c63af36contrib/unifdef unifdef.c, usr.bin/unifdef/tests unifdef_test.sh

unifdef: Fix collision check when adding symbols.

findsym() is intended for use while parsing input, so it should not be
called from addsym2() or indirectsym(), which are called before any
input is processed.

MFC after:      1 week
Sponsored by:   Klara, Inc.
Reviewed by:    kevans
Differential Revision:  https://reviews.freebsd.org/D48733
DeltaFile
+5-6contrib/unifdef/unifdef.c
+10-0usr.bin/unifdef/tests/unifdef_test.sh
+15-62 files

FreeBSD/src ace4637release Makefile, release/tools vmimage.subr

vmimage.subr: Redirect etcupdate log to stdout

While we're here, send the etcupdate log from generating base.txz
to stdout instead of /dev/null (see e972e408d19a) as well.

Reviewed by:    emaste, gordon, jrtc27
MFC after:      1 week
Sponsored by:   Amazon
Differential Revision:  https://reviews.freebsd.org/D48719
DeltaFile
+2-1release/tools/vmimage.subr
+1-1release/Makefile
+3-22 files

FreeBSD/src 08aa712sbin/sysctl sysctl.c sysctl.8

sysctl: Teach sysctl to attach and run itself in a jail

This allows the parent jail to retrieve or set kernel state when child
does not have sysctl(8) installed (e.g. light weighted OCI containers
or slim jails).

This is especially useful when manipulating jail prison or vnet sysctls.
For example, `sysctl -j foo -Ja` or `sysctl -j foo net.fibs=2`.

Reviewed by:    dfr (previous version), markj
MFC after:      1 week
Relnotes:       yes
Differential Revision:  https://reviews.freebsd.org/D48618
DeltaFile
+44-4sbin/sysctl/sysctl.c
+11-1sbin/sysctl/sysctl.8
+5-0sbin/sysctl/Makefile
+60-53 files

FreeBSD/src 6193855sbin/sysctl sysctl.c

sysctl: Refactor function parsefile()

Let the caller open the file and pass in the file handler. This can
benefit an upcoming change so that we will have cleaner logic.

No functional change intended.

Suggested by:   markj
MFC after:      1 week
DeltaFile
+10-9sbin/sysctl/sysctl.c
+10-91 files

FreeBSD/src 903c7cdsys/net vnet.c

vnet: Fix style nits

MFC after:      3 days
DeltaFile
+5-4sys/net/vnet.c
+5-41 files

FreeBSD/src ec28260sbin/nvmecontrol fabrics.c

nvmecontrol: Only do name resolution once for Fabrics connections

Reuse the addrinfo structure from the admin queue to establish
connections to I/O queues for the TCP transport.

Reviewed by:    dab, imp
Sponsored by:   Chelsio Communications
Differential Revision:  https://reviews.freebsd.org/D48456
DeltaFile
+34-5sbin/nvmecontrol/fabrics.c
+34-51 files

FreeBSD/src 10d188asbin/nvmecontrol fabrics.c

nvmecontrol: Consolidate error paths in connect_nvm_queues()

Zero the I/O queue array earlier so that disconnect_nvm_queues() can
be safely used for earlier failures.

Suggested by:   dab
Sponsored by:   Chelsio Communications
Differential Revision:  https://reviews.freebsd.org/D48654
DeltaFile
+9-13sbin/nvmecontrol/fabrics.c
+9-131 files

FreeBSD/src 66b107eusr.sbin/ctld ctld.c

ctld: Use kevent(2) for socket events rather than select(2)

Reviewed by:    asomers
Sponsored by:   Chelsio Communications
Differential Revision:  https://reviews.freebsd.org/D48597
DeltaFile
+74-62usr.sbin/ctld/ctld.c
+74-621 files

FreeBSD/src 3d30774sys/netpfil/pf pf.c

pf: Force logging if pf_create_state() fails

Currently packets are logged before pf_create_state() is called, so we
might log a packet as passed that is subsequently dropped due to state
creation failure.  In particular, the drop is not logged, which is
wrong.

Improve the situation a bit: force logging if state creation fails.
This isn't totally right as we'll end up logging the packet twice in
this case, but it's better than not logging the drop at all.

Add a regression test.

Discussed with: kp, ks
Co-authored-by: Franco Fichtner <franco at opnsense.org>
MFC after:      2 weeks
Sponsored by:   Klara, Inc.
Sponsored by:   OPNsense
Differential Revision:  https://reviews.freebsd.org/D47953

    [2 lines not shown]
DeltaFile
+1-0sys/netpfil/pf/pf.c
+1-01 files

FreeBSD/src d45326bsys/x86/cpufreq hwpstate_amd.c

hwpstate_amd: add amd pstate for zen5

Reviewed by:    markj
MFC after:      2 weeks
Differential Revision:  https://reviews.freebsd.org/D47985

(cherry picked from commit 0e6e1f14f0a7cfabec38106e41cb2f7a39363e55)
DeltaFile
+46-16sys/x86/cpufreq/hwpstate_amd.c
+46-161 files

FreeBSD/src 2839e32sys/x86/cpufreq hwpstate_amd.c

hwpstate_amd: add amd pstate for zen4

Co-authored-by: Daniel Schaefer <dhs at frame.work>
Reviewed by:    markj
MFC after:      2 weeks
Sponsored by:   Framework Computer Inc
Differential Revision:  https://reviews.freebsd.org/D48461

(cherry picked from commit 621569254cd0b0639488aa5d7b8143cef7c90a18)
DeltaFile
+1-0sys/x86/cpufreq/hwpstate_amd.c
+1-01 files

FreeBSD/src b4da6edcddl/usr.sbin/dtrace/tests dtrace.test.mk

dtrace tests: Fix the ATF config variable name

Fixes:          6e6a67e98652 ("dtrace tests: Avoid hard-coding paths to required programs")
Sponsored by:   Innovate UK

(cherry picked from commit fed08c59b7bf2cb4d05bacadadde2dcef4dc6c46)
DeltaFile
+1-1cddl/usr.sbin/dtrace/tests/dtrace.test.mk
+1-11 files

FreeBSD/src 9c60e4ecddl/usr.sbin/dtrace/tests dtrace.test.mk

dtrace tests: Avoid hard-coding paths to required programs

MFC after:      1 week
Sponsored by:   Innovate UK

(cherry picked from commit 6e6a67e98652e1477973d031b27ce085d7f200c2)
DeltaFile
+1-1cddl/usr.sbin/dtrace/tests/dtrace.test.mk
+1-11 files

FreeBSD/src 2e0d595sys/cddl/dev/dtrace/aarch64 dtrace_subr.c

dtrace/arm64: Simplify variable declarations in the invop handler

Remove some unused variables and reduce the scope of some others.

No functional change intended.

MFC after:      1 week
Sponsored by:   Innovate UK

(cherry picked from commit 8384a19adc88ef31794f5aed1d8c5621b7dff8c9)
DeltaFile
+4-6sys/cddl/dev/dtrace/aarch64/dtrace_subr.c
+4-61 files

FreeBSD/src d603868cddl/contrib/opensolaris/lib/libdtrace/common dt_ident.c

libdtrace: Use C99 designated initializers for dt_idops_t

No functional change intended.

MFC after:      1 week
Sponsored by:   Innovate UK

(cherry picked from commit 61c4ac2df7b2b866c8ee5e944aedc96aa79bd315)
DeltaFile
+24-24cddl/contrib/opensolaris/lib/libdtrace/common/dt_ident.c
+24-241 files

FreeBSD/src 89073e0sys/cddl/contrib/opensolaris/uts/common/sys dtrace_impl.h

dtrace: Fix the definition of pc_t

This type is used only to store PC values corresponding to a thread
stack trace, so a pointer type is not quite right.  Switch to
vm_offset_t, as in struct stack, to simplify a port of DTrace to CHERI.

No functional change intended.

MFC after:      1 week
Sponsored by:   Innovate UK

(cherry picked from commit 8ce6b4f2c48eca758fac90b58924f9b2e38fbc49)
DeltaFile
+1-1sys/cddl/contrib/opensolaris/uts/common/sys/dtrace_impl.h
+1-11 files

FreeBSD/src 18a39desys/modules/dtrace Makefile

dtrace: Build systrace_freebsd32 only if COMPAT_FREEBSD32 is configured

MFC after:      1 week
Sponsored by:   Innovate UK

(cherry picked from commit 1e734f15c7099408f45d3b1ea433868d0468916f)
DeltaFile
+2-0sys/modules/dtrace/Makefile
+2-01 files

FreeBSD/src 703b03ausr.sbin/ctld kernel.c ctld.c

ctld: Use nvlist instead of home-rolled name-value lists

Reviewed by:    asomers (older version)
Sponsored by:   Chelsio Communications
Differential Revision:  https://reviews.freebsd.org/D48595
DeltaFile
+60-140usr.sbin/ctld/kernel.c
+31-56usr.sbin/ctld/ctld.c
+4-14usr.sbin/ctld/ctld.h
+8-7usr.sbin/ctld/parse.y
+8-5usr.sbin/ctld/uclparse.c
+111-2225 files

FreeBSD/src de3defflib/libiscsiutil log.c libiscsiutil.h

libiscsiutil: Add log_warnc() and log_errc() functions

These are similar to warnc() and errc() in that they take an explicit
error code instead of using the value of the errno global.

Reviewed by:    mav, asomers
Sponsored by:   Chelsio Communications
Differential Revision:  https://reviews.freebsd.org/D48648
DeltaFile
+22-0lib/libiscsiutil/log.c
+4-0lib/libiscsiutil/libiscsiutil.h
+26-02 files

FreeBSD/src a55197csys/net if_ovpn.c

if_ovpn: fix module load in NOINET6 kernels

PR:             284459
MFC after:      2 weeks
Sponsored by:   Rubicon Communications, LLC ("Netgate")
DeltaFile
+1-1sys/net/if_ovpn.c
+1-11 files

FreeBSD/src 491f5e3sbin/pfctl parse.y, share/man/man5 pf.conf.5

pf: add 'allow-related' to always allow SCTP multihome extra connections

Allow users to choose to allow permitted SCTP connections to set up additional
multihomed connections regardless of the ruleset. That is, allow an already
established connection to set up flows that would otherwise be disallowed.

In case of if-bound connections we initially set the extra associations to
be floating, because we don't know what path they'll be taking when they're
created. Once we see the first traffic we can bind them.

MFC after:      2 weeks
Sponsored by:   Orange Business Services
Differential Revision:  https://reviews.freebsd.org/D48453

(cherry picked from commit e4f2733df8c9d2fd0c5e8fdc8bec002bf39811f3)
DeltaFile
+76-0tests/sys/netpfil/pf/sctp.py
+34-3sys/netpfil/pf/pf.c
+20-2sbin/pfctl/parse.y
+5-1share/man/man5/pf.conf.5
+1-0sys/netpfil/pf/pf.h
+1-0sys/net/pfvar.h
+137-66 files

FreeBSD/src 4557b16sys/netpfil/pf pf.c

pf: verify SCTP v_tag before updating connection state

Make it harder to manipulate the firewall state by verifying the v tag before we
update states.

MFC after:      2 weeks
Sponsored by:   Orange Business Services

(cherry picked from commit 4713d2fd5663eb64aa582dabced21d253c901a66)
DeltaFile
+7-7sys/netpfil/pf/pf.c
+7-71 files

FreeBSD/src fc167e9sys/netpfil/pf pf_norm.c

pf: verify that ABORT chunks are not mixed with DATA chunks

RFC4960 3.3.7: DATA chunks MUST NOT be bundled with ABORT.

MFC after:      2 weeks
Sponsored by:   Orange Business Services

(cherry picked from commit 541ea3d7828e0ede161ac2d8ef3e8419657ef5cb)
DeltaFile
+8-0sys/netpfil/pf/pf_norm.c
+8-01 files