]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
14 months agotzsetup: add baseline file to control parsed zonetab contents
Yuri Pankov [Sun, 23 Apr 2023 08:31:53 +0000 (10:31 +0200)]
tzsetup: add baseline file to control parsed zonetab contents

Introduce undocumented option -d to dump parsed zonetab file contents
and add a "baseline" target along with instructions on updating it.

Reviewed by: philip
Differential Revision: https://reviews.freebsd.org/D39634

14 months agolibcasper: remove leftover debug directory
Yuri Pankov [Sun, 23 Apr 2023 07:49:49 +0000 (09:49 +0200)]
libcasper: remove leftover debug directory

Reviewed by: mjg
Differential Revision: https://reviews.freebsd.org/D39756

14 months agoEnsure good exit status from type
Simon J. Gerraty [Sun, 23 Apr 2023 06:15:05 +0000 (23:15 -0700)]
Ensure good exit status from type

When looking to see if nproc is available we do
not want warnings about 'type nproc' having bad exit.

14 months agoip_mroute: Delete unreachable code
Zhenlei Huang [Sun, 23 Apr 2023 04:47:57 +0000 (12:47 +0800)]
ip_mroute: Delete unreachable code

As the flag M_WAITOK is passed to ip_encap_attach(), then the function
will never return NULL, and the following code within NULL check branch
will be unreachable.

No functional change intended.

Reviewed by: kp
Fixes: 6d8fdfa9d5e7d Rework IP encapsulation handling code
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D39746

14 months agoif_stf: Delete unreachable code
Zhenlei Huang [Sun, 23 Apr 2023 04:47:57 +0000 (12:47 +0800)]
if_stf: Delete unreachable code

As the flag M_WAITOK is passed to ip_encap_attach(), then the function
will never return NULL, and the following code within NULL check branch
will be unreachable.

No functional change intended.

Reviewed by: kp
Fixes: 6d8fdfa9d5e7d Rework IP encapsulation handling code
MFC after: 1 week
Differential Revision:  https://reviews.freebsd.org/D39746

14 months agobmake 20230123 gives us .SYSPATH
Simon J. Gerraty [Sun, 23 Apr 2023 01:15:31 +0000 (18:15 -0700)]
bmake 20230123 gives us .SYSPATH

No need to faff about trying to work out where bmake
is looking - it tells you.

14 months agoRemove portsnap(8)
Colin Percival [Sun, 23 Apr 2023 01:07:14 +0000 (18:07 -0700)]
Remove portsnap(8)

Rather than having a tool in the FreeBSD base system for obtaining
the FreeBSD ports tree, users are encouraged to `pkg install git`
and then `git clone https://git.FreeBSD.org/ports.git /usr/ports`.

The portsnap servers will continue operating until FreeBSD 13 reaches
its End-of-Life, and portsnap is available from the ports tree as
ports-mgmt/portsnap.

Requested by: portmgr
Relnotes: yes
Differential Revision: https://reviews.freebsd.org/D39563
X-MFC: no

14 months agodirdeps.mk ensure M_dep_qual_fixes is applied
Simon J. Gerraty [Sun, 23 Apr 2023 01:00:45 +0000 (18:00 -0700)]
dirdeps.mk ensure M_dep_qual_fixes is applied

14 months agolocal.meta.sys.mk skip OBJTOP for host
Simon J. Gerraty [Sun, 23 Apr 2023 00:59:12 +0000 (17:59 -0700)]
local.meta.sys.mk skip OBJTOP for host

It was already done by local.meta.sys.env.mk

14 months agolinux(4): Fix arm64 build after b7a6bcdd, missed chunk added
Dmitry Chagin [Sat, 22 Apr 2023 22:41:12 +0000 (01:41 +0300)]
linux(4): Fix arm64 build after b7a6bcdd, missed chunk added

MFC after: 1 month

14 months agoExtract some of local.meta.sys.mk to local.meta.sys.env.mk
Simon J. Gerraty [Sat, 22 Apr 2023 22:07:53 +0000 (15:07 -0700)]
Extract some of local.meta.sys.mk to local.meta.sys.env.mk

Latest meta.sys.mk follows sys.mk in including local.meta.sys.env.mk
and local.meta.sys.mk late, but we have things we need done early
so move them to local.meta.sys.env.mk

14 months agomakeman export UPDATE_DEPENFILE=no
Simon J. Gerraty [Sat, 22 Apr 2023 21:57:24 +0000 (14:57 -0700)]
makeman export UPDATE_DEPENFILE=no

Just to be clear we do not need any updates.

14 months agoBuild host tools on non-FreeBSD host with DIRDEPS_BUILD
Simon J. Gerraty [Sat, 22 Apr 2023 20:13:22 +0000 (13:13 -0700)]
Build host tools on non-FreeBSD host with DIRDEPS_BUILD

Add Makefile.depend.options to libnetbsd, mkimg and makefs
to ensure libegacy is build if needed.

targets/pseudo/stage/Makefile avoid the need for mtree
the staging process creates target dirs as needed anyway.

Reviewed by: stevek
Sponsored by: Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D39757

14 months agoAllow tools/build to work for DIRDEPS_BUILD
Simon J. Gerraty [Sat, 22 Apr 2023 19:25:54 +0000 (12:25 -0700)]
Allow tools/build to work for DIRDEPS_BUILD

We want to be able to build some host tools for non-FreeBSD hosts
without building more than we need.  The DIRDEPS_BUILD lets us
do that.

We use the pseudo MACHINE "host" when building
for the host - deal with that when setting _host_arch.

Reviewed by: jrtc27
Sponsored by: Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D39751

14 months agolinux(4): Bump osrelease to 5.15.0
Dmitry Chagin [Sat, 22 Apr 2023 19:18:08 +0000 (22:18 +0300)]
linux(4): Bump osrelease to 5.15.0

Linux kernel version 5.15 named Trick or Treat is a 22nd LTS release.

Reviewed by: trasz, emaste
Differential Revision: https://reviews.freebsd.org/D39649
MFC after: 1 month

14 months agolinux(4): Export the AT_MINSIGSTKSZ depending on the process osreldata
Dmitry Chagin [Sat, 22 Apr 2023 19:17:52 +0000 (22:17 +0300)]
linux(4): Export the AT_MINSIGSTKSZ depending on the process osreldata

