]> git.itanic.dy.fi Git - linux-stable/commit
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)
committerJiri Slaby <jslaby@suse.cz>
Thu, 12 Mar 2015 16:31:27 +0000 (17:31 +0100)
commitd7e3ae47c441894b11dce376ff8d110780872d0d
tree77c388e5d6da42f2899f3439cb7e89a7d0d5eccf
parent43bf73e12b705c424066670eda35a5677ae72a13
splice: Apply generic position and size checks to each write

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>
[ kamal: port to 3.13-stable: context ]
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
fs/ocfs2/file.c
fs/splice.c