]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
2 years agouma: Don't allow a limit to be set in a warm zone
Mark Johnston [Wed, 30 Mar 2022 19:42:18 +0000 (15:42 -0400)]
uma: Don't allow a limit to be set in a warm zone

The limit accounting in UMA does not tolerate this.

MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation

2 years agouma: Use the correct type for a return value
Mark Johnston [Wed, 30 Mar 2022 19:42:05 +0000 (15:42 -0400)]
uma: Use the correct type for a return value

zone_alloc_bucket() returns a pointer, not a bool.

MFC after: 1 week
Sponsored by: The FreeBSD Foundation

2 years agopf: Initialize the table entry zone limit at initialization time
Mark Johnston [Wed, 30 Mar 2022 19:41:44 +0000 (15:41 -0400)]
pf: Initialize the table entry zone limit at initialization time

The limit may later be updated by the "set limit" directive in pf.conf.
UMA does not permit a limit to be set on a zone after any items have
been allocated from a zone.

Other UMA zones used by pf do not appear to be susceptible to this
problem: they either set a limit at zone creation time or never set one
at all.

PR: 260406
Reviewed by: kp
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D34713

2 years agocompat32: add size CTASSERTs for non-amd64 cases
Ed Maste [Wed, 30 Mar 2022 15:23:06 +0000 (11:23 -0400)]
compat32: add size CTASSERTs for non-amd64 cases

Reviewed by: markj
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D34712

2 years agofstyp: Correct comment: Raspberry Pi Pico, not Nano
Ed Maste [Wed, 30 Mar 2022 17:03:15 +0000 (13:03 -0400)]
fstyp: Correct comment: Raspberry Pi Pico, not Nano

Fixes: 868c1b8431f2 ("fstyp: detect Raspberry Pi Pico boot...")

2 years agodtc.1: Fix the display of directives ending with semicolons
Jose Luis Duran [Thu, 10 Mar 2022 00:20:49 +0000 (21:20 -0300)]
dtc.1: Fix the display of directives ending with semicolons

While here, fix a typo and bump the date.

Obtained from: https://github.com/davidchisnall/dtc/pull/71
Fixes: 6979e8cb6e62f04688611aed796712fde1a981d6

2 years agoifconfig.8: Fix quoting
Jose Luis Duran [Wed, 30 Mar 2022 15:41:15 +0000 (17:41 +0200)]
ifconfig.8: Fix quoting

Obtained from: https://github.com/freebsd/freebsd-src/commit/67d77afb0dde9aa627635a0c4e28a8fa5a64db6c#r69907135
Fixes: 67d77afb0dde ifconfig.8: Do not use ``'' for quoting
MFC after: 2 weeks

2 years agosyscalls.master: remove obsolete comment about compatibility tables
Ed Maste [Wed, 30 Mar 2022 15:03:02 +0000 (11:03 -0400)]
syscalls.master: remove obsolete comment about compatibility tables

Compatibility ABIs no longer use a separate syscalls.master.

Fixes: be67ea40c5a0 ("freebsd32: generate from ...")
Sponsored by: The FreeBSD Foundation

2 years agoifconfig.8: Clean up markup of "state" parameter
Mateusz Piotrowski [Wed, 30 Mar 2022 12:44:59 +0000 (14:44 +0200)]
ifconfig.8: Clean up markup of "state" parameter

MFC after: 2 weeks

2 years agoifconfig.8: Make the -f flag description compact
Mateusz Piotrowski [Wed, 30 Mar 2022 12:35:15 +0000 (14:35 +0200)]
ifconfig.8: Make the -f flag description compact

- Remove extraneous examples
- Apply "-compact" to the list macros so that it is possible to fit the
  definitions of the types and formats in one terminal screen.

MFC after: 2 weeks

2 years agoifconfig.8: Do not use ``'' for quoting
Mateusz Piotrowski [Wed, 30 Mar 2022 12:28:09 +0000 (14:28 +0200)]
ifconfig.8: Do not use ``'' for quoting

MFC after: 2 weeks

2 years agoifconfig.8: Clean up the channel parameter description
Mateusz Piotrowski [Wed, 30 Mar 2022 12:24:23 +0000 (14:24 +0200)]
ifconfig.8: Clean up the channel parameter description

MFC after: 2 weeks

