[Devel] [PATCH 0/5] A few fixes for netlink sockets

2017-02-18 Thread Andrey Vagin
From: Andrei Vagin https://jira.sw.ru/browse/PSBM-60643 Andrei Vagin (5): netlink: restore queues and only then restore opts netlink: dump/restore netlink options socket: don't restore ucred from kernel messages netlink: skip pktinfo scm if a sender group is less than 32 netlink: avoid

[Devel] [PATCH 2/5] netlink: dump/restore netlink options

2017-02-18 Thread Andrey Vagin
From: Andrei Vagin There are a few netlink specific opotions, which have to be dumped. Signed-off-by: Andrei Vagin --- criu/sk-netlink.c | 60 + images/sk-netlink.proto | 9 2 files changed, 69 insertions(+) diff --git a/criu/sk-

[Devel] [PATCH 4/5] netlink: skip pktinfo scm if a sender group is less than 32

2017-02-18 Thread Andrey Vagin
From: Andrei Vagin nl_pktinfo control messages is used to get the extended destination group number. Signed-off-by: Andrei Vagin --- criu/sk-queue.c | 13 + 1 file changed, 13 insertions(+) diff --git a/criu/sk-queue.c b/criu/sk-queue.c index 88e47b8..8124f75 100644 --- a/criu/sk

[Devel] [PATCH 3/5] socket: don't restore ucred from kernel messages

2017-02-18 Thread Andrey Vagin
From: Andrei Vagin ucred.pid is zero for kernel messages and in this case it is impossible to restore it. Signed-off-by: Andrei Vagin --- criu/sk-queue.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/criu/sk-queue.c b/criu/sk-queue.c index e72ca45..88e47b8 100644 --

[Devel] [PATCH 1/5] netlink: restore queues and only then restore opts

2017-02-18 Thread Andrey Vagin
From: Andrei Vagin When we restore queues, we set limits to unlimited values, so then we need to restore required values for them. Signed-off-by: Andrei Vagin --- criu/sk-netlink.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/criu/sk-netlink.c b/criu/sk-netlink.c ind

[Devel] [PATCH 5/5] netlink: avoid ENOBUF when a netlink queue is dumped

2017-02-18 Thread Andrey Vagin
From: Andrei Vagin If a socket buffer is full and some messaged have been dropped, the first recvmsg will return -ENOBUF. We can avoid this if we set the NETLINK_NO_ENOBUFS opt for a socket. Signed-off-by: Andrei Vagin --- criu/sk-netlink.c | 19 ++- 1 file changed, 18 inserti