Please sign in to comment.
c/r: procfs: add start_data, end_data, start_brk members to /proc/$pi…
…d/stat v4 The mm->start_code/end_code, mm->start_data/end_data, mm->start_brk are involved into calculation of program text/data segment sizes (which might be seen in /proc/<pid>/statm) and into brk() call final address. For restore we need to know all these values. While mm->start_code/end_code already present in /proc/$pid/stat, the rest members are not, so this patch brings them in. The restore procedure of these members is addressed in another patch using prctl(). Signed-off-by: Cyrill Gorcunov <firstname.lastname@example.org> Acked-by: Serge Hallyn <email@example.com> Reviewed-by: Kees Cook <firstname.lastname@example.org> Reviewed-by: KAMEZAWA Hiroyuki <email@example.com> Cc: Alexey Dobriyan <firstname.lastname@example.org> Cc: Tejun Heo <email@example.com> Cc: Andrew Vagin <firstname.lastname@example.org> Cc: Vasiliy Kulikov <email@example.com> Cc: Alexey Dobriyan <firstname.lastname@example.org> Cc: "Eric W. Biederman" <email@example.com> Signed-off-by: Andrew Morton <firstname.lastname@example.org> Signed-off-by: Linus Torvalds <email@example.com>
- Loading branch information...
Showing with 8 additions and 2 deletions.