Chuck Lever f56ca2421c 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>
2022-02-16 12:43:52 +01:00
..
2017-06-14 15:06:00 +02:00
2016-08-04 19:59:06 -04:00
2016-03-18 11:42:53 -04:00
2022-02-16 12:43:52 +01:00
2022-02-16 12:43:52 +01:00
2016-01-22 18:04:28 -05:00
2016-05-29 19:08:00 -04:00
2016-01-14 17:32:51 -05:00