Re: [PATCH] mm/vmalloc: Do not warn on -ENOMEM from va_alloc()
Uladzislau Rezki <[email protected]> Mon, 3 Aug 2026 15:40:10 +0200
| Newsgroups | org.kvack.linux-mm,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <anCaOuePqh0IUX52@milan> |
On Mon, Aug 03, 2026 at 09:19:52AM +0530, Anshuman Khandual wrote: > On Sun, Aug 02, 2026 at 12:46:27PM +0200, Uladzislau Rezki (Sony) wrote: > > Since vmalloc() accepts non-blocking GFP flags, allocation > > requests may fail when callers pass restrictive GFP masks. > > > > va_clip() may return -ENOMEM when its GFP_NOWAIT fallback > > allocation fails during NE_FIT_TYPE splitting. This is an > > expected failure, so va_alloc() should return the error > > without triggering a kernel splat. > > Dropping WARN_ON_ONCE() just for -ENOMEM while preserving this > warning for other returned errors does make sense. > > > > > Reported-by: [email protected] > > Very small nit. > > If there is actual link for the problem report, probably it could > be added as an Link: or Closes: here. > I hope Andrew can help here. If not i will resend! Thank you! -- Uladzislau Rezki