HardenedBSD/src 582c0e7lib/clang llvm.build.mk, lib/libc/arm/gen arm_drain_writebuf.2

Merge branch 'freebsd/current/main' into hardened/current/master
DeltaFile
+0-30sys/arm/arm/debug_monitor.c
+2-6lib/libsys/arm/__vdso_gettc.c
+1-4lib/libc/arm/gen/arm_drain_writebuf.2
+1-4sys/arm/include/vmparam.h
+2-2lib/clang/llvm.build.mk
+1-1sys/arm/arm/machdep_boot.c
+7-473 files not shown
+8-529 files

HardenedBSD/src 57c0a33lib/libsys/arm __vdso_gettc.c

libsys: remove armv6 hack

Signed-off-by: Minsoo Choo <minsoochoo0122 at proton.me>
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1903
DeltaFile
+2-6lib/libsys/arm/__vdso_gettc.c
+2-61 files

HardenedBSD/src f3607f5lib/clang llvm.build.mk

clang: remove armv6 comment

Signed-off-by: Minsoo Choo <minsoochoo0122 at proton.me>
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1903
DeltaFile
+2-2lib/clang/llvm.build.mk
+2-21 files

HardenedBSD/src 53da093lib/libc/arm/gen arm_drain_writebuf.2

libc: remove ARMv5/6 from man page

Signed-off-by: Minsoo Choo <minsoochoo0122 at proton.me>
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1903
DeltaFile
+1-4lib/libc/arm/gen/arm_drain_writebuf.2
+1-41 files

HardenedBSD/src 3387a1bsys/arm/arm machdep_boot.c

sys: update comment for removal of armv6

Signed-off-by: Minsoo Choo <minsoochoo0122 at proton.me>
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1903
DeltaFile
+1-1sys/arm/arm/machdep_boot.c
+1-11 files

HardenedBSD/src f424213sys/arm/arm debug_monitor.c

sys: remove armv6/6.1 support from debug monitor

Signed-off-by: Minsoo Choo <minsoochoo0122 at proton.me>
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1903
DeltaFile
+0-30sys/arm/arm/debug_monitor.c
+0-301 files

HardenedBSD/src 42d704bsys/arm/include vmparam.h param.h

sys: remove comment for armv5/6

Signed-off-by: Minsoo Choo <minsoochoo0122 at proton.me>
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1903
DeltaFile
+1-4sys/arm/include/vmparam.h
+0-2sys/arm/include/param.h
+1-62 files

HardenedBSD/src 96265d5release Makefile.mirrors

release: match comment for if statement

Signed-off-by: Minsoo Choo <minsoochoo0122 at proton.me>
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1903
DeltaFile
+1-1release/Makefile.mirrors
+1-11 files

HardenedBSD/src 37c650btools/build/options WITH_LIBSOFT

tools: remove WITH_LIBSOFT option

This is only used for armv6, which as been removed since FreeBSD 15.

Signed-off-by: Minsoo Choo <minsoochoo0122 at proton.me>
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1903
DeltaFile
+0-2tools/build/options/WITH_LIBSOFT
+0-21 files

HardenedBSD/src 409913eetc/mtree BSD.usr.dist BSD.lib32.dist, share/man/man3 unreachable.3

Merge branch 'freebsd/current/main' into hardened/current/master
DeltaFile
+23-2share/man/man4/umass.4
+2-2etc/mtree/BSD.usr.dist
+2-2etc/mtree/BSD.lib32.dist
+1-1sys/sys/_types.h
+1-0share/man/man3/unreachable.3
+29-75 files

HardenedBSD/src 488a29dshare/man/man4 ix.4, sys/dev/e1000 if_em.c

Merge branch 'freebsd/14-stable/main' into hardened/14-stable/master
DeltaFile
+521-0sys/dev/ixgbe/if_ix.c
+29-26usr.bin/beep/beep.1
+52-0sys/dev/ixgbe/ixgbe.h
+20-14sys/dev/e1000/if_em.c
+32-1share/man/man4/ix.4
+11-10usr.bin/beep/beep.c
+665-511 files not shown
+666-517 files

HardenedBSD/src 5cfa2d2share/man/man4 ix.4, sys/dev/e1000 if_em.c

