FreeBSD/src 63b77absys/kgssapi gss_impl.c

kgssapi: Remove broken MOD_UNLOAD code

The module panicked at unload with "recursing but non-recursive rw".
There is a comment that "Unloading of the kgssapi module is not
currently supported" and the MOD_UNLOAD case falls through to returning
EOPNOTSUPP anyway.  Just #if 0 the code in the unload path, leaving it
as a hint in case someone implements unload support later on.

PR:             291249
Reviewed by:    rmacklem
Fixes: ad704a34bc2c ("Use syscall_helper_register(9) rather than syscall_register().")
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D53949

(cherry picked from commit 6901376f59b870ddbb0d922e3455a388333cd460)
(cherry picked from commit ab4f4f4efaac85bbf235e60f2ced4876a9e916f2)
DeltaFile
+4-0sys/kgssapi/gss_impl.c
+4-01 files

FreeBSD/src 224d650sys/dev/vt vt_core.c

vt: Allow VT_SETMODE with frsig=0

Linux does not check that any of the signals in vt_mode VT_SETMODE ioctl
(relsig, acqsig, frsig) are valid, but FreeBSD required that all three
are valid.  frsig is unusued in both Linux and FreeBSD, and software
typically leaves it unset.  To improve portability, allow frsig to be
set to zero.

PR:             289812
Reported by:    Dušan Gvozdenović
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D52835

(cherry picked from commit 5198c32210039d8dc92554647384eee75688848c)
DeltaFile
+3-3sys/dev/vt/vt_core.c
+3-31 files

FreeBSD/src 56bdfd2contrib/diff/src diff3.c

diff3: Use logical-not, not bitwise for booleans

And compare impcompat != 0 as it's actually an integer incremented on
each use of one of the AeExX3 options.

Reviewed by:    fuz
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D53808

(cherry picked from commit abcb80f46c2607fc16564ca87cc25f0908f29f99)
DeltaFile
+3-3contrib/diff/src/diff3.c
+3-31 files

FreeBSD/src 3f2d86bshare/man/man4 fdc.4

fdc.4: Correct igor-reported warnings

Sponsored by:   The FreeBSD Foundation

(cherry picked from commit e1b027b276dfba017d12b8a112af3251e79effc5)
DeltaFile
+6-4share/man/man4/fdc.4
+6-41 files

FreeBSD/src de67d3cshare/man/man5 boot.config.5

boot.config.5: Clarify that this controls legacy boot blocks

Reviewed by;    ziaee
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D52460

(cherry picked from commit e96359d111aaffa6bf0ea72a6f183eb3b91e6c72)
DeltaFile
+4-4share/man/man5/boot.config.5
+4-41 files

FreeBSD/src 437c774contrib/diff/lib getopt.h

diff3: Remove bespoke getopt.h

diff3's getopt.h included a function declaration without a prototype,
which produces a compiler warning.  Just remove the bespoke getopt.h
and use the system header.

Reported by:    Mark Millard
Reviewed by:    fuz
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D53802

(cherry picked from commit 38829592dc77e9ead4259785e0bfb93bd4c2fe34)
DeltaFile
+0-176contrib/diff/lib/getopt.h
+0-1761 files

FreeBSD/src ab4f4f4sys/kgssapi gss_impl.c

kgssapi: Remove broken MOD_UNLOAD code

The module panicked at unload with "recursing but non-recursive rw".
There is a comment that "Unloading of the kgssapi module is not
currently supported" and the MOD_UNLOAD case falls through to returning
EOPNOTSUPP anyway.  Just #if 0 the code in the unload path, leaving it
as a hint in case someone implements unload support later on.

PR:             291249
Reviewed by:    rmacklem
Fixes: ad704a34bc2c ("Use syscall_helper_register(9) rather than syscall_register().")
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D53949

(cherry picked from commit 6901376f59b870ddbb0d922e3455a388333cd460)
DeltaFile
+4-0sys/kgssapi/gss_impl.c
+4-01 files

FreeBSD/src 661b40fshare/man/man4 fdc.4, usr.sbin/fdcontrol fdcontrol.8

Deprecate fdc(4) and floppy utilities

Floppies have been obsolete for over a decade.  Add a deprecation note
now and plan to remove fdc(4) support in 16.

Reviewed by:    ziaee
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D41549

