#
2aaf9152 |
| 18-Mar-2019 |
Alan Somers <asomers@FreeBSD.org> |
MFHead@r345275
|
#
2df8bd90 |
| 12-Mar-2019 |
Edward Tomasz Napierala <trasz@FreeBSD.org> |
Drop unused 'p' argument to nfsv4_strtogid().
MFC after: 2 weeks Sponsored by: DARPA, AFRL
|
#
0658ac39 |
| 12-Mar-2019 |
Edward Tomasz Napierala <trasz@FreeBSD.org> |
Drop unused 'p' argument to nfsv4_strtouid().
MFC after: 2 weeks Sponsored by: DARPA, AFRL
|
#
b18a4cca |
| 05-Mar-2019 |
Enji Cooper <ngie@FreeBSD.org> |
MFhead@r344786
|
#
844fc3e9 |
| 04-Mar-2019 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r344549 through r344775.
|
#
01c27978 |
| 04-Mar-2019 |
Edward Tomasz Napierala <trasz@FreeBSD.org> |
Don't pass td to nfsvno_open().
MFC after: 2 weeks Sponsored by: DARPA, AFRL
|
#
127152fe |
| 04-Mar-2019 |
Edward Tomasz Napierala <trasz@FreeBSD.org> |
Don't pass td to nfsvno_createsub().
MFC after: 2 weeks Sponsored by: DARPA, AFRL
|
#
5edc9102 |
| 04-Mar-2019 |
Edward Tomasz Napierala <trasz@FreeBSD.org> |
Don't pass td to nfsd_fhtovp(), it's unused.
Reviewed by: rmacklem (earlier version) MFC after: 2 weeks Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D19421
|
#
af444b18 |
| 04-Mar-2019 |
Edward Tomasz Napierala <trasz@FreeBSD.org> |
Push down the thread argument in NFS server code, using curthread instead of passing it explicitly. No functional changes
Reviewed by: rmacklem (earlier version) MFC after: 2 weeks Sponsored by: DAR
Push down the thread argument in NFS server code, using curthread instead of passing it explicitly. No functional changes
Reviewed by: rmacklem (earlier version) MFC after: 2 weeks Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D19419
show more ...
|
#
88148a07 |
| 22-Jan-2019 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r343202 through r343319.
|
#
d9463dd4 |
| 22-Jan-2019 |
Mark Johnston <markj@FreeBSD.org> |
nfs: Zero the buffers exported by NFSSVC_DUMPCLIENTS and DUMPLOCKS.
Note that these interfaces are available only to root.
admbugs: 765 Reported by: Vlad Tsyrklevich <vlad@tsyrklevich.net> Reviewed
nfs: Zero the buffers exported by NFSSVC_DUMPCLIENTS and DUMPLOCKS.
Note that these interfaces are available only to root.
admbugs: 765 Reported by: Vlad Tsyrklevich <vlad@tsyrklevich.net> Reviewed by: rmacklem MFC after: 1 day Security: Kernel memory disclosure Sponsored by: The FreeBSD Foundation
show more ...
|
#
cc426dd3 |
| 11-Dec-2018 |
Mateusz Guzik <mjg@FreeBSD.org> |
Remove unused argument to priv_check_cred.
Patch mostly generated with cocinnelle:
@@ expression E1,E2; @@
- priv_check_cred(E1,E2,0) + priv_check_cred(E1,E2)
Sponsored by: The FreeBSD Foundation
|
Revision tags: release/12.0.0 |
|
#
3d5db455 |
| 24-Nov-2018 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r340427 through r340868.
|
#
75772b69 |
| 20-Nov-2018 |
Rick Macklem <rmacklem@FreeBSD.org> |
Improve sanity checking for the dircount hint argument to NFSv3's ReaddirPlus and NFSv4's Readdir operations. The code checked for a zero argument, but did not check for a very large value. This patc
Improve sanity checking for the dircount hint argument to NFSv3's ReaddirPlus and NFSv4's Readdir operations. The code checked for a zero argument, but did not check for a very large value. This patch clips dircount at the server's maximum data size.
MFC after: 1 week
show more ...
|
#
c6879c6c |
| 23-Oct-2018 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r339015 through r339669.
|
#
ca8f3d1c |
| 22-Oct-2018 |
Andriy Gapon <avg@FreeBSD.org> |
nfsrvd_readdirplus: for some errors, do not fail the entire request
Instead, a failing entry is skipped. This change consist of two logical changes.
A failure to vget or lookup an entry is consider
nfsrvd_readdirplus: for some errors, do not fail the entire request
Instead, a failing entry is skipped. This change consist of two logical changes.
A failure to vget or lookup an entry is considered to be a result of a concurrent removal, which is the only reasonable explanation given that the filesystem is busied. So, the entry would be silently skipped.
In the case of a failure to get attributes of an entry for an NFSv3 request, the entry would be silently skipped. There can be legitimate reasons for the failure, but NFSv3 does not provide any means to report the error, so we have two options: either fail the whole request or ignore the failed entry. Traditionally, the old NFS server used the latter option, so the code is reverted to it. Making the whole directory unreadable because of a single entry seems to be unpractical.
Additionally, some bits of code are slightly re-arranged to account for the new control flow and to honor style(9).
Reviewed by: rmacklem Sponsored by: Panzura Differential Revision: https://reviews.freebsd.org/D15424
show more ...
|
#
7c328352 |
| 09-Oct-2018 |
Glen Barber <gjb@FreeBSD.org> |
MFH r338661 through r339253.
Sponsored by: The FreeBSD Foundation
|
#
910ccc77 |
| 09-Oct-2018 |
Rick Macklem <rmacklem@FreeBSD.org> |
Fix the pNFS server's reporting of disk space usage for the "#<path>" case.
The pNFS server would report the total disk space used and free for all of the DSs, even when certain DSs are assigned to
Fix the pNFS server's reporting of disk space usage for the "#<path>" case.
The pNFS server would report the total disk space used and free for all of the DSs, even when certain DSs are assigned to the file system via the "#<path>" suffix used in the "nfsd -p" option argument. This patch fixes this case. It only reports usage for the file system that the argument vnode resides on. This is consistent with the non-pNFS NFSv4 server. In NFSv4 it is possible to have subtrees on other file systems, but these are not included in the usage information for NFSv4.
Approved by: re (gjb)
show more ...
|
#
3611ec60 |
| 18-Aug-2018 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r337646 through r338014.
|
#
3e5ba2e1 |
| 17-Aug-2018 |
Rick Macklem <rmacklem@FreeBSD.org> |
Fix LORs between vn_start_write() and vn_lock() in the pNFS server.
When coding the pNFS server, I added several vn_start_write() calls done while the vnode was locked, not realizing I had introduce
Fix LORs between vn_start_write() and vn_lock() in the pNFS server.
When coding the pNFS server, I added several vn_start_write() calls done while the vnode was locked, not realizing I had introduced LORs and possible deadlock when an exported file system on the MDS is suspended. This patch fixes this by removing the added vn_start_write() calls and modifying the code so that the extant vn_start_write() call before the NFS RPC/operation is done when needed by the pNFS server. Flags are changed so that LayoutCommit and LayoutReturn now get a vn_start_write() done for them. When the pNFS server is enabled, the code now also changes the flags for Getattr, so that the vn_start_write() is done for Getattr, since it may need to do a vn_set_extattr(). The nfs_writerpc flag array was made global to the NFS server and renamed nfsrv_writerpc, which is consistent naming for globals in the NFS server. Thanks go to kib@ for reporting that doing vn_start_write() while the vnode is locked results in a LOR. This patch only affects the behaviour of the pNFS server.
show more ...
|
#
9fbb0faf |
| 17-Aug-2018 |
Rick Macklem <rmacklem@FreeBSD.org> |
Don't set a file's size for the MDS file of a pNFS service.
When a pNFS service is running, the size of the files created on the MDS are normally 0, since the data is written to the data files on th
Don't set a file's size for the MDS file of a pNFS service.
When a pNFS service is running, the size of the files created on the MDS are normally 0, since the data is written to the data files on the DS(s). However, without this patch, if a Setattr with a non-zero size was done by a client, the MDS file was set to that size. This was thought to be benign, but it turns out that files with a non-zero size plus extended attributes can cause a "ffs_truncate3" panic in UFS. Although the exact cause of this panic() has not been isolated, this patch avoids the panic() and leaves the MDS files in a consistent state of always having a size == 0. Note that these MDS files never store data. The patch also includes an unnecessary initialization of savsize in case some compiler or static analyser complains it might not be initialized. This patch only affects the NFS server when pNFS is enabled via the "-p" command line option on nfsd.
show more ...
|
#
14b841d4 |
| 11-Aug-2018 |
Kyle Evans <kevans@FreeBSD.org> |
MFH @ r337607, in preparation for boarding
|
#
f9c0a512 |
| 10-Aug-2018 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r337286 through r337585.
|
#
25705dd5 |
| 05-Aug-2018 |
Rick Macklem <rmacklem@FreeBSD.org> |
Copy all bits of a file handle in case there is padding in the structure.
At least on x86, fhandle_t is a packed structure, so I believe an assignment will copy all the bits. However, for some curre
Copy all bits of a file handle in case there is padding in the structure.
At least on x86, fhandle_t is a packed structure, so I believe an assignment will copy all the bits. However, for some current/future architectures, there might be padding in the structure that doesn't get copied via an assignment. Since NFS assumes a file handle is an opaque blob of bits that can be compared via memcmp()/bcmp(), all the bits including any padding must be copied. This patch replaces the assignments with a call to a byte copy function. Spotted during code inspection.
show more ...
|
#
bbd7a929 |
| 04-Aug-2018 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r336870 through r337285, and resolve conflicts.
|