summaryrefslogtreecommitdiff
path: root/fs/udf/namei.c
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2022-12-08 13:03:30 +0100
committerJan Kara <jack@suse.cz>2022-12-09 12:37:26 +0100
commit1f3868f06855c97a4954c99b36f3fc9eb8f60326 (patch)
treed0bf1373ee6b1fa547219b2f5a066b34d0564ea0 /fs/udf/namei.c
parent16d0556568148bdcaa45d077cac9f8f7077cf70a (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/udf/namei.c')
0 files changed, 0 insertions, 0 deletions