Re: [PATCH] mm: page_alloc: document kmemleak's non-blockable __GFP_NOFAIL case

From: Michal Hocko
Date: Mon Jul 15 2019 - 09:17:38 EST


On Sat 13-07-19 04:49:04, Yang Shi wrote:
> When running ltp's oom test with kmemleak enabled, the below warning was
> triggerred since kernel detects __GFP_NOFAIL & ~__GFP_DIRECT_RECLAIM is
> passed in:

kmemleak is broken and this is a long term issue. I thought that
Catalin had something to address this.

While this patch only adds a comment and discourages future changes of
the warning which is fine and probably something that we should do,
kmemleak really should be fixed sooner than later.
--
Michal Hocko
SUSE Labs