summaryrefslogtreecommitdiff
path: root/fs/befs/befs_fs_types.h
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2022-01-26 00:36:22 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-02-16 14:52:47 +0300
commit34217d7730b925446a2590355bcb2db0e7514599 (patch)
treea996752a14dc499887f9b54c41724d409fa96db0 /fs/befs/befs_fs_types.h
parent5fde7ca7b17d7f8582a6da43be1d506b3b057897 (diff)
downloadlinux-34217d7730b925446a2590355bcb2db0e7514599.tar.xz
NFSD: Clamp WRITE offsets
commit 6260d9a56ab352b54891ec66ab0eced57d55abc6 upstream. Ensure that a client cannot specify a WRITE range that falls in a byte range outside what the kernel's internal types (such as loff_t, which is signed) can represent. The kiocb iterators, invoked in nfsd_vfs_write(), should properly limit write operations to within the underlying file system's s_maxbytes. Cc: stable@vger.kernel.org Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/befs/befs_fs_types.h')
0 files changed, 0 insertions, 0 deletions