Re: [PATCH RFC v2 19/21] kasan: don't round_up too much

2020-10-28 Thread Dmitry Vyukov
On Thu, Oct 22, 2020 at 3:20 PM Andrey Konovalov wrote: > > For tag-based mode kasan_poison_memory() already rounds up the size. Do > the same for software modes and remove round_up() from common code. > > Signed-off-by: Andrey Konovalov > Link: > https://linux-review.googlesource.com/id/Ib39712

[PATCH RFC v2 19/21] kasan: don't round_up too much

2020-10-22 Thread Andrey Konovalov
For tag-based mode kasan_poison_memory() already rounds up the size. Do the same for software modes and remove round_up() from common code. Signed-off-by: Andrey Konovalov Link: https://linux-review.googlesource.com/id/Ib397128fac6eba874008662b4964d65352db4aa4 --- mm/kasan/common.c | 8 ++--