AT_MINSIGSTKSZ has appeared in the 5.13.0 Linux kernel first time.

Differential Revision: https://reviews.freebsd.org/D39648
MFC after: 1 month

14 months agolinux(4): Export the AT_EXECFN depending on the process osreldata
Dmitry Chagin [Sat, 22 Apr 2023 19:17:36 +0000 (22:17 +0300)]
linux(4): Export the AT_EXECFN depending on the process osreldata

AT_EXECFN has appeared in the 2.6.26 Linux kernel first time.

Reviewed by: emaste
Differential Revision: https://reviews.freebsd.org/D39647
MFC after: 1 month

14 months agolinux(4): Export the AT_RANDOM depending on the process osreldata
Dmitry Chagin [Sat, 22 Apr 2023 19:17:17 +0000 (22:17 +0300)]
linux(4): Export the AT_RANDOM depending on the process osreldata

AT_RANDOM has appeared in the 2.6.30 Linux kernel first time.

Reviewed by: emaste
Differential Revision: https://reviews.freebsd.org/D39646
MFC after: 1 month

14 months agolinux(4): Fix LINUX_AT_COUNT comments
Dmitry Chagin [Sat, 22 Apr 2023 19:16:43 +0000 (22:16 +0300)]
linux(4): Fix LINUX_AT_COUNT comments

Differential Revision: https://reviews.freebsd.org/D39645
MFC after: 1 month

14 months agolinux(4): Deduplicate linux_copyout_auxargs()
Dmitry Chagin [Sat, 22 Apr 2023 19:16:02 +0000 (22:16 +0300)]
linux(4): Deduplicate linux_copyout_auxargs()

Export default MINSIGSTKSZ value for the x86 until we do not preserve AVX
registers in the signal context.

Differential Revision: https://reviews.freebsd.org/D39644
MFC after: 1 month

14 months agoSimplify building host tools during DIRDEPS_BUILD
Simon J. Gerraty [Sat, 22 Apr 2023 19:01:49 +0000 (12:01 -0700)]
Simplify building host tools during DIRDEPS_BUILD

The whole point of the DIRDEPS_BUILD is to avoid tree walks
and basically build everything in a single pass.
We use the pseudo MACHINE "host" to represent the build host.

When the build host is not FreeBSD or is an older version of FreeBSD
it may need some help to build host-tools.

The directory tools/build does this - building libegacy.

local.sys.mk: create a pseudo option MK_host_egacy to indicate
if tools/build needs to be built for "host".

local.dirdeps.mk: set MK_host_egacy.host to ${MK_host_egacy}
all other DEP_MACHINES will get "no"

This allows a Makefile.depend.options in makefs etc to cause tools/build
to be built for host but only if necessary.

local.init.mk: use ISYSTEM as arg to -isystem so that it can be overridden.
The default remains ${STAGE_INCLUDEDIR}

src.init.mk: if MACHINE is host and we are not FreeBSD
set some MK_ flags the same as tools/build/mk/Makefile.boot.pre and
include src.init.${.MAKE.OS:tl}.mk if it exists.

For older versions of FreeBSD add libegacy when building PROGs for "host"

Also instead of -isystem${STAGE_INCLUDEDIR} we want
-I${STAGE_INCLUDEDIR} and -isystem/usr/include so we override ISYSTEM.
This means any headers we stage for "host" will take precedence over
system headers but #include_next will DTRT.

src.init.linux.mk: add
-I${SRCTOP}/tools/build/cross-build/include/linux
and generally deal with building host tools on Linux.
Eg. static linking does not work so set NO_SHARED= no
Override some HAVE_ flags.

src.sys.env.mk: on linux awk throws an warning about # in newvers.sh
just send stderr to /dev/null

Reviewed by: jrtc27, arichardson
Sponsored by: Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D39744

14 months agopfctl: match geticmpcodeby*()/print_fromto() prototypes to definitions
Kristof Provost [Fri, 21 Apr 2023 13:13:19 +0000 (15:13 +0200)]
pfctl: match geticmpcodeby*()/print_fromto() prototypes to definitions

The definitions use sa_family_t, not u_int8_t.

Sponsored by: Rubicon Communications, LLC ("Netgate")

14 months agopfctl: remove unneeded includes
Kristof Provost [Fri, 21 Apr 2023 09:31:44 +0000 (11:31 +0200)]
pfctl: remove unneeded includes

We don't use nvlists (directly) or sysctls, so there's no need to
include the headers.

Sponsored by: Rubicon Communications, LLC ("Netgate")

14 months agozfs/powerpc64: Fix big-endian powerpc64 asm
Justin Hibbits [Thu, 13 Apr 2023 15:26:52 +0000 (11:26 -0400)]
zfs/powerpc64: Fix big-endian powerpc64 asm

The powerpc asm from openzfs assumes that big-endian is always ELFv1 and
ELFv2 is always little-endian, while FreeBSD uses ELFv2 everywhere.  Add
the necessary bits to the checksum asm to work on big-endian ELFv2.

This was also submitted upstream as PR#14779.

Tested by: dbaio

14 months agonfsuserd.c: Replace slave with server
Rick Macklem [Sat, 22 Apr 2023 15:18:02 +0000 (08:18 -0700)]
nfsuserd.c: Replace slave with server

14 months agostress2: Mark set but unused variables as unused
Peter Holm [Sat, 22 Apr 2023 11:16:01 +0000 (13:16 +0200)]
stress2: Mark set but unused variables as unused

14 months agoLinuxKPI: Fix building on 32bit archs
Vladimir Kondratyev [Sat, 22 Apr 2023 10:24:40 +0000 (13:24 +0300)]
LinuxKPI: Fix building on 32bit archs

Reported by: Jenkins
Fixes: e5cf9deb61fd ("LinuxKPI: Add bitmap_to_arr32() to <linux/bitmap.h>")

14 months agoBump __FreeBSD_version after LinuxKPI updates
Vladimir Kondratyev [Sat, 22 Apr 2023 08:29:29 +0000 (11:29 +0300)]
Bump __FreeBSD_version after LinuxKPI updates

14 months agoLinuxKPI: Define noinline_for_stack compiler attribute
Vladimir Kondratyev [Sat, 22 Apr 2023 08:29:29 +0000 (11:29 +0300)]
LinuxKPI: Define noinline_for_stack compiler attribute