Merge branch 'freebsd/15-stable/main' into hardened/15-stable/main
DeltaFile
+521-0sys/dev/ixgbe/if_ix.c
+29-26usr.bin/beep/beep.1
+52-0sys/dev/ixgbe/ixgbe.h
+20-14sys/dev/e1000/if_em.c
+30-0tests/sys/netpfil/pf/nat.sh
+29-0share/man/man4/ix.4
+681-403 files not shown
+705-549 files

HardenedBSD/src 4c10ec9usr.bin/beep beep.1 beep.c

beep: Sort usage and man page options

Sort usage and man page options, mention possible minimum and maximum
values, fix punctuation marks, and cleanup the man page.

PR:             291092
Reviewed by:    pauamma_gundo.com, christos
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D53827

(cherry picked from commit 55d98b024f25403f60efe04f90a391014b6bc388)
DeltaFile
+29-26usr.bin/beep/beep.1
+11-10usr.bin/beep/beep.c
+40-362 files

HardenedBSD/src 6bda365usr.bin/beep beep.1 beep.c

beep: Sort usage and man page options

Sort usage and man page options, mention possible minimum and maximum
values, fix punctuation marks, and cleanup the man page.

PR:             291092
Reviewed by:    pauamma_gundo.com, christos
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D53827

(cherry picked from commit 55d98b024f25403f60efe04f90a391014b6bc388)
DeltaFile
+29-26usr.bin/beep/beep.1
+11-10usr.bin/beep/beep.c
+40-362 files

HardenedBSD/src 3d91a74etc/mtree BSD.usr.dist BSD.lib32.dist

mtree: Keep mtree files indented with spaces

The mtree tool indents directory entries with 4 spaces.

Reviewed by:    imp
Fixes:          9cab9fde5eda ("virtual_oss: Port to base")
MFC after:      3 days
Differential Revision:  https://reviews.freebsd.org/D53979
DeltaFile
+2-2etc/mtree/BSD.usr.dist
+2-2etc/mtree/BSD.lib32.dist
+4-42 files

HardenedBSD/src 233ddc5share/man/man3 unreachable.3

unreachable.3: add missing brace in example

Reported by:    alc
Approved by:    markj (mentor)
MFC after:      1 month
Fixes:          b381d0980221b476cadbef862a8e5973d675fb7a
See also:       D53967
DeltaFile
+1-0share/man/man3/unreachable.3
+1-01 files

HardenedBSD/src f28019fshare/man/man4 ix.4

ix.4: Document E610 debug dump

Explain how to collect E610 device debug dump data with sysctl for
troubleshooting with Intel Customer Support.

Fixes:                  2170400142b9 (Add support for debug dump)
Reviewed by:            bcr, erj (previous version), ziaee
Signed-off-by:          Yogesh Bhosale <yogesh.bhosale at intel.com>
Differential Revision:  https://reviews.freebsd.org/D52990

(cherry picked from commit 8225ed665eea69b3df3ea57009cf8fe61863c1fc)
DeltaFile
+29-0share/man/man4/ix.4
+29-01 files

HardenedBSD/src e7da904share/man/man4 ix.4

ix.4: Add E610 to HARDWARE section

Reviewed by:            ziaee
Fixes:                  dea5f973d0c8 (new Intel Ethernet E610 family)
Differential Revision:  https://reviews.freebsd.org/D52990

(cherry picked from commit abd53b16c03f77c12bb8b77d9e2e4cf392745361)
DeltaFile
+3-1share/man/man4/ix.4
+3-11 files

HardenedBSD/src d6a05d3sys/dev/ixgbe if_ix.c ixgbe.h

ix(4): Add support for debug dump for E610 adapters

This is part 2 of the support for the new Intel Ethernet E610 family of devices.

Intel E610 Ethernet Controller devices feature a debug dump capability
that allows you to capture runtime register values directly from the
hardware, with assistance from the firmware. These registers are
organized into clusters based on their function, enabling targeted
debugging. This information is consolidated into a single dump file,
facilitating the debugging of complex issues encountered in the field.
The debug dump provides a snapshot of the device's current hardware
configuration, including switch tables, transmit scheduler tables, and
other relevant data. It captures the state of specified clusters and
serves as a stateless snapshot of the entire device.

This update introduces ioctl and sysctl support for the debug dump feature.

