Commit 3cb5969b authored by Andrey Vagin's avatar Andrey Vagin Committed by Pavel Emelyanov

pstee: fix memory corrupation

The pstree_item for helpers is allocated without rst_info.
Before this patch prepare_fd_pid was executed for such items and
touched rst_info.
Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent ce25c67b
......@@ -115,6 +115,9 @@ static int prepare_shared(void)
return -1;
for_each_pstree_item(pi) {
if (pi->state == TASK_HELPER)
continue;
ret = prepare_shmem_pid(pi->pid.virt);
if (ret < 0)
break;
......
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