It is identical to noinline and used for documentation reasons.

Required by: drm-kmod 5.15-lts
Reviewed by: manu
Differential Revision: https://reviews.freebsd.org/D39553

14 months agoLinuxKPI: Add bitmap_to_arr32() to <linux/bitmap.h>
Vladimir Kondratyev [Sat, 22 Apr 2023 08:29:29 +0000 (11:29 +0300)]
LinuxKPI: Add bitmap_to_arr32() to <linux/bitmap.h>

bitmap_to_arr32() copies contents of bitmap to a uint32_t array of bits

Required by: drm-kmod 5.15-lts
Reviewed by: manu
Differential Revision: https://reviews.freebsd.org/D39552

14 months agoLinuxKPI: define acpi_put_table() in <acpi/acpi.h>
Vladimir Kondratyev [Sat, 22 Apr 2023 08:29:29 +0000 (11:29 +0300)]
LinuxKPI: define acpi_put_table() in <acpi/acpi.h>

FreeBSD ACPICA calls it AcpiPutTable()

Required by: drm-kmod 5.15-lts
Reviewed by: manu
Differential Revision: https://reviews.freebsd.org/D39551

14 months agostand: mark unused argment as unused
Warner Losh [Sat, 22 Apr 2023 06:29:03 +0000 (00:29 -0600)]
stand: mark unused argment as unused

We don't use the 'ver' argument for uuids sometimes, so mark it unused.

Sponsored by: Netflix

14 months agollvm-strings: Install as strings when WITH_LLVM_BINUTILS=YES
Cameron Katri [Wed, 5 Apr 2023 19:53:33 +0000 (15:53 -0400)]
llvm-strings: Install as strings when WITH_LLVM_BINUTILS=YES

Reviewed by: emaste
Differential Revision: https://reviews.freebsd.org/D32065

14 months agolibcbor: update to 0.10.2
Ed Maste [Fri, 21 Apr 2023 20:09:03 +0000 (16:09 -0400)]
libcbor: update to 0.10.2

Sponsored by: The FreeBSD Foundation

14 months agollvm: fix some llvm-* tool links when WITH_LLVM_BINUTILS is set
Ed Maste [Fri, 21 Apr 2023 13:11:45 +0000 (09:11 -0400)]
llvm: fix some llvm-* tool links when WITH_LLVM_BINUTILS is set

A few Makefiles overrode LINKS and MLINKS when WITH_LLVM_BINUTILS was
set, which caused some llvm- prefixed tools to disappear.  One such case
was llvm-ranlib, which some ports invoke explicitly.

Use += when adding to LINKS and MLINKS under WITH_LLVM_BINUTILS.

PR: 270955, 270956, 270959
Submitted by: jbeich
Reviewed by: arichardson
Fixes: 021385aba562 ("Add WITH_LLVM_BINUTILS to install LLVM binuti...")
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D39747

14 months agofreebsd32: Regen
Warner Losh [Fri, 21 Apr 2023 16:25:10 +0000 (10:25 -0600)]
freebsd32: Regen

Need to regen freebsd32 as well when sys/kern/syscalls.master is
updated.

Sponsored by: Netflix

14 months agotruss: Kill dead code
Warner Losh [Fri, 21 Apr 2023 16:21:40 +0000 (10:21 -0600)]
truss: Kill dead code

If it doesn't exist, we don't need it in the table...

Sponsored by: Netflix

14 months agonewvers: Use correct regexp
Warner Losh [Fri, 21 Apr 2023 16:14:41 +0000 (10:14 -0600)]
newvers: Use correct regexp

There's no need to quote the # here. Inside of regexp, it's not treated
like a comment from an awk perspective. And inside if '' it's not
treated as special by the shell. gawk also warns.

Sponsored by: Netflix

14 months agoriscv: Compile instr_size.c into the kernel when DTrace is configured
Mark Johnston [Fri, 21 Apr 2023 13:26:17 +0000 (09:26 -0400)]
riscv: Compile instr_size.c into the kernel when DTrace is configured

Reported by: Jenkins
Fixes: 080e56a6c98c ("dtrace: expose dtrace_instr_size() to userland and implement it for riscv")

14 months agotcp: hpts needs to still call output even after input.
Randall Stewart [Fri, 21 Apr 2023 11:12:25 +0000 (07:12 -0400)]
tcp: hpts needs to still call output even after input.

The other stacks it turns out actually expect the output to be called and can become stuck if it is
not. This is because they run there timer code from there and the input routine does not always
assure a timer is running. The real longterm fix here might be to go into the other stacks (rack and bbr)
and make sure that a timer is running after input if you don't do output.. as well as call the timer functions.
This would cut down on calls from hpts. But I think its too dramatic of a change for the immediate time.

Reviewed by: tuexen, glebius
Sponsored by: Netflix Inc
Differential Revision:https://reviews.freebsd.org/D39738

14 months agopf.conf.5: minor improvements
Kristof Provost [Fri, 21 Apr 2023 07:16:53 +0000 (09:16 +0200)]
pf.conf.5: minor improvements

* Align 'on <interface>' parameter with the BNF, so use 'on <ifspec>'
* Clarify etherprotospec BNF, to make it clearer that only numbers are
  supported.

Suggested by: Christian McDonald
Sponsored by: Rubicon Communications, LLC ("Netgate")

14 months agompr: don't use hardcoded value in debug branch
Mariusz Zaborski [Fri, 21 Apr 2023 07:57:38 +0000 (09:57 +0200)]
mpr: don't use hardcoded value in debug branch

Pointed out by: imp
Sponsored by:   Klara Inc.

14 months agompr: fix copying of event_mask
Mariusz Zaborski [Fri, 21 Apr 2023 07:50:16 +0000 (09:50 +0200)]
mpr: fix copying of event_mask

Before the commit 6cc44223cb6717795afdac4348bbe7e2a968a07d the
field event_mask was fully copied to the EventMasks field.
After this commit the event_mask (uint8_t) is 4 times casted to
EventMask (uint32_t). Because of that 24 bits of each event_mask array
is lost.

This commits brings back simple copying of field, and after words
converting 32 bits field to the requested endian.

