FreeBSD/src d983dc5sys/dev/iavf iavf_drv_info.h

iavf: Probe the Hyper-V VF device ID

The shared code already recognizes IAVF_DEV_ID_VF_HV and handles it
through the regular iavf register and virtchnl paths, but the PCI probe
table omits it.  Add the missing entry so the driver attaches.

PR:             239849
MFC after:      1 week
DeltaFile
+2-0sys/dev/iavf/iavf_drv_info.h
+2-01 files

FreeBSD/src a24eb09sys/conf files.amd64

apple_bce: require usb(4) for vhci functionality

The vhci portion of the driver relies on usb(4) for both constants and
functionality. Add an explicit dependency on usb(4) in `files.amd64` so
it builds properly 100% of the time in a static kernel config.

Reviewed by:    seuros
Differential Revision:  https://reviews.freebsd.org/D59469
DeltaFile
+1-1sys/conf/files.amd64
+1-11 files

FreeBSD/src d8c4785bin/cat cat.c cat.1, bin/cat/tests Makefile cat_extra_test.sh

cat: add -A, -E and -T flags

Support cat -A, -E and -T, which are commonly used by Linux shell
scripts.  -E prints a "$" at the end of each line, -T renders tabs
as ^I, and -A is equivalent to -vET.

MFC After:      1 week
Discussed with: jrtc27
Reviewed by:    jrtc27, ziaee
Differential Revision:  https://reviews.freebsd.org/D59250

(cherry picked from commit d2cfdf4c12a76db3612c83575403150811f5aa9a)
DeltaFile
+59-0bin/cat/tests/cat_extra_test.sh
+25-9bin/cat/cat.1
+17-8bin/cat/cat.c
+1-0bin/cat/tests/Makefile
+102-174 files

FreeBSD/src 37ec9a1libexec/nuageinit nuageinit

nuageinit: root should be allowed to log in when disable_root is false

PermitRootLogin is "no" by default and that stopped root from logging in
even though disable_root was set to false during initialization.

Reviewed by:    bapt
Sponsored by:   Chelsio Communications
Differential Revision:  https://reviews.freebsd.org/D59101

(cherry picked from commit a209aac86882d3062318dea4971b2f728463c7e2)
DeltaFile
+2-0libexec/nuageinit/nuageinit
+2-01 files

FreeBSD/src 540f9calibexec/nuageinit nuageinit, libexec/nuageinit/tests nuageinit.sh

nuageinit: fix ssh_pwauth string handling

Treat "no"/"unchanged" correctly instead of any non-nil value as yes.

(cherry picked from commit 8d4d5f2e8e56e7b24b50706acbdc0c8c750c6fed)
DeltaFile
+19-3libexec/nuageinit/nuageinit
+18-0libexec/nuageinit/tests/nuageinit.sh
+37-32 files

FreeBSD/src af0ca8clibexec/nuageinit nuage.lua nuageinit.7, libexec/nuageinit/tests nuageinit.sh

nuageinit: accept lock_passwd for users

Alias cloud-init lock_passwd key alongside locked.

(cherry picked from commit cd06bf52053d463f4a3f6c0b9cb5c9f1d578e439)
DeltaFile
+30-0libexec/nuageinit/tests/nuageinit.sh
+4-1libexec/nuageinit/nuageinit.7
+1-1libexec/nuageinit/nuage.lua
+35-23 files

FreeBSD/src a1fd5f9libexec/nuageinit nuageinit nuageinit.7, libexec/nuageinit/tests nuageinit.sh

nuageinit: support allow_public_ssh_keys

Skip importing datasource public keys when set to false.

(cherry picked from commit 8f378c83c6b8b052433834ca0b53677459dc0e85)
DeltaFile
+41-0libexec/nuageinit/tests/nuageinit.sh
+10-0libexec/nuageinit/nuageinit.7
+4-2libexec/nuageinit/nuageinit
+55-23 files

FreeBSD/src ece43a7libexec/nuageinit nuage.lua nuageinit.7, libexec/nuageinit/tests nuageinit.sh

nuageinit: adopt cloud-init disable_root semantics

disable_root now restricts root's authorized_keys instead of setting
PermitRootLogin.

Reported by:    np@

(cherry picked from commit 8ec108914247502dff049059dc60df17920731c8)
DeltaFile
+29-11libexec/nuageinit/nuageinit
+22-13libexec/nuageinit/nuageinit.7
+16-15libexec/nuageinit/tests/nuageinit.sh
+6-2libexec/nuageinit/nuage.lua
+73-414 files

