On Tue, Feb 24, 2026 at 05:40:02PM -0800, Kees Cook wrote: > Instead of silently returning NULL on size overflows from array > allocations, saturate the request to SIZE_MAX so the error will be > surfaced to the allocator (and still return NULL). > > Suggested-by: Vlastimil Babka <[email protected]> > Link: > https://lore.kernel.org/lkml/[email protected]/ > Signed-off-by: Kees Cook <[email protected]> > ---
Yes, since it's larger than order-1, it'll be passed to the page allocator and will hit the order > MAX_PAGE_ORDER warning in __alloc_frozen_pages_noprof(). Looks good to me, Reviewed-by: Harry Yoo <[email protected]> -- Cheers, Harry / Hyeonggon