(cherry picked from commit 4c736cfc69a7ef81c48c8431b31c7e31746fe816)
DeltaFile
+7-1share/man/man4/fdc.4
+6-1usr.sbin/fdcontrol/fdcontrol.8
+6-1usr.sbin/fdformat/fdformat.8
+6-1usr.sbin/fdread/fdread.1
+6-1usr.sbin/fdwrite/fdwrite.1
+31-55 files

FreeBSD/src 8befd2dsys/modules/agp Makefile

agp: Export intel_gtt_read_pte, required by i915kms

This isn't used by modern cards, but is needed for i915kms to load
on a system that has agp as a module not compiled into the kernel.

PR:             291214
Reviewed by:    cy
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D53906

(cherry picked from commit a87c1e2dd8fc997d6ee603c252c543afe8a4d2a4)
DeltaFile
+1-0sys/modules/agp/Makefile
+1-01 files

FreeBSD/src e969481sys/modules/mqueue Makefile

mqueue: Export kern_kmq_* symbols from kernel module

linux.ko supports POSIX message queues using these symbols, so they need
to be exported rather than relying on the kernel linker's misfeature of
linking against debug or local symbols (which will soon be disabled by
default).

Reported by:    mav
Reviewed by:    zlei
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D53907

(cherry picked from commit e00a781c216cb12603a0a71c9ca293dde3e06250)
(cherry picked from commit eb90470f5f2a0e5c820c47be329423f5c60ca247)
DeltaFile
+8-0sys/modules/mqueue/Makefile
+8-01 files

FreeBSD/src 701e4b3sys/modules/zfs Makefile

zfs: Reuse ZINCDIR variable from kmod.mk

Reviewed by:    brooks, imp
Differential Revision:  https://reviews.freebsd.org/D54147
DeltaFile
+5-6sys/modules/zfs/Makefile
+5-61 files

FreeBSD/src 305f85asys/kern subr_rman.c, sys/sys rman.h

rman: Embed the mutex in struct rman instead of using a separate allocation

This used a separate allocation when rman was first imported (back
when the lock was a pre-SMPng "simplelock" instead of a mutex).

Reported by:    des
Reviewed by:    des
Differential Revision:  https://reviews.freebsd.org/D54143
DeltaFile
+32-36sys/kern/subr_rman.c
+2-1sys/sys/rman.h
+34-372 files

FreeBSD/src a35eae8sys/kern subr_rman.c

rman: Simplify initialization of internal globals

Use TAILQ_HEAD_INITIALIZER and MTX_SYSINIT to remove the 'once' code
from rman_init.

Reviewed by:    des
Differential Revision:  https://reviews.freebsd.org/D54142
DeltaFile
+3-9sys/kern/subr_rman.c
+3-91 files

FreeBSD/src e2b8be5share/man/man4 nvmf_che.4 Makefile

nvmf_che: Add a manual page for the Chelsio NVMe/TCP PDU offload driver

Sponsored by:   Chelsio Communications
Differential Revision:  https://reviews.freebsd.org/D53764
DeltaFile
+80-0share/man/man4/nvmf_che.4
+1-0share/man/man4/Makefile
+81-02 files

FreeBSD/src d8556d2share/man/man4 nvmf_tcp.4

nvmf_tcp.4: Don't quote the document description given to .Nd

Reported by:    ziaee
DeltaFile
+1-1share/man/man4/nvmf_tcp.4
+1-11 files

FreeBSD/src 20133eccontrib/llvm-project/lldb/source/Plugins/Process/Utility RegisterContextFreeBSD_x86_64.cpp

lldb: Fix empty register set when trying to get size of register

The register set information is stored as a singleton in
GetRegisterInfo_i386. However, other functions later access this
information assuming it is stored in GetSharedRegisterInfoVector. To
resolve this inconsistency, we remove the original construction logic
and instead initialize the singleton using llvm::call_once within the
appropriate function (GetSharedRegisterInfoVector_i386).

PR:             289945
Obtained from:  llvm-project 41859c27842eeda1ef6ff18f3b2fb269388c0857

(cherry picked from commit 1d1a2e6932d682c40ab878bf83cbbde02d8d0af1)
(cherry picked from commit ee286907ad455f967233f715bd468f1d0ff01f6c)
DeltaFile
+20-24contrib/llvm-project/lldb/source/Plugins/Process/Utility/RegisterContextFreeBSD_x86_64.cpp
+20-241 files