FreeBSD/src 2e9a708usr.bin/grep util.c

grep(1): optimize -w/--word-regexp word boundary check

The -w option checks word boundaries before and after each potential
match by decoding the adjacent character.  This was done via the
heavyweight sscanf(3) with "%lc", which goes through the full scanf
parser and locale-aware mbrtowc(3) machinery even for simple ASCII.

Replace with a three-tier fast path:

1. ASCII bytes (< 0x80): simple isalnum(3) / '_' comparison
2. UTF-8 continuation bytes (0x80-0xBF): interior bytes of a multi-byte
   character are always word characters -> no further decoding needed
3. Multi-byte start bytes (>= 0xC0): decode with mbrtowc(3) directly
   instead of sscanf(3)/%lc, avoiding scanf parser overhead

Benchmark with ministat(1) (10 runs each):

Worst-case ASCII (100k lines of 100 'a' chars, -w 'a'):
    Difference at 95.0% confidence: -15.3% +/- 3.1%

    [16 lines not shown]
DeltaFile
+34-10usr.bin/grep/util.c
+34-101 files

FreeBSD/src 25e5a96usr.bin/m4 look.c extern.h

m4: import fixes from OpenBSD

- gnum4.c: fix m4_warnx() to use vwarnx() instead of warnx()
- eval.c: improve error messages for empty macro names
- extern.h: remove compute_prevep() declaration
- Update OpenBSD version strings

MFC After: 3 days

(cherry picked from commit 8966cc0d01a29c11168e4e9d7f1703aa31ad3be6)
DeltaFile
+3-3usr.bin/m4/eval.c
+2-2usr.bin/m4/gnum4.c
+1-2usr.bin/m4/extern.h
+1-1usr.bin/m4/look.c
+7-84 files

FreeBSD/src 0068125usr.bin/grep util.c

grep: periodic timer-based fflush instead of unconditional per-line flush

Replace the unconditional fflush(stdout) in grep_printline and
procmatches with a periodic timer that flushes at most once every
100ms.  This preserves interactive responsiveness (grep | tee,
grep | tail -f) while avoiding 1M+ write(2) syscalls when
processing large inputs.

The flush interval is tracked via clock_gettime(CLOCK_MONOTONIC)
and a static timespec.  --line-buffered continues to flush
immediately via setlinebuf(3), as before.

Benchmark on 1M lines (37MB output to file):
  unconditional fflush:  1.90s  (sys 1.22s)
  periodic 100ms timer:   0.49s  (sys 0.007s)

Reviewed by:            kevans
Differential Revision:  https://reviews.freebsd.org/D57528

(cherry picked from commit ffe47c424e0a45f5d8d20a5944477821bd946eef)
DeltaFile
+29-4usr.bin/grep/util.c
+29-41 files

FreeBSD/src bba4f80share/examples/jails jng jib

jib, jng: Add license banner
DeltaFile
+1-0share/examples/jails/jng
+1-0share/examples/jails/jib
+2-02 files

FreeBSD/src cfe443econtrib/lutok Makefile.in aclocal.m4, contrib/lutok/admin config.sub ltmain.sh

contrib/lutok: remove autotools generated files

These files provide no value in the FreeBSD tree proper and change
frequently, depending on what machine I generate the release tarball on
(and what versions of autotools are on the host). Nuke the autogenerated
files to avoid bloating commit history/the tree.

MFC after:      3 days
Requested by:   Benjamin Jacobs <freebsd at dev.thsi.be>
DeltaFile
+0-23,387contrib/lutok/configure
+0-11,524contrib/lutok/admin/ltmain.sh
+0-8,488contrib/lutok/m4/libtool.m4
+0-1,802contrib/lutok/admin/config.sub
+0-1,733contrib/lutok/aclocal.m4
+0-1,574contrib/lutok/Makefile.in
+0-48,5089 files not shown
+0-52,77715 files

FreeBSD/src ca0e895contrib/lutok Makefile.in aclocal.m4, contrib/lutok/admin config.sub ltmain.sh

Revert "contrib/lutok: remove autotools and doxygen generated files"

I messed up the commit title. Redo it with a correct summary.

