FreeBSD/src 70ef02bsys/net if_geneve.c

if_geneve: Fix uninitialized variable use in geneve_udp_input()

Set the ifp variable as soon as soft_c becomes available
so that interface statistics can be incremented.

PR:             295129
Reported by:    Robert Morris <rtm at lcs.mit.edu>
Fixes:          e44d2e941e8e ("if_geneve: Add Support for Geneve ...")
DeltaFile
+1-1sys/net/if_geneve.c
+1-11 files

FreeBSD/src ea72f6dsys/sys _decls.h cdefs.h, tools/build Makefile

sys/cdefs.h: move __BEGIN_DECLS/__END_DECLS into a helper sys/_decls.h

There are situations where nothing from sys/cdefs.h is needed except for
the declaration braces.  More, the other facilities from sys/cdefs.h
might unnecessarly pollute the namespace.

Reviewed by:    markj, imp
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D56889
DeltaFile
+46-0sys/sys/_decls.h
+1-7sys/sys/cdefs.h
+1-0tools/build/Makefile
+48-73 files

FreeBSD/src 32cf451sys/kern vfs_mount.c vfs_subr.c, sys/sys mount.h

vfs: convert vfs_op_thread_* macros to static inlines

Reviewed by:    markj
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D56611
DeltaFile
+55-36sys/sys/mount.h
+3-3sys/kern/vfs_mount.c
+3-3sys/kern/vfs_subr.c
+2-2sys/kern/vfs_vnops.c
+2-2sys/kern/vfs_cache.c
+65-465 files

FreeBSD/src e9a5eb0sys/kern vfs_subr.c

vop_read_pgcache_post(): report inotify IN_ACCESS same as for vop_read_post()

Reviewed by:    markj
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D56611
DeltaFile
+4-2sys/kern/vfs_subr.c
+4-21 files

FreeBSD/src 1d5e402sys/kern vfs_subr.c, sys/sys vnode.h mount.h

vnode: add VIRF_KNOTE flag

to indicate non-empty vnode knote list.  Use it instead of
VN_KNLIST_EMPTY() and guard note activations with it.

Reviewed by:    markj
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D56611
DeltaFile
+12-17sys/sys/vnode.h
+10-4sys/kern/vfs_subr.c
+10-2sys/sys/mount.h
+32-233 files

FreeBSD/src a57420bsys/sys mount.h

vfs: convert VFS_OPs from macros to static inlines

Reviewed by:    markj
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D56611
DeltaFile
+109-97sys/sys/mount.h
+109-971 files

FreeBSD/src 5e4947fsys/sys vnode.h

sys/vnode.h: remove stale comment

The source sweep is not going to happen.

Reviewed by:    markj
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D56611
DeltaFile
+0-1sys/sys/vnode.h
+0-11 files

FreeBSD/src 3085fc9lib/msun Makefile, lib/msun/man sqrt.3

[libm] implementation of rsqrt, rsqrtf, and rsqrtl

From the PR:
The attached diff implements the inverse square root function, i.e,
rsqrt(x) = 1 / sqrt(x).  Exhaustive testing of the float version
suggests that it is correctly rounded in round-to-nearest for all
test values in the range [0x1p-127,0x1p126].
Exhaustive testing of rsqrt and rsqrtl cannot be done, but 1100M
values of x for rsqrt and 400M values for rsqrtl were tested.  All
tested values were correctly rounded.

I do not have access to LD128 (i.e., IEEE 128-bit floating point)
hardware, so the implementation of rsqrtl() is untested.

The following is a summary of changes to source code.

* lib/msun/Makefile:
  . Add s_rsqrt.c and s_rsqrtf.c to COMMON_SRCS.
  . For non-53-bit long double targets, add s_rsqrtl.c to COMMON_SRCS.

    [31 lines not shown]
DeltaFile
+203-0lib/msun/src/s_rsqrtl.c
+155-0lib/msun/src/s_rsqrtf.c
+153-0lib/msun/src/s_rsqrt.c
+83-0lib/msun/src/math_private.h
+51-2lib/msun/man/sqrt.3
+3-3lib/msun/Makefile
+648-52 files not shown
+654-58 files

