Re: [PATCH mm v10 31/42] kasan, mm: untag page address in free_reserved_area

2020-11-18 Thread Alexander Potapenko
On Fri, Nov 13, 2020 at 11:17 PM Andrey Konovalov wrote: > > From: Vincenzo Frascino > > free_reserved_area() memsets the pages belonging to a given memory area. > As that memory hasn't been allocated via page_alloc, the KASAN tags that > those pages have are 0x00. As the result the memset might

[PATCH mm v10 31/42] kasan, mm: untag page address in free_reserved_area

2020-11-13 Thread Andrey Konovalov
From: Vincenzo Frascino free_reserved_area() memsets the pages belonging to a given memory area. As that memory hasn't been allocated via page_alloc, the KASAN tags that those pages have are 0x00. As the result the memset might result in a tag mismatch. Untag the address to avoid spurious