This reverts commit 3dbe1800848ca71f5cc083f1d5c5b4759b601fae.
DeltaFile
+23,387-0contrib/lutok/configure
+11,524-0contrib/lutok/admin/ltmain.sh
+8,488-0contrib/lutok/m4/libtool.m4
+1,802-0contrib/lutok/admin/config.sub
+1,733-0contrib/lutok/aclocal.m4
+1,574-0contrib/lutok/Makefile.in
+48,508-09 files not shown
+52,777-015 files

FreeBSD/src 3dbe180contrib/lutok Makefile.in aclocal.m4, contrib/lutok/admin config.sub ltmain.sh

contrib/lutok: remove autotools and doxygen generated files

These files provide no value in the FreeBSD tree proper and change
frequently, depending on what machine I generate the release tarball on
(and what versions of autotools are on the host). Nuke the autogenerated
files to avoid bloating commit history/the tree.

MFC after:      3 days
Requested by:   Benjamin Jacobs <freebsd at dev.thsi.be>
DeltaFile
+0-23,387contrib/lutok/configure
+0-11,524contrib/lutok/admin/ltmain.sh
+0-8,488contrib/lutok/m4/libtool.m4
+0-1,802contrib/lutok/admin/config.sub
+0-1,733contrib/lutok/aclocal.m4
+0-1,574contrib/lutok/Makefile.in
+0-48,5089 files not shown
+0-52,77715 files

FreeBSD/src 60c7313usr.sbin Makefile, usr.sbin/nfsdtop Makefile nfsdtop.8

Introduce nfsdtop(8)

Display top-like NFS server I/O using dtrace(1).
Also supports JSON output for time-series.

Relnotes:       yes

Reviewed by:    ziaee, bcr, adrian
Differential Revision:  https://reviews.freebsd.org/D59438
DeltaFile
+1,565-0usr.sbin/nfsdtop/nfsdtop
+310-0usr.sbin/nfsdtop/nfsdtop.8
+6-0usr.sbin/nfsdtop/Makefile
+1-0usr.sbin/Makefile
+1,882-04 files

FreeBSD/src c5c3ecasys/dev/intel spi_pci.c

intelspi: add Wildcat Lake SPI controller IDs

Add PCI device IDs for Wildcat Lake-generation LPSS peripheral SPI
controllers.

Reviewed by:    adrian
Differential Revision:  https://reviews.freebsd.org/D59011

(cherry picked from commit eeb02a9c24e9b59295b2cdf09bed955ccbf89a7e)
DeltaFile
+3-0sys/dev/intel/spi_pci.c
+3-01 files

FreeBSD/src 875f1a1sys/dev/intel spi_pci.c

intelspi: add Panther Lake SPI controller IDs

Add PCI device IDs for Panther Lake-generation LPSS peripheral SPI
controllers.

Reviewed by:    adrian
Differential Revision:  https://reviews.freebsd.org/D59012

(cherry picked from commit 59379461f00c0a7ca1c911c20674510affa6795a)
DeltaFile
+6-0sys/dev/intel/spi_pci.c
+6-01 files

FreeBSD/src 5717b3bsys/dev/intel spi_pci.c

intelspi: add Nova Lake SPI controller IDs

Add PCI device IDs for Nova Lake-generation LPSS peripheral SPI
controllers.

Reviewed by:    adrian
Differential Revision:  https://reviews.freebsd.org/D59013

(cherry picked from commit f22ffd63aa83976251a7b425ac17b8ecb8a80177)
DeltaFile
+6-0sys/dev/intel/spi_pci.c
+6-01 files

FreeBSD/src 7a1547dsys/dev/intel spi_pci.c

intelspi: add Lunar Lake SPI controller IDs

Add PCI device IDs for Lunar Lake-generation LPSS peripheral SPI
controllers.

Reviewed by:    adrian
Differential Revision:  https://reviews.freebsd.org/D59010

(cherry picked from commit be503dd912a18e5f7eb16c73326562e13681cf49)
DeltaFile
+3-0sys/dev/intel/spi_pci.c
+3-01 files

FreeBSD/src 5597accsys/dev/intel spi_pci.c

intelspi: add Raptor Lake SPI controller IDs

Add PCI device IDs for Raptor Lake-generation LPSS peripheral SPI
controllers.

Reviewed by:    adrian
Differential Revision:  https://reviews.freebsd.org/D59007

(cherry picked from commit a6d84d04b3f2b570d7fff0835058d14f3bd84d9a)
DeltaFile
+4-0sys/dev/intel/spi_pci.c
+4-01 files

FreeBSD/src 32151c3sys/dev/intel spi_pci.c