FreeBSD/src 0f92beelibexec/nuageinit/tests adddoas.lua nuage.sh

nuageinit: add adddoas tests
DeltaFile
+64-0libexec/nuageinit/tests/adddoas.lua
+7-0libexec/nuageinit/tests/nuage.sh
+1-0libexec/nuageinit/tests/Makefile
+72-03 files

FreeBSD/src 8b03193libexec/nuageinit/tests update_sshd_config.lua nuage.sh

nuageinit: add update_sshd_config tests
DeltaFile
+73-0libexec/nuageinit/tests/update_sshd_config.lua
+8-0libexec/nuageinit/tests/nuage.sh
+1-0libexec/nuageinit/tests/Makefile
+82-03 files

FreeBSD/src a49b3b1libexec/nuageinit/tests addsudo.lua nuage.sh

nuageinit: add addsudo tests
DeltaFile
+61-0libexec/nuageinit/tests/addsudo.lua
+7-0libexec/nuageinit/tests/nuage.sh
+1-0libexec/nuageinit/tests/Makefile
+69-03 files

FreeBSD/src 68fd0felibexec/nuageinit/tests decode_base64.lua nuage.sh

nuageinit: add decode_base64 tests
DeltaFile
+61-0libexec/nuageinit/tests/decode_base64.lua
+8-0libexec/nuageinit/tests/nuage.sh
+1-0libexec/nuageinit/tests/Makefile
+70-03 files

FreeBSD/src a2e0822include unistd.h, lib/libc/gen freadlink.c Makefile.inc

libc: add freadlink(3)

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D56365
DeltaFile
+16-0lib/libc/gen/freadlink.c
+1-0include/unistd.h
+1-0lib/libc/gen/Makefile.inc
+1-0lib/libc/gen/Symbol.map
+19-04 files

FreeBSD/src 428da7dsys/sys fcntl.h

Add O_SYMLINK emulation

for MacOSX partial compatibility, defined as O_PATH | O_NOFOLLOW.
fstat(2) and freadlink(3) works on the resulting file descriptors,
but reads on the regular file do not.

More complete but more hackish version was developed but deemed too
hackish.

Sponsored by:   The FreeBSD Foundation
MFC after:      2 weeks
Differential revision:  https://reviews.freebsd.org/D56365
DeltaFile
+7-0sys/sys/fcntl.h
+7-01 files

FreeBSD/src 19552d9tests/sys/netinet carp.sh

tests/carp: make sleep interval in the wait loop smaller

Makes tests to finish slightly faster.

(cherry picked from commit e353cbffd600ae3c00c8584dddcabf9d0ae1202a)
(cherry picked from commit 332485a473724c7532690be34ed1be06d9521448)
DeltaFile
+1-1tests/sys/netinet/carp.sh
+1-11 files

FreeBSD/src f956c42tests/sys/netinet carp.sh

tests/carp: Rework unicast_v4

For unicast tests, it is sufficient to use wait_for_carp() to verify
the setup is sane. Additional sanity checks are not necessarily
required but can serve purpose for redundancy.

For some unclear reason routed(8) is advertising route to carp BACKUP.
That makes the test flaky. Also routed(8) is marked deprecated and may
be removed from base in the future. Let's just add static route entry
manually for additional sanity checks.

Other noticeable changes:
  1. Add atf_check to configuration steps to prevent potential failure
on setup. That helps diagnosing on failure.
  2. Shorten the names of jails to improve readability.
  3. Prefer `[ifconfig|route|sysctl] -j` over `jexec [ifconfig|route|sysctl]`
to make the lines shorter.

MFC note: At the time writing, routed(8) does not know carp addresses

    [11 lines not shown]
DeltaFile
+44-36tests/sys/netinet/carp.sh
+44-361 files

FreeBSD/src 1f8eae9tests/sys/netinet carp.sh

tests/carp: make a 0.2 second pause before configuring second jail

for all scenarios where both jails have same priority/advskew.  There is a
tiny chance that on both sides carp_master_down() will be executed in
parallel and advertisements will also fly through the bridge(4) in
parallel, thus both sides will switch to MASTER before receiving the
announcement from peer.  This makes the test to fail.  So far this
flakyness was observed for carp:vrrp_v4 only, but in theory it is possible
for any of the patched scenarios.

