Re: [PATCH 06/12] kasan: rework krealloc tests

2021-02-03 Thread Marco Elver
On Mon, Feb 01, 2021 at 08:43PM +0100, Andrey Konovalov wrote: > This patch reworks KASAN-KUnit tests for krealloc() to: > > 1. Check both slab and page_alloc based krealloc() implementations. > 2. Allow at least one full granule to fit between old and new sizes for >each KASAN mode, and check

[PATCH 06/12] kasan: rework krealloc tests

2021-02-01 Thread Andrey Konovalov
This patch reworks KASAN-KUnit tests for krealloc() to: 1. Check both slab and page_alloc based krealloc() implementations. 2. Allow at least one full granule to fit between old and new sizes for each KASAN mode, and check accesses to that granule accordingly. Signed-off-by: Andrey Konovalov