Re: [PATCH] kasan: fix unaligned address is unhandled in kasan_remove_zero_shadow

2021-01-08 Thread Andrey Konovalov
On Sun, Jan 3, 2021 at 2:56 PM Lecopzer Chen wrote: > > During testing kasan_populate_early_shadow and kasan_remove_zero_shadow, > if the shadow start and end address in kasan_remove_zero_shadow() is > not aligned to PMD_SIZE, the remain unaligned PTE won't be removed. > > In the test case for kas

[PATCH] kasan: fix unaligned address is unhandled in kasan_remove_zero_shadow

2021-01-03 Thread Lecopzer Chen
During testing kasan_populate_early_shadow and kasan_remove_zero_shadow, if the shadow start and end address in kasan_remove_zero_shadow() is not aligned to PMD_SIZE, the remain unaligned PTE won't be removed. In the test case for kasan_remove_zero_shadow(): shadow_start: 0xffb80200, s