intelspi: add Arrow Lake SPI controller IDs

Add PCI device IDs for Arrow Lake-generation LPSS peripheral SPI
controllers.

Reviewed by:    adrian
Differential Revision:  https://reviews.freebsd.org/D59009

(cherry picked from commit ca1a2bf39614a910c87cbc703df25396fe2bd26b)
DeltaFile
+3-0sys/dev/intel/spi_pci.c
+3-01 files

FreeBSD/src 3e5b0e7sys/dev/intel spi_pci.c

intelspi: add Meteor Lake SPI controller IDs

Add PCI device IDs for Meteor Lake-generation LPSS peripheral SPI
controllers.

Reviewed by:    adrian
Differential Revision:  https://reviews.freebsd.org/D59008

(cherry picked from commit 6d4b45ac5c6c7b01febda0185df420d08f80096b)
DeltaFile
+7-0sys/dev/intel/spi_pci.c
+7-01 files

FreeBSD/src ced8de5sys/dev/intel spi_pci.c

intelspi: add Elkhart Lake SPI controller IDs

Add PCI device IDs for Elkhart Lake-generation LPSS peripheral SPI
controllers.

Reviewed by:    adrian
Differential Revision:  https://reviews.freebsd.org/D59005

(cherry picked from commit bdda595a8ea31cb8161e5773139df3cf8785abb7)
DeltaFile
+3-0sys/dev/intel/spi_pci.c
+3-01 files

FreeBSD/src 0a916fcsys/dev/intel spi_pci.c

intelspi: add Alder Lake SPI controller IDs

Add PCI device IDs for Alder Lake-generation LPSS peripheral SPI
controllers.

Reviewed by:    adrian
Differential Revision:  https://reviews.freebsd.org/D59006

(cherry picked from commit 2dd4027c07e91ea5903314411f4bae44f72ca03b)
DeltaFile
+10-0sys/dev/intel/spi_pci.c
+10-01 files

FreeBSD/src 7988c59sys/dev/intel spi_pci.c

intelspi: add Tiger Lake SPI controller IDs

Add PCI device IDs for Tiger Lake-generation LPSS peripheral SPI
controllers.

Reviewed by:    adrian
Differential Revision:  https://reviews.freebsd.org/D59004

(cherry picked from commit 3ff56f81a1a58d708d0101d601e88c289cfc5882)
DeltaFile
+11-0sys/dev/intel/spi_pci.c
+11-01 files

FreeBSD/src 4a1ca54sys/dev/intel spi_pci.c

intelspi: add Lakefield SPI controller IDs

Add PCI device IDs for Lakefield-generation LPSS peripheral SPI
controllers.

Reviewed by:    adrian
Differential Revision:  https://reviews.freebsd.org/D59001

(cherry picked from commit 0b4ff3e1def98c6d804f1e8cc96f3f8eaf4c60bb)
DeltaFile
+1-0sys/dev/intel/spi_pci.c
+1-01 files

FreeBSD/src 7d1f585sys/dev/intel spi_pci.c

intelspi: add Ice Lake SPI controller IDs

Add PCI device IDs for Ice Lake-generation LPSS peripheral SPI
controllers.

Reviewed by:    adrian
Differential Revision:  https://reviews.freebsd.org/D59002

(cherry picked from commit 88919d5ab6c4f611fb2b90d4ff17667072296950)
DeltaFile
+3-0sys/dev/intel/spi_pci.c
+3-01 files

FreeBSD/src f0b1eedsys/dev/intel spi_pci.c

intelspi: add Jasper Lake SPI controller IDs

Add PCI device IDs for Jasper Lake-generation LPSS peripheral SPI
controllers.

Reviewed by:    adrian
Differential Revision:  https://reviews.freebsd.org/D59003

(cherry picked from commit e7db9fa2e10408257541c38b99323a17824c6078)
DeltaFile
+3-0sys/dev/intel/spi_pci.c
+3-01 files

FreeBSD/src 7f1bf94sys/dev/intel spi_pci.c

intelspi: add Apollo Lake SPI controller IDs

Add PCI device IDs for Apollo Lake-generation LPSS peripheral SPI
controllers.

Reviewed by:    adrian
Differential Revision:  https://reviews.freebsd.org/D58998

(cherry picked from commit 4c998ff28471e3fbfcf96decbef5a472cd3d0dd1)
DeltaFile
+3-0sys/dev/intel/spi_pci.c
+3-01 files