Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
memfd: don't corrupt a state of the dumped fd
Right now, criu uses a dumped fd to dump content of a memfd "file". Here are two reasons why we should not do this: * a state of a dumped fd doesn't have to be changed, but now criu calls lseek on it. This can be workarounded by using pread. * a dumped descriptor can be write-only. Reported-by: Mr Jenkins Cc: Nicolas Viennot <Nicolas.Viennot@twosigma.com> Signed-off-by: Andrei Vagin <avagin@gmail.com>
- Loading branch information