]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit - fs/udf/super.c
udf: Fix off-by-one in volume descriptor sequence length
authorJan Kara <jack@suse.cz>
Thu, 8 Feb 2018 16:39:01 +0000 (17:39 +0100)
committerJan Kara <jack@suse.cz>
Fri, 16 Feb 2018 10:14:41 +0000 (11:14 +0100)
commit91c9c9ec54c1e88d9ef59a7b12cf31d6ef5d1e58
tree9ca7e1fbc0013be28c98d09cf8965de749732b4e
parente1603b6effe177210701d3d7132d1b68e7bd2c93
udf: Fix off-by-one in volume descriptor sequence length

We pass one block beyond end of volume descriptor sequence into
process_sequence() as 'lastblock' instead of the last block of the
sequence. When the sequence is not terminated with TD descriptor, this
could lead to false errors due to invalid blocks in volume descriptor
sequence and thus unmountable volumes.

Acked-by: Pali Rohár <pali.rohar@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/udf/super.c