Home
last modified time | relevance | path

Searched hist:"1 f3868f06855c97a4954c99b36f3fc9eb8f60326" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/fs/udf/
H A Dinode.cdiff 1f3868f06855c97a4954c99b36f3fc9eb8f60326 Thu Dec 08 06:03:30 CST 2022 Jan Kara <jack@suse.cz> udf: Fix extending file within last block

When extending file within last block it can happen that the extent is
already rounded to the blocksize and thus contains the offset we want to
grow up to. In such case we would mistakenly expand the last extent and
make it one block longer than it should be, exposing unallocated block
in a file and causing data corruption. Fix the problem by properly
detecting this case and bailing out.

CC: stable@vger.kernel.org
Signed-off-by: Jan Kara <jack@suse.cz>