Commit d7829276 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

pie: restorer -- Don't fail if no futex provided

The image data may have no futex provided but we have
no "optional" entry for that (because futex data is
a part of thread_core_entry message).

Still we know that futex length can't be zero thus
make it "optional" by a value -- if length is zero,
we consider it as a sign to skip.
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 1b7cfe7d
...@@ -205,7 +205,7 @@ static int restore_thread_common(struct rt_sigframe *sigframe, ...@@ -205,7 +205,7 @@ static int restore_thread_common(struct rt_sigframe *sigframe,
{ {
sys_set_tid_address((int *)decode_pointer(args->clear_tid_addr)); sys_set_tid_address((int *)decode_pointer(args->clear_tid_addr));
if (args->has_futex) { if (args->has_futex && args->futex_rla_len) {
int ret; int ret;
ret = sys_set_robust_list(decode_pointer(args->futex_rla), ret = sys_set_robust_list(decode_pointer(args->futex_rla),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment