Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

dm vdo slab-depot: validate old zone count on load

Verify the old zone count has a valid value before using
it to compute slab summary entry offsets.

Signed-off-by: Matthew Sakai <msakai@redhat.com>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>

authored by

Matthew Sakai and committed by
Mikulas Patocka
b3929b2c 9e809bb1

+4
+4
drivers/md/dm-vdo/slab-depot.c
··· 4262 4262 } 4263 4263 slab_size_shift = ilog2(slab_size); 4264 4264 4265 + if (state.zone_count > MAX_VDO_PHYSICAL_ZONES) 4266 + return vdo_log_error_strerror(UDS_CORRUPT_DATA, 4267 + "invalid zone count"); 4268 + 4265 4269 result = vdo_allocate_extended(struct slab_depot, 4266 4270 vdo->thread_config.physical_zone_count, 4267 4271 struct block_allocator, __func__, &depot);