[CRIU] [PATCH v8 00/10] don't use wrong pagemap (from other task) on pid reuse

Andrew Vagin avagin at virtuozzo.com
Wed Feb 28 22:56:07 MSK 2018


Applied, thanks!
On Thu, Feb 22, 2018 at 02:49:18PM +0300, Pavel Tikhomirov wrote:
> https://jira.sw.ru/browse/PSBM-67502
> 
> v2: fix problems pointed out by Dmitry Safonov <0x7f454c46 at gmail.com>
> v3: fixes pointed out by Andrew Vagin <avagin at virtuozzo.com>
> v4: move detection to separate function + minor improvements
> v5-v7: handle parent's stats entry
> v8: debuging for travis fail and couple of small fixes
> 
> 
> Pavel Tikhomirov (10):
>   parse: add a helper to obtain an uptime
>   stats: save uptime to know when dump had happened
>   stats: add a helper to get stats of parent pre-dump
>   memory: don't use parent memdump if detected possible pid reuse
>   zdtm/lib/arch: add atomic_cmpxchg
>   zdtm/lib: add futex_cmpxchg and futex_cmpxchg_and_wake
>   zdtm/lib: add test_waitpre so that test knows about predump iters
>   zdtm: check that pid-reuse does not break iterative memory dump
>   restore: print error messages on all error-paths in restore_root_task
>   usernsd: print additional debuging due to silent fails of userns_call
> 
>  criu/cr-dump.c                                  |  40 ++++++++-
>  criu/cr-restore.c                               |  46 +++++++---
>  criu/include/mem.h                              |   9 +-
>  criu/include/proc_parse.h                       |   1 +
>  criu/include/stats.h                            |   6 ++
>  criu/mem.c                                      |  58 +++++++++++-
>  criu/namespaces.c                               |   8 +-
>  criu/proc_parse.c                               |  24 +++++
>  criu/stats.c                                    |  53 +++++++++++
>  images/stats.proto                              |   2 +
>  test/zdtm.py                                    |   8 ++
>  test/zdtm/lib/arch/aarch64/include/asm/atomic.h |  22 +++++
>  test/zdtm/lib/arch/arm/include/asm/atomic.h     |  26 ++++++
>  test/zdtm/lib/arch/arm/include/asm/processor.h  |  28 ++++++
>  test/zdtm/lib/arch/ppc64/include/asm/atomic.h   |   4 +
>  test/zdtm/lib/arch/ppc64/include/asm/cmpxchg.h  |  96 ++++++++++++++++++++
>  test/zdtm/lib/arch/s390/include/asm/atomic.h    |   9 ++
>  test/zdtm/lib/arch/x86/include/asm/atomic.h     |   7 ++
>  test/zdtm/lib/arch/x86/include/asm/cmpxchg.h    | 107 ++++++++++++++++++++++
>  test/zdtm/lib/lock.h                            |  15 ++++
>  test/zdtm/lib/ns.c                              |  46 ++++++----
>  test/zdtm/lib/ns.h                              |   6 ++
>  test/zdtm/lib/test.c                            |  30 +++++--
>  test/zdtm/lib/zdtmtst.h                         |   1 +
>  test/zdtm/transition/Makefile                   |   1 +
>  test/zdtm/transition/pid_reuse.c                | 113 ++++++++++++++++++++++++
>  test/zdtm/transition/pid_reuse.desc             |   1 +
>  27 files changed, 724 insertions(+), 43 deletions(-)
>  create mode 100644 test/zdtm/lib/arch/arm/include/asm/processor.h
>  create mode 100644 test/zdtm/lib/arch/ppc64/include/asm/cmpxchg.h
>  create mode 100644 test/zdtm/lib/arch/x86/include/asm/cmpxchg.h
>  create mode 100644 test/zdtm/transition/pid_reuse.c
>  create mode 100644 test/zdtm/transition/pid_reuse.desc
> 
> -- 
> 2.14.3
> 


More information about the CRIU mailing list