I don't think we need more sophisticated method,
as the array is of size 4 (for 32 bits version).

Reviewed by: imp
MFC after: 1 week
Sponsored by: Klara Inc.
Differential Revision: https://reviews.freebsd.org/D39562

14 months agolinuxkpi: Fix __sg_alloc_table_from_pages loop
Austin Shafer [Fri, 21 Apr 2023 07:56:50 +0000 (09:56 +0200)]
linuxkpi: Fix __sg_alloc_table_from_pages loop

Commit 3e0856b63fe0e375a0951e05c2ef98bb2ebd9421 updated
__sg_alloc_table_from_pages to use the same API as linux, but modified
the loop condition when going over the pages in a sg list. Part of the
change included moving the sg_next call out of the for loop and into the
body, which causes an off by one error when traversing the list. Since
sg_next is called before the loop body it will skip the first element
and read one past the last element.

This caused panics when running PRIME with nvidia-drm as the off-by-one
issue causes a NULL dereference.

Reviewed by: bz, hselasky
Differential Revision: https://reviews.freebsd.org/D39628
Fixes: 3e0856b63fe0 ("linuxkpi: Fix `sg_alloc_table_from_pages()` to have the same API as Linux")

14 months agosyscalls: regenerate
Warner Losh [Fri, 21 Apr 2023 05:28:59 +0000 (23:28 -0600)]
syscalls: regenerate

The 4.2 sigreturn was a bit of a enima so the 4.2 was remove. Regenerate
to cope the very minor changes in comments and one string.

Sponsored by: Netflix

14 months agosyscall.master: Remove stray 4.2
Warner Losh [Fri, 21 Apr 2023 05:05:30 +0000 (23:05 -0600)]
syscall.master: Remove stray 4.2

Back in 4.3BSD, the system call table wasn't generated, and there was an
entry:
        "4.2 sigreturn",        /* 139 = old 4.2 sigreturn */
This got converted to
139     OBSOL   0 4.2 sigreturn
in 4.3 RENO. Since it was obsolete, nothing bad happened. In fact,
there was code in makeyscalls.sh to cope:
        {       comment = $4
                for (i = 5; i <= NF; i++)
                        comment = comment " " $i
                if (NF < 5)
                        $5 = $4
        }
so the generated comment in syscalls.c was almost correct:
        "obs_4.2",                      /* 139 = obsolete 4.2 sigreturn */
a bug that we have to this very day, despite makesyscalls.sh being
rewritten in lua.

However, this historical wart is the only place in our current
syscalls.master file where we have an extra field for the 'not
generated' class of system calls. Remove the historical wart so that the
re-write of makesyscalls.lua can be simpler (so, I hope, qemu's bsd-user
can large swathes of code automatically generated too). This should help
make things more understandable (changes to simplify makesyscalls.lue
aren't quite debugged, so have to wait for another day).

There's 3 different obsolete sigreturns (but only 1 that was ever in
FreeBSD 2.x and newer).

Sponsored by: Netflix

14 months agoRemove stray line
Warner Losh [Fri, 21 Apr 2023 05:04:40 +0000 (23:04 -0600)]
Remove stray line

Forgot to remove this in 559b94a12257.

Fixes: 559b94a12257
Sponsored by: Netflix

14 months agobsdinstall avoid subdir depending on parent
Simon J. Gerraty [Fri, 21 Apr 2023 05:00:40 +0000 (22:00 -0700)]
bsdinstall avoid subdir depending on parent

When not doing tree walks, it is bad for sub-dirs to depend on
parents.  Move the generation of opt_osname.h to distextract
and have others that need that depend on it.

In usr.sbin/bsdinstall use SUBDIR_DEPEND_ so tree walking still works.

Reviewed by: obrien
Differential Revision: https://reviews.freebsd.org/D39742

14 months agozoneinfo get zic from stage tree during DIRDEPS_BUILD
Simon J. Gerraty [Fri, 21 Apr 2023 04:00:17 +0000 (21:00 -0700)]
zoneinfo get zic from stage tree during DIRDEPS_BUILD

14 months agocxgbe(4): Update firmwares to version 1.27.3.0
Navdeep Parhar [Fri, 21 Apr 2023 01:24:57 +0000 (18:24 -0700)]
cxgbe(4): Update firmwares to version 1.27.3.0

These are the changes since the last update (copy-pasted from the
release notes for Chelsio Unified Wire v3.18.0.0):

====================
Version : 1.27.3.0
Date    : 04/07/2023

Fixes
-----
BASE:
- Fixed a hang if module eeprom reads gives invalid data.
- KR backlplane no-fec link problem fixed.
OFLD:
- iscsi ddp errors fixed.
- iwarp connection abort in rare cases causing NIC traffic hang fixed.

ENHANCEMENTS
------------
BASE:
- Cisco GLC-TE 1G modules support added.

====================
Version : 1.27.1.0
Date    : 12/02/2022

Fixes
-----
BASE:
- memwrite dsgl cannot be used for T5.
OFLD:
- Enabled FCoE in SO adapters.
- TOE-TLS crash fixed.
- iscsi hang fixed.

MFC after: 2 weeks
Sponsored by: Chelsio Communications

14 months agoUpdate meta.sys.mk and related local*mk
Simon J. Gerraty [Fri, 21 Apr 2023 03:38:53 +0000 (20:38 -0700)]
Update meta.sys.mk and related local*mk

Move the setting of TARGET_SPEC_VARS to local.sys.env.mk
so meta.sys.mk can do the processing, and include local.meta.sys.mk
later.

Move the setting of GENDIRDEPS_FILTER*_VARS from local.gendirdeps.mk
to local.meta.sys.mk so we can automatically set DEP_* at level 1+
to avoid syntax errors when DEP_* variables are used in conditionals
in Makefile.depend files.

Update gendirdeps.mk just to get the documentation about the above.
No functional change.

local.dirdeps.mk be more careful about adding to DIRDEPS to avoid
unnecessary overhead, and introducing cycles in the graph.
Also set DEP_MACHINE_CPUARCH.

Reviewed by: stevek
Sponsored by: Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D39737

14 months agoVendor import of libcbor 0.10.2
Ed Maste [Thu, 20 Apr 2023 23:17:42 +0000 (19:17 -0400)]
Vendor import of libcbor 0.10.2

