Re: [PATCH mm v3 07/19] kasan: inline kasan_reset_tag for tag-based modes

2020-11-17 Thread Dmitry Vyukov
On Fri, Nov 13, 2020 at 11:20 PM Andrey Konovalov wrote: > > Using kasan_reset_tag() currently results in a function call. As it's > called quite often from the allocator code, this leads to a noticeable > slowdown. Move it to include/linux/kasan.h and turn it into a static > inline function.

[PATCH mm v3 07/19] kasan: inline kasan_reset_tag for tag-based modes

2020-11-13 Thread Andrey Konovalov
Using kasan_reset_tag() currently results in a function call. As it's called quite often from the allocator code, this leads to a noticeable slowdown. Move it to include/linux/kasan.h and turn it into a static inline function. Also remove the now unneeded reset_tag() internal KASAN macro and use