udf: Verify partition map count
authorJan Kara <jack@suse.cz>
Fri, 11 Jul 2025 17:01:20 +0000 (19:01 +0200)
committerJan Kara <jack@suse.cz>
Fri, 11 Jul 2025 17:11:10 +0000 (19:11 +0200)
commit1a11201668e8635602577dcf06f2e96c591d8819
tree3480d5b8e735b5be392046de6de6bdcbbf0b0d31
parent185d3490feb324433a91aa5a4296f76e4c0b87c5
udf: Verify partition map count

Verify that number of partition maps isn't insanely high which can lead
to large allocation in udf_sb_alloc_partition_maps(). All partition maps
have to fit in the LVD which is in a single block.

Reported-by: syzbot+478f2c1a6f0f447a46bb@syzkaller.appspotmail.com
Signed-off-by: Jan Kara <jack@suse.cz>
fs/udf/super.c