freebsd-dev/sys/fs
Rick Macklem 06afb53bcd nfsd: Fix sanity check for NFSv4.2 Allocate operations
The NFSv4.2 Allocate operation sanity checks the aa_offset
and aa_length arguments.  Since they are assigned to variables
of type off_t (signed) it was possible for them to be negative.
It was also possible for aa_offset+aa_length to exceed OFF_MAX
when stored in lo_end, which is uint64_t.

This patch adds checks for these cases to the sanity check.

Reviewed by:	kib
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D31511
2021-08-12 16:48:28 -07:00
..
autofs
cd9660 Move mnt_maxsymlinklen into appropriate fs mount data structures 2021-05-22 15:16:09 +03:00
cuse
deadfs vn_open(): If the vnode is reclaimed during open(2), do not return error. 2021-02-12 03:02:20 +02:00
devfs devfs: Avoid comparison with an uninitialized var in devfs_fp_check() 2021-05-03 13:24:30 -04:00
ext2fs ext2: add missing uio_td initialization to ext2_htree_append_block 2021-05-30 17:19:31 +00:00
fdescfs fdescfs: add an option to return underlying file vnode on lookup 2021-06-04 03:30:12 +03:00
fifofs fifofs: fifo vnode might be relocked before VOP_OPEN() is called 2021-07-27 19:58:47 +03:00
fuse fusefs: correctly set lock owner during FUSE_SETLK 2021-06-25 20:40:08 -06:00
mntfs
msdosfs Fix makefs bootstrap after d485c77f20 2021-02-22 17:55:45 +00:00
nfs nfscl: Add a Lookup+Open RPC for NFSv4.1/4.2 2021-08-11 18:49:26 -07:00
nfsclient nfscl: Add a Lookup+Open RPC for NFSv4.1/4.2 2021-08-11 18:49:26 -07:00
nfsserver nfsd: Fix sanity check for NFSv4.2 Allocate operations 2021-08-12 16:48:28 -07:00
nullfs nullfs: provide custom null_rename bypass 2021-07-27 19:58:48 +03:00
procfs procfs_map: switch to use vm_object_kvme_type 2021-05-13 20:10:35 +03:00
pseudofs pseudofs: use vget_prep + vget_finish instead of vget + the interlock 2021-05-19 17:58:42 +00:00
smbfs VFS_QUOTACTL(9): allow implementation to indicate busy state changes 2021-05-30 14:53:47 -07:00
tmpfs tmpfs: save on relocking the allnode lock in tmpfs_free_node_locked 2021-05-31 23:21:15 +00:00
udf
unionfs Allow stacked filesystems to be recursively unmounted 2021-07-24 12:52:00 -07:00