]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
2 years agolinux: Make PTRACE_GET_SYSCALL_INFO handle EJUSTRETURN
Edward Tomasz Napierala [Sat, 23 Oct 2021 17:56:29 +0000 (18:56 +0100)]
linux: Make PTRACE_GET_SYSCALL_INFO handle EJUSTRETURN

This fixes panic when trying to run strace(8) from Focal.

Reviewed By: kib
Sponsored By: EPSRC
Differential Revision: https://reviews.freebsd.org/D32355

2 years agolinux: Improve debug for PTRACE_GETREGSET
Edward Tomasz Napierala [Fri, 22 Oct 2021 18:58:52 +0000 (19:58 +0100)]
linux: Improve debug for PTRACE_GETREGSET

No functional changes.

Sponsored By: EPSRC

2 years agolinux: Fix ENOTSOCK handling in sendfile(2)
Edward Tomasz Napierala [Sat, 23 Oct 2021 08:15:37 +0000 (09:15 +0100)]
linux: Fix ENOTSOCK handling in sendfile(2)

The Linux way for sendfile(2) to tell the application
to fallback to another way of copying data is by EINVAL,
not ENOTSOCK.  This fixes package installation scripts
for Mono packages from Focal.

Sponsored By: EPSRC
Differential Revision: https://reviews.freebsd.org/D32604

2 years agolinux: Constify bsd_to_linux_regset()
Edward Tomasz Napierala [Sat, 23 Oct 2021 07:33:48 +0000 (08:33 +0100)]
linux: Constify bsd_to_linux_regset()

No functional changes.

Reviewed By: emaste
Sponsored By: EPSRC
Differential Revision: https://reviews.freebsd.org/D32599

2 years agostress2: Fix typo
Peter Holm [Sat, 23 Oct 2021 06:39:36 +0000 (06:39 +0000)]
stress2: Fix typo

2 years agomsun: Add copyright notices
Warner Losh [Sat, 23 Oct 2021 04:00:54 +0000 (22:00 -0600)]
msun: Add copyright notices

These files were copied from MUSL. Add the standard copyright notice and
SPDX-License-Identifier: MIT consistent with our new draft license
policy. It reads word for word the same as the MIT license on the SPDX
web site. Add a pointer to the MUSL COPYIRGHT file which contains a list
of all authors of MUSL.

Sponsored by: Netflix
Noticed by: Steve Kargl

2 years agoAdd libfido2 to the build
Ed Maste [Thu, 7 Oct 2021 01:52:05 +0000 (21:52 -0400)]
Add libfido2 to the build

From https://github.com/Yubico/libfido2:

    libfido2 provides library functionality and command-line tools to
    communicate with a FIDO device over USB, and to verify attestation
    and assertion signatures.

    libfido2 supports the FIDO U2F (CTAP 1) and FIDO 2.0 (CTAP 2)
    protocols.

libfido2 will be used by ssh to support FIDO/U2F keys. It is currently
intended only for use by ssh, and so is installed as a PRIVATELIB and is
placed in the ssh pkgbase package.

This is currently disabled for the 32-bit library build as libfido2 is
not compatible with the COMPAT_32BIT hack in usb_ioctl.h.

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

2 years agonehemiah: manually assemble xstore(-rng)
Konstantin Belousov [Wed, 20 Oct 2021 22:42:05 +0000 (01:42 +0300)]
nehemiah: manually assemble xstore(-rng)

It seems that clang IAS erronously adds repz prefix which should not be
there.  Cpu would try to store around %ecx bytes of random, while we
only expect a word.

PR: 259218
Reported and tested by:  Dennis Clarke <dclarke@blastwave.org>
Sponsored by: The FreeBSD Foundation
MFC after: 1 week

2 years agobsnmpd: Remove "All Rights Reserved" from FreeBSD Foundation copyrights
Ed Maste [Fri, 22 Oct 2021 22:52:05 +0000 (18:52 -0400)]
bsnmpd: Remove "All Rights Reserved" from FreeBSD Foundation copyrights

Sponsored by: The FreeBSD Foundation

2 years agoUse network epoch to protect local IPv4 addresses hash.
Gleb Smirnoff [Sun, 10 Oct 2021 17:02:26 +0000 (10:02 -0700)]
Use network epoch to protect local IPv4 addresses hash.

The modification to the hash are already naturally locked by
in_control_sx.  Convert the hash lists to CK lists. Remove the
in_ifaddr_rmlock. Assert the network epoch where necessary.

Most cases when the hash lookup is done the epoch is already entered.
Cover a few cases, that need entering the epoch, which mostly is
initial configuration of tunnel interfaces and multicast addresses.

Reviewed by: melifaro
Differential revision: https://reviews.freebsd.org/D32584

2 years agoFix sconfig(8) build.
Gleb Smirnoff [Fri, 22 Oct 2021 20:28:44 +0000 (13:28 -0700)]
Fix sconfig(8) build.

Missed that since sconfig(8) was built on i386 only. Since I enabled
cp(4) on amd64, enable sconfig(8) as well.

Fixes: 6aae3517ed25

2 years agoRevert "Handle partial reads in zfs_read"
Mark Johnston [Fri, 22 Oct 2021 18:55:14 +0000 (14:55 -0400)]
Revert "Handle partial reads in zfs_read"

This reverts commit 59eab1093a361ca76849ca76b2ec079c8736e8e3.

The change suppressed EFAULT originating from uiomove().  The deadlock
avoidance mechanism implemented by vn_io_fault1() in the VFS handles
such errors by wiring the user pages and retrying, but this change
caused read() to return early instead.  This can result in short I/O,
causing misbehaviour in some applications, and possibly other
consequences.

Until this is resolved somehow, revert the commit.

Approved by: mm

2 years agoRetire synchronous PPP kernel driver sppp(4).
Gleb Smirnoff [Thu, 21 Oct 2021 04:08:13 +0000 (21:08 -0700)]
Retire synchronous PPP kernel driver sppp(4).