14 months agosyscall.master: Fix comments
Warner Losh [Thu, 20 Apr 2023 22:16:21 +0000 (16:16 -0600)]
syscall.master: Fix comments

Have more accruate comments. While #if, #else, etc are copied to the
header files, lines that don't start with # are not.  And #include files
are only output to sysinc (which winds up at the front of init_sysent.c
which seems a bit odd). This is all radically undocumented, and likely
has drifted somewhat from 4.4BSD and what other systems do (they've
drifted too, fwiw).

Sponsored by: Netflix

14 months agomakesyscalls.lua: Minor fluff removal
Warner Losh [Thu, 20 Apr 2023 22:16:16 +0000 (16:16 -0600)]
makesyscalls.lua: Minor fluff removal

luacheck pointed out two minor issues: line isn't declared as a global,
so declare it local. Also remove an unused parameter.

Suggested by: kevans
Sponsored by: Netflix

14 months agomakesyscalls.lua: Use "sysxxx" consistently
Warner Losh [Thu, 20 Apr 2023 22:16:06 +0000 (16:16 -0600)]
makesyscalls.lua: Use "sysxxx" consistently

Find the few places where we use 'sysxxx' and use "sysxxx" instead to be
more consistent.

Sponsored by: Netflix

14 months agomakesyscalls.lua: Make more luaish
Warner Losh [Thu, 20 Apr 2023 22:15:57 +0000 (16:15 -0600)]
makesyscalls.lua: Make more luaish

x["y"] can be written as x.y, which looks better and is a more typical
lua idiom.

Sponsored by: Netflix
Reviewed by: kevans
Differential Revision: https://reviews.freebsd.org/D39709

14 months agoopenssh: Update configure for DISABLE_LASTLOG
Ed Maste [Thu, 20 Apr 2023 00:03:26 +0000 (20:03 -0400)]
openssh: Update configure for DISABLE_LASTLOG

PR: 209441
Sponsored by: The FreeBSD Foundation

14 months agonetstat: cleanup
Michael Tuexen [Thu, 20 Apr 2023 21:52:19 +0000 (23:52 +0200)]
netstat: cleanup

protopr does not support reading from a core anymore.
So don't state that it can.

Reviewed by: glebius, rscheff, rrs
MFC after: 1 week
Sponsored by: Netflix, Inc.
Differential Revision: https://reviews.freebsd.org/D39688

14 months agoCirrus-CI: Run makeman script
Brooks Davis [Thu, 20 Apr 2023 21:38:10 +0000 (22:38 +0100)]
Cirrus-CI: Run makeman script

Run makeman and verify that src.conf.5 has been updated if
required and that there are no missing definition files.

Reviewed by: emaste
Sponsored by: DARPA
Differential Revision: https://reviews.freebsd.org/D39682

14 months agoRemove unused NETLINK build option
Brooks Davis [Thu, 20 Apr 2023 21:34:31 +0000 (22:34 +0100)]
Remove unused NETLINK build option

NETLINK was added along side NETLINK_SUPPORT to control building netlink
specific programs, but it has no consumers so remove it for now.

Reviewed by: melifaro
Differential Revision: https://reviews.freebsd.org/D39678

14 months agosrc.conf.5: regen with WITH_NETLINK_SUPPORT desc
Brooks Davis [Thu, 20 Apr 2023 21:34:27 +0000 (22:34 +0100)]
src.conf.5: regen with WITH_NETLINK_SUPPORT desc

Reviewed by: melifaro
Differential Revision: https://reviews.freebsd.org/D39677

14 months agoAdd WITH_NETLINK_SUPPORT description
Brooks Davis [Thu, 20 Apr 2023 21:34:21 +0000 (22:34 +0100)]
Add WITH_NETLINK_SUPPORT description

Reviewed by: melifaro
Differential Revision: https://reviews.freebsd.org/D39676

14 months agocxgbe(4): Dump the firmware log before falling back to a minimal config.
Navdeep Parhar [Thu, 20 Apr 2023 19:43:45 +0000 (12:43 -0700)]
cxgbe(4): Dump the firmware log before falling back to a minimal config.

It might have errors that explain why the attempted configuration
failed.

MFC after: 1 week
Sponsored by: Chelsio Communications

14 months agonetstat: fix printing of TCP pcbs with -A
Gleb Smirnoff [Thu, 20 Apr 2023 19:41:03 +0000 (12:41 -0700)]
netstat: fix printing of TCP pcbs with -A

This change touches both kernel and netstat(1), but either of the changes
will fix printing pcb addresses with -A.

The thing is that historically netstat(1) treated TCP differently, and
printed tcpcb address instead of inpcb address.  This is not documented
anywhere!  With e68b3792440 these two addresses became the same.  It is
highly likely they will be the same for a long time, but it might be they
will start to differ again in a far future.  My proposal is to stop
treating TCP differently with netstat(1) and right now is a good opportunity
to do that, since there will be no behavior change at all.  The kernel
change to tcp_inptoxtp() will go into stable/14 to make it compatible with
netstat(1) binary from stable/13.  We can drop it later, probably together
with in_ppcb pointer from inpcb.  The in_ppcb in xinpcb will stay for size
compatibility.

Reviewed by: tuexen, rrs
Differential Revision: https://reviews.freebsd.org/D39736

14 months agokern.mk: clang >= 16 already infers ELFv2 for powerpc64
Dimitry Andric [Thu, 20 Apr 2023 19:27:11 +0000 (21:27 +0200)]
kern.mk: clang >= 16 already infers ELFv2 for powerpc64

There is no need to pass -mabi=elfv2 explicitly anymore, and with clang
16 in fact results in a "unused argument" warning.

MFC after: 3 days

14 months agodpaa2: add console support for FDT based systems
Bjoern A. Zeeb [Tue, 14 Feb 2023 15:53:13 +0000 (15:53 +0000)]
dpaa2: add console support for FDT based systems

Add DPAA2 console support for MC and AIOP (latter untested) for FDT
systems.  ACPI systems are prepared but need some proper bus function
in order to get the address from MC (and likely a file splitup then).
This will come at a later stage once other ACPI/FDT bus parts are
cleared up.
The work was originally done in July 2022 and finally switched to
bus_space[1] lately to be ready for main.

Suggested by: andrew [1]
Reviewed by: dsl
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D38592

14 months agoarm: Use C89 function declaration for db_read_bytes.
John Baldwin [Thu, 20 Apr 2023 18:00:46 +0000 (11:00 -0700)]
arm: Use C89 function declaration for db_read_bytes.

14 months agoperfmon(4): Use a C89 function definition for a SYSINIT.
John Baldwin [Thu, 20 Apr 2023 18:00:46 +0000 (11:00 -0700)]
perfmon(4): Use a C89 function definition for a SYSINIT.

14 months agoRemove a few more references to riscv64sf.
John Baldwin [Thu, 20 Apr 2023 18:00:46 +0000 (11:00 -0700)]
Remove a few more references to riscv64sf.

Fixes: 1ca12bd927d7 Remove the riscv64sf architecture.

14 months agodtrace: add register bindings for RISC-V
Christos Margiolis [Thu, 20 Apr 2023 16:25:37 +0000 (16:25 +0000)]
dtrace: add register bindings for RISC-V

Reviewed by: mhorne, markj
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D39611

14 months agodtrace: use dtrace_instr_size() in the riscv dtrace_subr.c
Christos Margiolis [Thu, 20 Apr 2023 16:24:03 +0000 (16:24 +0000)]
dtrace: use dtrace_instr_size() in the riscv dtrace_subr.c

No functional change intended.

Reviewed by: mhorne, markj
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D39652

14 months agodtrace: expose dtrace_instr_size() to userland and implement it for riscv
Christos Margiolis [Thu, 20 Apr 2023 16:21:46 +0000 (16:21 +0000)]
dtrace: expose dtrace_instr_size() to userland and implement it for riscv

dtrace_instr_size() is needed by the forthcoming RISC-V port of kinst,
as well as by libdtrace in D38825 for both amd64 and RISC-V.

Reviewed by: markj, mhorne
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D39489

14 months agodtrace: get rid of uchar_t types
Christos Margiolis [Thu, 20 Apr 2023 16:19:42 +0000 (16:19 +0000)]
dtrace: get rid of uchar_t types

Callers are specifying uint8_t anyway and this slightly reduces
dependencies on compatibility typedefs.  No functional change intended.

Reviewed by: markj, mhorne
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D39490

14 months agoRevert "libc: Implement bsort(3) a bitonic type of sorting algorithm."
Hans Petter Selasky [Thu, 20 Apr 2023 16:50:32 +0000 (18:50 +0200)]
Revert "libc: Implement bsort(3) a bitonic type of sorting algorithm."

Some points for the future:
 - libc is not the right place for sorting algorithms.
   Probably libutil is better suited for this purpose or
   a dedicated libsort. Should move all sorting algorithms
   away from libc eventually.
 - CheriBSD uses capabilities for memory access, and could
   benefit from a standard memswap() function.
 - Do something about qsort() in FreeBSD's libc like:
   - Mark it deprecated on FreeBSD, as a first step,
     due to missing limits on CPU time.
   - Audit the use of qsort() in the FreeBSD base system
     and consider swapping to other existing sorting
     algorithms.

Discussed with: brooks@

Differential Revision: https://reviews.freebsd.org/D36493

This reverts commit a7469c9c0a504a5e6e9b89e148cd78df5e67ff7f.
This reverts commit 7d65a450cdcc7cc743f2ecd114ba3428a21c0033.
This reverts commit 8dcf3a82c54cb216df3213a013047907636a01da.

14 months agoFix building host tools for host
Simon J. Gerraty [Thu, 20 Apr 2023 17:05:43 +0000 (10:05 -0700)]
Fix building host tools for host

Several makefile depend on tools built for host.
At least when using DIRDEPS_BUILD we can build these for the
pseudo machine "host" to facilitate building on older host versions.

Ideally we would build these tools in their own directories to avoid
building more than needed.

For now, setting an appropriate default for BTOOLSPATH will suffice

Reviewed by: stevek
Sponsored by: Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D39708

14 months agox86: Move i386 timerreg.h to x86
Dmitry Chagin [Thu, 20 Apr 2023 16:42:59 +0000 (19:42 +0300)]
x86: Move i386 timerreg.h to x86

Reviewed by: emaste, jhb
Differential Revision: https://reviews.freebsd.org/D39656
MFC after: 1 month

14 months agox86: Move i386 ppireg.h to x86
Dmitry Chagin [Thu, 20 Apr 2023 16:42:59 +0000 (19:42 +0300)]
x86: Move i386 ppireg.h to x86

Differential Revision: https://reviews.freebsd.org/D39655
MFC after: 1 month

14 months agoAdd jobs.mk to allow for target-jobs
Simon J. Gerraty [Thu, 20 Apr 2023 16:40:39 +0000 (09:40 -0700)]
Add jobs.mk to allow for target-jobs

jobs.mk automates -j$JOB_MAX and capturing build log based on target.

Compute a default for JOB_MAX in local.sys.mk

Reviewed by: stevek, imp
Differential Revision: https://reviews.freebsd.org/D39683

14 months agomakefs: set cd9660 Rock Ridge timestamps for . and ..
Ed Maste [Tue, 18 Apr 2023 13:57:29 +0000 (09:57 -0400)]
makefs: set cd9660 Rock Ridge timestamps for . and ..

DOT and DOTDOT entries have special handling, and previously only Rock
Ridge PX (POSIX attributes) entries were attached.  Add TF (timestamp)
entries as well.

PR: 203531
Reported by: Thomas Schmitt <scdbackup@gmx.net>
Reviewed by: markj
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D39662

14 months agoinpcb: Release the inpcb cred reference before freeing the structure
Mark Johnston [Thu, 20 Apr 2023 15:48:33 +0000 (11:48 -0400)]
inpcb: Release the inpcb cred reference before freeing the structure

Now that the inp_cred pointer is accessed only while the inpcb lock is
held, we can avoid deferring a crfree() call when freeing an inpcb.

This fixes a problem introduced when inpcb hash tables started being
synchronized with SMR: the credential reference previously could not be
released until all lockless readers have drained, and there is no
mechanism to explicitly purge cached, freed UMA items.  Thus, ucred
references could linger indefinitely, and since ucreds hold a jail
reference, the jail would linger indefinitely as well.  This manifests
as jails getting stuck in the DYING state.

Discussed with: glebius
Tested by: glebius
Sponsored by: Klara, Inc.
Sponsored by: Modirum MDPay
Differential Revision: https://reviews.freebsd.org/D38573

14 months agoinpcb: Avoid inp_cred dereferences in SMR-protected lookup
Mark Johnston [Thu, 20 Apr 2023 15:48:19 +0000 (11:48 -0400)]
inpcb: Avoid inp_cred dereferences in SMR-protected lookup

The SMR-protected inpcb lookup algorithm currently has to check whether
a matching inpcb belongs to a jail, in order to prioritize jailed
bound sockets.  To do this it has to maintain a ucred reference, and for
this to be safe, the reference can't be released until the UMA
destructor is called, and this will not happen within any bounded time
period.

Changing SMR to periodically recycle garbage is not trivial.  Instead,
let's implement SMR-synchronized lookup without needing to dereference
inp_cred.  This will allow the inpcb code to free the inp_cred reference
immediately when a PCB is freed, ensuring that ucred (and thus jail)
references are released promptly.

Commit 220d89212943 ("inpcb: immediately return matching pcb on lookup")
gets us part of the way there.  This patch goes further to handle
lookups of unconnected sockets.  Here, the strategy is to maintain a
well-defined order of items within a hash chain so that a wild lookup
can simply return the first match and preserve existing semantics.  This
makes insertion of listening sockets more complicated in order to make
lookup simpler, which seems like the right tradeoff anyway given that
bind() is already a fairly expensive operation and lookups are more
common.

In particular, when inserting an unconnected socket, in_pcbinhash() now
keeps the following ordering:
- jailed sockets before non-jailed sockets,
- specified local addresses before unspecified local addresses.

Most of the change adds a separate SMR-based lookup path for inpcb hash
lookups.  When a match is found, we try to lock the inpcb and
re-validate its connection info.  In the common case, this works well
and we can simply return the inpcb.  If this fails, typically because
something is concurrently modifying the inpcb, we go to the slow path,
which performs a serialized lookup.

Note, I did not touch lbgroup lookup, since there the credential
reference is formally synchronized by net_epoch, not SMR.  In
particular, lbgroups are rarely allocated or freed.

I think it is possible to simplify in_pcblookup_hash_wild_locked() now,
but I didn't do it in this patch.

Discussed with: glebius
Tested by: glebius
Sponsored by: Klara, Inc.
Sponsored by: Modirum MDPay
Differential Revision: https://reviews.freebsd.org/D38572

14 months agoinpcb: Move inpcb matching logic into separate functions
Mark Johnston [Thu, 20 Apr 2023 15:48:08 +0000 (11:48 -0400)]
inpcb: Move inpcb matching logic into separate functions

These functions will get some additional callers in future revisions.

No functional change intended.

Discussed with: glebius
Tested by: glebius
Sponsored by: Modirum MDPay
Sponsored by: Klara, Inc.
Differential Revision: https://reviews.freebsd.org/D38571

14 months agoinpcb: Split PCB hash tables
Mark Johnston [Thu, 20 Apr 2023 15:48:01 +0000 (11:48 -0400)]
inpcb: Split PCB hash tables

Currently we use a single hash table per PCB database for connected and
bound PCBs.  Since we started using net_epoch to synchronize hash table
lookups, there's been a bug, noted in a comment above in_pcbrehash():
connecting a socket can cause an inpcb to move between hash chains, and
this can cause a concurrent lookup to follow the wrong linkage pointers.
I believe this could cause rare, spurious ECONNREFUSED errors in the
worse case.

Address the problem by introducing a second hash table and adding more
linkage pointers to struct inpcb.  Now the database has one table each
for connected and unconnected sockets.

When inserting an inpcb into the hash table, in_pcbinhash() now looks at
the foreign address of the inpcb to figure out which table to use.  This
ensures that queue linkage pointers are stable until the socket is
disconnected, so the problem described above goes away.  There is also a
small benefit in that in_pcblookup_*() can now search just one of the
two possible hash buckets.

I also made the "rehash" parameter of in(6)_pcbconnect() unused.  This
parameter seems confusing and it is simpler to let the inpcb code figure
out what to do using the existing INP_INHASHLIST flag.

UDP sockets pose a special problem since they can be connected and
disconnected multiple times during their lifecycle.  To handle this, the
patch plugs a hole in the inpcb structure and uses it to store an SMR
sequence number.  When an inpcb is disconnected - an operation which
requires the global PCB database hash lock - the write sequence number
is advanced, and in order to reconnect, the connecting thread must wait
for readers to drain before reusing the inpcb's hash chain linkage
pointers.

raw_ip (ab)uses the hash table without using the corresponding
accessors.  Since there are now two hash tables, it arbitrarily uses the
"connected" table for all of its PCBs.  This will be addressed in some
way in the future.

inp interators which specify a hash bucket will only visit connected
PCBs.  This is not really correct, but nothing in the tree uses that
functionality except raw_ip, which as mentioned above places all of its
PCBs in the "connected" table and so is unaffected.

Discussed with: glebius
Tested by: glebius
Sponsored by: Klara, Inc.
Sponsored by: Modirum MDPay
Differential Revision: https://reviews.freebsd.org/D38569

14 months agoLinuxKPI: 802.11: improve assertion and tkip code
Bjoern A. Zeeb [Thu, 20 Apr 2023 16:01:05 +0000 (16:01 +0000)]
LinuxKPI: 802.11: improve assertion and tkip code

Move a KASSERT out of a function and make it a CTASSERT with
appropriate comments.

Skeleton implement two tkip functions, still left TODO, initializing
variables with dummy values to quiten compiler warnings.  It is
unclear to me if we should still ever properly implement TKIP
compat code at this point.  If so the current code gives a good
idea what needs to be done in addition to allocating references
to real state along with keyconf.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days

14 months agoiwlwifi: quieten more compiler warnings
Bjoern A. Zeeb [Thu, 20 Apr 2023 15:57:14 +0000 (15:57 +0000)]
iwlwifi: quieten more compiler warnings

Quieten some more (valid) gcc warnings and disable dead code.
There are more warnings, some probably a compiler problem, the
other related to firmware structs which I do not want to adjust
just locally.  Leave a comment to revisit after a next driver
update.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days

14 months agonetwork.subr: adjust regex for wlans_xxxxx rc.conf entries
Bjoern A. Zeeb [Tue, 18 Apr 2023 14:40:13 +0000 (14:40 +0000)]
network.subr: adjust regex for wlans_xxxxx rc.conf entries

Drivers like ath1[012]k will not match the current wlans_*-regex as
they have digits followed by letters.  Adjust the regex to allow
this combination in order to be able to configure interfaces with
names like wlans_ath11k0="..."

MFC after: 3 days
Reviewed by: emaste
Differential Revision: https://reviews.freebsd.org/D39674

14 months agovmrun.sh: Fix a typo in usage()
Mateusz Piotrowski [Thu, 20 Apr 2023 12:43:57 +0000 (14:43 +0200)]
vmrun.sh: Fix a typo in usage()

MFC after: 3 days
Sponsored by: Klara Inc.

14 months agoLinuxKPI: fix READ_ONCE() -Wcast-equal warnings
Bjoern A. Zeeb [Wed, 19 Apr 2023 21:43:59 +0000 (21:43 +0000)]
LinuxKPI: fix READ_ONCE() -Wcast-equal warnings

Rather than using ACCESS_ONCE() in READ_ONCE() add a missing cast
to const in order to satisfy -Wcast-equal by gcc.
Sadly we cannot do the same to WRITE_ONCE() which still is very
noisy.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days
Reviewed by: hselasky
Differential Revision: https://reviews.freebsd.org/D39706

14 months agoifnet: factor out interface renaming into a separate function.
Alexander V. Chernikov [Wed, 19 Apr 2023 14:26:20 +0000 (14:26 +0000)]
ifnet: factor out interface renaming into a separate function.

This change is required to support interface renaming via Netlink.
No functional changes intended.

Reviewed by: zlei
Differential Revision: https://reviews.freebsd.org/D39692
MFC after: 2 weeks

14 months agostand: Remove a double word in a source code comment
Gordon Bergling [Thu, 20 Apr 2023 09:11:18 +0000 (11:11 +0200)]
stand: Remove a double word in a source code comment

- s/value value/value/

MFC after: 3 days

14 months agozfs: fix up EINVAL from getdirentries on .zfs
Mateusz Guzik [Thu, 20 Apr 2023 08:36:53 +0000 (08:36 +0000)]
zfs: fix up EINVAL from getdirentries on .zfs

PR: 270909

14 months agozfs: add missing vn state transition for .zfs
Mateusz Guzik [Thu, 20 Apr 2023 08:09:59 +0000 (08:09 +0000)]
zfs: add missing vn state transition for .zfs

Reported by: des

14 months agoMakefile.xtras: fix show-valid-targets
Simon J. Gerraty [Thu, 20 Apr 2023 01:59:53 +0000 (18:59 -0700)]
Makefile.xtras: fix show-valid-targets

Use ALL_MACHINE_LIST and leverage .MAKE.DEPENDFILE_PREFERENCE

14 months agometa: remove LDFLAGS setting when cross building
Stephen J. Kiernan [Mon, 17 Apr 2023 23:36:02 +0000 (19:36 -0400)]
meta: remove LDFLAGS setting when cross building

The setting was left over from older clang version and is not
necessary any more (and also causes link issues.)

Reviewed by: sjg

14 months agoopenssh: restore PrintLastLog option
Ed Maste [Thu, 20 Apr 2023 00:09:13 +0000 (20:09 -0400)]
openssh: restore PrintLastLog option

Upstream's autoconf sets DISABLE_LASTLOG if lastlog.ll_line does not
exist, but PrintLastLog also works with utmpx and other mechanisms.

Reported upstream at
https://lists.mindrot.org/pipermail/openssh-unix-dev/2022-May/040242.html

PR: 209441
Sponsored by: The FreeBSD Foundation

14 months agoLinuxKPI: 802.11: fix a -Wenum-compare warning
Bjoern A. Zeeb [Wed, 19 Apr 2023 21:40:18 +0000 (21:40 +0000)]
LinuxKPI: 802.11: fix a -Wenum-compare warning

We are asserting that two values from different enums are the same.
gcc warns about these.  Cast the values to (int) to avoid the warning.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days

14 months agoLinuxKPI: skbuff.h: fix -Warray-bounds warnings
Bjoern A. Zeeb [Wed, 19 Apr 2023 21:37:01 +0000 (21:37 +0000)]
LinuxKPI: skbuff.h: fix -Warray-bounds warnings

Harmonize sk_buff_head and sk_buff further and fix -Warray-bounds
warnings reports by gcc.  At the same time simplify some code by
re-using other functions or factoring some code out.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days

14 months agoichiic: use bool for one-bit wide bit-fields
Dimitry Andric [Tue, 18 Apr 2023 18:08:28 +0000 (20:08 +0200)]
ichiic: use bool for one-bit wide bit-fields

A one-bit wide bit-field can take only the values 0 and -1. Clang 16
introduced a warning that "implicit truncation from 'int' to a one-bit
wide bit-field changes value from 1 to -1". Fix by using c99 bool.

Reported by: Clang
Reviewed by: emaste, wulf
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D39665

14 months agolibc: bsort_s() requires both __BSD_VISIBLE and __EXT1_VISIBLE
Hans Petter Selasky [Wed, 19 Apr 2023 19:37:29 +0000 (21:37 +0200)]
libc: bsort_s() requires both __BSD_VISIBLE and __EXT1_VISIBLE

Fixes build of Python:
/usr/include/stdlib.h:409:1: error: unknown type name 'errno_t'
errno_t  bsort_s(void *, rsize_t, rsize_t,

Reported by: vishwin@
MFC after: 1 week
Sponsored by: NVIDIA Networking
Differential Revision: https://reviews.freebsd.org/D36493

14 months agovfs cache: fix vfs.cache.stats.* name typos
Igor Ostapenko [Wed, 19 Apr 2023 17:12:25 +0000 (20:12 +0300)]
vfs cache: fix vfs.cache.stats.* name typos

Two vfs.cache.stats names are fixed:
- s/.dotdothis/.dotdothits/
- s/.posszaps/.poszaps/

Signed-off-by: Igor Ostapenko <pm@igoro.pro>
[mjg: massaged the header a little bit]