Re: [PATCH v2 1/2] x86/fpu: Fix memory leak with dynamic fpstate and exec()

From: Chang S. Bae

Date: Mon Oct 26 2026 - 20:32:00 EST


On 10/25/2026 7:10 PM, Guixiong Wei wrote:

The fix then collapses to two changes in core.c: free the dynamic
fpstate at the start of fpstate_reset(), and clear dst_fpu->fpstate
to NULL in fpu_clone() before the reset. xstate.c, api.h and
process.c stay untouched.

OK with you?

Yea, I think that could be an option.

Thanks,
Chang