udf: Allow volume descriptor sequence to be terminated by unrecorded block
authorJan Kara <jack@suse.cz>
Thu, 8 Feb 2018 17:10:54 +0000 (18:10 +0100)
committerJan Kara <jack@suse.cz>
Fri, 16 Feb 2018 10:15:09 +0000 (11:15 +0100)
commit67621675e9636ed272a4f0235215accdfbc99768
treea541912ca630b90ec66a8cb18a3ecc5d3c5b18e3
parent7b568cba4f0af32522f84c1378e71a47a9c61bb0
udf: Allow volume descriptor sequence to be terminated by unrecorded block

According to ECMA-167 3/8.4.2 a volume descriptor sequence can be
terminated also by an unrecorded block within the extent of volume
descriptor sequence. Currently we errored out in such case making such
volumes unmountable. Handle that case by treating any invalid block as a
block terminating the sequence.

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