]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mm: trim more holes (CVE-2008-0598)
authorNick Piggin <npiggin@suse.de>
Sat, 19 Jul 2008 20:29:02 +0000 (23:29 +0300)
committerAdrian Bunk <bunk@kernel.org>
Sat, 19 Jul 2008 20:29:02 +0000 (23:29 +0300)
commita203d3ccd131487b38094c3f5f4fb4f2fed593d7
tree079da167e0a92db46766b7a98a6772a0cad80c42
parent06a2539978d97915d82c4d405528f8f92db0faaf
mm: trim more holes (CVE-2008-0598)

If prepare_write fails with AOP_TRUNCATED_PAGE, or if commit_write fails, then
we may have failed the write operation despite prepare_write having
instantiated blocks past i_size.  Fix this, and consolidate the trimming into
one place.

Signed-off-by: Nick Piggin <npiggin@suse.de>
Signed-off-by: Adrian Bunk <bunk@kernel.org>
mm/filemap.c