Emmanuel Vadot
d69af4758b
Bump __FreeBSD_version after linuxkpi updates
2022-03-29 13:19:32 +02:00
Emmanuel Vadot
1aca8a6ec6
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
2022-03-29 13:19:32 +02:00
Emmanuel Vadot
1acf9b2770
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
2022-03-29 13:19:32 +02:00
Mateusz Guzik
40c911e8da
zfs: use zero_region instead of allocating a dedicated page
2022-03-29 11:18:55 +00:00
Mateusz Piotrowski
05621e0b20
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
2022-03-29 13:12:32 +02:00
Mateusz Piotrowski
fd126a732c
locking.9: Reference lockstat(1) from this manual page
...
MFC after: 3 days
2022-03-29 13:12:31 +02:00
Martin Matuska
8d0b6a7d49
zfs: update zfs_config.h and zfs_gitrev.h
...
Update zfs_config.h and zfs_gitrev.h as missed in da5137abd
2022-03-29 12:40:41 +02:00
Martin Matuska
da5137abdf
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: bc3f12bfac
2022-03-29 12:07:34 +02:00
Piotr Pawel Stefaniak
ae6aa2d43d
uudecode: move the new uudecode test from uuencode/ to uudecode/
...
I don't know how that happened.
Fixes: 9f3203c003
"uudecode: correct error message"
2022-03-29 07:29:39 +02:00
Ed Maste
8276c4149b
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
2022-03-28 20:35:47 -04:00
Michael Tuexen
5ac91821f5
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
2022-03-29 01:50:17 +02:00
Rick Macklem
c1970a7eba
nfscl: Fix IO_APPEND writes from kernel space
...
Commit 867c27c23a
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
2022-03-28 15:11:52 -07:00
Piotr Pawel Stefaniak
f5138631fb
uudecode: use SRCDIR in the regression test
...
Fixes: 9f3203c003
"uudecode: correct error message"
2022-03-28 21:01:28 +02:00
Brooks Davis
8601fca789
sysent: regen for syscallarg_t
2022-03-28 19:43:03 +01:00
Brooks Davis
b1ad6a9000
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
2022-03-28 19:43:03 +01:00
Brooks Davis
cd8796cee0
share/mk: Remove obsolete reference to LINTLIBDIR
...
Lint support was removed in 1cbb58886a
,
but this entry (accidently added in an unrelated commit) wasn't
removed.
2022-03-28 19:43:03 +01:00
Gordon Bergling
bba12ee453
xen(4): Fix a few typos in source code comments
...
- s/querried/queried/
MFC after: 3 days
2022-03-28 19:37:20 +02:00
Gordon Bergling
2733b242e4
ffs(3): Fix a common typo in source code comments
...
- s/quadradically/quadratically/
Obtained from: NetBSD
MFC after: 3 days
2022-03-28 19:37:03 +02:00
Gordon Bergling
81ed3cae69
gpart(8): Fix two typos in source code comments
...
- s/partiton/partition/
MFC after: 3 days
2022-03-28 19:36:48 +02:00
Gordon Bergling
4a87beeccb
mlx5en(4): Fix a few typos in source code comments
...
- s/persistant/persistent/
MFC after: 3 days
2022-03-28 19:36:32 +02:00
Gordon Bergling
f697fe65e6
bfe(4): Fix a typo in a comment
2022-03-28 19:36:18 +02:00
Gordon Bergling
90ea9c0dcd
camcontrol(8): Fix typo in a source code comment
...
- s/querried/queried/
MFC after: 3 days
2022-03-28 19:36:01 +02:00
Gordon Bergling
2fa6223aaa
pfctl(8): Fix a typo in a comment
...
- s/steping/stepping/
MFC after: 3 days
2022-03-28 19:35:55 +02:00
Gordon Bergling
bef80a7285
vxlan(4): Fix two typos in sysctl descriptions
...
- s/fowarding/forwarding/
MFC after: 3 days
2022-03-28 19:35:34 +02:00
Gordon Bergling
4e12c7c510
fstyp(8): Fix a few typos in source code comments
...
- s/mmaping/mapping/
- s/filesytem/filesystem/
MFC after: 3 days
2022-03-28 19:35:18 +02:00
Gordon Bergling
c09770b2cd
mount(8): Fix a typo in source code comments
...
- s/filesytem/filesystem/
MFC after: 3 days
2022-03-28 19:35:02 +02:00
Gordon Bergling
75fdc440c8
extra_tcp_stacks: Fix two typos in source code comments
...
- s/recusive/recursive/
MFC after: 3 days
2022-03-28 19:34:45 +02:00
Gordon Bergling
9cd75b5588
stand: Fix a common typo in source code comments
...
- s/existance/existence/
MFC after: 3 days
2022-03-28 19:34:30 +02:00
Gordon Bergling
066e393f8f
libc: Fix a typo in a source code comment
...
- s/compnent/component/
MFC after: 3 days
2022-03-28 19:34:14 +02:00
Gordon Bergling
28a6b24729
cxgbetool(8): Fix a typo in the man page
...
- s/begining/beginning/
MFC after: 3 days
2022-03-28 19:33:44 +02:00
Gordon Bergling
eec4f5c034
pkgbase: Fix a typo in a source code comment
...
- s/begining/beginning/
MFC after: 3 days
2022-03-28 19:33:25 +02:00
Gordon Bergling
982015d2d2
xen(3): Fix a typo in a source code comment
...
- s/mmaping/mapping/
MFC after: 3 days
2022-03-28 19:32:53 +02:00
Gordon Bergling
5c4aa62572
pmc(3): Fix a common typo in json descriptions
...
- s/from from/from/
MFC after: 3 days
2022-03-28 19:32:21 +02:00
Gordon Bergling
c55ecce1c1
netinet6: Fix a typo in a source code comment
...
- s/maping/mapping/
MFC after: 3 days
2022-03-28 19:32:10 +02:00
Gordon Bergling
79438267b3
netgraph(3): Fix a typo in a source code comment
...
- s/failes/fails/
MFC after: 3 days
2022-03-28 19:31:50 +02:00
Gordon Bergling
a216b9c2e0
qlnxe(4): Fix a typo in a source code comment
...
- s/existance/existence/
MFC after: 3 days
2022-03-28 19:31:18 +02:00
Gordon Bergling
e4c1b3f060
isci(4): Fix a typo in a source code comment
...
- s/recored/recorded/
MFC after: 3 days
2022-03-28 19:30:31 +02:00
Gordon Bergling
9a9d901bf2
exca(4): Fix a typo in a source code comment
...
- s/maping/mapping/
MFC after: 3 days
2022-03-28 19:30:10 +02:00
Gordon Bergling
22ba115b49
drm2: Fix a typo in a source code comment
...
- s/mmaping/mapping/
MFC after: 3 days
2022-03-28 19:29:27 +02:00
Gordon Bergling
fc48cc124c
ipfilter(4): Fix a typo in a source code comment
...
- s/existance/existence/
MFC after: 3 days
2022-03-28 19:29:06 +02:00
Gordon Bergling
c9023cf7fe
cxgbe(4): Fix a typo in a source code comment
...
- s/begining/beginning/
MFC after: 3 days
2022-03-28 19:28:15 +02:00
Gordon Bergling
407a0eac79
geom(4): Fix a typo in a source code comment
...
- s/comand/command/
MFC after: 3 days
2022-03-28 19:28:08 +02:00
Gordon Bergling
b1c5f60ce8
libefivar(3): Fix a typo in a source code comment
...
- s/partiton/partition/
MFC after: 3 days
2022-03-28 19:27:58 +02:00
наб
bc3f12bfac
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
2022-03-28 10:24:22 -07:00
наб
b61595ff86
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
2022-03-28 10:13:14 -07:00
наб
4d4fa5215d
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
2022-03-28 10:13:14 -07:00
наб
bc2fe49a4f
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
2022-03-28 10:13:14 -07:00
наб
d842ca3ff2
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
2022-03-28 10:13:14 -07:00
наб
3b887e485c
man: zfs-destroy.8: import examples from zfs.8
...
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #13228
2022-03-28 10:13:14 -07:00
наб
9bda775bd9
man: zfs-rollback.8: import examples from zfs.8
...
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #13228
2022-03-28 10:13:14 -07:00