FreeBSD/src 58be461contrib/llvm-project/lldb/source/Host/freebsd Host.cpp

lldb: Fix Architecture parsing by reading the ELF header. (#162811)

Currently, LLDB in FreeBSD host sets the Process Architecture used by
lldbserver as Default one. Which cause problem when trying to debug a
32bit binary on amd64 platform since the lldb itself will found mismatch
architecture with lldbserver's return.

Notice that this patch is only a partial fix for the debugging problem.
We are still unable to debug x86 on x86_64 so that we don't provide
testcase in this patch.

PR:             289945
Obtained from:  llvm-project 394e7ded8b6bcff1382468b407ca620a2837f41b

(cherry picked from commit fa1c56b3affaab7be6ece43070b36da2e75787cb)
(cherry picked from commit 87fdc35e586930d9782efee4c0217d5e19b9274a)
DeltaFile
+28-13contrib/llvm-project/lldb/source/Host/freebsd/Host.cpp
+28-131 files

FreeBSD/src ee28690contrib/llvm-project/lldb/source/Plugins/Process/Utility RegisterContextFreeBSD_x86_64.cpp

lldb: Fix empty register set when trying to get size of register

The register set information is stored as a singleton in
GetRegisterInfo_i386. However, other functions later access this
information assuming it is stored in GetSharedRegisterInfoVector. To
resolve this inconsistency, we remove the original construction logic
and instead initialize the singleton using llvm::call_once within the
appropriate function (GetSharedRegisterInfoVector_i386).

PR:             289945
Obtained from:  llvm-project 41859c27842eeda1ef6ff18f3b2fb269388c0857

(cherry picked from commit 1d1a2e6932d682c40ab878bf83cbbde02d8d0af1)
DeltaFile
+20-24contrib/llvm-project/lldb/source/Plugins/Process/Utility/RegisterContextFreeBSD_x86_64.cpp
+20-241 files

FreeBSD/src 87fdc35contrib/llvm-project/lldb/source/Host/freebsd Host.cpp

lldb: Fix Architecture parsing by reading the ELF header. (#162811)

Currently, LLDB in FreeBSD host sets the Process Architecture used by
lldbserver as Default one. Which cause problem when trying to debug a
32bit binary on amd64 platform since the lldb itself will found mismatch
architecture with lldbserver's return.

Notice that this patch is only a partial fix for the debugging problem.
We are still unable to debug x86 on x86_64 so that we don't provide
testcase in this patch.

PR:             289945
Obtained from:  llvm-project 394e7ded8b6bcff1382468b407ca620a2837f41b

(cherry picked from commit fa1c56b3affaab7be6ece43070b36da2e75787cb)
DeltaFile
+28-13contrib/llvm-project/lldb/source/Host/freebsd/Host.cpp
+28-131 files

FreeBSD/src bc2b10asys/dev/cxgbe adapter.h t4_iov.c

cxgbe: Stop using bus_space_tag/handle directly

Reviewed by:    np, imp
Sponsored by:   Chelsio Communications
Differential Revision:  https://reviews.freebsd.org/D53030
DeltaFile
+8-10sys/dev/cxgbe/adapter.h
+1-5sys/dev/cxgbe/t4_iov.c
+2-4sys/dev/cxgbe/t4_main.c
+11-193 files

FreeBSD/src f8c53a6share/man/man5 src.conf.5, share/mk src.opts.mk

src.opts.mk: Enable LLDB for 32-bit arm

It was previously disabled when we built for older 32-bit arm targets
which lack 64-bit atomics.  As we now support armv7 at a minimum there
is no need to disable LLDB.

Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D52668

(cherry picked from commit 69415879e9e493cba78b3a4afb1a78d813a2eb8a)
DeltaFile
+3-3share/man/man5/src.conf.5
+1-1share/mk/src.opts.mk
+4-42 files

FreeBSD/src b2f8d46usr.sbin/trim trim.8

trim.8: fix misprint

Grammar fix after previous commit.

MFC after:      1 week
X-MFC-with:     dbc4a1c69191909a7210cad6da46b755557d0d34
DeltaFile
+1-1usr.sbin/trim/trim.8
+1-11 files

FreeBSD/src dbc4a1cusr.sbin/trim trim.8

trim.8: minor update for manual page

Further explain that trim(8) is not for trimming free blocks
in populated file systems/ZFS pools, as people still take it wrong sometimes.

MFc after:      1 week
DeltaFile
+13-3usr.sbin/trim/trim.8
+13-31 files

FreeBSD/src 5e2bbfesys/net if_ovpn.c

if_ovpn: use epoch to free peers

Avoid a possible use-after-free in the rx path.
ovpn_decrypt_rx_cb() calls ovpn_finish_rx() which releases the lock,
but continues to use the peer.
Ensure that the peer cannot be freed until we're sure all potential
users have stopped using it (i.e. have left net_epoch).

Reported by:    Kevin Day <kevin at your.org>
MFC after:      1 week
Sponsored by:   Rubicon Communications, LLC ("Netgate")
DeltaFile
+12-2sys/net/if_ovpn.c
+12-21 files

FreeBSD/src 7f92088libc/include/llvm-libc-macros stdint-macros.h, libc/src/__support ryu_long_double_constants.h ryu_constants.h

Adjust vendor import of llvm-project main llvmorg-21-init-19288-gface93e724f4: add more items to the libc/ top-level directory.
DeltaFile
+120,478-0libc/src/__support/ryu_long_double_constants.h
+4,404-0libc/src/__support/ryu_constants.h
+1,391-0libc/src/__support/big_int.h
+1,275-0libc/src/__support/str_to_float.h
+878-0libc/include/llvm-libc-macros/stdint-macros.h
+857-0libc/src/__support/FPUtil/FPBits.h
+129,283-0605 files not shown
+170,014-0611 files

FreeBSD/src e6df1a7libc/shared rpc.h rpc_util.h, libc/shared/math ldexpf16.h expf16.h

Adjust vendor import of llvm-project main llvmorg-21-init-19288-gface93e724f4: add partial libc/ top-level directory.
DeltaFile
+603-0libc/shared/rpc.h
+276-0libc/shared/rpc_util.h
+53-0libc/shared/rpc_opcodes.h
+31-0libc/shared/math/ldexpf16.h
+29-0libc/shared/math/expf16.h
+29-0libc/shared/math/frexpf128.h
+1,021-011 files not shown
+1,297-017 files

FreeBSD/src 66129desys/sys _types.h

sys/_types.h: recognise char8_t as a builtin type in C++20

Unlike in C23 where it's a typedef, char8_t is a built in type in
C++20.  Recognise it as such.

PR:             291449
Reported by:    Tomoaki AOKI <junchoon at dec.sakura.ne.jp>
Approved by:    markj (mentor)
Reviewed by:    imp
Fixes:          f0e541118c374869a8226eaa1320bb6eda248a20
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D54124
DeltaFile
+4-0sys/sys/_types.h
+4-01 files

FreeBSD/src c09ffa6sbin/pfctl pfctl.c, tests/sys/netpfil/pf table.sh

pfctl: restore '-Tload -f pf.conf' functionality

Allow only tables to be loaded from a file, rather than everything (i.e.
including options, rules).

Add a test case for this.

PR:             291318
MFC after:      1 week
Sponsored by:   Rubicon Communications, LLC ("Netgate")

(cherry picked from commit 7a283c40188ff7b0a4bae1a47bbd9ecc17ded132)
DeltaFile
+35-0tests/sys/netpfil/pf/table.sh
+2-1sbin/pfctl/pfctl.c
+37-12 files

FreeBSD/src a06df42sys/netpfil/pf if_pfsync.c

pfsync: fix incorrect unlock during destroy

During pfsync_clone_destroy() we clean up pending packets. This
may involve calling pfsync_undefer() or callout_drain(). We may not
hold the bucket lock during callout_drain(), but must hold it during
pfsync_undefer().

We incorrectly always released the lock, leading to assertion failures
during cleanup if there were pending deferred packets.

MFC after:      1 week
Sponsored by:   Orange Business Services

(cherry picked from commit 639e65144aa71cb03b5431861803f528308760dc)
DeltaFile
+2-2sys/netpfil/pf/if_pfsync.c
+2-21 files

FreeBSD/src f88300atools/test/stress2/misc pg_zero.sh

stress2: Added a regression test
DeltaFile
+191-0tools/test/stress2/misc/pg_zero.sh
+191-01 files