Re: [PATCH] trace: Fix a kmemleak noise

From: Steven Rostedt
Date: Wed Nov 24 2021 - 10:16:21 EST


On Wed, 24 Nov 2021 14:08:01 +0000
Chen Jun <chenjun102@xxxxxxxxxx> wrote:

> The reason is elts->pages[i] is alloced by get_zeroed_page.
> and kmemleak will not scan the area alloced by get_zeroed_page.
> The address stored in elts->pages will be regarded as leaked.

Why doesn't kmemleak scan get_zeroed_page? And if that's the case, how does
all the other locations in the kernel that call get_zeroed_page handle this?

-- Steve