On 9/13/23 23:33, Yang Weijiang wrote: > --- a/arch/x86/kernel/fpu/xstate.c > +++ b/arch/x86/kernel/fpu/xstate.c > @@ -845,6 +845,7 @@ void __init fpu__init_system_xstate(unsigned int legacy_size) > /* Clean out dynamic features from default */ > fpu_kernel_cfg.default_features = fpu_kernel_cfg.max_features; > fpu_kernel_cfg.default_features &= ~XFEATURE_MASK_USER_DYNAMIC; > + fpu_kernel_cfg.default_features &= ~fpu_kernel_dynamic_xfeatures; I'd much rather that this be a closer analog to XFEATURE_MASK_USER_DYNAMIC. Please define a XFEATURE_MASK_KERNEL_DYNAMIC value and use it here. Don't use a dynamically generated one.