2 years agoifconfig.8: Add section headers to the parameters section
Mateusz Piotrowski [Wed, 30 Mar 2022 12:05:45 +0000 (14:05 +0200)]
ifconfig.8: Add section headers to the parameters section

MFC after: 2 weeks

2 years agoifconfig.8: Clean up -n documentation
Mateusz Piotrowski [Wed, 30 Mar 2022 11:43:41 +0000 (13:43 +0200)]
ifconfig.8: Clean up -n documentation

MFC after: 2 weeks

2 years agoifconfig.8: Clean up -k documentation
Mateusz Piotrowski [Wed, 30 Mar 2022 11:41:20 +0000 (13:41 +0200)]
ifconfig.8: Clean up -k documentation

MFC after: 2 weeks

2 years agoifconfig.8: Clean up -C and -v documentation
Mateusz Piotrowski [Wed, 30 Mar 2022 11:38:14 +0000 (13:38 +0200)]
ifconfig.8: Clean up -C and -v documentation

MFC after: 2 weeks

2 years agoifconfig.8: Clean up -l documentation
Mateusz Piotrowski [Wed, 30 Mar 2022 11:34:31 +0000 (13:34 +0200)]
ifconfig.8: Clean up -l documentation

MFC after: 2 weeks

2 years agoifconfig.8: Clean up -G & -g documentation
Mateusz Piotrowski [Wed, 30 Mar 2022 11:28:03 +0000 (13:28 +0200)]
ifconfig.8: Clean up -G & -g documentation

MFC after: 2 weeks

2 years agoifconfig.8: Clean up documentation of -a, -d, and -u
Mateusz Piotrowski [Wed, 30 Mar 2022 10:54:20 +0000 (12:54 +0200)]
ifconfig.8: Clean up documentation of -a, -d, and -u

MFC after: 2 weeks

2 years agoifconfig.8: Clean up -L documentation
Mateusz Piotrowski [Wed, 30 Mar 2022 10:47:59 +0000 (12:47 +0200)]
ifconfig.8: Clean up -L documentation

MFC after: 2 weeks

2 years agoifconfig.8: Clean up -m documentation
Mateusz Piotrowski [Wed, 30 Mar 2022 10:45:51 +0000 (12:45 +0200)]
ifconfig.8: Clean up -m documentation

MFC after: 2 weeks

2 years agoifconfig.8: Clean up formatting of -f documentation
Mateusz Piotrowski [Wed, 30 Mar 2022 10:40:53 +0000 (12:40 +0200)]
ifconfig.8: Clean up formatting of -f documentation

This change is about moving the -f documentation into the right place in
the manual. Also, document the IFCONFIG_FORMAT variable in the
ENVIRONMENT section.

MFC after: 2 weeks

2 years agoifconfig.8: Move options sections to the top
Mateusz Piotrowski [Wed, 30 Mar 2022 09:36:23 +0000 (11:36 +0200)]
ifconfig.8: Move options sections to the top

In order to clean up the layout of the manual page, let's keep
parameters in the end of the DESCRIPTION section. This patch does not
change any content, it's meant to only move the content around before
refactoring.

MFC after: 2 weeks

2 years agoifconfig.8: Deduplicate groupname documentation
Mateusz Piotrowski [Wed, 30 Mar 2022 09:33:28 +0000 (11:33 +0200)]
ifconfig.8: Deduplicate groupname documentation

-G and -g flags are already described somewhere else in the manual.

MFC after: 2 weeks

2 years agopf: fixup match rules
Kristof Provost [Tue, 29 Mar 2022 12:28:37 +0000 (14:28 +0200)]
pf: fixup match rules

Ensure that we can set and print match rules in ethernet rules.

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

2 years agopf: add missing input/error validation for DIOCGETETHRULE
Kristof Provost [Tue, 29 Mar 2022 12:17:12 +0000 (14:17 +0200)]
pf: add missing input/error validation for DIOCGETETHRULE

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

2 years agolibpfct: Return errno from pfctl_add_eth_rule()
Kristof Provost [Tue, 29 Mar 2022 12:15:47 +0000 (14:15 +0200)]
libpfct: Return errno from pfctl_add_eth_rule()

If the pfctl_add_eth_rule() ioctl fails return the errno, not the error
returned by ioctl(). That will give us slightly more insight into what
went wrong, because ioctl() would always return -1.

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

