[CRIU] [PATCH v3 0/8] don't use wrong pagemap (from other task) on pid reuse

Pavel Tikhomirov ptikhomirov at virtuozzo.com
Wed Feb 14 14:28:55 MSK 2018


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>

ptikhomirov (8):
  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

 criu/cr-dump.c                                  |   8 +-
 criu/include/mem.h                              |   5 +-
 criu/include/proc_parse.h                       |   1 +
 criu/include/stats.h                            |   6 ++
 criu/mem.c                                      |  56 +++++++++++-
 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 +
 25 files changed, 645 insertions(+), 30 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