splice: Apply generic position and size checks to each write
authorBen Hutchings <ben@decadent.org.uk>
Thu, 29 Jan 2015 02:50:33 +0000 (02:50 +0000)
committerBen Hutchings <ben@decadent.org.uk>
Fri, 20 Feb 2015 00:49:41 +0000 (00:49 +0000)
We need to check the position and size of file writes against various
limits, using generic_write_check().  This was not being done for
the splice write path.  It was fixed upstream by commit 8d0207652cbe
("->splice_write() via ->write_iter()") but we can't apply that.

CVE-2014-7822

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>

No differences found