[CRIU] [PATCH] proc: Fix parsing of stack string
Cyrill Gorcunov
gorcunov at openvz.org
Wed Apr 25 14:28:15 EDT 2012
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 at openvz.org>
---
proc_parse.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/proc_parse.c b/proc_parse.c
index 2ba72d6..cd1e7d6 100644
--- a/proc_parse.c
+++ b/proc_parse.c
@@ -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]")) {
--
1.7.7.6
More information about the CRIU
mailing list