• Tikhomirov Pavel's avatar
    v2 mem: if no parent image persists, can't rely on it · e01dc7fa
    Tikhomirov Pavel authored
    here was bug cause if e.g.: iterative snapshots are made and
    between two of them new process in process tree was created,
    it can have pages which are non dirty, and won't save them
    into image. but there is no parent image for it.
    
    pages which are non soft-dirty appear if process with some pages
    in non dirty state forks, child will inherit those pte's
    and if child don't write to those pages, they will be still in non
    soft-dirty state when next dump comes.
    
    also this bug was not catched because of error in zdtm, look 3/3
    
    v2: simplify, add more justification in commit message.
    Signed-off-by: 's avatarTikhomirov Pavel <snorcht@gmail.com>
    Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
    e01dc7fa
mem.c 9.43 KB