Re: [RFC PATCH 0/4] make vmalloc gfp flags usage more apparent

From: Christoph Hellwig
Date: Mon Nov 03 2025 - 08:51:26 EST


On Mon, Nov 03, 2025 at 01:57:01PM +0100, Uladzislau Rezki wrote:
> > I did some digging and am not entirely sure what flags vmalloc does NOT
> > support. Is a better idea is to have explicitly supported flags and drop
> > all others?
> >
> Maybe we should look at it vice versa. Focus on supported flags. In the
> slab there is an adjust function which modifies the gfp and emits the warning
> if passed GFP is part of buggy mask.

Yes, explicitly whitelisting the (component)flags supported seems like
a much more maintainable approach.