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 7/19/24 11:33 AM, Michal Hocko wrote:
> On Fri 19-07-24 10:50:07, Vlastimil Babka wrote:
> [...]
>> That wouldn't mean the busy loop is a correct and supported practice. It
>> would just mean it's the least bad of the bad options we have to deal with
>> an allocation that's wrong but we didn't catch soon enough in the development.
> 
> So you want to make those potential BUG_ONs hard/soft lockups (not sure
> all arches have a reliable detection) instead?

I'd expect on a SMP machine there's fair chance of being rescued by kswapd
or other direct reclaimer.




[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