FreeBSD/src 1023317contrib/one-true-awk run.c awk.1

ota: Merge one true awk 20240422 (a3b68e649d2d)

Apr 22, 2024:
        fixed regex engine gototab reallocation issue that was
        introduced during the Nov 24 rewrite. Thanks to Arnold Robbins.
        Fixed a scan bug in split in the case the separator is a single
        character. thanks to Oguz Ismail for spotting the issue.

Mar 10, 2024:
        fixed use-after-free bug in fnematch due to adjbuf invalidating
        the pointers to buf. thanks to github user caffe3 for spotting
        the issue and providing a fix, and to Miguel Pineiro Jr.
        for the alternative fix.
        MAX_UTF_BYTES in fnematch has been replaced with awk_mb_cur_max.
        thanks to Miguel Pineiro Jr.

Sponsored by:           Netflix
DeltaFile
+4-240contrib/one-true-awk/run.c
+0-52contrib/one-true-awk/awk.1
+20-14contrib/one-true-awk/b.c
+0-24contrib/one-true-awk/ChangeLog
+0-23contrib/one-true-awk/parse.c
+1-19contrib/one-true-awk/awkgram.y
+25-3728 files not shown
+44-39514 files

FreeBSD/src 4fc5f32share/man/man5 rc.conf.5

rc.conf.5: Fix translation from netmask to cdir

These two should have been 30 bit masks, not 32, as the original
netmasks were 255.255.255.252.

Fixes: cb808de400c7
Noticed by: Kelly Hays
DeltaFile
+2-2share/man/man5/rc.conf.5
+2-21 files

FreeBSD/src 3f65000sys/fs/nfs nfs_var.h, sys/fs/nfsserver nfs_nfsdport.c nfs_nfsdserv.c

nfsd: Fix Link conformance with RFC8881 for delegations

RFC8881 specifies that, when a Link operation occurs on an
NFSv4, that file delegations issued to other clients must
be recalled.  Discovered during a recent discussion on nfsv4 at ietf.org.

Although I have not observed a problem caused by not doing
the required delegation recall, it is definitely required
by the RFC, so this patch makes the server do the recall.

Tested during a recent NFSv4 IETF Bakeathon event.

MFC after:      1 week
DeltaFile
+7-5sys/fs/nfsserver/nfs_nfsdport.c
+9-2sys/fs/nfsserver/nfs_nfsdserv.c
+1-1sys/fs/nfs/nfs_var.h
+17-83 files

FreeBSD/src 6f44401lib/clang/include/llvm/Config llvm-config.h AsmPrinters.def

lib/clang: clean out old llvm/clang Sparc target remnants

The WITH_LLVM_TARGET_ENABLE_SPARC option was removed a long time ago,
but some ifdefs were still laying around, so clean them up.

PR:             276104
MFC after:      3 days
DeltaFile
+0-4lib/clang/include/llvm/Config/llvm-config.h
+0-3lib/clang/include/llvm/Config/AsmPrinters.def
+0-3lib/clang/include/llvm/Config/Disassemblers.def
+0-3lib/clang/include/llvm/Config/Targets.def
+0-3lib/clang/include/llvm/Config/AsmParsers.def
+0-165 files

FreeBSD/src 1c25f3f. run.c awk.1

ota: Import One True Awk 20240422 (a3b68e649d2d)

Apr 22, 2024:
        fixed regex engine gototab reallocation issue that was
        introduced during the Nov 24 rewrite. Thanks to Arnold Robbins.
        Fixed a scan bug in split in the case the separator is a single
        character. thanks to Oguz Ismail for spotting the issue.

Mar 10, 2024:
        fixed use-after-free bug in fnematch due to adjbuf invalidating
        the pointers to buf. thanks to github user caffe3 for spotting
        the issue and providing a fix, and to Miguel Pineiro Jr.
        for the alternative fix.
        MAX_UTF_BYTES in fnematch has been replaced with awk_mb_cur_max.
        thanks to Miguel Pineiro Jr.

Note: This brings in the matchop-deref.* files that were missing (but in
FreeBSD already) and adds system-stauts.ok2. The latter has been deleted
in FreeBSD since it does not fit ATF well. Care must be taken to remove it

    [3 lines not shown]
DeltaFile
+4-240run.c
+0-52awk.1
+20-14b.c
+0-24ChangeLog
+0-23parse.c
+1-19awkgram.y
+25-37212 files not shown
+60-39518 files

FreeBSD/src 60a517bcontrib/libfido2/.actions build-bsd fuzz-linux, contrib/libfido2/.github/ISSUE_TEMPLATE bug_report.md

libfido2: update to 1.14.0

Sponsored by:   The FreeBSD Foundation
DeltaFile
+168-9contrib/libfido2/src/webauthn.h
+97-0contrib/libfido2/.actions/build-bsd
+93-0contrib/libfido2/.actions/fuzz-linux
+80-0contrib/libfido2/.github/ISSUE_TEMPLATE/bug_report.md
+67-1contrib/libfido2/src/assert.c
+34-29contrib/libfido2/fuzz/functions.txt
+539-3957 files not shown
+1,646-12463 files

FreeBSD/src cb808deshare/man/man5 rc.conf.5

rc.conf.5: modernise network_interfaces

It's not 1996 anymore, and we use CIDR nowadays.  Update the various
ifconfig_ examples to use CIDR notation instead of netmasks, and also
add an example of a basic ifconfig_ entry that most users will be
interested in.

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1217
DeltaFile
+37-20share/man/man5/rc.conf.5
+37-201 files

FreeBSD/src 894cb08lib/clang/include VCSVersion.inc, lib/clang/include/clang/Basic Version.inc

Fixup: Merge llvm-project release/18.x llvmorg-18.1.5-0-g617a15a9eac9

Update version numbers, config headers, etc. Git tricked me into losing
these before pushing.

PR:             276104
Fixes:          d67fc74b9249
MFC after:      3 days
DeltaFile
+3-3lib/clang/include/lldb/Version/Version.inc
+3-3lib/clang/include/VCSVersion.inc
+3-3lib/clang/include/clang/Basic/Version.inc
+2-2lib/clang/include/llvm/Config/config.h
+2-2lib/clang/include/llvm/Config/llvm-config.h
+1-1lib/clang/include/lld/Common/Version.inc
+14-141 files not shown
+15-157 files

FreeBSD/src 5678d1dcontrib/llvm-project/clang/lib/CodeGen CGObjCGNU.cpp CGBuiltin.cpp, contrib/llvm-project/clang/lib/Format UnwrappedLineParser.cpp

Merge llvm-project release/18.x llvmorg-18.1.5-0-g617a15a9eac9

This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
openmp to llvm-project release/18.x llvmorg-18.1.5-0-g617a15a9eac9.

PR:             276104
MFC after:      3 days
DeltaFile
+28-20contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/LoadStoreOpt.cpp
+23-17contrib/llvm-project/clang/lib/Format/UnwrappedLineParser.cpp
+20-14contrib/llvm-project/clang/lib/CodeGen/CGObjCGNU.cpp
+16-13contrib/llvm-project/llvm/lib/Target/X86/X86ISelLowering.cpp
+14-11contrib/llvm-project/clang/lib/CodeGen/CGBuiltin.cpp
+16-4contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/LoadStoreOpt.h
+117-7921 files not shown
+200-12827 files

FreeBSD/src 0ad9b23usr.sbin/arp arp_netlink.c

arp(8): fix a typo in error message for -s/-S

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1214
DeltaFile
+1-1usr.sbin/arp/arp_netlink.c
+1-11 files

FreeBSD/src 9a62cdclib/libsys intro.2

intro.2 as errno.2: Use the name macro for errno

Reviewed by: imp
Pull Request:   https://github.com/freebsd/freebsd-src/pull/1192
DeltaFile
+7-6lib/libsys/intro.2
+7-61 files

FreeBSD/src 69ff2d7lib/libsys intro.2

intro.2: Add sys/syscall.h to SYNOPSIS

MFC after:      1 week
Co-authored-by: brooks
Reviewed by:    brooks, emaste, imp
Pull Request:   https://github.com/freebsd/freebsd-src/pull/1192
DeltaFile
+1-0lib/libsys/intro.2
+1-01 files

FreeBSD/src 6dfbe69lib/libsys intro.2

intro.2 as errno.2: Update maximum hard link limit

MFC after:      1 week
Co-authored-by: brooks
Reviewed by:    brooks, emaste, imp
Pull Request:   https://github.com/freebsd/freebsd-src/pull/1192
DeltaFile
+7-2lib/libsys/intro.2
+7-21 files

FreeBSD/src 6279646share/man/man4 ahc.4 ahd.4, sys/dev/aic7xxx aic7xxx.c aic79xx.c

aic7xxx: make target mode enable a device hint

Previously it was only possible to enable target mode for these drivers
by rebuilding the kernel with AHC_TMODE_ENABLE or AHD_TMODE_ENABLE and a
bitmask of which units to statically enable for target mode.

There is no space-savings in the driver by not having AHC_TMODE_ENABLE
set, so in addition to the compile time option lets also introduce some
tunables:

hint.ahc.<unit>.tmode_enable=0/1
hint.ahd.<unit>.tmode_enable=0/1

For compatibility the old behavior is retained, but it can be overridden
with tunables

Signed-off-by: HP van Braam <hp at tmm.cx>
Reviewed by: imp, mav
Pull Request: https://github.com/freebsd/freebsd-src/pull/1208
DeltaFile
+39-29share/man/man4/ahc.4
+24-12share/man/man4/ahd.4
+18-1sys/dev/aic7xxx/aic7xxx.c
+18-1sys/dev/aic7xxx/aic79xx.c
+99-434 files

FreeBSD/src 34db47asys/dev/aic7xxx/aicasm aicasm_symbol.c, sys/modules/aic7xxx/ahc Makefile

aic7xxx: aicasm correct include file

aicasm just puts the value of the "-i" passed include file in the
generated file with quotes around it. This means that there are manual
edits made to aic7xxx_reg_print.c and aic79xx_reg_print.c

now we check to see if the value passed to '-i' starts with a '<', if it
does don't output the quotes.

Signed-off-by: HP van Braam <hp at tmm.cx>
Reviewed by: imp (minor code simplification)
Pull Request: https://github.com/freebsd/freebsd-src/pull/1209
DeltaFile
+5-2sys/dev/aic7xxx/aicasm/aicasm_symbol.c
+2-2sys/modules/aic7xxx/ahd/Makefile
+1-1sys/modules/aic7xxx/ahc/Makefile
+8-53 files

FreeBSD/src 758d02ftools/build checkstyle9.pl

checkstyle9: Relax sob line requirement
DeltaFile
+1-1tools/build/checkstyle9.pl
+1-11 files

FreeBSD/src 2f9966flibexec/rc/rc.d Makefile, release/packages Makefile.package

packages: add package for NTP

Reviewed by: imp, manu
Pull Request: https://github.com/freebsd/freebsd-src/pull/1193
DeltaFile
+5-2usr.sbin/periodic/etc/daily/Makefile
+4-2libexec/rc/rc.d/Makefile
+2-0release/packages/Makefile.package
+1-0usr.sbin/ntp/doc/drivers/Makefile
+1-0usr.sbin/ntp/doc/drivers/icons/Makefile
+1-0usr.sbin/ntp/doc/drivers/scripts/Makefile
+14-416 files not shown
+30-422 files

FreeBSD/src 76f866fshare/man/man4 vmm.4

vmm.4: Add verbiage about need to load module from loader.conf