The last two drivers that required sppp are cp(4) and ce(4).

These devices are still produced and can be purchased
at Cronyx <http://cronyx.ru/hardware/wan.html>.

Since Roman Kurakin <rik@FreeBSD.org> has quit them, they no
longer support FreeBSD officially.  Later they have dropped
support for Linux drivers to.  As of mid-2020 they don't even
have a developer to maintain their Windows driver.  However,
their support verbally told me that they could provide aid to
a FreeBSD developer with documentaion in case if there appears
a new customer for their devices.

These drivers have a feature to not use sppp(4) and create an
interface, but instead expose the device as netgraph(4) node.
Then, you can attach ng_ppp(4) with help of ports/net/mpd5 on
top of the node and get your synchronous PPP.  Alternatively
you can attach ng_frame_relay(4) or ng_cisco(4) for HDLC.
Actually, last time I used cp(4) back in 2004, using netgraph(4)
instead of sppp(4) was already the right way to do.

Thus, remove the sppp(4) related part of the drivers and enable
by default the negraph(4) part.  Further maintenance of these
drivers in the tree shouldn't be a big deal.

While doing that, remove some cruft and enable cp(4) compilation
on amd64.  The ce(4) for some unknown reason marks its internal
DDK functions with __attribute__ fastcall, which most likely is
safe to remove, but without hardware I'm not going to do that, so
ce(4) remains i386-only.

Reviewed by: emaste, imp, donner
Differential Revision: https://reviews.freebsd.org/D32590
See also: https://reviews.freebsd.org/D23928

2 years agopowerpc64: tell kernel when radix is not available
Leandro Lupori [Fri, 22 Oct 2021 16:44:21 +0000 (13:44 -0300)]
powerpc64: tell kernel when radix is not available

If CAS detects that radix is not supported, set radix_mmu to 0
to avoid the kernel trying to use it and panic.

MFC after: 2 weeks
Sponsored by: Instituto de Pesquisas Eldorado (eldorado.org.br)

2 years agovm_page: Break reservations to handle noobj allocations
Mark Johnston [Thu, 21 Oct 2021 15:46:25 +0000 (11:46 -0400)]
vm_page: Break reservations to handle noobj allocations

vm_reserv_reclaim_*() will release pages to the default freepool, not
the direct freepool from which noobj allocations are drawn.  But if both
pools are empty, the noobj allocator variants must break reservations to
make progress.

Reported by: cy
Reviewed by: kib (previous version)
Fixes: b498f71bc56a ("vm_page: Add a new page allocator interface for unnamed pages")
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D32592

2 years agotcp: Add hystart-plus to cc_newreno and rack.
Randall Stewart [Fri, 22 Oct 2021 11:10:28 +0000 (07:10 -0400)]
tcp: Add hystart-plus to cc_newreno and rack.

TCP Hystart draft version -03:
https://datatracker.ietf.org/doc/html/draft-ietf-tcpm-hystartplusplus

Is a new version of hystart that allows one to carefully exit slow start if the RTT
spikes too much. The newer version has a slower-slow-start so to speak that then
kicks in for five round trips. To see if you exited too early, if not into congestion avoidance.
This commit will add that feature to our newreno CC and add the needed bits in rack to
be able to enable it.

Reviewed by: tuexen
Sponsored by: Netflix Inc.
Differential Revision: https://reviews.freebsd.org/D32373

2 years agoigc: correctly update RCTL when changing multicast filters.
Peter Grehan [Mon, 11 Oct 2021 17:49:01 +0000 (03:49 +1000)]
igc: correctly update RCTL when changing multicast filters.

Fix clearing of bits in RCTL for the non-bpf/non-allmulti case.
Update RCTL after modifying the multicast filter registers as per
the Linux driver.

This fixes LACP on igc interfaces, where incoming LACP multicasti
control packets were being dropped.

Reviewed by: kbowling
Obtained from: Rubicon Communications, LLC ("Netgate")
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D32574

2 years agonet80211: correct input_sta length checks and control frame handling
Bjoern A. Zeeb [Thu, 30 Sep 2021 16:41:19 +0000 (16:41 +0000)]
net80211: correct input_sta length checks and control frame handling

Correct input_sta "assertion" checks.  CTS/ACK CTRL frames are shorter
then sizeof(struct ieee80211_frame_min) and were thus running into the
is_rx_tooshort error case.
Use ieee80211_anyhdrsize() to handle this better but make sure we do
at least have the first 2 octets needed for that.
While here move the safety checks before any code which may not obey
them later, just for good style.

The non-scanning check further down assumes a frame format also not
matching control frames.  For now skip the checks for control frames
which allows us to deal with some of them at least now.

Sponsored by: The FreeBSD Foundation
Obtained from: 20210906 wireless v0.91 code drop
MFC after: 3 days
Reviewed by: adrian
Differential Revision: https://reviews.freebsd.org/D32238

2 years agonet80211/drivers: improve ieee80211_rx_stats for band
Bjoern A. Zeeb [Sun, 6 Jun 2021 21:14:28 +0000 (21:14 +0000)]
net80211/drivers: improve ieee80211_rx_stats for band

While IEEE80211_R_BAND was defined, there was no place to store the
band.  Add a field for that, adjust ieee80211_lookup_channel_rxstatus()
to require it, and update drivers passing "R_{FREQ|IEEE}" in already to
provide the band as well.  For the moment keep the fall-back code
requiring all three fields.

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

2 years agopf tests: test NAT-ed ICMP errors
Kristof Provost [Tue, 19 Oct 2021 11:52:21 +0000 (13:52 +0200)]
pf tests: test NAT-ed ICMP errors

Ensure that the ICMP error is returned with the correct
source and destination addresses.

MFC after: 3 weeks
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D32572

