Re: [PATCH v3 4/4] mm: prohibit NULL deference exposed for unsupported non-blockable __GFP_NOFAIL
From: Michal Hocko <mhocko@suse.com>
Date: 2024-08-19 14:01:28
Also in:
linux-mm
From: Michal Hocko <mhocko@suse.com>
Date: 2024-08-19 14:01:28
Also in:
linux-mm
On Mon 19-08-24 20:17:36, Yafang Shao wrote:
My question is why is that ? Why not let it loop around the allocator?
Because of 2 reasons. It is much easier to see NOFAIL allocations when they are annotated properly (try to grep for all sorts of endless loops) and also the allocator can make sertain heuristics if it knows that allocation must not fail. -- Michal Hocko SUSE Labs