2 years agopf: support listing ethernet anchors
Kristof Provost [Tue, 29 Mar 2022 12:15:10 +0000 (14:15 +0200)]
pf: support listing ethernet anchors

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

2 years agoHyper-V: vPCI: Write back original BAR values after prepopulating bars
Wei Hu [Wed, 30 Mar 2022 06:56:09 +0000 (06:56 +0000)]
Hyper-V: vPCI: Write back original BAR values after prepopulating bars

In vmbus_pcib_prepopulate_bars(), after writing all 1's to the
avialable device bars, those without being configured by device driver
are also set to its initialized values. However, this could cause
weird problem which results to device failure. The issue has been
reported to happen on LSI 9211-8i HBA card for DDA access on Hyper-V.
Writing back the orignal BAR values seem to work around this problem.

Reported by: Alexander Motin <mavbsd@gmail.com>
Tested by: Mathias Kraut <krautmaster@gmail.com>
Fixes: 75412a521f6 Hyper-V: vPCI: Prepopulate device bars
MFC after: 1 month

2 years agoCorrect source markup. No change to output.
Greg Lehey [Wed, 30 Mar 2022 03:55:28 +0000 (14:55 +1100)]
Correct source markup.  No change to output.

Reported by: 0mp@

2 years agoRemove reference to kernel clock time zone.
Greg Lehey [Wed, 30 Mar 2022 03:42:14 +0000 (14:42 +1100)]
Remove reference to kernel clock time zone.
Add references.

Reported by: philip@

2 years agosctp: ensure that ASCONF chunks are not too large
Michael Tuexen [Tue, 29 Mar 2022 23:22:20 +0000 (01:22 +0200)]
sctp: ensure that ASCONF chunks are not too large

MFC after: 3 days

2 years agofstyp: detect Raspberry Pi Pico boot filesystem as FAT
Ed Maste [Mon, 28 Mar 2022 21:03:10 +0000 (17:03 -0400)]
fstyp: detect Raspberry Pi Pico boot filesystem as FAT

fstyp looks for a 0x55 0xAA signature at offset 510, but this is not
required by specifications and is not proivded by the Raspberry Pi Nano
bootloader.

We should really remove the signature check and implement a more
comprehensive BPB validation instead, but it will require more
investigation and testing.  For now just add a special case for the
Raspberry Pi Nano bootloader, to avoid introducing regressions or new
false positives.

PR: 262896
Reviewed by: delphij
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D34699

2 years agosctp: fix typos
Michael Tuexen [Tue, 29 Mar 2022 19:09:51 +0000 (21:09 +0200)]
sctp: fix typos

Thanks to David Sanders for fixing the typos in the userland stack.

MFC after: 3 days

2 years agoClear non-x86 compat stat syscall kernel stack memory disclosure
Ed Maste [Tue, 29 Mar 2022 17:55:21 +0000 (13:55 -0400)]
Clear non-x86 compat stat syscall kernel stack memory disclosure

32-bit architectures other than i386 have 64-bit time_t which results
in a struct timespec with 12 bytes for tv_sec and tv_nsec, and 4 bytes
of padding.  Zero the padding holes in struct stat32 and struct
freebsd11_stat32.

i386 has 32-bit time_t; struct timespec is 8 bytes and has no padding.

Found by inspection, prompted by a report by Reno Robert of Trend Micro
Zero Day Initiative.  The originally reported issue (ZDI-CAN-14538) is
already fixed in all supported FreeBSD versions (it was addressed
incidentally as part of the 64-bit inode project).

Reviewed by: markj
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D34709

2 years agopf: guard against DIOCADDRULE without DIOCXBEGIN
Mateusz Guzik [Tue, 29 Mar 2022 13:17:54 +0000 (13:17 +0000)]
pf: guard against DIOCADDRULE without DIOCXBEGIN

Possibility to do it was always a bug, but it runs into crashes
since recent introduction of a per-ruleset RB tree.

Reviewed by: kp
Sponsored by: Rubicon Communications, LLC ("Netgate")
Reported by: syzbot+665b700afc6f69f1766a@syzkaller.appspotmail.com

2 years agoRevert "drm2: Fix a typo in a source code comment"
Gordon Bergling [Tue, 29 Mar 2022 18:47:52 +0000 (20:47 +0200)]
Revert "drm2: Fix a typo in a source code comment"

The comment about 'mmaping' was actually correct since
the comment was referencing to mmap(2).

Reported by: alc

This reverts commit 22ba115b49a2c266aa1967f6b192b7aa8f883b7d.

2 years agoRemove extraneous semicolons trailing break and continue statements.
Jens Schweikhardt [Tue, 29 Mar 2022 17:43:00 +0000 (19:43 +0200)]
Remove extraneous semicolons trailing break and continue statements.

2 years agoifconfig.8: Document that -k can be used with -a
Mateusz Piotrowski [Tue, 29 Mar 2022 17:37:01 +0000 (19:37 +0200)]
ifconfig.8: Document that -k can be used with -a

MFC after: 2 weeks

2 years agoifconfig.8: Improve -f synopsis
Mateusz Piotrowski [Tue, 29 Mar 2022 17:32:32 +0000 (19:32 +0200)]
ifconfig.8: Improve -f synopsis

- There is no need to mention in the synopsis that -f can be a list of
  comma-separated type:format pairs. Let's keep it simple instead.
- Mention that -f can be supplied multiple times.
- Add -f to other entries in the synopsis where it can be used.

MFC after: 2 weeks

2 years agoifconfig.8: Document the synopsis of -C
Mateusz Piotrowski [Tue, 29 Mar 2022 17:16:07 +0000 (19:16 +0200)]
ifconfig.8: Document the synopsis of -C

As documented, the -C flag can only be used on its own. Any other
command modifiers and flags are ignored when -C is used. Reflect that in
synopsis.

MFC after: 2 weeks

2 years agoifconfig.8: Show that -g groupname can be used on its own
Mateusz Piotrowski [Tue, 29 Mar 2022 17:14:20 +0000 (19:14 +0200)]
ifconfig.8: Show that -g groupname can be used on its own

MFC after: 2 weeks

2 years agoifconfig.8: Cluster together short flags
Mateusz Piotrowski [Tue, 29 Mar 2022 17:12:50 +0000 (19:12 +0200)]
ifconfig.8: Cluster together short flags

MFC after: 2 weeks

2 years agoifconfig.8: Simplify -G & -g synopsis
Mateusz Piotrowski [Tue, 29 Mar 2022 16:50:55 +0000 (18:50 +0200)]
ifconfig.8: Simplify -G & -g synopsis

MFC after: 1 week

2 years agobsdinstall mount: Replace dialog with bsddialog
Alfonso S. Siciliano [Tue, 29 Mar 2022 14:52:25 +0000 (16:52 +0200)]
bsdinstall mount: Replace dialog with bsddialog

Replace (LGPL) dialog utility with (BSD-2-Clause) bsddialog utility.

Approved by: bapt (mentor)
Differential Revision: https://reviews.freebsd.org/D34651

2 years agobsdinstall fetchmissingdists: Replace dialog with bsddialog
Alfonso S. Siciliano [Tue, 29 Mar 2022 14:39:43 +0000 (16:39 +0200)]
bsdinstall fetchmissingdists: Replace dialog with bsddialog

Replace (LGPL) dialog utility with (BSD-2-Clause) bsddialog utility.

Approved by: bapt (mentor)
Differential Revision: https://reviews.freebsd.org/D34654

2 years agosctp: don't lock an already locked stcb.
Michael Tuexen [Tue, 29 Mar 2022 14:33:53 +0000 (16:33 +0200)]
sctp: don't lock an already locked stcb.

Reported by: syzbot+e8dca84da3b4b82f4400@syzkaller.appspotmail.com
MFC after: 3 days

2 years agobsdinstall/distfetch: Remove duplicate header
Alfonso S. Siciliano [Tue, 29 Mar 2022 14:15:28 +0000 (16:15 +0200)]
bsdinstall/distfetch: Remove duplicate header

Approved by: bapt (mentor)
Differential Revision: https://reviews.freebsd.org/D34685

2 years agorelease/rc.local: Replace dialog with bsddialog
Alfonso S. Siciliano [Tue, 29 Mar 2022 13:16:09 +0000 (15:16 +0200)]
release/rc.local: Replace dialog with bsddialog

Replace (LGPL) dialog utility with (BSD-2-Clause) bsddialog utility.

Approved by: bapt (mentor)
Differential Revision: https://reviews.freebsd.org/D34678

2 years agoCross-reference nextboot(8) and freebsd-update(8)
Mateusz Piotrowski [Tue, 29 Mar 2022 13:15:35 +0000 (15:15 +0200)]
Cross-reference nextboot(8) and freebsd-update(8)

MFC after: 1 week

2 years agofreebsd-update.8: Fix use of mdoc(8) macros
Mateusz Piotrowski [Tue, 29 Mar 2022 12:35:46 +0000 (14:35 +0200)]
freebsd-update.8: Fix use of mdoc(8) macros

- Use Ar for arguments.
- Use Cm for freebsd-update commands like "upgrade".
- Reference other manuals with Xr when possible.

MFC after: 1 week

2 years agoRELNOTES: Add an entry for boottrace(4)
Mateusz Piotrowski [Tue, 29 Mar 2022 11:33:13 +0000 (13:33 +0200)]
RELNOTES: Add an entry for boottrace(4)

Reviewed by: mhorne
Sponsored by: NetApp, Inc.
Sponsored by: Klara Inc.
Differential Revision: https://reviews.freebsd.org/D34432

2 years agoBump __FreeBSD_version after linuxkpi updates
Emmanuel Vadot [Tue, 29 Mar 2022 11:19:02 +0000 (13:19 +0200)]
Bump __FreeBSD_version after linuxkpi updates

2 years agolinuxkpi: Add for_each_sgtable_dma_sg and for_each_sgtable_dma_page
Emmanuel Vadot [Tue, 29 Mar 2022 11:02:25 +0000 (13:02 +0200)]
linuxkpi: Add for_each_sgtable_dma_sg and for_each_sgtable_dma_page

Variants of for_each_sg/for_each_sg_dma_page but they operate on sgtable
structs.
Needed by drm v5.10

MFC after: 1 week
Sponsored by: Beckhoff Automation GmbH & Co. KG

2 years agolinuxkpi: Implement dma_max_mapping_size
Emmanuel Vadot [Tue, 29 Mar 2022 11:01:31 +0000 (13:01 +0200)]
linuxkpi: Implement dma_max_mapping_size

Simply returns SCATTERLIST_MAX_SEGMENT.
Needed by drm v5.10

MFC after: 1 week
Sponsored by: Beckhoff Automation GmbH & Co. KG

2 years agozfs: use zero_region instead of allocating a dedicated page
Mateusz Guzik [Tue, 29 Mar 2022 11:05:56 +0000 (11:05 +0000)]
zfs: use zero_region instead of allocating a dedicated page

2 years agoifconfig.8: Add capability codes descriptions from handbook
Mateusz Piotrowski [Tue, 29 Mar 2022 11:11:46 +0000 (13:11 +0200)]
ifconfig.8: Add capability codes descriptions from handbook

We document capability codes (the CAPS field of "ifconfig wlan0 scan")
in both ifconfig(8) and the handbook. The list is more complete in the
manual page, while the descriptions of individual capabilities are more
detailed in the handbook.

In order to reduce content duplication and bit rot, let's move
handbook's details to the manual page and reference the manual page
whenever necessary.

Reviewed by: debdrup
Reviewed by: Pau Amma
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D34662

2 years agolocking.9: Reference lockstat(1) from this manual page
Mateusz Piotrowski [Tue, 29 Mar 2022 11:11:18 +0000 (13:11 +0200)]
locking.9: Reference lockstat(1) from this manual page

MFC after: 3 days

2 years agozfs: update zfs_config.h and zfs_gitrev.h
Martin Matuska [Tue, 29 Mar 2022 10:40:41 +0000 (12:40 +0200)]
zfs: update zfs_config.h and zfs_gitrev.h

Update zfs_config.h and zfs_gitrev.h as missed in da5137abd

2 years agozfs: merge openzfs/zfs@bc3f12bfa (master) into main
Martin Matuska [Tue, 29 Mar 2022 10:07:34 +0000 (12:07 +0200)]
zfs: merge openzfs/zfs@bc3f12bfa (master) into main

Notable upstream pull request merges:
  #12083 libzfs: FreeBSD doesn't resize partitions for you
  #13106 add physical device size to SIZE column in 'zpool list -v'
  #13158 Allow zfs send to exclude datasets
  #13190 module: zfs: zio_inject: zio_match_handler: don't << -1
  #13219 FreeBSD: add missing replay check to an assert in zfs_xvattr_set
  #13220 module: freebsd: avoid a taking a destroyed lock in zfs_zevent bits
  #13221 Fix ACL checks for NFS kernel server