PR:             277530
MFC after:      1 week
Co-authored-by: Mateusz Piotrowski <0mp at FreeBSD.org>

(cherry picked from commit d0168b32bc67033414e43f07eff2a4e850652c29)
DeltaFile
+14-1share/man/man4/vmm.4
+14-11 files

FreeBSD/src 7de39f9share/man/man4 vmm.4

vmm.4: Add verbiage about need to load module from loader.conf

PR:             277530
MFC after:      1 week
Co-authored-by: Mateusz Piotrowski <0mp at FreeBSD.org>

(cherry picked from commit d0168b32bc67033414e43f07eff2a4e850652c29)
DeltaFile
+14-1share/man/man4/vmm.4
+14-11 files

FreeBSD/src cecda19share/man/man9 style.9

style.9: Document the existence of tools/build/checkstyle9.pl

MFC after:      3 days
Sponsored by:   Klara, Inc.

(cherry picked from commit 5626f9e790901999def12040a60746b0ceeb9b95)
DeltaFile
+5-1share/man/man9/style.9
+5-11 files

FreeBSD/src 1d28a85share/man/man9 style.9

style.9: Document the existence of tools/build/checkstyle9.pl

MFC after:      3 days
Sponsored by:   Klara, Inc.

(cherry picked from commit 5626f9e790901999def12040a60746b0ceeb9b95)
DeltaFile
+5-1share/man/man9/style.9
+5-11 files

FreeBSD/src 64f6c5flib/libc/sys gettimeofday.2

gettimeofday.2: Do mention improbable future removal

As kib@ noted:

> Obviously gettimeofday(2) is not going to be removed
> even in the far future.

Reported by:    kib
Fixes:          4395d3ced5cf Document that gettimeofday() is obsolescent
MFC after:      3 days

(cherry picked from commit 6662c2312e956439652ce2d06b42753b6a78fc61)
DeltaFile
+3-5lib/libc/sys/gettimeofday.2
+3-51 files

FreeBSD/src f7659ablib/libc/sys gettimeofday.2

Document that gettimeofday() is obsolescent

Reported by:    kaktus
Reviewed by:    kaktus, pstef
MFC after:      3 days
Differential Revision:  https://reviews.freebsd.org/D23942

(cherry picked from commit 4395d3ced5cfa46df400b5bb9996f9d74476997e)
DeltaFile
+24-1lib/libc/sys/gettimeofday.2
+24-11 files

FreeBSD/src ba13e65lib/libc/sys gettimeofday.2

gettimeofday.2: Do mention improbable future removal

As kib@ noted:

> Obviously gettimeofday(2) is not going to be removed
> even in the far future.

Reported by:    kib
Fixes:          4395d3ced5cf Document that gettimeofday() is obsolescent
MFC after:      3 days

(cherry picked from commit 6662c2312e956439652ce2d06b42753b6a78fc61)
DeltaFile
+3-5lib/libc/sys/gettimeofday.2
+3-51 files

FreeBSD/src c32f8e6lib/libc/sys gettimeofday.2

Document that gettimeofday() is obsolescent

Reported by:    kaktus
Reviewed by:    kaktus, pstef
MFC after:      3 days
Differential Revision:  https://reviews.freebsd.org/D23942

(cherry picked from commit 4395d3ced5cfa46df400b5bb9996f9d74476997e)
DeltaFile
+24-1lib/libc/sys/gettimeofday.2
+24-11 files

FreeBSD/src c923ddacontrib/libarchive/libarchive archive_string.c archive_match.c, contrib/libarchive/unzip/test test_I.c

libarchive: merge bugfixes from vendor branch

 #2147 archive_string: clean up strncat_from_utf8_to_utf8 (36047967a)
 #2153 archive_match: check archive_read_support_format_raw()
       return value (0ce1b4c38)
 #2154 archive_match: turn counter into flag (287e05d53)
 #2155 lha: Do not allow negative file sizes (93b11caed)
 #2156 tests: setenv LANG to en_US.UTF-8 in bsdunzip test_I.c (83e8b0ea8)

(cherry picked from commit c0b58e65deca1e5e2c434ede7e64f03af6044be8)
DeltaFile
+42-54contrib/libarchive/libarchive/archive_string.c
+9-9contrib/libarchive/libarchive/archive_match.c
+8-0contrib/libarchive/unzip/test/test_I.c
+2-0contrib/libarchive/libarchive/archive_read_support_format_lha.c
+61-634 files

FreeBSD/src 3a77c21contrib/libarchive/libarchive archive_write_set_passphrase.c archive_read_support_format_rar.c, contrib/libarchive/libarchive/test test_write_disk_appledouble.c test_read_format_xar_doublelink.c

libarchive: merge from vendor branch

Libarchive 3.7.4 + three fixes from master

Security fixes:
 #2135 rar: Fix OOB in rar e8 filter (CVE-2024-26256)
 #2145 zip: Fix out of boundary access
 #2148 rar: Fix OOB in rar delta filter
 #2149 rar: Fix OOB in rar audio filter

Important bugfixes:
 #2131 7zip: Limit amount of properties
 #2110 bsdtar: Fix error handling around strtol() usages
 #2116 passphrase: Never allow empty passwords
 #2124 rar: Fix "File CRC Error" when extracting specific rar4 archives
 #2123 xar: Avoid infinite link loop
 #2150 xar: Fix another infinite loop and expat error handling
 #2108 zip: Update AppleDouble support for directories
 #2071 zstd: Implement core detectiongit

    [4 lines not shown]
DeltaFile
+84-0contrib/libarchive/libarchive/test/test_write_disk_appledouble.c
+29-34contrib/libarchive/tar/bsdtar.c
+55-0contrib/libarchive/libarchive/test/test_read_format_xar_doublelink.c
+18-17contrib/libarchive/libarchive/archive_write_set_passphrase.c
+29-1contrib/libarchive/libarchive/archive_read_support_format_rar.c
+27-0contrib/libarchive/libarchive/test/test_write_disk_appledouble_zip.zip.uu
+242-5229 files not shown
+403-10935 files

FreeBSD/src 43a6a8blib/libarchive/tests Makefile

libarchive: add two missing package files to libarchive tests

(cherry picked from commit 7d03ec330684a4e82e6113df3f40305849e5fb6c)
DeltaFile
+2-0lib/libarchive/tests/Makefile
+2-01 files

FreeBSD/src d2291dbcontrib/libarchive/libarchive archive_hmac.c, lib/libarchive Makefile.inc

libarchive: Avoid a build failure with OpenSSL 3.0

This is a minimal workaround; a proper fix will come via a future update
from upstream.

Sponsored by:   The FreeBSD Foundation

(cherry picked from commit e23d45187b287ee7a5c49c8b993daa9e6bb3ad97)
DeltaFile
+1-1contrib/libarchive/libarchive/archive_hmac.c
+1-0lib/libarchive/Makefile.inc
+2-12 files

FreeBSD/src 2772835usr.bin/unzip unzip.c unzip.1, usr.bin/unzip/tests Makefile functional_test.sh

unzip: swtich to bsdunzip from libarchive

Unzip from FreeBSD has been ported to libarchive.
Change usr.bin/unzip to use bsdunzip from libarchive.

Differential Revision:  https://reviews.freebsd.org/D41239
PR:                     272845 (exp-run)

(cherry picked from commit b5a3a89c50671a1ad29e7c43fe15e7b16feac239)
DeltaFile
+0-1,132usr.bin/unzip/unzip.c
+0-201usr.bin/unzip/unzip.1
+74-0usr.bin/unzip/tests/Makefile
+56-0usr.bin/unzip/tests/functional_test.sh
+27-1usr.bin/unzip/Makefile
+24-0usr.bin/unzip/tests/Makefile.depend
+181-1,3342 files not shown
+188-1,3348 files