FreeBSD/src 14b9955secure/lib/libcrypto/modules Makefile.inc

libcrypto: compile all PIC objects with -DOPENSSL_PIC

This change modifies the libcrypto PIC objects to always compile with
`-DOPENSSL_PIC` to restore parity with the upstream build process. This
ensures that `-DOPENSSL_PIC` is used whenever building the auxiliary
shared objects. In this case, just the legacy provider (we no longer
distribute the fips provider).

MFC after:              2 weeks
Differential Revision:  https://reviews.freebsd.org/D44896
DeltaFile
+2-0secure/lib/libcrypto/modules/Makefile.inc
+2-01 files

FreeBSD/src f979561sys/modules/ath11k Makefile

ath11k: restore module Makefile

During the subtree merge and checking out the updated version of ath12k
parts of the previous ath11k merge were accidentally undone.
Retore the ath11k Makefile as well after 3c4eef5d838b restored the
driver bits.

Fixes:          a96550206e4b ("ath12k: update Atheros/QCA's ath12k ..")
Sponsored by:   The FreeBSD Foundation
MFC after:      3 days
DeltaFile
+43-20sys/modules/ath11k/Makefile
+43-201 files

FreeBSD/src 3c4eef5sys/contrib/dev/athk/ath11k mac.c pci.c

ath11k: reduce diff to upstream Atheros/QCA's ath11k driver

It seems that over the time of merging and only partly working
on making it compile again a few mis-merges happened.
Reduce diff to the v6.19 upstream version so that we only have
additions to the driver (usually guarded by #ifdef __FreeBSD__).

Sponsored by:   The FreeBSD Foundation
MFC after:      3 days
DeltaFile
+316-139sys/contrib/dev/athk/ath11k/mac.c
+52-4sys/contrib/dev/athk/ath11k/pci.c
+19-19sys/contrib/dev/athk/ath11k/hal.h
+15-7sys/contrib/dev/athk/ath11k/wmi.c
+9-9sys/contrib/dev/athk/ath11k/pci.h
+3-15sys/contrib/dev/athk/ath11k/wmi.h
+414-1931 files not shown
+415-1947 files

FreeBSD/src 03ba27csys/modules/ath12k Makefile

ath12k: update module Makefile after vendor import of v6.19

Sponsored by:   The FreeBSD Foundation
MFC after:      3 days
DeltaFile
+32-6sys/modules/ath12k/Makefile
+32-61 files

FreeBSD/src a965502sys/contrib/dev/athk/ath12k mac.c debugfs_htt_stats.c

ath12k: update Atheros/QCA's ath12k driver

This version is based on
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
05f7e89ab9731565d8a62e3b5d1ec206485eeb0b ( tag: v6.19 ).

Sponsored by:   The FreeBSD Foundation
MFC after:      3 days
DeltaFile
+9,336-1,825sys/contrib/dev/athk/ath12k/mac.c
+6,178-0sys/contrib/dev/athk/ath12k/debugfs_htt_stats.c
+4,684-353sys/contrib/dev/athk/ath12k/wmi.c
+2,346-505sys/contrib/dev/athk/ath12k/dp_mon.c
+2,076-0sys/contrib/dev/athk/ath12k/debugfs_htt_stats.h
+1,814-206sys/contrib/dev/athk/ath12k/wmi.h
+26,434-2,88965 files not shown
+42,804-5,61571 files

FreeBSD/src 09cacabsys/modules/ath11k Makefile

ath11k: update module Makefile after vendor import of v6.19[-rc6]

Sponsored by:   The FreeBSD Foundation
MFC after:      3 days
DeltaFile
+43-20sys/modules/ath11k/Makefile
+43-201 files

FreeBSD/src 187d8a3sys/contrib/dev/athk/ath11k mac.c hal.h

ath11k: update Atheros/QCA's ath11k driver

This version is based on
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
24d479d26b25bce5faea3ddd9fa8f3a6c3129ea7 ( tag: v6.19-rc6 ).

Sponsored by:   The FreeBSD Foundation
MFC after:      3 days
DeltaFile
+316-139sys/contrib/dev/athk/ath11k/mac.c
+19-19sys/contrib/dev/athk/ath11k/hal.h
+19-1sys/contrib/dev/athk/ath11k/pci.c
+13-7sys/contrib/dev/athk/ath11k/wmi.c
+9-9sys/contrib/dev/athk/ath11k/pci.h
+3-15sys/contrib/dev/athk/ath11k/wmi.h
+379-1901 files not shown
+380-1917 files

FreeBSD/src 80aae8asys/contrib/openzfs/cmd/zdb zdb.c, sys/contrib/openzfs/config toolchain-simd.m4

zfs: merge openzfs/zfs at 3ee08abd2

Notable upstream pull request merges:
 #17000 -multiple cmd/zfs: support creating parents with canmount=no
 #17926 b481a8bbb Make zpool status dedup table support raw bytes -p output
 #18238 -multiple Report space metrics per allocation class
 #18240 5dad9459d Add --no-preserve-encryption flag
 #18257 1eace5906 libzfs: use mount_setattr for selective remount including
                  legacy mounts
 #18259 1e2c94a04 More consistent use of TREE_* macros in AVL comparators
 #18262 c58b8b7dc Fix check for .cfi_negate_ra_state on aarch64
 #18264 f109c7bb9 Add the --file-layout (-f) option to zdb(8)
 #18268 304de7f19 libzfs: handle EDOM error in zpool_create
 #18275 753f1e1e2 zstream: add a drop_record subcommand
 #18276 0f90a797d Fix vdev_rebuild_range() tx commit
 #18277 1e1d64d66 Fix log vdev removal issues
 #18278 06b0abfe6 Fix the send --exclude option to work with encryption
 #18281 e73ada771 libzpool: lift zfs_file ops out to separate source file
 #18284 d97945776 zstream: consolidate shared code

    [19 lines not shown]
DeltaFile
+73-565sys/contrib/openzfs/config/toolchain-simd.m4
+421-148sys/contrib/openzfs/lib/libzfs/libzfs.abi
+420-0sys/contrib/openzfs/lib/libzpool/zfs_file_os.c
+416-0sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_get/zpool_get_006_pos.ksh
+0-388sys/contrib/openzfs/lib/libzpool/kernel.c
+362-21sys/contrib/openzfs/cmd/zdb/zdb.c
+1,692-1,122176 files not shown
+6,025-2,882182 files

FreeBSD/src 56dddebsys/netinet6 ip6_input.c

ip6_input: Remove unused check for IPv4-compatible IPv6

IPv4-compatible IPv6 addresses are deprecated by RFC 4291.
No functional change intended.

Reviewed by: glebius, emaste
Differential Revision: https://reviews.freebsd.org/D55387
DeltaFile
+0-15sys/netinet6/ip6_input.c
+0-151 files

FreeBSD/src 17920f8sys/net if_bridge.c

bridge(4): Remove epoch_enter during destruction

bridge doesn't require to enter epoch during destruction.

Reviewed by: zlei, glebius
Differential Revision: https://reviews.freebsd.org/D55935
DeltaFile
+0-5sys/net/if_bridge.c
+0-51 files

FreeBSD/src 1c1b494share/man/man9 ecn.9

ecn.9: Replace non-ASCII characters

Reported by:    maxim
Fixes:          ba4298b05564 ("ecn.9: Add ecn(9) manual")
DeltaFile
+3-3share/man/man9/ecn.9
+3-31 files

FreeBSD/src 894992etools/tools/nanobsd/embedded common

nanobsd: embedded: Time stamp the code image

While there is a function nano_makefs() that already takes care of this
issue, we are not yet ready to consume it.

Just add the time stamp and FFS options to makefs.  This is done
primarily to use UFS2 (UFS version 2).  If the user needs further
customization, the variable NANO_MAKEFS can be overridden.  Timestamping
takes care of making the images bit-for-bit identical.

Reviewed by:    imp
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D54980
DeltaFile
+1-1tools/tools/nanobsd/embedded/common
+1-11 files

FreeBSD/src 5902c18tools/tools/nanobsd fill_pkg.sh defaults.sh, tools/tools/nanobsd/embedded common

nanobsd: Minor cleanup

No functional change intended.

Reviewed by:    imp
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D54979
DeltaFile
+47-51tools/tools/nanobsd/embedded/common
+6-6tools/tools/nanobsd/fill_pkg.sh
+2-2tools/tools/nanobsd/defaults.sh
+55-593 files

FreeBSD/src 60f8d36tools/tools/nanobsd/embedded common

nanobsd: embedded: Fix more regressions from last cleanup

Commit c99bb5747f5e changed "()" grouping into "{}", but in these cases
we chdir and depended on the subshell not changing the directory for the
caller.  Restore the old behavior.  While things appear to work without
this change, the previous code was intentionally structured this way.

Reviewed by:    imp
Fixes:          c99bb5747f5e ("nanobsd: minor formatting cleanup")
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D54978
DeltaFile
+6-6tools/tools/nanobsd/embedded/common
+6-61 files

FreeBSD/src 21970f2tools/tools/nanobsd/embedded common

nanobsd: embedded: Remove stray comment

Remove an outdated comment about NanoBSD not being able to remove the
firstboot sentinel file.

It was fixed in cb51e2bc3db7 ("rc: Allow the removal of
firstboot_sentinel on read-only file systems").

Reviewed by:    imp
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D54977
DeltaFile
+0-1tools/tools/nanobsd/embedded/common
+0-11 files

FreeBSD/src 5de9a54tools/tools/nanobsd/embedded common

nanobsd: embedded: Remove mtools dependency

Rely on makefs -t msdos to create the MS-DOS partition and remove the
dependency on filesystems/mtools.

Note that NANO_SLICE_FAT_SIZEs defined in sectors (ending with an "s")
are no longer supported, as a workaround the letter "b" (blocks) may be
used instead.

Reviewed by:    imp
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D54976
DeltaFile
+7-13tools/tools/nanobsd/embedded/common
+7-131 files

FreeBSD/src 68f5e5btools/tools/nanobsd/embedded common

nanobsd: embedded: Calculate FAT type and scheme

Determine the FAT (MS-DOS) type (FAT32, FAT16, or FAT12) and partition
scheme (fat32lba or fat16b) based on partition size.

Accept any (NetBSD) strsuftoll(3)-compatible string, as the value will
be fed to makefs(8) "-s" in a future commit.

NANO_SLICE_FAT_SIZEs defined in sectors (ending with an "s") will not be
supported.  As a workaround, the letter "b" (blocks) may be used.

Reviewed by:    imp
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D54975
DeltaFile
+46-3tools/tools/nanobsd/embedded/common
+46-31 files

FreeBSD/src 15ebee7sys/netinet6 nd6_nbr.c nd6.h

ndp: Accept multiple queued ND for non-GRAND NAs

Multiple delayed NAs on the same ifa can occur simultaneously.
Therefore:
* Differentiate between GRAND and solicited replies.
* Cancel previous pending GRAND NA for same ifa.
* Reuse ndq memory for GRAND.
* Free non-GRAND replies immediately.
* Don't limit non-GRAND NAs.

Reviewed by: glebius
Differential Revision: https://reviews.freebsd.org/D55905
DeltaFile
+69-51sys/netinet6/nd6_nbr.c
+4-2sys/netinet6/nd6.h
+73-532 files

FreeBSD/src 2fd7680sys/sys elf_common.h

elf_common.h: Sort SHT_ entries

Reviewed by:    jrtc27
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D55488

(cherry picked from commit 0ff08b8c402b3c555125e4c72df0b80b4d084d56)
(cherry picked from commit acf90e2e337572737e73567eacf655e44df760c0)
DeltaFile
+3-2sys/sys/elf_common.h
+3-21 files

FreeBSD/src f31a668sys/sys elf_common.h

sys: Restore sorting in sys/elf_common.h

These various definitions are meant to be kept sorted by machine prefix.

Fixes:  2bb61497ca76 ("elf_common.h: Add definitions for LoongArch ELF files")
(cherry picked from commit b7ef4f4b230f01968473269f280bd7e4e86a3ec9)
(cherry picked from commit 2b6ba65cee4e2e4f0cddfb32c4e21b6e20fa89e6)
DeltaFile
+175-0sys/sys/elf_common.h
+175-01 files

FreeBSD/src d478715usr.bin/clang llvm.prog.mk

llvm: Link cross-tools with static libllvm.a

We generally use TOOLS_PREFIX being set to indicate that we are building
in the cross-build tools stage.  This check was missing for llvm.prog.mk
consumers other than *tblgen, which have not previously been built as
cross tools.

Reviewed by:    dim
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D55930
DeltaFile
+1-1usr.bin/clang/llvm.prog.mk
+1-11 files

FreeBSD/src bd5ce67sys/dev/sound/pcm feeder_volume.c

sound: enforce MASTER volume mute during playback

MASTER mute (vol.mute) works while audio is playing. However, if a
stream is stopped and restarted (PCMTRIG_STOP -> PCMTRIG_START), the
audio will resume even though the mixer shows the MASTER volume as
muted. Other streams that are already playing remain silent. New streams
may also start playing audio regardless of the MASTER mute state.

The volume feeder now considers the MASTER mute when determining whether
a channel should be muted. This ensures MASTER mute is consistently
enforced for all streams and removes the dependency on trigger-driven
state propagation.

Tested with Creative Labs CA0132 card.

MFC after:      1 week
Reviewed by:    christos
Differential Revision:  https://reviews.freebsd.org/D55605

(cherry picked from commit ac5ff2813027c385f9037b47b2b164d4c1bebd09)
DeltaFile
+10-1sys/dev/sound/pcm/feeder_volume.c
+10-11 files

FreeBSD/src ba4298bshare/man/man9 ecn.9 Makefile

ecn.9: Add ecn(9) manual

Add ecn manual for ip_ecn tunneling functions.

Reviewed by: pauamma_gundo.com, tuexen
Differential Revision: https://reviews.freebsd.org/D53517
DeltaFile
+184-0share/man/man9/ecn.9
+5-0share/man/man9/Makefile
+189-02 files

FreeBSD/src 32a462bsys/netinet ip_ecn.c ip_ecn.h, sys/netinet6 ip6_ecn.h

ecn(9): Update ecn tunneling functions to RFC 6040

Update ECN tunneling functions from obsolete RFC 3168 to
newer RFC 6040.
Also, add ECN_COMPLETE to support dangerous packet reporting
without causing extra costs to existing caller functions.
Finally, return values are specified as macro to reduce
confusion, considering extra return values for ECN_WARN
and ECN_ALARM were added.

Reviewed By: glebius, tuexen
Differential Revision: https://reviews.freebsd.org/D53516
DeltaFile
+98-55sys/netinet/ip_ecn.c
+10-7sys/netinet/ip_ecn.h
+0-5sys/netinet6/ip6_ecn.h
+108-673 files

FreeBSD/src 99d295elib/libc/stdlib realpath.c

realpath: Improve prev_len logic

* Save prev_len after having checked for and appended a trailing slash,
  not before.  This requires us to back up if we end up returning a
  partial result, but previously we would sometimes return a partial
  result with a trailing slash and sometimes without.

* Replace strlcat() with a faster strlcpy() since we know exactly how
  far into the buffer we are.

MFC after:      1 week
Sponsored by:   Klara, Inc.
Reviewed by:    kevans
Differential Revision:  https://reviews.freebsd.org/D55914
DeltaFile
+7-3lib/libc/stdlib/realpath.c
+7-31 files

FreeBSD/src 1aecb32lib/libc/stdlib realpath.3

realpath: Improve manual page

* Try to make the RETURN VALUES section flow better.

* Add basename(3), dirname(3), free(3) to the SEE ALSO section.

* Drop the CAVEATS section, which was obsolete the moment realpath(3)
  was added to the Single Unix Specification in 1994.

MFC after:      1 week
Sponsored by:   Klara, Inc.
Reviewed by:    kevans
Differential Revision:  https://reviews.freebsd.org/D55928
DeltaFile
+12-24lib/libc/stdlib/realpath.3
+12-241 files

FreeBSD/src dad6e6fsys/vm vm_mmap.c

Provide more precise error explanations for mmap(2) EINVAL errors.

Reviewed by:  kib
Differential Revision: https://reviews.freebsd.org/D55888
MFC-after:    1 week
Sponsored by: Netflix
DeltaFile
+23-13sys/vm/vm_mmap.c
+23-131 files

FreeBSD/src 51446d3sys/vm vm_mmap.c

Delete error-check code that can never happen.

Near the top of kern_mmap() that implements the mmap(2) system call,
it sets

        prot = PROT_EXTRACT(prot);

with

So prot can only be the three PROT_ flags.

The following test of the user's mmap(2) parameters (near line 275
in vm/vm_mmap.c):

        if (prot != PROT_NONE &&
            (prot & ~(PROT_READ | PROT_WRITE | PROT_EXEC)) != 0) {
                return (EXTERROR(EINVAL, "invalid prot %#jx", prot));
        }


    [7 lines not shown]
DeltaFile
+0-4sys/vm/vm_mmap.c
+0-41 files

FreeBSD/src 8f41ee9sys/dev/cxgbe/common t4_hw.c

cxgbe(4): decode the T7 MC interrupt correctly

The layout for the main INT_CAUSE is a bit different for T7.

MFC after:      1 week
Sponsored by:   Chelsio Communications
DeltaFile
+10-0sys/dev/cxgbe/common/t4_hw.c
+10-01 files

FreeBSD/src 6317122sys/dev/cxgbe/common t4_hw.c

cxgbe(4): adjustments to the output of the slow interrupt handler

- Display an appropriate alert character instead of a question mark for
  unknown bits.
- Display all fatal bits for a register and not just the ones that are
  currently set.

MFC after:      1 week
Sponsored by:   Chelsio Communications
DeltaFile
+5-4sys/dev/cxgbe/common/t4_hw.c
+5-41 files