[Devel] [PATCH criu v7-u5 0/2] Fix nil dereference in mount code and udp socks

2017-07-22 Thread Cyrill Gorcunov
Hi! Here are few bugs fixed - we may hit nil dereference problem when dereferencing parent's ids in mount code - calling shutwodn on udp closed sockets should not prevent the restore Please take a look, I think the vanilla criu needs the same fixes. https://jira.sw.ru/browse/PSBM-68062 Cyril

[Devel] [PATCH criu v7-u5 2/2] sk-inet: udp -- Don't fail on calling shutdown on disconnected socket

2017-07-22 Thread Cyrill Gorcunov
If socket has been connected and shutted down, it may get disconnected then leaving shutdown mode set inside (which we pull into image). On restore we should not fail when calling shutdown over -- the kernel has a hack to inform listeners even on closed sockets. From userspace perspective to reuse

[Devel] [PATCH criu v7-u5 1/2] mount: restore_task_mnt_ns - Lookup for mount namespace conditionally

2017-07-22 Thread Cyrill Gorcunov
In case if our parent is a dead task (zombie) we should lookup for parent ids which will be inherited on restore. Otherwise parent->ids may be nil and SIGSEGV produced. https://jira.sw.ru/browse/PSBM-68062 Signed-off-by: Cyrill Gorcunov --- criu/mount.c | 7 +-- 1 file changed, 5 insertions