summaryrefslogtreecommitdiff
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2022-12-08 13:03:30 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-12-21 17:48:06 +0100
commit2cd2e9322726a487acf224431fbfc96f6c8880c9 (patch)
tree60683d38477101ca670a5fe3a2751f28f2daaab7 /scripts/generate_rust_analyzer.py
parent1cd3e9297d44a29bf9106f87e94c5ef6b248effe (diff)
udf: Fix extending file within last block
commit 1f3868f06855c97a4954c99b36f3fc9eb8f60326 upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions