Commits
Andrey Mirkin authored and Konstantin Khlebnikov committed 66d2ccac941
CPT: save/restore only classic task flags Task flags were restored as they were saved in image. That is not correct as flags are differs in 2.6.9, 2.6.16 and 2.6.18 kernels. Actually we just need to save/restore only classic flags (PF_EXITING, PF_DEAD, PF_FORKNOEXEC, PF_SUPERPRIV, PF_DUMPCORE and PF_SIGNALED). The problems can occure because during migration from 2.6.9 to 2.6.18 kernel flag PF_USED_MATH was not restored on tsk->flags correctly. In 2.6.9 kernel there was field tsk->used_math for this purpose, in 2.6.18 kernel it is transformed into one of the tsk->flags. And it was a bug, that after restore of fpu state and PF_USED_MATH flag, it was cleared by "tsk->flags = ti->cpt_flags & ~PF_FROZEN", as old cpt_flags do not contain PF_USED_MATH flag. Bugs #115977 #115980 #115982