[Bug 1857811] Re: qemu user static binary seems to lack support for network namespace.

2020-02-21 Thread Laurent Vivier
Yes, it's fixed in v4.2.0, and with the help of your test program I've bisect to the fix: commit 1645fb5a1e537f85eda744bfa6e9d3dda047ba28 Author: Shu-Chun Weng Date: Thu Oct 17 17:19:20 2019 -0700 Fix unsigned integer underflow in fd-trans.c In any of these `*_for_each_*`

[Bug 1857811] Re: qemu user static binary seems to lack support for network namespace.

2020-02-20 Thread crocket
I just called _configure_loopback_interface in a qemu-aarch64 chroot, and the error is not reproducible with qemu-4.2.0. Has it been fixed? -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1857811

[Bug 1857811] Re: qemu user static binary seems to lack support for network namespace.

2020-02-20 Thread Laurent Vivier
I need the strace result of _configure_loopback_interface in a qemu- aarch64 chroot. But as strace cannot be started in the chroot you must strace the "chroot" command and its children. So something like "sudo strace -yyy chroot " -- You received this bug notification because you are a member

[Bug 1857811] Re: qemu user static binary seems to lack support for network namespace.

2020-02-20 Thread crocket
Can you rephrase your question? I don't know what to do with your question. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1857811 Title: qemu user static binary seems to lack support for network

[Bug 1857811] Re: qemu user static binary seems to lack support for network namespace.

2020-02-20 Thread Laurent Vivier
Could you run something like "sudo strace -yyy unshare --net chroot ..." with your failing binary to see what returns the host kernel? -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1857811 Title:

[Bug 1857811] Re: qemu user static binary seems to lack support for network namespace.

2020-02-12 Thread crocket
qemu-4.0.0 > uname -a Linux gentoo 4.19.97-gentoo #3 SMP PREEMPT Mon Feb 10 15:09:44 KST 2020 x86_64 AMD FX(tm)-8300 Eight-Core Processor AuthenticAMD GNU/Linux -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU.

[Bug 1857811] Re: qemu user static binary seems to lack support for network namespace.

2020-02-12 Thread Laurent Vivier
I've copied the file portage-2.3.84/build/lib.linux- x86_64-3.7/portage/util/netlink.py from portage to my local directory and run the following script: cat > rtnetlink.py < bind(3, {sa_family=AF_NETLINK, nl_pid=0, nl_groups=}, 12) = 0 sendto(3, {{len=38, type=0x12 /* NLMSG_??? */,

[Bug 1857811] Re: qemu user static binary seems to lack support for network namespace.

2020-02-12 Thread crocket
def _configure_loopback_interface(): """ Configure the loopback interface. """ # We add some additional addresses to work around odd behavior in glibc's # getaddrinfo() implementation when the AI_ADDRCONFIG flag is set. # # For example:

[Bug 1857811] Re: qemu user static binary seems to lack support for network namespace.

2020-02-12 Thread crocket
You can obtain portage source code from https://gentoo.osuosl.org/distfiles/portage-2.3.84.tar.bz2 -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1857811 Title: qemu user static binary seems to

[Bug 1857811] Re: qemu user static binary seems to lack support for network namespace.

2020-02-12 Thread Laurent Vivier
The interesting part in emerge.log is: 23473 socket(16,,IPPROTO_IP) = 5 23473 bind(5,274886353720,12,0,1,274889671712) = 0 23473 sendto(5,275542232672,38,0,274886353960,12) = -1 errno=95 (Operation not supported) 23473 close(5) = 0 Unable to configure loopback interface: Operation not

[Bug 1857811] Re: qemu user static binary seems to lack support for network namespace.

2020-01-02 Thread crocket
I executed "emerge" with QEMU_LOG=unimp and QEMU_STRACE="". ** Attachment added: "emerge.log" https://bugs.launchpad.net/qemu/+bug/1857811/+attachment/5317106/+files/emerge.log -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU.

[Bug 1857811] Re: qemu user static binary seems to lack support for network namespace.

2020-01-02 Thread Laurent Vivier
Could you run qemu unimplemented error trace, by using "export QEMU_LOG=unimp"? You can also set the QEMU_STRACE="" to see which syscall fails. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1857811