2 years agopf: ensure we have the correct source/destination IP address in ICMP errors
Luiz Otavio O Souza [Tue, 19 Oct 2021 11:37:54 +0000 (13:37 +0200)]
pf: ensure we have the correct source/destination IP address in ICMP errors

When we route-to a packet that later turns out to not fit in the
outbound interface MTU we generate an ICMP error.
However, if we've already changed those (i.e. we've passed through a NAT
rule) we have to undo the transformation first.

Obtained from: pfSense
MFC after: 3 weeks
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D32571

2 years agoRELNOTES: Fix KMSAN entry
Elliott Mitchell [Fri, 22 Oct 2021 07:16:54 +0000 (15:16 +0800)]
RELNOTES: Fix KMSAN entry

The lead digit was lost in 05eba8e068c1 making it impossible to find the
commit.

The two subsequent RELNOTES commits gave one less digit of the commit
hash, which is what `git rev-parse --short` thinks the minimal length is,
but keep them to align with other entries.

Fixes: 05eba8e068c1
Differential Revision: https://reviews.freebsd.org/D32595

2 years agocontrib/tzdata: import tzdata 2021e
Philip Paeps [Fri, 22 Oct 2021 05:20:20 +0000 (13:20 +0800)]
contrib/tzdata: import tzdata 2021e

Merge commit 'c66f7aacfc78e5e86469f85f20d3d4fc7d1e9a74'

Changes: https://github.com/eggert/tz/blob/2021e/NEWS

MFC after: 3 days

2 years agoImport tzdata 2021e
Philip Paeps [Fri, 22 Oct 2021 05:17:04 +0000 (13:17 +0800)]
Import tzdata 2021e

2 years agoDocument my doc commit bit history
Li-Wen Hsu [Fri, 22 Oct 2021 03:54:06 +0000 (11:54 +0800)]
Document my doc commit bit history

Reminded by: ygy

2 years agouefi(8): loader.efi does not search for loader.efi
Colin Percival [Thu, 21 Oct 2021 20:15:57 +0000 (13:15 -0700)]
uefi(8): loader.efi does not search for loader.efi

This man page formerly referred to boot1.efi searching for loader.efi;
when boot1.efi was obsoleted in favour of having loader.efi launched
directly, this was left claiming that loader.efi searched for
loader.efi.

Reviewed by: bcran
Fixes: db8b56134506 Rework UEFI ESP generation
Differential Revision: https://reviews.freebsd.org/D32334

2 years agoarswitch(4): Hook new manpage to build
Guangyuan Yang [Thu, 21 Oct 2021 19:22:34 +0000 (15:22 -0400)]
arswitch(4): Hook new manpage to build

PR: 211668
Fixes: 262717e270c3e8a28fa2937db750ba946be8c836
Reported by: jhb

2 years agouipc_shm: silent warnings about write-only variables in largepage code
Konstantin Belousov [Thu, 21 Oct 2021 17:46:36 +0000 (20:46 +0300)]
uipc_shm: silent warnings about write-only variables in largepage code

In shm_largepage_phys_populate(), the result from vm_page_grab() is only
needed for assertion.

In shm_dotruncate_largepage(), there is a commented-out prototype code
for managed largepages.   The oldobjsz is saved for its sake, so mark
the variable as __unused directly.

Sponsored by: The FreeBSD Foundation
MFC after: 1 week

2 years agosig_ast_checksusp(): mark the local p as __diagused
Konstantin Belousov [Thu, 21 Oct 2021 17:43:32 +0000 (20:43 +0300)]
sig_ast_checksusp(): mark the local p as __diagused

It is only used to assert that the (current) process is locked

Sponsored by: The FreeBSD Foundation
MFC after: 1 week

2 years agosubr_firmware.c::unloadentry(): remote write-only variable
Konstantin Belousov [Thu, 21 Oct 2021 17:40:24 +0000 (20:40 +0300)]
subr_firmware.c::unloadentry(): remote write-only variable

The function ignores result returned by linker_release_module().
The FW_UNLOAD flag on the file is cleared, so even on error it would
not be tried again.

Sponsored by: The FreeBSD Foundation
MFC after: 1 week

2 years agoalq_open_flags(): mark local td variable as unused
Konstantin Belousov [Thu, 21 Oct 2021 17:39:15 +0000 (20:39 +0300)]
alq_open_flags(): mark local td variable as unused

It is passed to the NDINIT() macro which ignores the thread argument
for some time.

Sponsored by: The FreeBSD Foundation

2 years agoDMAR: clean up warnings about write-only variables
Konstantin Belousov [Thu, 21 Oct 2021 17:23:45 +0000 (20:23 +0300)]
DMAR: clean up warnings about write-only variables

For some of them, used only when KTR or KMSAN are configured, apply
__unused attribute directly.

Sponsored by: The FreeBSD Foundation
MFC after: 1 week

2 years agoumtxq_requeue: remove write-only variable uh2
Konstantin Belousov [Thu, 21 Oct 2021 17:10:42 +0000 (20:10 +0300)]
umtxq_requeue: remove write-only variable uh2

umtxq_queue_lookup() does not change state.  It is redone inside
umtxq_insert() later, anyway.

Sponsored by: The FreeBSD Foundation
MFC after: 1 week

2 years agoufs: remove write-only variables
Konstantin Belousov [Wed, 20 Oct 2021 01:42:31 +0000 (04:42 +0300)]
ufs: remove write-only variables

Mark variables as __diagused for invariant-only vars

Reviewed by: imp, mjg
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D32577

2 years agoktls: Always create a software backend for receive sessions.
John Baldwin [Thu, 21 Oct 2021 16:37:17 +0000 (09:37 -0700)]
ktls: Always create a software backend for receive sessions.

A future change to TOE TLS will require a software fallback for the
first few TLS records received.  Future support for NIC TLS on receive
will also require a software fallback for certain cases.

