mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-30 22:05:36 +00:00
proc: Fix parsing of stack string
Kernel 3.4-rc4 has two formats for stack "[stack]" and "[stack:%d]" (for threads) so adopt our parsing routine for both. Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
committed by
Pavel Emelyanov
parent
6670d294fb
commit
06986dfe50
@@ -97,7 +97,7 @@ int parse_maps(pid_t pid, struct list_head *vma_area_list, bool use_map_files)
|
||||
goto err;
|
||||
}
|
||||
|
||||
if (strstr(big_buffer, "[stack]")) {
|
||||
if (strstr(big_buffer, "[stack")) {
|
||||
vma_area->vma.status |= VMA_AREA_REGULAR | VMA_AREA_STACK;
|
||||
vma_area->vma.flags |= MAP_GROWSDOWN;
|
||||
} else if (strstr(big_buffer, "[vsyscall]")) {
|
||||
|
Reference in New Issue
Block a user