Note that this sleep does not prolong execution of the tests, as the first
jail is already configured, and if we slept before configuring the second,
we would sleep less in wait_for_carp().

(cherry picked from commit 27ff90cd3d8d2ac8198f30cbebeefb15a49d41bc)
(cherry picked from commit ad2fff6d6a4d74b6bb9008e447eafc567e8660e0)
DeltaFile
+5-0tests/sys/netinet/carp.sh
+5-01 files

FreeBSD/src a08d321tests/sys/netinet carp.sh

tests/carp: kill routed(8) before destroying interfaces

Otherwise routed logs a warning:

"MCAST_LEAVE_GROUP ALLROUTERS: Can't assign requested address"

that may be misinterpreted as a problem.

(cherry picked from commit 8596810d02a1e361e0312d116339aa106aca4b19)
(cherry picked from commit 89096d660ea8e3f4696abeb6745ffedf15e7aa89)
DeltaFile
+3-0tests/sys/netinet/carp.sh
+3-01 files

FreeBSD/src 0f6c880stand/i386/boot2 sio.S

stand/i386: quiet executable stack warning

Reviewed by:    imp, kib
Differential Revision:  https://reviews.freebsd.org/D56908
DeltaFile
+2-0stand/i386/boot2/sio.S
+2-01 files

FreeBSD/src 58e5b4dsys/kern vfs_subr.c

vfs_subr: mark uma zone and smr pointers __read_mostly

Reviewed by:    kib
Differential Revision:  https://reviews.freebsd.org/D56892
DeltaFile
+5-5sys/kern/vfs_subr.c
+5-51 files

FreeBSD/src 8fe76a3usr.sbin/blacklistd blacklistd.conf

blacklistd: Fix RFC1918 typo

This is a direct commit to the stable/14 branch, partially cherry picked
from commit 5a6d9479ae2271a97dd23ceee8ad284770302874, as the stable/14
branch only has blacklistd.

The address in the configuration file example was intended to be from
the 192.168.0.0/16 range of IPv4 private addresses (RFC1918).

Reported on mastodon.social at
https://mastodon.social/@asmodai/116316630762241486.

Fix submitted upstream by emaste@.  Fixing locally first.

Reported by:    asmodai
Reviewed by:    emaste
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D56773
DeltaFile
+1-1usr.sbin/blacklistd/blacklistd.conf
+1-11 files

FreeBSD/src 0f36cf8usr.sbin/blacklistd blacklistd.conf, usr.sbin/blocklistd blocklistd.conf

blocklistd: Fix RFC1918 typo

The address in the configuration file example was intended to be from
the 192.168.0.0/16 range of IPv4 private addresses (RFC1918).

Reported on mastodon.social at
https://mastodon.social/@asmodai/116316630762241486.

Fix submitted upstream by emaste@.  Fixing locally first.

Reviewed by:    emaste
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D56773

(cherry picked from commit 5a6d9479ae2271a97dd23ceee8ad284770302874)
DeltaFile
+1-1usr.sbin/blacklistd/blacklistd.conf
+1-1usr.sbin/blocklistd/blocklistd.conf
+2-22 files

FreeBSD/src 3ca8ec1lib/libc/gen posix_spawn.c

libc: correct posix_spawn_file_actions_init ENOMEM error

The return value of posix_spawn_file_actions_init() is an error number.

Reviewed by:    kib
Differential Revision:  https://reviews.freebsd.org/D56911
DeltaFile
+1-1lib/libc/gen/posix_spawn.c
+1-11 files

FreeBSD/src b333b87sys/kern uipc_shm.c

uipc_shm.c: make large page allocation interruptible

Approved by:    re (cperciva)

(cherry picked from commit 839d3266d8c6f6471cb92a3c0ae32eb16d117427)
(cherry picked from commit c335dafd77363b67493d37ab260bc82e70c8cfa7)
DeltaFile
+8-0sys/kern/uipc_shm.c
+8-01 files