Signed-off-by: Yogesh Bhosale yogesh.bhosale at intel.com
Co-developed-by: Krzysztof Galazka krzysztof.galazka at intel.com

    [7 lines not shown]
DeltaFile
+521-0sys/dev/ixgbe/if_ix.c
+52-0sys/dev/ixgbe/ixgbe.h
+1-0sys/dev/ixgbe/ixgbe_features.h
+574-03 files

HardenedBSD/src 283162bshare/man/man4 ix.4

ix.4: Document E610 debug dump

Explain how to collect E610 device debug dump data with sysctl for
troubleshooting with Intel Customer Support.

Fixes:                  2170400142b9 (Add support for debug dump)
Reviewed by:            bcr, erj (previous version), ziaee
Signed-off-by:          Yogesh Bhosale <yogesh.bhosale at intel.com>
Differential Revision:  https://reviews.freebsd.org/D52990

(cherry picked from commit 8225ed665eea69b3df3ea57009cf8fe61863c1fc)
DeltaFile
+29-0share/man/man4/ix.4
+29-01 files

HardenedBSD/src 0224c9fsys/dev/ixgbe if_ix.c ixgbe.h

ix(4): Add support for debug dump for E610 adapters

This is part 2 of the support for the new Intel Ethernet E610 family of devices.

Intel E610 Ethernet Controller devices feature a debug dump capability
that allows you to capture runtime register values directly from the
hardware, with assistance from the firmware. These registers are
organized into clusters based on their function, enabling targeted
debugging. This information is consolidated into a single dump file,
facilitating the debugging of complex issues encountered in the field.
The debug dump provides a snapshot of the device's current hardware
configuration, including switch tables, transmit scheduler tables, and
other relevant data. It captures the state of specified clusters and
serves as a stateless snapshot of the entire device.

This update introduces ioctl and sysctl support for the debug dump feature.

Signed-off-by: Yogesh Bhosale yogesh.bhosale at intel.com
Co-developed-by: Krzysztof Galazka krzysztof.galazka at intel.com

    [7 lines not shown]
DeltaFile
+521-0sys/dev/ixgbe/if_ix.c
+52-0sys/dev/ixgbe/ixgbe.h
+1-0sys/dev/ixgbe/ixgbe_features.h
+574-03 files

HardenedBSD/src 40a6adasys/dev/e1000 if_em.c

igb(4): Fix VLAN support on VFs

Virtual Functions are considered untrusted and have no control
over VLAN filtering configuration in HW. To allow using
VLANs on VF intreface driver has to assume that VLAN HW Filtering
is always enabled and pass requests for adding or removing VLAN
tags to Physical Function driver using Mailbox API.

Signed-off-by: Krzysztof Galazka <krzysztof.galazka at intel.com>

Approved by:    kbowling (mentor)
Reviewed by:    erj (previous version)
Tested by:      gowtham.kumar.ks_intel.com
Sponsored by:   Intel Corporation
Differential Revision:  https://reviews.freebsd.org/D53245

(cherry picked from commit 1839526b7315cae62efbd2d1493e6243439effcb)
DeltaFile
+20-14sys/dev/e1000/if_em.c
+20-141 files

HardenedBSD/src 18e83edsys/dev/e1000 if_em.c

igb(4): Fix VLAN support on VFs

Virtual Functions are considered untrusted and have no control
over VLAN filtering configuration in HW. To allow using
VLANs on VF intreface driver has to assume that VLAN HW Filtering
is always enabled and pass requests for adding or removing VLAN
tags to Physical Function driver using Mailbox API.

Signed-off-by: Krzysztof Galazka <krzysztof.galazka at intel.com>

Approved by:    kbowling (mentor)
Reviewed by:    erj (previous version)
Tested by:      gowtham.kumar.ks_intel.com
Sponsored by:   Intel Corporation
Differential Revision:  https://reviews.freebsd.org/D53245

(cherry picked from commit 1839526b7315cae62efbd2d1493e6243439effcb)
DeltaFile
+20-14sys/dev/e1000/if_em.c
+20-141 files

HardenedBSD/src 687ab0dshare/man/man4 umass.4

umass(4): Update to include pointers to quirks

umass(4), while much improved, still sometimes need quirks. Add a
pointer to usb_quirk(4) and usbconfig(8).

Sponsored by:           Netflix
DeltaFile
+23-2share/man/man4/umass.4
+23-21 files

HardenedBSD/src 6da01cesys/netpfil/pf pf_lb.c, tests/sys/netpfil/pf nat.sh

pf: fix another endpoint-independent crash

In c12013f5bb38 we fixed udp_mapping cleanup issues in pf_get_sport(), but
missed the static-port case (i.e. low == 0 && high == 0). We could still exit
pf_get_sport() without either inserting the udp_mapping or freeing it.

Address this and add a test case to provoke the problem.

Reviewed by:    thj
MFC after:      1 week
Sponsored by:   Rubicon Communications, LLC ("Netgate")
Differential Revision:  https://reviews.freebsd.org/D53856

(cherry picked from commit 7dedc3c21436bb5a1220f8901992d2772a163f78)
DeltaFile
+30-0tests/sys/netpfil/pf/nat.sh
+12-4sys/netpfil/pf/pf_lb.c
+42-42 files

HardenedBSD/src 19728f3sys/sys _types.h

sys/_types.h: Unbreak gcc build

We can't assume that <sys/cdefs.h> is in scope.

Fixes:          85ab981a8e4e ("sys/_types.h: define fallback __(u)intcap_t")
Reviewed by:    olce, imp, emaste
Differential Revision:  https://reviews.freebsd.org/D53980
DeltaFile
+1-1sys/sys/_types.h
+1-11 files

HardenedBSD/src 9902c39include uchar.h, lib/clang/libllvm Makefile

Merge branch 'freebsd/current/main' into hardened/current/master
DeltaFile
+89-0share/man/man3/unreachable.3
+26-17sys/dev/acpica/acpi.c
+1-29sys/dev/sound/pcm/mixer.c
+0-10lib/clang/libllvm/Makefile
+6-0sys/sys/stdatomic.h
+5-0include/uchar.h
+127-567 files not shown
+140-6613 files

HardenedBSD/src 26158e1sys/dev/sound/pci via8233.c envy24ht.c, sys/dev/sound/pcm mixer.c

Merge branch 'freebsd/15-stable/main' into hardened/15-stable/main
DeltaFile
+51-54sys/dev/sound/pcm/mixer.c
+50-51sys/dev/sound/pci/via8233.c
+34-35sys/dev/sound/pci/envy24ht.c
+34-34sys/dev/sound/pci/envy24.c
+29-28sys/dev/sound/pci/emu10k1.c
+27-27sys/dev/sound/pci/cmi.c
+225-22934 files not shown
+589-65240 files

HardenedBSD/src 9978553lib/clang/libllvm Makefile

Remove TableGen objects from libllvm, fixing bad option registrations

In 986e05bc2a18 I revamped the build for all the llvm subprojects. Among
others I added objects under contrib/llvm-project/llvm/lib/TableGen, but
I missed that upstream explicitly removes these when building the shared
llvm library:

https://github.com/llvm/llvm-project/blob/llvmorg-19.1.7/llvm/tools/llvm-shlib/CMakeLists.txt#L23

In 2e47f35be5dc I converted libllvm to a shared library. From that point
onwards, some of the global command line option objects registered in
llvm/lib/TableGen/Main.cpp conflict with similar objects in tools like
llvm-cov, llvm-as, etc.

This results in an error when running these tools: "CommandLine Error:
Option 'o' registered more than once!", followed by a fatal exit.

Fix this by removing the TableGen objects from libllvm. Note that we no
longer install any of the tblgen binaries, these are only used during

    [4 lines not shown]
DeltaFile
+0-10lib/clang/libllvm/Makefile
+0-101 files

HardenedBSD/src b381d09include stddef.h, share/man/man3 unreachable.3 assert.3

stddef.h: add unreachable() for C23 compliance

unreachable() is a hint to the compiler that it is unreachable.
Add a new man page unreachable(3) to document this macro.

Reviewed by:    imp
Approved by:    markj (mentor)
MFC after:      1 month
Differential Revision:  https://reviews.freebsd.org/D53967
DeltaFile
+89-0share/man/man3/unreachable.3
+3-2share/man/man3/assert.3
+4-0include/stddef.h
+2-1share/man/man3/Makefile
+98-34 files