Reviewed by: gallatin, hselasky
Sponsored by: Chelsio Communications
Differential Revision: https://reviews.freebsd.org/D32566

2 years agoktls: Change struct ktls_session.cipher to an OCF-specific type.
John Baldwin [Thu, 21 Oct 2021 16:36:53 +0000 (09:36 -0700)]
ktls: Change struct ktls_session.cipher to an OCF-specific type.

As a followup to SW KTLS assuming an OCF backend, rename
struct ocf_session to struct ktls_ocf_session and forward
declare it in <sys/ktls.h> to use as the type of
struct ktls_session.cipher.

Reviewed by: gallatin, hselasky
Sponsored by: Chelsio Communications
Differential Revision: https://reviews.freebsd.org/D32565

2 years agoktls: Add a routine to query information in a receive socket buffer.
John Baldwin [Thu, 21 Oct 2021 16:36:29 +0000 (09:36 -0700)]
ktls: Add a routine to query information in a receive socket buffer.

In particular, ktls_pending_rx_info() determines which TLS record is
at the end of the current receive socket buffer (including
not-yet-decrypted data) along with how much data in that TLS record is
not yet present in the socket buffer.

This is useful for future changes to support NIC TLS receive offload
and enhancements to TOE TLS receive offload.  Those use cases need a
way to synchronize a state machine on the NIC with the TLS record
boundaries in the TCP stream.

Reviewed by: gallatin, hselasky
Sponsored by: Chelsio Communications
Differential Revision: https://reviews.freebsd.org/D32564

2 years agocmp: initialize limit to avoid stack garbage limits
Kyle Evans [Thu, 21 Oct 2021 16:30:55 +0000 (11:30 -0500)]
cmp: initialize limit to avoid stack garbage limits

Pointy hat: kevans
Fixes: 4e380e847460 ("cmp: add -n, --bytes to limit number of bytes [...]")
Sponsored by: Klara, Inc.

2 years agoEnable stack gap on arm64
Dawid Gorecki [Thu, 21 Oct 2021 15:18:46 +0000 (17:18 +0200)]
Enable stack gap on arm64

Stack gap code used on amd64 can also be reused for arm64. Point
sv_stackgap to elf64_stackgap to enable this feature.

Reviewed by: mw, kib, emaste
Tested by: mw
MFC: after 1 month
Differential Revision: https://reviews.freebsd.org/D32588

2 years agozfs: merge openzfs/zfs@ec64fdb93 (master) into main
Martin Matuska [Thu, 21 Oct 2021 11:58:45 +0000 (13:58 +0200)]
zfs: merge openzfs/zfs@ec64fdb93 (master) into main

Notable upstream pull request merges:
  #12392 Avoid panic in case of pool errors and missing L2ARC
  #12448 skip snapshot in zfs_iter_mounted()
  #12516 Fix NFS and large reads on older kernels
  #12533 Fail invalid incremental recursive send gracefully
  #12569 FreeBSD: Really zero the zero page
  #12575 Reject zfs send -RI with nonexistent fromsnap
  #12602 Correct refcount_add in dmu_zfetch
  #12650 zpool should call zfs_nicestrtonum() with non-NULL handle

Obtained from: OpenZFS
OpenZFS commit: ec64fdb93d144ab1884097cfd36e18b62a2db848

2 years agoOnly change the fadt revision in acpidump on i386
Andrew Turner [Wed, 20 Oct 2021 09:19:55 +0000 (10:19 +0100)]
Only change the fadt revision in acpidump on i386

There is a workaround in acpidump for an old IBM laptop. This is being
hit on a modern arm64 system causing acpidump to use the wrong field
when reading a later address.

As the laptop has a 32-bit CPU the only FreeBSD support for it is i386.
As such limit the workaround to that architecture.

Reviewed by: emaste, jkim, jhb (all earlier version)
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D32573

2 years agotimeout.1: Fix typos in examples
Mateusz Piotrowski [Thu, 21 Oct 2021 11:06:45 +0000 (13:06 +0200)]
timeout.1: Fix typos in examples

MFC after: 3 days

2 years agoxen/devices: purge uses of intr_machdep.h
Elliott Mitchell [Fri, 23 Apr 2021 02:59:22 +0000 (19:59 -0700)]
xen/devices: purge uses of intr_machdep.h

Devices in sys/dev should be architecture-independent and NOT #include
intr_machdep.h.

Reviewed by: mhorne royger
Differential Revision: https://reviews.freebsd.org/D29959

2 years agoxen/pcifront: purge from tree
Roger Pau Monné [Wed, 20 Oct 2021 10:39:33 +0000 (12:39 +0200)]
xen/pcifront: purge from tree

Xen pcifront has been unhooked from the build for a long time, as it's
only used by PV mode which FreeBSD doesn't support. Remove it from the
tree.

2 years agobhyve: Bump the SMBIOS firmware version to 14.0 for 14-CURRENT
Rebecca Cran [Thu, 21 Oct 2021 02:33:49 +0000 (20:33 -0600)]
bhyve: Bump the SMBIOS firmware version to 14.0 for 14-CURRENT

Bump the firmware version to 14.0 and set the firmware release date
to today.

Reviewed by: jhb, bz, imp
Differential Revision: https://reviews.freebsd.org/D32534

2 years agoldd: do not use dlopen(RTLD_TRACE) for dso when format is specified
Konstantin Belousov [Mon, 11 Oct 2021 22:35:56 +0000 (01:35 +0300)]
ldd: do not use dlopen(RTLD_TRACE) for dso when format is specified

Problem is that rtld cannot reliably access updated environment.
This was made more obvious by bfd4c875a10560aaa2.  The application
environment can be in arbitrary state and place, system components
can observe it only during execve(2), or in case of rtld, right after
execve, when environment is still at know location and format.

Instead spawn ld-elf.so.1 in direct exec mode which can correctly read
all inherited updates to the environment.

PR: 259069
Reviewed by: arichardson, jhb
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D32464

2 years agoldd: style
Konstantin Belousov [Tue, 12 Oct 2021 11:39:32 +0000 (14:39 +0300)]
ldd: style

Reviewed by: arichardson, jhb
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D32464

2 years agortld-elf/paths.h: Make it usable outside rtld
Konstantin Belousov [Tue, 12 Oct 2021 15:50:49 +0000 (18:50 +0300)]
rtld-elf/paths.h: Make it usable outside rtld

but still for tightly coupled things like ldd(1)

Rename paths.h to rtld_paths.h.
Add guard for rtld-specific externs declarations.
Add _COMPAT32_BASENAME_RTLD and _COMPAT32_PATH_RTLD.

Reviewed by: arichardson, jhb
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D32464

2 years agoping: fix parsing of options including '4' and '6'
Alan Somers [Wed, 6 Oct 2021 22:54:59 +0000 (16:54 -0600)]
ping: fix parsing of options including '4' and '6'

ping uses a two-pass option parser.  The first pass determines whether
ipv4 or ipv6 is desired, and the second parses the rest of the options.
But the first pass wrongly detects a '4' or '6' in an option's value as
a request to use ipv6 or ipv6 respectively, for example in an invocation
like "ping -c6 1.2.3.4".

Fix this confusion by including all options in the first round of
parsing, but ignoring those unrelated to ipv4/ipv6 selection.

PR: 258048
Reported by: ghuckriede@blackberry.com
Submitted by: ghuckriede@blackberry.com
MFC after: 2 weeks
Reviewed by: emaste
Differential Revision: https://reviews.freebsd.org/D32344

2 years agonet: Allow binding of unspecified address without address existance
Roy Marples [Wed, 20 Oct 2021 15:47:29 +0000 (11:47 -0400)]
net: Allow binding of unspecified address without address existance

Previously in_pcbbind_setup returned EADDRNOTAVAIL for empty
V_in_ifaddrhead (i.e., no IPv4 addresses configured) and in6_pcbbind
did the same for empty V_in6_ifaddrhead (no IPv6 addresses).

An equivalent test has existed since 4.4-Lite.  It was presumably done
to avoid extra work (assuming the address isn't going to be found
later).

In normal system operation *_ifaddrhead will not be empty: they will
at least have the loopback address(es).  In practice no work will be
avoided.

Further, this case caused net/dhcpd to fail when run early in boot
before assignment of any addresses.  It should be possible to bind the
unspecified address even if no addresses have been configured yet, so
just remove the tests.

The now-removed "XXX broken" comments were added in 59562606b9d3,
which converted the ifaddr lists to TAILQs.  As far as I (emaste) can
tell the brokenness is the issue described above, not some aspect of
the TAILQ conversion.

PR: 253166
Reviewed by: ae, bz, donner, emaste, glebius
MFC after: 1 month
Differential Revision: https://reviews.freebsd.org/D32563

2 years agoSkip snapshot in zfs_iter_mounted()
youzhongyang [Wed, 20 Oct 2021 23:07:19 +0000 (19:07 -0400)]
Skip snapshot in zfs_iter_mounted()

The intention of the zfs_iter_mounted() is to traverse the dataset
and its descendants, not the snapshots. The current code can cause
a mounted snapshot to be included and thus zfs_open() on the snapshot
with ZFS_TYPE_FILESYSTEM would print confusing message such as "cannot
open 'rpool/fs@snap': snapshot delimiter '@' is not expected here".

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Youzhong Yang <yyang@mathworks.com>
Closes #12447
Closes #12448

2 years agovdev_id: Fix enclosure_symlinks feature
Tony Hutter [Wed, 20 Oct 2021 22:48:04 +0000 (15:48 -0700)]
vdev_id: Fix enclosure_symlinks feature

The vdev_id.conf "enclosure_symlinks" option persistently creates
and maps /dev/by-enclosure symlinks to dynamic /dev/sg* devices.

This patch fixes two issues:

1. The enclosure_symlinks feature was accidentally broken in:

   vdev_id: Support daisy-chained JBODs in multipath mode

2. Even when working, the feature numbered the enclosure
   sequentially rather than by HBA port number.  That meant that
   if a port was down or didn't appear in sysfs, then the
   enclosure_sumlinks numbers would be numbered wrong.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Signed-off-by: Tony Hutter <hutter2@llnl.gov>
Closes #12660

2 years agopowerpc64le: stand fixes
Leandro Lupori [Wed, 20 Oct 2021 18:48:33 +0000 (15:48 -0300)]
powerpc64le: stand fixes

Fix boot1 and loader on PowerPC64 little-endian (LE).

Due to endian issues, boot1 couldn't find the UFS boot partition
and loader wasn't able to load the kernel. Most of the issues
happened because boot1 and loader were BE binaries trying to access
LE UFS partitions and because loader expects the kernel ELF image
to use the same endian as itself.

To fix these issues, boot1 and loader are now built as LE binaries
on PPC64LE. To support this, the functions that call OpenFirmware
were enhanced to correctly perform endian conversion on its input
and output arguments and to change the CPU into BE mode before
making the calls, as OpenFirmware always runs in BE. Besides that,
some other small fixes were needed.

Submitted by: bdragon (initial version)
Reviewed by: alfredo, jhibbits
Sponsored by: Instituto de Pesquisas Eldorado (eldorado.org.br)
Differential Revision: https://reviews.freebsd.org/D32160

2 years agosys/bus.h: silence warnings about write-only variables
Konstantin Belousov [Wed, 20 Oct 2021 13:23:30 +0000 (16:23 +0300)]
sys/bus.h: silence warnings about write-only variables

in the generated functions for bus accessors.  These are the most
noising instances for drivers when non-debug kernel is compiled with
clang 13.

Reviewed by: imp
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D32578

2 years agomsdosfs_rename: remove write-only variables
Konstantin Belousov [Wed, 20 Oct 2021 01:55:50 +0000 (04:55 +0300)]
msdosfs_rename: remove write-only variables

Reviewed by: imp, mjg
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D32577

2 years agotmpfs: remove write-only variables
Konstantin Belousov [Wed, 20 Oct 2021 01:54:48 +0000 (04:54 +0300)]
tmpfs: remove write-only variables

Reviewed by: imp, mjg
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D32577

2 years agolibshare: nfs: pass through ipv6 addresses in bracket notation
felixdoerre [Wed, 20 Oct 2021 17:40:00 +0000 (19:40 +0200)]
libshare: nfs: pass through ipv6 addresses in bracket notation

Recognize when the host part of a sharenfs attribute is an ipv6
Literal and pass that through without modification.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Felix Dörre <felix@dogcraft.de>
Closes: #11171
Closes #11939
Closes: #1894
2 years agozpool should call zfs_nicestrtonum() with non-NULL handle
Toomas Soome [Wed, 20 Oct 2021 17:34:34 +0000 (20:34 +0300)]
zpool should call zfs_nicestrtonum() with non-NULL handle

When zfs_nicestrtonum() is called and there will be an error,
the message is left in libzfs handle, if provided. We can use
this message, to provide better feedback for user.

Reviewed-by: Igor Kozhukhov <igor@dilos.org>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Toomas Soome <tsoome@me.com>
Closes #12650

2 years agoOptionalObsoleteFiles: add more googletest files to remove
Baptiste Daroussin [Wed, 20 Oct 2021 12:18:37 +0000 (14:18 +0200)]
OptionalObsoleteFiles: add more googletest files to remove

2 years agosh(1): fix home/del key on mobaxterm env
Baptiste Daroussin [Wed, 20 Oct 2021 11:58:18 +0000 (13:58 +0200)]
sh(1): fix home/del key on mobaxterm env

For $reason mobaxterm default on sending unusual sequence from home/del
key, which makes libedit unabel to catch them and bind them correctly.

mobaxterm seems popular on the windows environment, so add proper
keybinding to default shrc configuration so it works out of box.

Reported by: lme

2 years agoPass the ACPI ID when reading the ACPI domain
Andrew Turner [Mon, 18 Oct 2021 09:04:06 +0000 (10:04 +0100)]
Pass the ACPI ID when reading the ACPI domain

The ACPI ID may not be the same as the FreeBSD CPU id. Use the former
when finding the CPU domain as there is no requirement for it to be
identical to the latter.

Reported by: dch, kevans
Reviewed by: kevans
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D32546

2 years agoskel: update .shrc as well
Baptiste Daroussin [Wed, 20 Oct 2021 09:23:13 +0000 (11:23 +0200)]
skel: update .shrc as well

Somehow we end up having 2 definition of the same .shrc in the source
tree, both of them should have been updated.

A batter fix would be to only keep one copy of the same file. but that
would be for another commit

Reported by: lme

2 years agotimeout: style fixes
Baptiste Daroussin [Wed, 20 Oct 2021 08:44:32 +0000 (10:44 +0200)]
timeout: style fixes

2 years agotimeout: eliminate usage of sysexits
Baptiste Daroussin [Wed, 20 Oct 2021 08:39:34 +0000 (10:39 +0200)]
timeout: eliminate usage of sysexits

It brings no value at all the sysexits and maybe misleading as the
return value of timeout(1) matters.

2 years agoUPDATING: fix style
Baptiste Daroussin [Wed, 20 Oct 2021 07:44:44 +0000 (09:44 +0200)]
UPDATING: fix style

Reported by: danfe

2 years agoRELNOTES: document the change of the default shell
Baptiste Daroussin [Wed, 20 Oct 2021 07:35:07 +0000 (09:35 +0200)]
RELNOTES: document the change of the default shell

2 years agosh(1): make it the default shell for the root user
Baptiste Daroussin [Tue, 19 Oct 2021 06:46:12 +0000 (08:46 +0200)]
sh(1): make it the default shell for the root user

In the recent history sh(1) has gain the missing features for it to
become a usable interractive shell:
- command completion
- persistent history support
- improvements on the default bindings in emacs mode
- improvements in the vi mode (repect $EDITOR)
- print a newline when exiting via ^D
- default prompt and improvements on how PS1 can be configured
- and more.

This changes also simplifies making tiny freebsd images with only sh(1)
as a shell

2 years agosh(1): interactive mode improvement
Baptiste Daroussin [Tue, 19 Oct 2021 06:37:47 +0000 (08:37 +0200)]
sh(1): interactive mode improvement

In the default configuration add 2 bindings which has been requested by
many during the HEADSUP discussion:
* csh like arrow history navigation
* ctrl-arrow to jump from word to words

Add an alias to make the history command exist as an alias to fc -l.

2 years agoncurses: documents the latest changes in RELNOTES
Baptiste Daroussin [Tue, 19 Oct 2021 06:43:39 +0000 (08:43 +0200)]
ncurses: documents the latest changes in RELNOTES

2 years agostress2: Added a "mdconfig -o force" test scenario
Peter Holm [Wed, 20 Oct 2021 06:01:58 +0000 (06:01 +0000)]
stress2: Added a "mdconfig -o force" test scenario

2 years agocamcontrol(8): Clean up references to removed symbols
Felix Johnson [Wed, 20 Oct 2021 04:32:54 +0000 (00:32 -0400)]
camcontrol(8): Clean up references to removed symbols

Patch the manpage to remove references to devq_openings and devq_queued.
Document the allocated tag that has been added in the same commit. The
relevant code change was committed as r271588
(959ec2581b23aefebb3bae26c527c1b25834a9e3) by mav@.

PR: 223651
MFH after: 3 days
Reported by: Bertrand Petit <bsdpr@phoe.frmug.org>

2 years agoarswitch(4): Add new manpage
Felix Johnson [Wed, 20 Oct 2021 03:29:11 +0000 (23:29 -0400)]
arswitch(4): Add new manpage

PR: 211668
Reported by: O. Hartmann <ohartmann@walstatt.org>
Reviewed by: adrian, debdrup, imp
Differential Revision: https://reviews.freebsd.org/D32476

2 years agosysctl.3: sys/types.h no longer needs to be explicitly included
Mark Johnston [Wed, 20 Oct 2021 01:19:18 +0000 (21:19 -0400)]
sysctl.3: sys/types.h no longer needs to be explicitly included

Reviewed by: imp
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D32562

2 years agovlapic: Schedule callouts on the local CPU
Mark Johnston [Wed, 20 Oct 2021 00:50:06 +0000 (20:50 -0400)]
vlapic: Schedule callouts on the local CPU

The virtual LAPIC driver uses callouts to implement the LAPIC timer.
Callouts are armed using callout_reset_sbt(), which currently puts
everything on CPU 0.  On systems running many bhyve VMs this results in
a large amount of contention for CPU 0's callout lock.

Modify vlapic to schedule callouts on the local CPU instead.  This
allows timer interrupts to be scheduled more evenly among CPUs where
bhyve is running.

Reviewed by: grehan, jhb
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D32559

2 years agoBump __FreeBSD_version for the preceding page allocator changes
Mark Johnston [Wed, 20 Oct 2021 00:30:28 +0000 (20:30 -0400)]
Bump __FreeBSD_version for the preceding page allocator changes

None of the usual suspects (e.g., drm-kmod, virtualbox-ose-kmod,
nvidia-driver) seem to be affected by the changes, but it is likely that
something else is affected.

Sponsored by: The FreeBSD Foundation

2 years agoamd64: Add comments to pmap_pinit_type()
Mark Johnston [Wed, 20 Oct 2021 00:29:18 +0000 (20:29 -0400)]
amd64: Add comments to pmap_pinit_type()

... explaining why we don't pass the pmap pointer to
pmap_alloc_pt_page().

Reported by: alc
Reviewed by: alc, kib
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D32528

2 years agoUse the vm_radix_init() helper when initializing pmaps
Mark Johnston [Wed, 20 Oct 2021 00:29:05 +0000 (20:29 -0400)]
Use the vm_radix_init() helper when initializing pmaps

No functional change intended.

Reviewed by: alc, kib
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D32527

2 years agoRemove some remaining references to VM_ALLOC_NOOBJ
Mark Johnston [Wed, 20 Oct 2021 00:28:54 +0000 (20:28 -0400)]
Remove some remaining references to VM_ALLOC_NOOBJ

Reviewed by: alc, kib
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D32037

2 years agovm_fault: Stop specifying VM_ALLOC_ZERO
Mark Johnston [Wed, 20 Oct 2021 00:27:23 +0000 (20:27 -0400)]
vm_fault: Stop specifying VM_ALLOC_ZERO

Now vm_page_alloc() and friends will unconditionally preserve PG_ZERO,
so there is no point in setting this flag.

Eliminate a local variable and add a comment explaining why we
prioritize the allocation when the process is doomed.

No functional change intended.

Reviewed by: kib, alc
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D32036

2 years agoRewrite the vm_page_alloc manual page
Mark Johnston [Wed, 20 Oct 2021 00:26:30 +0000 (20:26 -0400)]
Rewrite the vm_page_alloc manual page

Document the new allocator variants and flesh out the description of
some details of the page allocator interface.

Reviewed by: kib, alc
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D32035

2 years agovm_page: Drop handling of VM_ALLOC_NOOBJ in vm_page_alloc_contig_domain()
Mark Johnston [Wed, 20 Oct 2021 00:26:09 +0000 (20:26 -0400)]
vm_page: Drop handling of VM_ALLOC_NOOBJ in vm_page_alloc_contig_domain()

As in vm_page_alloc_domain_after(), unconditionally preserve PG_ZERO.

Implement vm_page_alloc_noobj_contig_domain().

Reviewed by: kib
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D32034

2 years agovm_page: Stop handling VM_ALLOC_NOOBJ in vm_page_alloc_domain_after()
Mark Johnston [Wed, 20 Oct 2021 00:25:14 +0000 (20:25 -0400)]
vm_page: Stop handling VM_ALLOC_NOOBJ in vm_page_alloc_domain_after()

This makes the allocator simpler since it can assume object != NULL.
Also modify the function to unconditionally preserve PG_ZERO, so
VM_ALLOC_ZERO is effectively ignored (and still must be implemented by
the caller for now).

Reviewed by: alc, kib
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D32033

2 years agoConvert consumers to vm_page_alloc_noobj_contig()
Mark Johnston [Wed, 20 Oct 2021 00:25:04 +0000 (20:25 -0400)]
Convert consumers to vm_page_alloc_noobj_contig()

Remove now-unneeded page zeroing.  No functional change intended.

Reviewed by: alc, hselasky, kib
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D32006

2 years agoIntroduce vm_page_alloc_noobj_contig()
Mark Johnston [Wed, 20 Oct 2021 00:24:21 +0000 (20:24 -0400)]
Introduce vm_page_alloc_noobj_contig()

This is the same as vm_page_alloc_noobj(), but allocates physically
contiguous runs of memory.  For now it is implemented in terms of
vm_page_alloc_contig(), with the difference that
vm_page_alloc_noobj_contig() implements VM_ALLOC_ZERO by zeroing the
page.

Reviewed by: alc, kib
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D32005

2 years agoConvert vm_page_alloc() callers to use vm_page_alloc_noobj().
Mark Johnston [Wed, 20 Oct 2021 00:23:39 +0000 (20:23 -0400)]
Convert vm_page_alloc() callers to use vm_page_alloc_noobj().

Remove page zeroing code from consumers and stop specifying
VM_ALLOC_NOOBJ.  In a few places, also convert an allocation loop to
simply use VM_ALLOC_WAITOK.

Similarly, convert vm_page_alloc_domain() callers.

Note that callers are now responsible for assigning the pindex.

Reviewed by: alc, hselasky, kib
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D31986

2 years agovm_page: Add a new page allocator interface for unnamed pages
Mark Johnston [Wed, 20 Oct 2021 00:22:12 +0000 (20:22 -0400)]
vm_page: Add a new page allocator interface for unnamed pages

The diff adds vm_page_alloc_noobj() and vm_page_alloc_noobj_domain().
These mostly correspond to vm_page_alloc() and vm_page_alloc_domain()
when no VM object is specified, with the exception that they handle
VM_ALLOC_ZERO by zeroing the page, rather than by preserving PG_ZERO.

This simplifies callers and will permit simplification of the
vm_page_alloc_domain() definition.

Since the new allocator variant is similar to vm_page_alloc_freelist(),
implement both of them using a common backend allocator function.  No
functional change intended.

Reviewed by: alc, kib
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D31985

2 years agovm_page: Move vm_page_alloc_check() to after page allocator definitions
Mark Johnston [Wed, 20 Oct 2021 01:22:50 +0000 (21:22 -0400)]
vm_page: Move vm_page_alloc_check() to after page allocator definitions

This way all of the vm_page_alloc_*() allocator functions are grouped
together.

MFC after: 1 week
Sponsored by: The FreeBSD Foundation

2 years agolibssh: Rearrange Makefile SRCS to match upstream Makefile.in
Ed Maste [Wed, 20 Oct 2021 00:09:46 +0000 (20:09 -0400)]
libssh: Rearrange Makefile SRCS to match upstream Makefile.in

SRCS entries are kept in the same order and with the same line breaks
as upstream, to make comparison easier.

Reported by: des

2 years agoprocctl: stop using SA_*LOCKED, define local enum
Konstantin Belousov [Tue, 19 Oct 2021 21:25:19 +0000 (00:25 +0300)]
procctl: stop using SA_*LOCKED, define local enum

Using SA_*LOCKED constants breaks !INVARIANT builds

Reported by: cy
Sponsored by: The FreeBSD Foundation
MFC after: 1 week

2 years agokern_procctl: skip zombies for process group operations
Konstantin Belousov [Mon, 18 Oct 2021 21:29:01 +0000 (00:29 +0300)]
kern_procctl: skip zombies for process group operations

When iterating over the process group members, skip zombies same as it
is done by pfind() for single-process operation.

Reviewed by: emaste, markj
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D32513

2 years agokern_procctl.c: use td->td_proc instead of curproc
Konstantin Belousov [Mon, 18 Oct 2021 21:07:25 +0000 (00:07 +0300)]
kern_procctl.c: use td->td_proc instead of curproc

Suggested by: markj
Reviewed by: emaste, markj
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D32513

2 years agoprocctl: actually require debug privileges over target
Konstantin Belousov [Fri, 15 Oct 2021 20:09:39 +0000 (23:09 +0300)]
procctl: actually require debug privileges over target

for state control over TRACE, TRAPCAP, ASLR, PROTMAX, STACKGAP,
NO_NEWPRIVS, and WXMAP.

Reported by: emaste
Reviewed by: emaste, markj
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D32513

2 years agoprocctl: make it possible to specify that some operations require debug privilege...
Konstantin Belousov [Fri, 15 Oct 2021 20:02:06 +0000 (23:02 +0300)]
procctl: make it possible to specify that some operations require debug privilege over the target

Reviewed by: emaste, markj
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D32513

2 years agosys_procctl(): zero the data buffer once, on syscall entry
Konstantin Belousov [Sat, 16 Oct 2021 18:28:03 +0000 (21:28 +0300)]
sys_procctl(): zero the data buffer once, on syscall entry

and remove zeroing of it from specific functions.  This way it is
guaranteed that we do not leak kernel data.

Suggested by: markj
Reviewed by: emaste, markj
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D32513

2 years agosys_procctl(): use table data to do copyin/copyout
Konstantin Belousov [Fri, 15 Oct 2021 19:56:12 +0000 (22:56 +0300)]
sys_procctl(): use table data to do copyin/copyout

Reviewed by: emaste, markj
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D32513

2 years agokern_procctl_single(): convert to use table data
Konstantin Belousov [Fri, 15 Oct 2021 19:22:18 +0000 (22:22 +0300)]
kern_procctl_single(): convert to use table data

Reviewed by: emaste, markj
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D32513

2 years agoprocctl: convert PDEATHSIG_CTL/STATUS to regular kern_procctl_single() cases
Konstantin Belousov [Fri, 15 Oct 2021 19:06:22 +0000 (22:06 +0300)]
procctl: convert PDEATHSIG_CTL/STATUS to regular kern_procctl_single() cases

Reviewed by: emaste, markj
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D32513

2 years agoprocctl(2): add consistent shortcut P_ID:0 as curproc
Konstantin Belousov [Fri, 15 Oct 2021 19:01:42 +0000 (22:01 +0300)]
procctl(2): add consistent shortcut P_ID:0 as curproc

Reported by: bdrewery, emaste
Reviewed by: emaste, markj
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D32513

2 years agokern_procctl(): convert the function to be table-driven
Konstantin Belousov [Fri, 15 Oct 2021 18:57:17 +0000 (21:57 +0300)]
kern_procctl(): convert the function to be table-driven

Reviewed by: emaste, markj
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D32513

2 years agosys_procctl(2): remove sysproto and argused
Konstantin Belousov [Fri, 15 Oct 2021 18:55:53 +0000 (21:55 +0300)]
sys_procctl(2): remove sysproto and argused

Reviewed by: emaste, markj
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D32513