udf: disallow RW mount without valid integrity descriptor
authorSteve Magnani <steve.magnani@digidescorp.com>
Mon, 11 Feb 2019 14:24:38 +0000 (08:24 -0600)
committerJan Kara <jack@suse.cz>
Mon, 11 Feb 2019 17:31:35 +0000 (18:31 +0100)
commit4f5edd82eb375f0e949192ac5a0b42858356e05d
tree3ea5e479fe38b1688f574a4db8fd002ee8801713
parente8b4274735e416621cfb28c2802b4ad52da35d0f
udf: disallow RW mount without valid integrity descriptor

Refuse to mount a volume read-write without a coherent Logical Volume
Integrity Descriptor, because we can't generate truly unique IDs without
one.

This fixes a bug where all inodes created on a UDF filesystem following
mount without a coherent LVID are assigned unique ID 0 which can then
confuse other UDF implementations.

Signed-off-by: Steven J. Magnani <steve@digidescorp.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/udf/super.c