On Wed, Jun 12, 2024 at 09:38:19AM +0100, Jiaxun Yang wrote: > +++ b/arch/mips/kernel/elf.c > @@ -318,6 +318,10 @@ void mips_set_personality_nan(struct arch_elf_state *state) > t->thread.fpu.fcr31 = c->fpu_csr31; > switch (state->nan_2008) { > case 0: > + if (!(c->fpu_msk31 & FPU_CSR_NAN2008)) > + t->thread.fpu.fcr31 &= ~FPU_CSR_NAN2008; > + if (!(c->fpu_msk31 & FPU_CSR_ABS2008)) > + t->thread.fpu.fcr31 &= ~FPU_CSR_ABS2008; why is this needed ? Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]