WSL: setsockopt IPV6_TCLASS 8: Operation not permitted

Please use the following bug reporting template to help produce actionable and reproducible issues. Please try to ensure that the reproduction is minimal so that the team can go through more bugs!

  • A brief description git fetch in IPv6 env now has this warning: “setsockopt IPV6_TCLASS 8: Operation not permitted” (but git fetch command itself eventually finishes correctly)

  • Expected results the setsockopt() function should succeed without warnings.

  • Actual results (with terminal output if applicable)

$ git fetch; echo $?
setsockopt IPV6_TCLASS 8: Operation not permitted:
0
$ git fetch -4; echo $?
0
$ git fetch -6; echo $?
setsockopt IPV6_TCLASS 8: Operation not permitted:
0
  • Your Windows build number Version 1703 (OS Build 15063.13) git version 2.12.2.575.gb14f27f91 (PS: I did not see this issue before I upgraded to the Creators Update).

  • Steps / All commands required to reproduce the error from a brand new installation . make sure the Windows system is in a working ipv6 environment . clone a git repo . fetch the repo

  • Strace of the failing command

$ strace git fetch
execve("/home/lxl/bin/git", ["git", "fetch"], [/* 20 vars */]) = 0
brk(0)                                  = 0x1290000
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f8b022f0000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=37553, ...}) = 0
mmap(NULL, 37553, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f8b022e6000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libz.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\36\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=100728, ...}) = 0
mmap(NULL, 2195784, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f8b01de0000
mprotect(0x7f8b01df8000, 2093056, PROT_NONE) = 0
mmap(0x7f8b01ff7000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x17000) = 0x7f8b01ff7000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0po\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=141574, ...}) = 0
mmap(NULL, 2217264, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f8b01bc0000
mprotect(0x7f8b01bd9000, 2093056, PROT_NONE) = 0
mmap(0x7f8b01dd8000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x18000) = 0x7f8b01dd8000
mmap(0x7f8b01dda000, 13616, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f8b01dda000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/librt.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0P#\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=31792, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f8b022e0000
mmap(NULL, 2129016, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f8b019b0000
mprotect(0x7f8b019b7000, 2093056, PROT_NONE) = 0
mmap(0x7f8b01bb6000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6000) = 0x7f8b01bb6000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0P \2\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1853216, ...}) = 0
mmap(NULL, 3961536, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f8b015e0000
mprotect(0x7f8b0179e000, 2093056, PROT_NONE) = 0
mmap(0x7f8b0199d000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1bd000) = 0x7f8b0199d000
mmap(0x7f8b019a3000, 17088, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f8b019a3000
close(3)                                = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f8b022d0000
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f8b022c0000
arch_prctl(ARCH_SET_FS, 0x7f8b022c0740) = 0
mprotect(0x7f8b0199d000, 16384, PROT_READ) = 0
mprotect(0x7f8b01dd8000, 4096, PROT_READ) = 0
mprotect(0x7f8b01bb6000, 4096, PROT_READ) = 0
mprotect(0x7f8b01ff7000, 4096, PROT_READ) = 0
mprotect(0x7e4000, 4096, PROT_READ)     = 0
mprotect(0x7f8b02222000, 4096, PROT_READ) = 0
munmap(0x7f8b022e6000, 37553)           = 0
set_tid_address(0x7f8b022c0a10)         = 287
set_robust_list(0x7f8b022c0a20, 24)     = 0
futex(0x7fffdaebac60, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 1, NULL, 7f8b022c0740) = -1 EAGAIN (Resource temporarily unavailable)
rt_sigaction(SIGRTMIN, {0x7f8b01bc69f0, [], SA_RESTORER|SA_SIGINFO, 0x7f8b01bd0330}, NULL, 8) = 0
rt_sigaction(SIGRT_1, {0x7f8b01bc6a80, [], SA_RESTORER|SA_RESTART|SA_SIGINFO, 0x7f8b01bd0330}, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0
open("/dev/null", O_RDWR)               = 3
close(3)                                = 0
brk(0)                                  = 0x1290000
brk(0x12b1000)                          = 0x12b1000
open("/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=2919792, ...}) = 0
mmap(NULL, 2919792, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f8b01317000
close(3)                                = 0
rt_sigprocmask(SIG_UNBLOCK, [PIPE], NULL, 8) = 0
rt_sigaction(SIGPIPE, {SIG_DFL, [PIPE], SA_RESTORER|SA_RESTART, 0x7f8b01616cb0}, {SIG_DFL, [], SA_RESTORER|SA_RESTART, 0x7fcc6a226cb0}, 8) = 0
getcwd("/mnt/c/Users/lxl/MYGITs/linuxfiles", 129) = 35
stat("/mnt/c/Users/lxl/MYGITs/linuxfiles", {st_mode=S_IFDIR|0777, st_size=512, ...}) = 0
stat("/mnt/c/Users/lxl/MYGITs/linuxfiles/.git", {st_mode=S_IFDIR|0777, st_size=512, ...}) = 0
lstat("/mnt/c/Users/lxl/MYGITs/linuxfiles/.git/HEAD", {st_mode=S_IFREG|0777, st_size=23, ...}) = 0
open("/mnt/c/Users/lxl/MYGITs/linuxfiles/.git/HEAD", O_RDONLY) = 3
read(3, "ref: refs/heads/master\n", 255) = 23
read(3, "", 232)                        = 0
close(3)                                = 0
lstat("/mnt/c/Users/lxl/MYGITs/linuxfiles/.git/commondir", 0x7fffdaeba7e0) = -1 ENOENT (No such file or directory)
access("/mnt/c/Users/lxl/MYGITs/linuxfiles/.git/objects", X_OK) = 0
access("/mnt/c/Users/lxl/MYGITs/linuxfiles/.git/refs", X_OK) = 0
lstat(".git/commondir", 0x7fffdaeba890) = -1 ENOENT (No such file or directory)
open(".git/config", O_RDONLY)           = 3
fstat(3, {st_mode=S_IFREG|0777, st_size=265, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f8b022b0000
read(3, "[core]\n\trepositoryformatversion "..., 512) = 265
read(3, "", 512)                        = 0
close(3)                                = 0
munmap(0x7f8b022b0000, 4096)            = 0
getcwd("/mnt/c/Users/lxl/MYGITs/linuxfiles", 129) = 35
stat(".git", {st_mode=S_IFDIR|0777, st_size=512, ...}) = 0
lstat(".git/commondir", 0x7fffdaeba660) = -1 ENOENT (No such file or directory)
access("/home/lxl/etc/gitconfig", R_OK) = -1 ENOENT (No such file or directory)
access("/home/lxl/.config/git/config", R_OK) = -1 ENOENT (No such file or directory)
access("/home/lxl/.gitconfig", R_OK)    = 0
open("/home/lxl/.gitconfig", O_RDONLY)  = 3
fstat(3, {st_mode=S_IFREG|0777, st_size=320, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f8b022b0000
read(3, "[core]\n\teditor = /usr/bin/vim\n[c"..., 512) = 320
read(3, "", 512)                        = 0
close(3)                                = 0
munmap(0x7f8b022b0000, 4096)            = 0
access(".git/config", R_OK)             = 0
open(".git/config", O_RDONLY)           = 3
fstat(3, {st_mode=S_IFREG|0777, st_size=265, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f8b022b0000
read(3, "[core]\n\trepositoryformatversion "..., 512) = 265
read(3, "", 512)                        = 0
close(3)                                = 0
munmap(0x7f8b022b0000, 4096)            = 0
access("/home/lxl/etc/gitconfig", R_OK) = -1 ENOENT (No such file or directory)
access("/home/lxl/.config/git/config", R_OK) = -1 ENOENT (No such file or directory)
access("/home/lxl/.gitconfig", R_OK)    = 0
open("/home/lxl/.gitconfig", O_RDONLY)  = 3
fstat(3, {st_mode=S_IFREG|0777, st_size=320, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f8b022b0000
read(3, "[core]\n\teditor = /usr/bin/vim\n[c"..., 512) = 320
read(3, "", 512)                        = 0
close(3)                                = 0
munmap(0x7f8b022b0000, 4096)            = 0
access(".git/config", R_OK)             = 0
open(".git/config", O_RDONLY)           = 3
fstat(3, {st_mode=S_IFREG|0777, st_size=265, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f8b022b0000
read(3, "[core]\n\trepositoryformatversion "..., 512) = 265
read(3, "", 512)                        = 0
close(3)                                = 0
munmap(0x7f8b022b0000, 4096)            = 0
open(".git/index", O_RDONLY)            = 3
fstat(3, {st_mode=S_IFREG|0777, st_size=15337, ...}) = 0
mmap(NULL, 15337, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f8b022ec000
close(3)                                = 0
munmap(0x7f8b022ec000, 15337)           = 0
open("/mnt/c/Users/lxl/MYGITs/linuxfiles/.gitmodules", O_RDONLY) = -1 ENOENT (No such file or directory)
lstat(".git/HEAD", {st_mode=S_IFREG|0777, st_size=23, ...}) = 0
open(".git/HEAD", O_RDONLY)             = 3
read(3, "ref: refs/heads/master\n", 256) = 23
read(3, "", 233)                        = 0
close(3)                                = 0
lstat(".git/refs/heads/master", {st_mode=S_IFREG|0777, st_size=41, ...}) = 0
open(".git/refs/heads/master", O_RDONLY) = 3
read(3, "4f0a0aac2b9667c11d68c83c928e6754"..., 256) = 41
read(3, "", 215)                        = 0
close(3)                                = 0
ioctl(2, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, 0x7fffdaeba7e0) = -1 ENOTTY (Inappropriate ioctl for device)
ioctl(2, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, 0x7fffdaeba890) = -1 ENOTTY (Inappropriate ioctl for device)
rt_sigaction(SIGINT, {0x42e930, [INT], SA_RESTORER|SA_RESTART, 0x7f8b01616cb0}, {SIG_DFL, [], SA_RESTORER, 0x7fcc6a226cb0}, 8) = 0
rt_sigaction(SIGHUP, {0x42e930, [HUP], SA_RESTORER|SA_RESTART, 0x7f8b01616cb0}, {SIG_DFL, [], SA_RESTORER|SA_RESTART, 0x7fcc6a226cb0}, 8) = 0
rt_sigaction(SIGTERM, {0x42e930, [TERM], SA_RESTORER|SA_RESTART, 0x7f8b01616cb0}, {SIG_DFL, [], SA_RESTORER, 0x7fcc6a226cb0}, 8) = 0
rt_sigaction(SIGQUIT, {0x42e930, [QUIT], SA_RESTORER|SA_RESTART, 0x7f8b01616cb0}, {SIG_DFL, [], SA_RESTORER, 0x7fcc6a226cb0}, 8) = 0
rt_sigaction(SIGPIPE, {0x42e930, [PIPE], SA_RESTORER|SA_RESTART, 0x7f8b01616cb0}, {SIG_DFL, [PIPE], SA_RESTORER|SA_RESTART, 0x7f8b01616cb0}, 8) = 0
openat(AT_FDCWD, ".git/refs/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 3
getdents(3, /* 5 entries */, 32768)     = 119
stat(".git/refs/heads", {st_mode=S_IFDIR|0777, st_size=512, ...}) = 0
stat(".git/refs/remotes", {st_mode=S_IFDIR|0777, st_size=512, ...}) = 0
stat(".git/refs/tags", {st_mode=S_IFDIR|0777, st_size=512, ...}) = 0
getdents(3, /* 0 entries */, 32768)     = 0
close(3)                                = 0
openat(AT_FDCWD, ".git/refs/bisect", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, ".git/refs/heads/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 3
getdents(3, /* 3 entries */, 32768)     = 69
stat(".git/refs/heads/master", {st_mode=S_IFREG|0777, st_size=41, ...}) = 0
lstat(".git/refs/heads/master", {st_mode=S_IFREG|0777, st_size=41, ...}) = 0
open(".git/refs/heads/master", O_RDONLY) = 4
read(4, "4f0a0aac2b9667c11d68c83c928e6754"..., 256) = 41
read(4, "", 215)                        = 0
close(4)                                = 0
getdents(3, /* 0 entries */, 32768)     = 0
close(3)                                = 0
openat(AT_FDCWD, ".git/refs/remotes/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 3
getdents(3, /* 3 entries */, 32768)     = 69
stat(".git/refs/remotes/origin", {st_mode=S_IFDIR|0777, st_size=512, ...}) = 0
getdents(3, /* 0 entries */, 32768)     = 0
close(3)                                = 0
openat(AT_FDCWD, ".git/refs/remotes/origin/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 3
getdents(3, /* 4 entries */, 32768)     = 93
stat(".git/refs/remotes/origin/HEAD", {st_mode=S_IFREG|0777, st_size=32, ...}) = 0
lstat(".git/refs/remotes/origin/HEAD", {st_mode=S_IFREG|0777, st_size=32, ...}) = 0
open(".git/refs/remotes/origin/HEAD", O_RDONLY) = 4
read(4, "ref: refs/remotes/origin/master\n", 256) = 32
read(4, "", 224)                        = 0
close(4)                                = 0
lstat(".git/refs/remotes/origin/master", {st_mode=S_IFREG|0777, st_size=41, ...}) = 0
open(".git/refs/remotes/origin/master", O_RDONLY) = 4
read(4, "4f0a0aac2b9667c11d68c83c928e6754"..., 256) = 41
read(4, "", 215)                        = 0
close(4)                                = 0
stat(".git/refs/remotes/origin/master", {st_mode=S_IFREG|0777, st_size=41, ...}) = 0
lstat(".git/refs/remotes/origin/master", {st_mode=S_IFREG|0777, st_size=41, ...}) = 0
open(".git/refs/remotes/origin/master", O_RDONLY) = 4
read(4, "4f0a0aac2b9667c11d68c83c928e6754"..., 256) = 41
read(4, "", 215)                        = 0
close(4)                                = 0
getdents(3, /* 0 entries */, 32768)     = 0
close(3)                                = 0
openat(AT_FDCWD, ".git/refs/tags/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 3
getdents(3, /* 2 entries */, 32768)     = 43
getdents(3, /* 0 entries */, 32768)     = 0
close(3)                                = 0
openat(AT_FDCWD, ".git/refs/bisect/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open(".git/packed-refs", O_RDONLY)      = 3
fstat(3, {st_mode=S_IFREG|0777, st_size=107, ...}) = 0
fstat(3, {st_mode=S_IFREG|0777, st_size=107, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f8b022b0000
read(3, "# pack-refs with: peeled fully-p"..., 512) = 107
read(3, "", 512)                        = 0
close(3)                                = 0
munmap(0x7f8b022b0000, 4096)            = 0
openat(AT_FDCWD, ".git/objects/pack", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 3
getdents(3, /* 8 entries */, 32768)     = 460
access(".git/objects/pack/pack-2f6e4c750bcedd638a90fa17d7f0a86b9bb08974.keep", F_OK) = -1 ENOENT (No such file or directory)
stat(".git/objects/pack/pack-2f6e4c750bcedd638a90fa17d7f0a86b9bb08974.pack", {st_mode=S_IFREG|0777, st_size=142279, ...}) = 0
access(".git/objects/pack/pack-9fed461e8ccaf75349a804d08619dea28492a507.keep", F_OK) = -1 ENOENT (No such file or directory)
stat(".git/objects/pack/pack-9fed461e8ccaf75349a804d08619dea28492a507.pack", {st_mode=S_IFREG|0777, st_size=25740, ...}) = 0
access(".git/objects/pack/pack-b286025eeecaeae6fa72bada904a9c49c6161581.keep", F_OK) = -1 ENOENT (No such file or directory)
stat(".git/objects/pack/pack-b286025eeecaeae6fa72bada904a9c49c6161581.pack", {st_mode=S_IFREG|0777, st_size=25550, ...}) = 0
getdents(3, /* 0 entries */, 32768)     = 0
close(3)                                = 0
getcwd("/mnt/c/Users/lxl/MYGITs/linuxfiles", 129) = 35
stat("/mnt/c/Users/lxl/MYGITs/linuxfiles", {st_mode=S_IFDIR|0777, st_size=512, ...}) = 0
stat("/home/lxl/MYGITs/linuxfiles", {st_mode=S_IFDIR|0777, st_size=512, ...}) = 0
open(".git/objects/info/alternates", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open(".git/objects/pack/pack-9fed461e8ccaf75349a804d08619dea28492a507.idx", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0777, st_size=7568, ...}) = 0
mmap(NULL, 7568, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f8b022ee000
close(3)                                = 0
open(".git/objects/pack/pack-b286025eeecaeae6fa72bada904a9c49c6161581.idx", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0777, st_size=5608, ...}) = 0
mmap(NULL, 5608, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f8b022ec000
close(3)                                = 0
open(".git/objects/pack/pack-2f6e4c750bcedd638a90fa17d7f0a86b9bb08974.idx", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0777, st_size=32936, ...}) = 0
mmap(NULL, 32936, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f8b022e3000
close(3)                                = 0
access(".git/objects/4f/0a0aac2b9667c11d68c83c928e6754b3b20ca1", F_OK) = 0
access(".git/objects/4f/0a0aac2b9667c11d68c83c928e6754b3b20ca1", F_OK) = 0
access(".git/objects/4f/0a0aac2b9667c11d68c83c928e6754b3b20ca1", F_OK) = 0
open(".git/FETCH_HEAD", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 3
close(3)                                = 0
rt_sigaction(SIGCHLD, {SIG_DFL, [CHLD], SA_RESTORER|SA_RESTART, 0x7f8b01616cb0}, {SIG_DFL, [CHLD], SA_RESTORER|SA_RESTART, 0x7f1d39466cb0}, 8) = 0
pipe([3, 4])                            = 0
pipe([5, 6])                            = 0
pipe([7, 8])                            = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f8b022c0a10) = 288
close(8)                                = 0
read(7, "", 1)                          = 0
close(7)                                = 0
close(3)                                = 0
close(6)                                = 0
read(5, setsockopt IPV6_TCLASS 8: Operation not permitted:
"00d4", 4)                      = 4
read(5, "4f0a0aac2b9667c11d68c83c928e6754"..., 208) = 208
read(5, "003f", 4)                      = 4
read(5, "4f0a0aac2b9667c11d68c83c928e6754"..., 59) = 59
read(5, "0000", 4)                      = 4
lstat(".git/refs/remotes/origin/master", {st_mode=S_IFREG|0777, st_size=41, ...}) = 0
open(".git/refs/remotes/origin/master", O_RDONLY) = 3
read(3, "4f0a0aac2b9667c11d68c83c928e6754"..., 256) = 41
read(3, "", 215)                        = 0
close(3)                                = 0
stat(".git/packed-refs", {st_mode=S_IFREG|0777, st_size=107, ...}) = 0
access(".git/objects/4f/0a0aac2b9667c11d68c83c928e6754b3b20ca1", F_OK) = 0
access(".git/objects/4f/0a0aac2b9667c11d68c83c928e6754b3b20ca1", F_OK) = 0
access(".git/objects/4f/0a0aac2b9667c11d68c83c928e6754b3b20ca1", F_OK) = 0
pipe([3, 6])                            = 0
pipe([7, 8])                            = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f8b022c0a10) = 289
close(8)                                = 0
read(7, "", 1)                          = 0
close(7)                                = 0
close(3)                                = 0
rt_sigaction(SIGPIPE, {SIG_IGN, [PIPE], SA_RESTORER|SA_RESTART, 0x7f8b01616cb0}, {0x42e930, [PIPE], SA_RESTORER|SA_RESTART, 0x7f8b01616cb0}, 8) = 0
write(6, "4f0a0aac2b9667c11d68c83c928e6754"..., 41) = 41
close(6)                                = 0
rt_sigaction(SIGPIPE, {0x42e930, [PIPE], SA_RESTORER|SA_RESTART, 0x7f8b01616cb0}, {SIG_IGN, [PIPE], SA_RESTORER|SA_RESTART, 0x7f8b01616cb0}, 8) = 0
wait4(289, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 289
access(".git/objects/4f/0a0aac2b9667c11d68c83c928e6754b3b20ca1", F_OK) = 0
openat(AT_FDCWD, ".git/objects/4f/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 3
getdents(3, /* 5 entries */, 32768)     = 217
getdents(3, /* 0 entries */, 32768)     = 0
close(3)                                = 0
access(".git/objects/00/00000000000000000000000000000000000000", F_OK) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, ".git/objects/pack", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 3
getdents(3, /* 8 entries */, 32768)     = 460
getdents(3, /* 0 entries */, 32768)     = 0
close(3)                                = 0
openat(AT_FDCWD, ".git/objects/00/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 3
getdents(3, /* 4 entries */, 32768)     = 159
getdents(3, /* 0 entries */, 32768)     = 0
close(3)                                = 0
open(".git/FETCH_HEAD", O_WRONLY|O_CREAT|O_APPEND, 0666) = 3
fstat(3, {st_mode=S_IFREG|0777, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f8b022b0000
fstat(3, {st_mode=S_IFREG|0777, st_size=0, ...}) = 0
lseek(3, 0, SEEK_SET)                   = 0
pipe([6, 7])                            = 0
pipe([8, 9])                            = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f8b022c0a10) = 290
close(9)                                = 0
read(8, "", 1)                          = 0
close(8)                                = 0
close(6)                                = 0
rt_sigaction(SIGPIPE, {SIG_IGN, [PIPE], SA_RESTORER|SA_RESTART, 0x7f8b01616cb0}, {0x42e930, [PIPE], SA_RESTORER|SA_RESTART, 0x7f8b01616cb0}, 8) = 0
write(7, "4f0a0aac2b9667c11d68c83c928e6754"..., 41) = 41
close(7)                                = 0
rt_sigaction(SIGPIPE, {0x42e930, [PIPE], SA_RESTORER|SA_RESTART, 0x7f8b01616cb0}, {SIG_IGN, [PIPE], SA_RESTORER|SA_RESTART, 0x7f8b01616cb0}, 8) = 0
wait4(290, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 290
stat(".git/packed-refs", {st_mode=S_IFREG|0777, st_size=107, ...}) = 0
access(".git/objects/4f/0a0aac2b9667c11d68c83c928e6754b3b20ca1", F_OK) = 0
open(".git/objects/4f/0a0aac2b9667c11d68c83c928e6754b3b20ca1", O_RDONLY|O_CLOEXEC) = 6
fstat(6, {st_mode=S_IFREG|0777, st_size=153, ...}) = 0
mmap(NULL, 153, PROT_READ, MAP_PRIVATE, 6, 0) = 0x7f8b022f2000
close(6)                                = 0
munmap(0x7f8b022f2000, 153)             = 0
open(".git/objects/4f/0a0aac2b9667c11d68c83c928e6754b3b20ca1", O_RDONLY|O_CLOEXEC) = 6
fstat(6, {st_mode=S_IFREG|0777, st_size=153, ...}) = 0
mmap(NULL, 153, PROT_READ, MAP_PRIVATE, 6, 0) = 0x7f8b022f2000
close(6)                                = 0
munmap(0x7f8b022f2000, 153)             = 0
brk(0x12d7000)                          = 0x12d7000
open(".git/info/grafts", O_RDONLY)      = -1 ENOENT (No such file or directory)
open(".git/shallow", O_RDONLY)          = -1 ENOENT (No such file or directory)
mmap(NULL, 524288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f8b02230000
open(".git/objects/4f/0a0aac2b9667c11d68c83c928e6754b3b20ca1", O_RDONLY|O_CLOEXEC) = 6
fstat(6, {st_mode=S_IFREG|0777, st_size=153, ...}) = 0
mmap(NULL, 153, PROT_READ, MAP_PRIVATE, 6, 0) = 0x7f8b022f2000
close(6)                                = 0
munmap(0x7f8b022f2000, 153)             = 0
write(3, "4f0a0aac2b9667c11d68c83c928e6754"..., 93) = 93
close(3)                                = 0
munmap(0x7f8b022b0000, 4096)            = 0
stat(".git/packed-refs", {st_mode=S_IFREG|0777, st_size=107, ...}) = 0
access(".git/objects/4f/0a0aac2b9667c11d68c83c928e6754b3b20ca1", F_OK) = 0
access(".git/objects/4f/0a0aac2b9667c11d68c83c928e6754b3b20ca1", F_OK) = 0
access(".git/objects/4f/0a0aac2b9667c11d68c83c928e6754b3b20ca1", F_OK) = 0
write(4, "0000", 4)                     = 4
close(5)                                = 0
close(4)                                = 0
wait4(288, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 288
rt_sigaction(SIGINT, {0x519ec0, [INT], SA_RESTORER|SA_RESTART, 0x7f8b01616cb0}, {0x42e930, [INT], SA_RESTORER|SA_RESTART, 0x7f8b01616cb0}, 8) = 0
rt_sigaction(SIGHUP, {0x519ec0, [HUP], SA_RESTORER|SA_RESTART, 0x7f8b01616cb0}, {0x42e930, [HUP], SA_RESTORER|SA_RESTART, 0x7f8b01616cb0}, 8) = 0
rt_sigaction(SIGTERM, {0x519ec0, [TERM], SA_RESTORER|SA_RESTART, 0x7f8b01616cb0}, {0x42e930, [TERM], SA_RESTORER|SA_RESTART, 0x7f8b01616cb0}, 8) = 0
rt_sigaction(SIGQUIT, {0x519ec0, [QUIT], SA_RESTORER|SA_RESTART, 0x7f8b01616cb0}, {0x42e930, [QUIT], SA_RESTORER|SA_RESTART, 0x7f8b01616cb0}, 8) = 0
rt_sigaction(SIGPIPE, {0x519ec0, [PIPE], SA_RESTORER|SA_RESTART, 0x7f8b01616cb0}, {0x42e930, [PIPE], SA_RESTORER|SA_RESTART, 0x7f8b01616cb0}, 8) = 0
rt_sigaction(SIGPIPE, {0x42e930, [PIPE], SA_RESTORER|SA_RESTART, 0x7f8b01616cb0}, {0x519ec0, [PIPE], SA_RESTORER|SA_RESTART, 0x7f8b01616cb0}, 8) = 0
rt_sigaction(SIGQUIT, {0x42e930, [QUIT], SA_RESTORER|SA_RESTART, 0x7f8b01616cb0}, {0x519ec0, [QUIT], SA_RESTORER|SA_RESTART, 0x7f8b01616cb0}, 8) = 0
rt_sigaction(SIGTERM, {0x42e930, [TERM], SA_RESTORER|SA_RESTART, 0x7f8b01616cb0}, {0x519ec0, [TERM], SA_RESTORER|SA_RESTART, 0x7f8b01616cb0}, 8) = 0
rt_sigaction(SIGHUP, {0x42e930, [HUP], SA_RESTORER|SA_RESTART, 0x7f8b01616cb0}, {0x519ec0, [HUP], SA_RESTORER|SA_RESTART, 0x7f8b01616cb0}, 8) = 0
rt_sigaction(SIGINT, {0x42e930, [INT], SA_RESTORER|SA_RESTART, 0x7f8b01616cb0}, {0x519ec0, [INT], SA_RESTORER|SA_RESTART, 0x7f8b01616cb0}, 8) = 0
munmap(0x7f8b022ee000, 7568)            = 0
munmap(0x7f8b022ec000, 5608)            = 0
munmap(0x7f8b022e3000, 32936)           = 0
pipe([3, 4])                            = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f8b022c0a10) = 291
close(4)                                = 0
read(3, "", 1)                          = 0
close(3)                                = 0
wait4(291, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 291
fstat(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 1), ...}) = 0
close(1)                                = 0
exit_group(0)                           = ?
+++ exited with 0 +++
  • Required packages and commands to install git

See our contributing instructions for assistance.

About this issue

  • Original URL
  • State: closed
  • Created 10 years ago
  • Reactions: 28
  • Comments: 45 (4 by maintainers)

Most upvoted comments

A workaround that we are using is to put the following line in ~/.ssh/config:

AddressFamily inet

Thanks 2ps! It worked…though I received a bad owner or permission error after creating the config file. I had to follow it up with chmod 600 ~/.ssh/config as per this post:

https://serverfault.com/questions/253313/ssh-returns-bad-owner-or-permissions-on-ssh-config

This error is harmless, so you can just ignore it. For those who are annoyed by it, you can make it go away by disabling IPv6 in your Wi-Fi properties.

Even if it’s not a requirement, probably best not to advocate people disable part of their functionality unnecessarily, on principle alone. That’s like encouraging people to disable 5GHz on their routers just because of an inconsequential error message, it just causes issues. IPv6 should be moving towards being the “primary”, not the thing you turn off because it’s not being supported correctly.

Sorry for being a bit tangential to the topic at hand, but felt the need to share my view.

This error is harmless, so you can just ignore it. For those who are annoyed by it, you can make it go away by disabling IPv6 in your Wi-Fi properties.

I don’t agree.

This error means IPv6 did not work and git had to use IPv4 instead… why should we ignore it when we want to use IPv6?

Disabling IPv6 is NOT a solution.

To add to this, I now get this error when I use ssh in an IPv6 environment, however the connection completes successfully.

same here connecting to bitbucket.org

If you do not need ipv6, a workaround is to put the following in ~/.ssh/config:

AddressFamily inet

You can do that per host or for all connections. This will have wsl ssh use ipv4 only. This enabled WSL PowerShell Enter-PSSession to work for me.

@ElTopo for the post and trace. WSL currently supports getsockopt for 'IPV6_TCLASS, but not setsockopt because of some limitations down level. I will work with our networking team to find the best way to support this. But, I am assuming you are not blocked by this and it’s just a warning. If not, do let us know.

Using AddressFamily inet works great if you’re connecting to an IPv4 host. If the host is IPv6 only, it won’t connect at all. Switching this value to inet6 leaves the error still returning and thus is not a workaround if you’re actually operating on IPv6 only.

@Qowy - Thanks for the update. The support for IPV6_TCLASS is in the backlog. Hopefully soon.

To answer your questions,

  1. I upgraded from Anniversary
  2. git is not from Microsoft or ubuntu, I got source code from git’s official repo and compiled the binaries. I did not see this issue before I upgraded to the Creators Update
  3. the gt repo is hosted at https://bitbucket.org so I assume git client in IPv6 env will use IPv6 to connect to bitbucket by default.

Uh, awesome.

[pid   220] socket(PF_INET6, SOCK_STREAM, IPPROTO_TCP) = 3
[pid   220] fcntl(3, F_SETFD, FD_CLOEXEC) = 0
[pid   220] gettimeofday({1491790215, 412381}, NULL) = 0
[pid   220] connect(3, {sa_family=AF_INET6, sin6_port=htons(22), inet_pton(AF_INET6, "2401:1d80:1010::152", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, 28) = 0
[pid   220] setsockopt(3, SOL_SOCKET, SO_KEEPALIVE, [1], 4) = 0
...
[pid   220] fcntl(3, F_GETFL)           = 0x2 (flags O_RDWR)
[pid   220] fcntl(3, F_SETFL, O_RDWR|O_NONBLOCK) = 0
...
[pid   220] getpeername(3, {sa_family=AF_INET6, sin6_port=htons(22), inet_pton(AF_INET6, "2401:1d80:1010::152", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, [28]) = 0
[pid   220] getpeername(3, {sa_family=AF_INET6, sin6_port=htons(22), inet_pton(AF_INET6, "2401:1d80:1010::152", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, [28]) = 0
...
[pid   220] getsockopt(3, SOL_TCP, TCP_NODELAY, "\0", [1]) = 0
[pid   220] setsockopt(3, SOL_TCP, TCP_NODELAY, [1], 4) = 0
[pid   220] getsockname(3, {sa_family=AF_INET6, sin6_port=htons(59779), inet_pton(AF_INET6, "2601:646:8702:6700:b030:8f9a:ca82:f668", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, [28]) = 0
[pid   220] setsockopt(3, SOL_IPV6, 0x43 /* IPV6_??? */, [8], 4) = -1 EPERM (Operation not permitted)

Also unrelated but mildly interesting in there:

[pid   220] ioctl(4, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, 0x7fffcd6620f0) = -1 ENOTTY (Inappropriate ioctl for device)
....etc on other fds

One other data point that might be useful. Did you upgrade from Anniversary (14393) or were you on Insiders before the breakage? Did git also get upgraded, or just the Windows OS (and WSL kernel along with it)? Either way, thanks for reporting. I dunno how many people are doing git on ipv6.

@ElTopo sorry if I offended, I wasn’t aware you required IPv6. Obviously if that’s a requirement, then you shouldn’t disable it. I mentioned it’s a harmless error because (1) others seem to think so also, and (2) this error hasn’t affected any of my Git operations in any way.

When there is IPv6 on both sides (client and server), I get the same warning with a simple ssh login command, just after the password (as well as for rsync which uses ssh). No warning when connecting via SSH to an IPv4-only DNS pointing to the same server. Tested on Windows 10 version 1703, 15063.413.

I’m having this warning when trying to use rsync

Same issue with up to date W10 and a SCP to a valid IPv6 endpoint.

IPV6_TCLASS is better on WSL2.

Faced the same issue.