Obtained from: OpenZFS
OpenZFS commit: bc3f12bfac152a0c28951cec92340ba14f9ccee9

2 years agouudecode: move the new uudecode test from uuencode/ to uudecode/
Piotr Pawel Stefaniak [Mon, 28 Mar 2022 21:18:24 +0000 (23:18 +0200)]
uudecode: move the new uudecode test from uuencode/ to uudecode/

I don't know how that happened.

Fixes: 9f3203c00314 "uudecode: correct error message"

2 years agompr/mps/mpt: verify cfg page ioctl lengths
Ed Maste [Mon, 28 Mar 2022 13:33:54 +0000 (09:33 -0400)]
mpr/mps/mpt: verify cfg page ioctl lengths

*_CFG_PAGE ioctl handlers in the mpr, mps, and mpt drivers allocated a
buffer of a caller-specified size, but copied to it a fixed size header.
Add checks that the size is at least the required minimum.

Note that the device nodes are owned by root:operator with 0640
permissions so the ioctls are not available to unprivileged users.

This change includes suggestions from scottl, markj and mav.

Two of the mpt cases were reported by Lucas Leong (@_wmliang_) of
Trend Micro Zero Day Initiative; scottl reported the third case in mpt.
Same issue found in mpr and mps after discussion with imp.

Reported by: Lucas Leong (@_wmliang_), Trend Micro Zero Day Initiative
Reviewed by: imp, mav
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D34692

2 years agosctp: get rid of stcb send lock
Michael Tuexen [Mon, 28 Mar 2022 23:50:17 +0000 (01:50 +0200)]
sctp: get rid of stcb send lock

Just use the stcb lock instead to simplify locking.

Reported by: syzbot+d00b202063150f85b110@syzkaller.appspotmail.com
Reported by: syzbot+87f268a0a6d2d6383306@syzkaller.appspotmail.com
MFC after: 3 days

2 years agonfscl: Fix IO_APPEND writes from kernel space
Rick Macklem [Mon, 28 Mar 2022 22:11:52 +0000 (15:11 -0700)]
nfscl: Fix IO_APPEND writes from kernel space

Commit 867c27c23a5c modified the NFS client so that
it did IO_APPEND writes directly to the NFS server
bypassing the buffer cache, via a call to
nfs_directio_write().  Unfortunately, this (very old)
function assumed that the uio iov was for user space
addresses.  As such, a IO_APPEND VOP_WRITE() that
was for system space, such as ktrace(1) does, would
write bogus data.

This patch fixes nfs_directio_write() so that it
handles kernel space uio iovs.

Reported by: bz
Tested by: bz
MFC after: 2 weeks

2 years agouudecode: use SRCDIR in the regression test
Piotr Pawel Stefaniak [Mon, 28 Mar 2022 18:50:40 +0000 (20:50 +0200)]
uudecode: use SRCDIR in the regression test

Fixes: 9f3203c00314 "uudecode: correct error message"

2 years agosysent: regen for syscallarg_t
Brooks Davis [Mon, 28 Mar 2022 18:43:03 +0000 (19:43 +0100)]
sysent: regen for syscallarg_t

2 years agosyscallarg_t: Add a type for system call arguments
Brooks Davis [Mon, 28 Mar 2022 18:43:03 +0000 (19:43 +0100)]
syscallarg_t: Add a type for system call arguments

This more clearly differentiates system call arguments from integer
registers and return values. On current architectures it has no effect,
but on architectures where pointers are not integers (CHERI) and may
not even share registers (CHERI-MIPS) it is necessiary to differentiate
between system call arguments (syscallarg_t) and integer register values
(register_t).

Obtained from: CheriBSD

Reviewed by: imp, kib
Differential Revision: https://reviews.freebsd.org/D33780

2 years agoshare/mk: Remove obsolete reference to LINTLIBDIR
Brooks Davis [Mon, 28 Mar 2022 18:43:03 +0000 (19:43 +0100)]
share/mk: Remove obsolete reference to LINTLIBDIR

Lint support was removed in 1cbb58886a477cf282072eaa331d8122e36e9952,
but this entry (accidently added in an unrelated commit) wasn't
removed.

2 years agoxen(4): Fix a few typos in source code comments
Gordon Bergling [Sun, 27 Mar 2022 16:05:58 +0000 (18:05 +0200)]
xen(4): Fix a few typos in source code comments

- s/querried/queried/

MFC after: 3 days

2 years agoffs(3): Fix a common typo in source code comments
Gordon Bergling [Sun, 27 Mar 2022 16:03:16 +0000 (18:03 +0200)]
ffs(3): Fix a common typo in source code comments

- s/quadradically/quadratically/

Obtained from: NetBSD
MFC after: 3 days

2 years agogpart(8): Fix two typos in source code comments
Gordon Bergling [Sun, 27 Mar 2022 16:01:55 +0000 (18:01 +0200)]
gpart(8): Fix two typos in source code comments

- s/partiton/partition/

MFC after: 3 days

2 years agomlx5en(4): Fix a few typos in source code comments
Gordon Bergling [Sun, 27 Mar 2022 15:59:43 +0000 (17:59 +0200)]
mlx5en(4): Fix a few typos in source code comments

- s/persistant/persistent/

MFC after: 3 days

2 years agobfe(4): Fix a typo in a comment
Gordon Bergling [Sun, 27 Mar 2022 15:57:04 +0000 (17:57 +0200)]
bfe(4): Fix a typo in a comment

2 years agocamcontrol(8): Fix typo in a source code comment
Gordon Bergling [Mon, 7 Feb 2022 17:25:51 +0000 (18:25 +0100)]
camcontrol(8): Fix typo in a source code comment

- s/querried/queried/

MFC after: 3 days

2 years agopfctl(8): Fix a typo in a comment
Gordon Bergling [Sun, 27 Mar 2022 15:55:55 +0000 (17:55 +0200)]
pfctl(8): Fix a typo in a comment

- s/steping/stepping/

MFC after: 3 days

2 years agovxlan(4): Fix two typos in sysctl descriptions
Gordon Bergling [Mon, 7 Feb 2022 17:23:35 +0000 (18:23 +0100)]
vxlan(4): Fix two typos in sysctl descriptions

- s/fowarding/forwarding/

MFC after: 3 days

2 years agofstyp(8): Fix a few typos in source code comments
Gordon Bergling [Mon, 7 Feb 2022 17:20:48 +0000 (18:20 +0100)]
fstyp(8): Fix a few typos in source code comments

- s/mmaping/mapping/
- s/filesytem/filesystem/

MFC after: 3 days

2 years agomount(8): Fix a typo in source code comments
Gordon Bergling [Mon, 7 Feb 2022 17:15:34 +0000 (18:15 +0100)]
mount(8): Fix a typo in source code comments

- s/filesytem/filesystem/

MFC after: 3 days

2 years agoextra_tcp_stacks: Fix two typos in source code comments
Gordon Bergling [Mon, 7 Feb 2022 17:14:22 +0000 (18:14 +0100)]
extra_tcp_stacks: Fix two typos in source code comments

- s/recusive/recursive/

MFC after: 3 days

2 years agostand: Fix a common typo in source code comments
Gordon Bergling [Mon, 7 Feb 2022 17:12:58 +0000 (18:12 +0100)]
stand: Fix a common typo in source code comments

- s/existance/existence/

MFC after: 3 days

2 years agolibc: Fix a typo in a source code comment
Gordon Bergling [Sun, 6 Feb 2022 16:25:59 +0000 (17:25 +0100)]
libc: Fix a typo in a source code comment

- s/compnent/component/

MFC after: 3 days

2 years agocxgbetool(8): Fix a typo in the man page
Gordon Bergling [Sun, 27 Mar 2022 16:58:52 +0000 (18:58 +0200)]
cxgbetool(8): Fix a typo in the man page

- s/begining/beginning/

MFC after: 3 days

2 years agopkgbase: Fix a typo in a source code comment
Gordon Bergling [Sun, 27 Mar 2022 16:56:58 +0000 (18:56 +0200)]
pkgbase: Fix a typo in a source code comment

- s/begining/beginning/

MFC after: 3 days

2 years agoxen(3): Fix a typo in a source code comment
Gordon Bergling [Sun, 27 Mar 2022 16:54:13 +0000 (18:54 +0200)]
xen(3): Fix a typo in a source code comment

- s/mmaping/mapping/

MFC after: 3 days

2 years agopmc(3): Fix a common typo in json descriptions
Gordon Bergling [Sun, 6 Feb 2022 16:17:57 +0000 (17:17 +0100)]
pmc(3): Fix a common typo in json descriptions

- s/from from/from/

MFC after: 3 days

2 years agonetinet6: Fix a typo in a source code comment
Gordon Bergling [Sun, 27 Mar 2022 16:52:38 +0000 (18:52 +0200)]
netinet6: Fix a typo in a source code comment

- s/maping/mapping/

MFC after: 3 days

2 years agonetgraph(3): Fix a typo in a source code comment
Gordon Bergling [Sun, 27 Mar 2022 16:50:45 +0000 (18:50 +0200)]
netgraph(3): Fix a typo in a source code comment

- s/failes/fails/

MFC after: 3 days

2 years agoqlnxe(4): Fix a typo in a source code comment
Gordon Bergling [Sun, 27 Mar 2022 16:45:13 +0000 (18:45 +0200)]
qlnxe(4): Fix a typo in a source code comment

- s/existance/existence/

MFC after: 3 days

2 years agoisci(4): Fix a typo in a source code comment
Gordon Bergling [Sun, 27 Mar 2022 16:42:11 +0000 (18:42 +0200)]
isci(4): Fix a typo in a source code comment

- s/recored/recorded/

MFC after: 3 days

2 years agoexca(4): Fix a typo in a source code comment
Gordon Bergling [Sun, 27 Mar 2022 16:39:36 +0000 (18:39 +0200)]
exca(4): Fix a typo in a source code comment

- s/maping/mapping/

MFC after: 3 days

2 years agodrm2: Fix a typo in a source code comment
Gordon Bergling [Sun, 27 Mar 2022 16:36:32 +0000 (18:36 +0200)]
drm2: Fix a typo in a source code comment

- s/mmaping/mapping/

MFC after: 3 days

2 years agoipfilter(4): Fix a typo in a source code comment
Gordon Bergling [Sun, 27 Mar 2022 16:33:25 +0000 (18:33 +0200)]
ipfilter(4): Fix a typo in a source code comment

- s/existance/existence/

MFC after: 3 days

2 years agocxgbe(4): Fix a typo in a source code comment
Gordon Bergling [Sun, 27 Mar 2022 16:32:19 +0000 (18:32 +0200)]
cxgbe(4): Fix a typo in a source code comment

- s/begining/beginning/

MFC after: 3 days

2 years agogeom(4): Fix a typo in a source code comment
Gordon Bergling [Sun, 27 Mar 2022 16:31:00 +0000 (18:31 +0200)]
geom(4): Fix a typo in a source code comment

- s/comand/command/

MFC after: 3 days

2 years agolibefivar(3): Fix a typo in a source code comment
Gordon Bergling [Sun, 27 Mar 2022 16:29:32 +0000 (18:29 +0200)]
libefivar(3): Fix a typo in a source code comment

- s/partiton/partition/

MFC after: 3 days

2 years agoconfig: user: check for <aio.h>
наб [Mon, 28 Mar 2022 17:24:22 +0000 (19:24 +0200)]
config: user: check for <aio.h>

And always zpool_read_label_slow() on non-conformant libcs

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Co-authored-by: José Luis Salvador Rufo <salvador.joseluis@gmail.com>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #13207
Closes #13254

2 years agoman: zfs-rename.8: import examples from zfs.8
наб [Wed, 16 Mar 2022 18:01:08 +0000 (19:01 +0100)]
man: zfs-rename.8: import examples from zfs.8

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #13228

2 years agoman: zfs-snapshot.8: import examples from zfs.8
наб [Wed, 16 Mar 2022 17:53:59 +0000 (18:53 +0100)]
man: zfs-snapshot.8: import examples from zfs.8

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #13228

2 years agoman: zfs-promote.8: import examples from zfs.8
наб [Wed, 16 Mar 2022 17:50:53 +0000 (18:50 +0100)]
man: zfs-promote.8: import examples from zfs.8

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #13228

2 years agoman: zfs-create.8: import examples from zfs.8
наб [Wed, 16 Mar 2022 17:49:31 +0000 (18:49 +0100)]
man: zfs-create.8: import examples from zfs.8

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #13228