Re: [PATCH] x86/mm: Handle alloc failure in phys_*_init()

From: Em Sharnoff
Date: Mon Jun 09 2025 - 06:37:23 EST


On 2025-06-05 07:36, Ingo Molnar wrote:

> I agree that it makes total sense to fix all this (especially since you
> are actively triggering it), but have you tried also changing it away
> from GFP_ATOMIC? There's no real reason why it should be GFP_ATOMIC
> AFAICS, other than some historic inertia that nobody bothered to fix.

Fair enough, yeah. We hadn't tried that, no

> Finally, could you make this a 2-patch fix series: first one to fix the
> error return path to not crash, and the second one to change it away
> from GFP_ATOMIC?

Sounds good -- thanks for the feedback!

Sent a new patch set with those changes. For posterity, v2 is here:
https://lore.kernel.org/all/0ce5e150-19e0-457f-bec3-ee031c0be7e7@xxxxxxxxx/

Thanks,
Em