• Jan Kara's avatar
    udf: Allow mounting volumes with incorrect identification strings · 47fb2ff8
    Jan Kara authored
    commit b54e41f5efcb4316b2f30b30c2535cc194270373 upstream.
    
    Commit c26f6c61 ("udf: Fix conversion of 'dstring' fields to UTF8")
    started to be more strict when checking whether converted strings are
    properly formatted. Sudip reports that there are DVDs where the volume
    identification string is actually too long - UDF reports:
    
    [  632.309320] UDF-fs: incorrect dstring lengths (32/32)
    
    during mount and fails the mount. This is mostly harmless failure as we
    don't need volume identification (and even less volume set
    identification) for anything. So just truncate the volume identification
    string if it is too long and replace it with 'Invalid' if we just cannot
    convert it for other reasons. This keeps slightly incorrect media still
    mountable.
    
    CC: stable@vger.kernel.org
    Fixes: c26f6c61 ("udf: Fix conversion of 'dstring' fields to UTF8")
    Reported-and-tested-by: 's avatarSudip Mukherjee <sudipm.mukherjee@gmail.com>
    Signed-off-by: 's avatarJan Kara <jack@suse.cz>
    Signed-off-by: 's avatarSudip Mukherjee <sudipm.mukherjee@gmail.com>
    Signed-off-by: 's avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    47fb2ff8
Name
Last commit
Last update
..
Kconfig Loading commit data...
Makefile Loading commit data...
balloc.c Loading commit data...
dir.c Loading commit data...
directory.c Loading commit data...
ecma_167.h Loading commit data...
file.c Loading commit data...
ialloc.c Loading commit data...
inode.c Loading commit data...
lowlevel.c Loading commit data...
misc.c Loading commit data...
namei.c Loading commit data...
osta_udf.h Loading commit data...
partition.c Loading commit data...
super.c Loading commit data...
symlink.c Loading commit data...
truncate.c Loading commit data...
udf_i.h Loading commit data...
udf_sb.h Loading commit data...
udfdecl.h Loading commit data...
udfend.h Loading commit data...
udftime.c Loading commit data...
unicode.c Loading commit data...