]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
udf: Fix crash during mount
authorJan Kara <jack@suse.cz>
Thu, 6 Sep 2018 13:46:17 +0000 (15:46 +0200)
committerJan Kara <jack@suse.cz>
Fri, 7 Sep 2018 08:32:22 +0000 (10:32 +0200)
commitb085fbe2ef7fa7489903c45271ae7b7a52b0f9ab
treeae5f90c244fc54daf94d51f56bb9c144562ecaad
parenta9ad01bc759df79b0012f43ee52164391e31cd96
udf: Fix crash during mount

Fix a crash during an attempt to mount a filesystem that has both
Unallocated Space Table and Unallocated Space Bitmap. Such filesystem
actually violates the UDF standard so we just have to properly detect
such situation and refuse to mount such filesystem read-write. When we
are at it, verify also other constraints on the allocation information
mandated by the standard.

Reported-by: Anatoly Trosinenko <anatoly.trosinenko@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/udf/super.c