Skip to content
Commit a203d3cc authored by Nicholas Piggin's avatar Nicholas Piggin Committed by Adrian Bunk
Browse files

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: default avatarNick Piggin <npiggin@suse.de>
Signed-off-by: default avatarAdrian Bunk <bunk@kernel.org>
parent 06a25399
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment