criu/compel
Michael Holzheu a5e2605e7a s390: Fix off-by-one error for task size detection
The entries in /proc/<pid>/maps look like the following:

  3fffffdf000-40000000000 rw-p 00000000 00:00 0

The upper address is the first address that is *not* included in the
address range.

Our function max_mapped_addr() should return the last valid address
for a process, but currently returns the first invalid address.

This can lead to the following error message on kernel that have
kernel commit ee71d16d22bb:

 Error (criu/proc_parse.c:694): Can't dump high memory region
 1ffffffffff000-20000000000000 of task 24 because kernel commit ee71d16d22bb
 is missing

Fix this and make max_mapped_addr() the last valid address (first invalid
address - 1).

Reported-by: Adrian Reber <areber@redhat.com>
Signed-off-by: Michael Holzheu <holzheu@linux.vnet.ibm.com>
Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
2017-08-09 18:51:42 +03:00
..
arch s390: Fix off-by-one error for task size detection 2017-08-09 18:51:42 +03:00
include compel: Add more arguments to compel_wait_task() 2017-05-10 04:26:56 +03:00
plugins s390: Move -msoft-float/-fno-optimize-sibling-calls into compel Makefiles 2017-08-09 18:51:41 +03:00
src s390:compel: Enable s390 in compel/ 2017-08-09 18:51:41 +03:00
test compel/test/fdspy: fix linking 2017-05-19 09:17:20 +03:00
.gitignore s390:compel: Enable s390 in compel/ 2017-08-09 18:51:41 +03:00
compel-host compel cli: show includes 2017-03-15 00:09:55 +03:00
Makefile s390: Move -msoft-float/-fno-optimize-sibling-calls into compel Makefiles 2017-08-09 18:51:41 +03:00