diff options
author | Jan Kara | 2022-12-08 13:03:30 +0100 |
---|---|---|
committer | Jan Kara | 2022-12-09 12:37:26 +0100 |
commit | 1f3868f06855c97a4954c99b36f3fc9eb8f60326 (patch) | |
tree | d0bf1373ee6b1fa547219b2f5a066b34d0564ea0 /fs/ext2 | |
parent | 16d0556568148bdcaa45d077cac9f8f7077cf70a (diff) |
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>
Diffstat (limited to 'fs/ext2')
0 files changed, 0 insertions, 0 deletions