Atsushi Nemoto wrote:
If you did not restore static registers in kernel stack on restore_sigcontext(), succeeding RESTORE_STATIC in restore_all will load garbages to static registers.
You're right the patch I sent is not sufficient. However, we actually could restore save_static_function (well if we do it, I think it's much better to do it in assembly code...) for sys_sigreturn() _only_. In that case RESTORE_STATIC should load correct values, shouldn't it ? But the points are: - get rid of saving static registers in setup_sigcontext() - get rid of restoring static registers in restore_sigcontext() - free space in the signal frame what do you think ? -- Franck