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>
Loading
Please register or sign in to comment