Re: [PATCH RFC] mm: warn potential return NULL for kmalloc_array and kvmalloc_array with __GFP_NOFAIL

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jul 22, 2024 at 11:01:23AM +0200, Michal Hocko wrote:
> __GFP_$FOO are usually low level. GFP_$FOO are high level and they
> combine several subflags to have a specific meaning. So this would need
> to be GFP_NOFAIL. Btw. the same applies to __GFP_NORETRY and
> __GFP_RETRY_MAYFAIL.

True.  But I think adding GFP_NOFAIL and slowly upping the enforcement
that no one is using __GFP_NOFAIL directly will get us a similar effect
to my *_nofail proposal.  It will require manual or scripted checking
instead of relying on the compiler, but it's much better than what we
have right now.





[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux