[CRIU] [PATCH 4/5] restore: Add restoration of alternative signal stack

Cyrill Gorcunov gorcunov at openvz.org
Wed Jul 10 07:36:40 EDT 2013


To restore SAS we have two ways:
- call for sigaltstack explicitly in restorer.c right before we call for sigreturn
- pass stack value to sigreturn call and allow the kernel to restore stack for us

Since second way is a simplier one -- we stick with it.

[alekskartashov@: use RT_SIGFRAME_UC]
Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
CC: Alexander Kartashov <alekskartashov at parallels.com>
---
 cr-restore.c       |  5 +++++
 include/restorer.h |  2 ++
 include/sigframe.h | 18 ++++++++++++++++++
 pie/restorer.c     |  9 +++++++++
 sigframe.c         | 12 ++++++++++++
 5 files changed, 46 insertions(+)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-restore-Add-restoration-of-alternative-signal-stack.patch
Type: text/x-patch
Size: 3181 bytes
Desc: not available
URL: <http://lists.openvz.org/pipermail/criu/attachments/20130710/c5bd9b9d/attachment.bin>


More information about the CRIU mailing list