FreeBSD/src 037b285sys/kern uipc_usrreq.c, tests/sys/kern unix_stream.c

unix: Make sure we signal EOF on the write side when disconnecting

Add a regression test.

Approved by:    re (cperciva)
PR:             294014
Reported by:    diizzy
Reviewed by:    glebius
MFC after:      1 week
Fixes:          d15792780760 ("unix: new implementation of unix/stream & unix/seqpacket")
Differential Revision:  https://reviews.freebsd.org/D56764

(cherry picked from commit 476805133f5736c2c8638e41d2b5d8dd2c597f3a)
(cherry picked from commit f06697907f360b02682594c6179a7361644d3c87)
DeltaFile
+62-19tests/sys/kern/unix_stream.c
+2-0sys/kern/uipc_usrreq.c
+64-192 files

FreeBSD/src f066979sys/kern uipc_usrreq.c, tests/sys/kern unix_stream.c

unix: Make sure we signal EOF on the write side when disconnecting

Add a regression test.

PR:             294014
Reported by:    diizzy
Reviewed by:    glebius
MFC after:      1 week
Fixes:          d15792780760 ("unix: new implementation of unix/stream & unix/seqpacket")
Differential Revision:  https://reviews.freebsd.org/D56764

(cherry picked from commit 476805133f5736c2c8638e41d2b5d8dd2c597f3a)
DeltaFile
+62-19tests/sys/kern/unix_stream.c
+2-0sys/kern/uipc_usrreq.c
+64-192 files

FreeBSD/src ad2fff6tests/sys/netinet carp.sh

tests/carp: make a 0.2 second pause before configuring second jail

for all scenarios where both jails have same priority/advskew.  There is a
tiny chance that on both sides carp_master_down() will be executed in
parallel and advertisements will also fly through the bridge(4) in
parallel, thus both sides will switch to MASTER before receiving the
announcement from peer.  This makes the test to fail.  So far this
flakyness was observed for carp:vrrp_v4 only, but in theory it is possible
for any of the patched scenarios.

Note that this sleep does not prolong execution of the tests, as the first
jail is already configured, and if we slept before configuring the second,
we would sleep less in wait_for_carp().

(cherry picked from commit 27ff90cd3d8d2ac8198f30cbebeefb15a49d41bc)
DeltaFile
+7-0tests/sys/netinet/carp.sh
+7-01 files

FreeBSD/src 107ef0ctests/sys/netinet carp.sh

tests/carp: Rework unicast_v4

For unicast tests, it is sufficient to use wait_for_carp() to verify
the setup is sane. Additional sanity checks are not necessarily
required but can serve purpose for redundancy.

For some unclear reason routed(8) is advertising route to carp BACKUP.
That makes the test flaky. Also routed(8) is marked deprecated and may
be removed from base in the future. Let's just add static route entry
manually for additional sanity checks.

Other noticeable changes:
  1. Add atf_check to configuration steps to prevent potential failure
on setup. That helps diagnosing on failure.
  2. Shorten the names of jails to improve readability.
  3. Prefer `[ifconfig|route|sysctl] -j` over `jexec [ifconfig|route|sysctl]`
to make the lines shorter.

MFC note: At the time writing, routed(8) does not know carp addresses

    [10 lines not shown]
DeltaFile
+44-36tests/sys/netinet/carp.sh
+44-361 files

FreeBSD/src 332485atests/sys/netinet carp.sh

tests/carp: make sleep interval in the wait loop smaller

Makes tests to finish slightly faster.

(cherry picked from commit e353cbffd600ae3c00c8584dddcabf9d0ae1202a)
DeltaFile
+1-1tests/sys/netinet/carp.sh
+1-11 files

FreeBSD/src 89096d6tests/sys/netinet carp.sh

tests/carp: kill routed(8) before destroying interfaces

Otherwise routed logs a warning:

"MCAST_LEAVE_GROUP ALLROUTERS: Can't assign requested address"

that may be misinterpreted as a problem.

(cherry picked from commit 8596810d02a1e361e0312d116339aa106aca4b19)
DeltaFile
+3-0tests/sys/netinet/carp.sh
+3-01 files