Commit 9a5b4274 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

restore: check_core -- Add missing test for thread_info in non-zombie task

Otherwise we might get nil dereference in sigreturn restore.
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 475aa872
......@@ -472,6 +472,11 @@ static int check_core(int pid, CoreEntry *core)
pr_err("Core IDS data missed for non-zombie\n");
goto out;
}
if (!core->thread_info) {
pr_err("Core info data missed for non-zombie\n");
goto out;
}
}
ret = 0;
......
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