Re: [Lsf-pc] [LSF/MM/BPF TOPIC] Reclamation interactions with RCU

Kent Overstreet
2024-03-01T04:18:47Z

On Fri, Mar 01, 2024 at 03:09:09PM +1100, NeilBrown wrote:
> No. You warn and DON'T fail the allocation. Just like lockdep warns of
> possible deadlocks but lets you continue.
> These will be found in development (mostly) and changed to use
> __GFP_RETRY_MAYFAIL and have appropriate error-handling paths.

And when an allocation happens that cannot be satisfied without killing
everything off? You do realize there are _lots_ of allocations where
userspace has control over the size of the allocation, via e.g. obscure
ioctls that ask for a buffer to be filled?