Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CRIU dump/check fails for a process with "kerndat_has_ipv6_freebind failed when initializing kerndat" #2222

Closed
yevzman-swe opened this issue Jul 6, 2023 · 0 comments

Comments

@yevzman-swe
Copy link

yevzman-swe commented Jul 6, 2023

Description
Hi,
Today while using CRIU (v3.18) I got an error:
"Unable to create a ipv6 dgram socket: Address family not supported by protocol", when dumping the process and also when trying to do

criu check

Steps to reproduce the issue:

  1. A machine with disabled IPv6.
    Artificially can be reproduced by editing value of variables in /etc/default/grub file:
GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1"
# (If there were any other parameters here, such as "quiet splash," simply separate that parameter from the new one with a space (e.g., GRUB_CMDLINE_LINUX_DEFAULT="quiet spash ipv6.disable=1"))
GRUB_CMDLINE_LINUX="ipv6.disable=1"

and furthere system rebooting:

sudo reboot
  1. Run command:
criu check

or dump process

criu dump -t $PID

Describe the results you received:
for both criu check and criu dump i got

Error (criu/kerndat.c:1581): Unable to create a ipv6 dgram socket: Address family not supported by protocol
Error (criu/kerndat.c:1839): kerndat_has_ipv6_freebind failed when initializing kerndat.
Error (criu/crtools.c:263): Could not initialize kernel features detection.

Describe the results you expected:
for criu check

Looks good.

for criu dump: Successful dump

CRIU logs and information:

Output of `criu --version`:

Version: 3.18
GitID: v3.18-57-g504d05197

Output of `criu check --all`:

Error (criu/kerndat.c:1581): Unable to create a ipv6 dgram socket: Address family not supported by protocol
Error (criu/kerndat.c:1839): kerndat_has_ipv6_freebind failed when initializing kerndat.
Error (criu/crtools.c:263): Could not initialize kernel features detection.

Additional environment details:
result of command uname -a

Linux 5.19.0-46-generic #47~22.04.1-Ubuntu SMP Wed Jun 21 15:35:31 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
yevzman-swe pushed a commit to yevzman-swe/criu that referenced this issue Jul 6, 2023
Fixes: checkpoint-restore#2222
Fixes: f1c8d38 ("kerndat: check if setsockopt IPV6_FREEBIND is supported")

Signed-off-by: Evzman Yan <yevzman@gmail.com>
yevzman-swe pushed a commit to yevzman-swe/criu that referenced this issue Jul 6, 2023
Fixes: checkpoint-restore#2222
Fixes: f1c8d38 ("kerndat: check if setsockopt IPV6_FREEBIND is supported")
Signed-off-by: Yan Evzman <yevzman@gmail.com>
@avagin avagin closed this as completed in a4bb3f9 Jul 7, 2023
ancientmodern pushed a commit to ancientmodern/criu that referenced this issue Jul 26, 2023
Fixes: checkpoint-restore#2222
Fixes: f1c8d38 ("kerndat: check if setsockopt IPV6_FREEBIND is supported")
Signed-off-by: Yan Evzman <yevzman@gmail.com>
Signed-off-by: Andrei Vagin <avagin@google.com>
avagin pushed a commit to avagin/criu that referenced this issue Oct 12, 2023
Fixes: checkpoint-restore#2222
Fixes: f1c8d38 ("kerndat: check if setsockopt IPV6_FREEBIND is supported")
Signed-off-by: Yan Evzman <yevzman@gmail.com>
Signed-off-by: Andrei Vagin <avagin@google.com>
avagin pushed a commit to avagin/criu that referenced this issue Oct 22, 2023
Fixes: checkpoint-restore#2222
Fixes: f1c8d38 ("kerndat: check if setsockopt IPV6_FREEBIND is supported")
Signed-off-by: Yan Evzman <yevzman@gmail.com>
Signed-off-by: Andrei Vagin <avagin@google.com>
avagin pushed a commit to avagin/criu that referenced this issue Oct 22, 2023
Fixes: checkpoint-restore#2222
Fixes: f1c8d38 ("kerndat: check if setsockopt IPV6_FREEBIND is supported")
Signed-off-by: Yan Evzman <yevzman@gmail.com>
Signed-off-by: Andrei Vagin <avagin@google.com>
avagin pushed a commit that referenced this issue Oct 22, 2023
Fixes: #2222
Fixes: f1c8d38 ("kerndat: check if setsockopt IPV6_FREEBIND is supported")
Signed-off-by: Yan Evzman <yevzman@gmail.com>
Signed-off-by: Andrei Vagin <avagin@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant