Re: [PATCH RFC v2 11/21] kasan: inline kasan_poison_memory and check_invalid_free

2020-10-28 Thread Dmitry Vyukov
On Thu, Oct 22, 2020 at 3:19 PM 'Andrey Konovalov' via kasan-dev wrote: > > Using kasan_poison_memory() or check_invalid_free() currently results in > function calls. Move their definitions to mm/kasan/kasan.h and turn them > into static inline functions for hardware tag-based mode to avoid uneede

[PATCH RFC v2 11/21] kasan: inline kasan_poison_memory and check_invalid_free

2020-10-22 Thread Andrey Konovalov
Using kasan_poison_memory() or check_invalid_free() currently results in function calls. Move their definitions to mm/kasan/kasan.h and turn them into static inline functions for hardware tag-based mode to avoid uneeded function calls. Signed-off-by: Andrey Konovalov Link: https://linux-review.g