[PULL 09/17] exec: Relax range check in ram_block_discard_range()

2021-05-13 Thread Dr. David Alan Gilbert (git)
From: David Hildenbrand We want to make use of ram_block_discard_range() in the RAM block resize callback when growing a RAM block, *before* used_length is changed. Let's relax the check. As RAM blocks always mmap the whole max_length area, we cannot corrupt unrelated data. Reviewed-by: Peter Xu

[PULL 09/17] exec: Relax range check in ram_block_discard_range()

2021-05-11 Thread Dr. David Alan Gilbert (git)
From: David Hildenbrand We want to make use of ram_block_discard_range() in the RAM block resize callback when growing a RAM block, *before* used_length is changed. Let's relax the check. As RAM blocks always mmap the whole max_length area, we cannot corrupt unrelated data. Reviewed-by: Peter Xu