FreeBSD/src 9365a32share/man/man7 ports.7

ports.7: Fix example of passing variables on the command line

make(1)'s -D flag does not allow for setting the value of the variable.
It just defines the variable and sets its value to 1. In fact, make(1)
treats "=" as just another character in the variable name:

```
$ make -DA=2 -V A  # Output is just an empty line.

$ make -DA=2 -V A=2  # Variable "A=2" is defined and set to "1".
1
```

Fixes:  d25f7d324a9d ports.7: Document DEBUG_FLAGS and the process of debugging ports
MFC after:      3 days
DeltaFile
+2-2share/man/man7/ports.7
+2-21 files

FreeBSD/src 80661e2stand/efi/loader bootinfo.c copy.c

loader/efi: fix non-x86 build

Pointy hat to:  vexeduxr
Reported by:    Bakul Shah
DeltaFile
+1-1stand/efi/loader/bootinfo.c
+2-0stand/efi/loader/copy.c
+3-12 files

FreeBSD/src 275f7d7sys/dev/ixgbe ixgbe_e610.c

ixgbe: Remove unused function ixgbe_is_media_cage_present

Remove the unused function ixgbe_is_media_cage_present that
generates a compiler warning.

Signed-off-by: Yogesh Bhosale yogesh.bhosale at intel.com

Reported by:    markj
MFC after:      3 days
Differential Revision:  https://reviews.freebsd.org/D52467
DeltaFile
+0-34sys/dev/ixgbe/ixgbe_e610.c
+0-341 files

FreeBSD/src 685e60eusr.sbin/ngctl main.c

ngctl: Fix build without JAIL

Reported by:    Michael Dexter
Fixes:          72d01e62b082 netgraph: teach ngctl to attach and run itself in a jail
MFC after:      1 day
DeltaFile
+4-0usr.sbin/ngctl/main.c
+4-01 files

FreeBSD/src 90593b1share/man/man8 nanobsd.8, tools/tools/nanobsd nanobsd.sh

nanobsd: Expose do_image_prep on command line

do_image_prep will skip the customizations and other image prep that's
the same each time. It was just set before for -I. Expose it now with -p
which doesn't have the other side effects. Also, fix a bug where early
customization was run in this case. We don't want that run multiple
times when building an image from an existing tree or when skipping
image prep (there's no reason to make it a separate hook). Also change
example small media from Compact Flash to SD Card (though maybe it
should be microSD card, eMMC or similar, but that's getting too
verbose).

Sponsored by:           Netflix
DeltaFile
+10-2tools/tools/nanobsd/nanobsd.sh
+7-3share/man/man8/nanobsd.8
+17-52 files

FreeBSD/src 0833a3ftools/tools/nanobsd nanobsd.sh

nanobsd: Alphebetize -I

Put -I in its proper place alphabetically

Sponsored by:           Netflix
DeltaFile
+9-9tools/tools/nanobsd/nanobsd.sh
+9-91 files

FreeBSD/src f113980usr.sbin/cpucontrol cpucontrol.h

cpucontrol: fix -DDEBUG build
DeltaFile
+1-0usr.sbin/cpucontrol/cpucontrol.h
+1-01 files

FreeBSD/src 7939badconfig kernel-dentry-operations.m4, include/os/linux/kernel/linux dcache_compat.h

Linux 6.17: d_set_d_op() is no longer available

We only have extremely narrow uses, so move it all into a single
function that does only what we need, with and without d_set_d_op().

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Reviewed-by: Tony Hutter <hutter2 at llnl.gov>
Signed-off-by: Rob Norris <robn at despairlabs.com>
Closes #17621
DeltaFile
+48-7module/os/linux/zfs/zpl_ctldir.c
+0-26include/os/linux/kernel/linux/dcache_compat.h
+7-3config/kernel-dentry-operations.m4
+55-363 files

FreeBSD/src 9e5e95cconfig kernel-dentry-operations.m4 kernel.m4

config: restore ZFS_AC_KERNEL_DENTRY tests

Accidentally removed calls in ed048fdc5b.

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Reviewed-by: Tony Hutter <hutter2 at llnl.gov>
Signed-off-by: Rob Norris <robn at despairlabs.com>
Closes #17621
DeltaFile
+0-2config/kernel-dentry-operations.m4
+2-0config/kernel.m4
+2-22 files

FreeBSD/src 4b83891tests/zfs-tests/tests/functional/fault fault_limits.ksh

ZTS: Fix fault_limits timeouts

fault_limits would often hit the 10min timeout and be killed on Fedora
41-42.  Investigation showed that the 'fill_fs' portion of the test,
which would fill the pool with junk data before vdev replacement, was
writing highly compressible data (~126x), which would have taxed the
CPUs, potentially causing the timeout.

The fix is to write random data and reduce the number of writes.
This has an added benefit that more real data being is written to the
pool (~1GB) vs the old way (~300-400MB).  It also speeds up the test.

Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Reviewed-by: Alexander Motin <alexander.motin at TrueNAS.com>
Reviewed-by: Paul Dagnelie <paul.dagnelie at klarasystems.com>
Signed-off-by: Tony Hutter <hutter2 at llnl.gov>
Closes #17709
DeltaFile
+1-1tests/zfs-tests/tests/functional/fault/fault_limits.ksh
+1-11 files

FreeBSD/src 0adec3dusr.sbin/freebsd-update freebsd-update.sh

freebsd-update: sort options alphabetically

This helps future developers when adding additional options handlers in the
surrounding blocks.

This is effectively a no-op.

MFC after:      1 month
DeltaFile
+4-4usr.sbin/freebsd-update/freebsd-update.sh
+4-41 files

FreeBSD/src cc6e21crelease/tools oracle.conf

release: Remove a duplicate package listing in oracle.conf

sysutils/panicmail is specified again several lines down.

MFC after:      1 week
Sponsored by:   The FreeBSD Foundation
Sponsored by:   Klara, Inc.
DeltaFile
+0-1release/tools/oracle.conf
+0-11 files

FreeBSD/src d8d5324lib/libjail jail.c, sys/kern kern_jail.c kern_jaildesc.c

jaildesc: fix typo and style(9) violations.

Reported by:    kib
MFC after:      3 days
DeltaFile
+18-18sys/kern/kern_jail.c
+13-13sys/kern/kern_jaildesc.c
+8-8lib/libjail/jail.c
+39-393 files

FreeBSD/src 9a69781share/man/man4 syncache.4

syncache.4: add missing information

Add the description for one sysctl-variable and three counters provided
by netstat.

Reviewed by:            gbe, rscheff
Sponsored by:           Netflix, Inc.
Differential Revision:  https://reviews.freebsd.org/D52226

(cherry picked from commit bed2299823b8173fd791c0bbacc75ac224cecc0a)
DeltaFile
+27-2share/man/man4/syncache.4
+27-21 files

FreeBSD/src 31c467dsys/netinet tcp_syncache.c

tcp: improve sending of SYN-cookies

Ensure that when the sysctl-variable net.inet.tcp.syncookies_only is
non zero, SYN-cookies are sent and no SYN-cache entry is added to the
SYN-cache. In particular, this behavior should not depend on the value
of the sysctl-variable net.inet.tcp.syncookies, which controls whether
SYN cookies are used in combination with the SYN-cache to deal with
bucket overflows.
Also ensure that tcps_sc_completed does not include TCP connections
established via a SYN-cookie.
While there, make V_tcp_syncookies and V_tcp_syncookiesonly bool
instead of int, since they are used as boolean variables.

Reviewed by:            rscheff, cc, Peter Lei, Nick Banks
Sponsored by:           Netflix, Inc.
Differential Revision:  https://reviews.freebsd.org/D52225

(cherry picked from commit 7b57f2513361fb98fd5e2262f130989fe65946c6)
DeltaFile
+46-39sys/netinet/tcp_syncache.c
+46-391 files

FreeBSD/src 16f600dlib/libsys jail.2, sys/kern kern_jaildesc.c

jaildesc: replace EBADF with EINVAL

Following fd9e09cb, EBADF is not the suitable error code for a non-
jail descriptor passed to jail_set, jail_get, jail_attach_fd, and
jail_remove_fd.

Reported by:    kib
DeltaFile
+6-20lib/libsys/jail.2
+1-1sys/kern/kern_jaildesc.c
+7-212 files

FreeBSD/src 1b72d27sys/netinet tcp_syncache.c

tcp: unlock before syncookie_expand()

The function doesn't need a lock on sch.  It uses the pointer as value for
the SipHash calculation.

Reviewed by:            tuexen
Differential Revision:  https://reviews.freebsd.org/D50898

(cherry picked from commit 0809d26de24defdc4a2ae161357566c02dc163d1)
DeltaFile
+3-4sys/netinet/tcp_syncache.c
+3-41 files

FreeBSD/src ea5560fsys/netinet tcp_syncache.c

tcp: increase tcps_sc_recvcookie only in the syncache_expand()

The syncookie_expand() is called from syncookie_cmp() in INVARIANTS mode
to confirm that values calculated via syncookies mechanism match those
stored in the syncache entry.  This creates a counting bug, that with
INVARIANTS every successful use of syncache also counts as use of a
syncookie.

Reviewed by:            tuexen
Differential Revision:  https://reviews.freebsd.org/D50897

(cherry picked from commit 3ed8d5645dd42a7c080ba800cf6d25cb7e147d7e)
DeltaFile
+3-2sys/netinet/tcp_syncache.c
+3-21 files

FreeBSD/src f5d8084sys/netinet tcp_syncache.c

tcp: refactor debug function syncookie_cmp()

- Don't bzero() the test structure.  All fields checked are set by
  syncache_expand().
- Don't allocate TCP address logging string if there is nothing to report.
- Mark hash bucket argument as pointer to const.
- Make it void.

Differential Revision:  https://reviews.freebsd.org/D50896

(cherry picked from commit e9e6a025b4523c9aa2885e892495601964e03056)
DeltaFile
+22-21sys/netinet/tcp_syncache.c
+22-211 files

FreeBSD/src d6849a3sys/netinet tcp_syncache.c

tcp: rename syncookie_lookup() into syncookie_expand() and make it bool

This function always returns the same pointer it was passed.  With new
name and return type the code is easier to understand.  Mark the hash
bucket argument as pointer to const, since function doesn't modify it,
just uses value as integer.  No functional changes.

Reviewed by:            tuexen
Differential Revision:  https://reviews.freebsd.org/D50895

(cherry picked from commit 6538742c1aaca3ce522ccea95007dfa9686c78dd)
DeltaFile
+13-11sys/netinet/tcp_syncache.c
+13-111 files

FreeBSD/src 46347b3sys/dev/ixgbe if_ix.c

ixgbe: Fix incomplete speed coverage in link status logging

Originally ixgbe_if_update_admin_status() only handled 1G and 10G speeds,
causing any other speeds to display as "1 Gbps" in link status logs.

This issue is fixed by adding link speed to string conversion logic through
the introduction of a helper function, ixgbe_link_speed_to_str(), which
corrects the misleading logs to reflect accurate link speeds.

Signed-off-by: Yogesh Bhosale yogesh.bhosale at intel.com

PR:             288960
Reported by:    Mike Belanger - QNX
MFC after:      3 days
Differential Revision:  https://reviews.freebsd.org/D52442
DeltaFile
+31-3sys/dev/ixgbe/if_ix.c
+31-31 files

FreeBSD/src 101a35estand/efi/boot1 boot1.c, stand/efi/loader efi_main.c

efi: translate errno to EFI status on exit

Translate the given errno to an efi status instead of always exiting
with EFI_LOAD_ERROR.
DeltaFile
+2-2stand/efi/boot1/boot1.c
+1-1stand/efi/loader/efi_main.c
+3-32 files

FreeBSD/src 1814196stand/efi/loader main.c

loader/efi: remove is_last parameter from find_currdev

It is unused.

Reviewed by:    tsoome
Differential Revision:  https://reviews.freebsd.org/D52434
DeltaFile
+3-6stand/efi/loader/main.c
+3-61 files

FreeBSD/src b4c5d58stand/efi/loader main.c

loader/efi: plug memory leak

Reviewed by:    tsoome
Differential Revision:  https://reviews.freebsd.org/D52433
DeltaFile
+2-0stand/efi/loader/main.c
+2-01 files

FreeBSD/src cd9b43estand/efi/loader framebuffer.c

loader/efi: return error from efi_find_framebuffer

Also return actual errno values in other code paths.
(suggested by tsoome)

Reviewed by:    tsoome, imp
Differential Revision:  https://reviews.freebsd.org/D52432
DeltaFile
+5-2stand/efi/loader/framebuffer.c
+5-21 files

FreeBSD/src 7d48a56stand/common gfx_fb.c, stand/efi/loader main.c bootinfo.c

stand: remove unused variables
DeltaFile
+2-5stand/efi/loader/main.c
+1-2stand/efi/loader/bootinfo.c
+0-2stand/efi/loader/arch/amd64/multiboot2.c
+1-1stand/efi/loader/copy.c
+0-1stand/common/gfx_fb.c
+0-1stand/efi/loader/arch/amd64/trap.c
+4-126 files

FreeBSD/src d81b84dstand/efi/loader Makefile

loader/efi: build with -Wall

Reviewed by:    tsoome
Differential Revision:  https://reviews.freebsd.org/D52431
DeltaFile
+1-0stand/efi/loader/Makefile
+1-01 files

FreeBSD/src e29bfa5module/icp/algs/sha2 sha256_impl.c sha512_impl.c

Fix warnings about sha2_is_supported on FreeBSD/i386

This is one problem currently preventing OpenZFS from building on
FreeBSD/i386.

Reviewed-by: Alexander Motin <alexander.motin at TrueNAS.com>
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by:  Alan Somers <asomers at gmail.com>
Sponsored by:   ConnectWise
Closes #17704
DeltaFile
+3-0module/icp/algs/sha2/sha256_impl.c
+3-0module/icp/algs/sha2/sha512_impl.c
+6-02 files

FreeBSD/src 9bfbc68usr.bin/sockstat main.c

sockstat: fix the -j option with piped output after libxo integration

The legacy code handling -j in display() was causing xo_finish() to be
skipped.  It has also been causing a memory leak since 0726c6574f8
(sockstat: Add automatic column sizing and remove -w option)

Fixes:          7b35b4d1963 (sockstat: add libxo support)
MFC after:      1 week
Reported by:    glebius
Reviewed by:    glebius
Sponsored by:   ConnectWise
Pull Request:   https://github.com/freebsd/freebsd-src/pull/1842
DeltaFile
+2-1usr.bin/sockstat/main.c
+2-11 files

FreeBSD/src faf7e99sys/kern kern_proc.c

'kern.proc.groups' sysctl knob: Restore outputting the effective GID

In particular, fixes 'procstat -s' on a live system (for processes with
more than 16 groups).

Reviewed by:    kib, emaste
Fixes:          be1f7435ef218b1d ("kern: start tracking cr_gid outside of cr_groups[]")
MFC after:      9 days
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D52261
DeltaFile
+5-2sys/kern/kern_proc.c
+5-21 files