[Qemu-devel] [Bug 1805913] [NEW] readdir() returns NULL (errno=EOVERFLOW) for 32-bit user-static qemu on 64-bit host

2018-11-29 Thread Ke Liu
Public bug reported: This can be simply reproduced by compiling and running the attached C code (readdir-bug.c) under 32-bit user-static qemu, such as qemu-arm- static: # Setup docker for user-static binfmt docker run --rm --privileged multiarch/qemu-user-static:register --reset # Compile the

[Qemu-devel] [Bug 1796754] Re: ioctl SIOCGIFCONF causes qemu-aarch64-static to crash with "received signal outside vCPU context"

2018-10-09 Thread Ke Liu
I sent out a patch: http://lists.nongnu.org/archive/html/qemu-devel/2018-10/msg01657.html (Please ignore the other 2 identical patches. It was my first time sending out patches and I didn't know it was moderated so I sent it out multiple times). -- You received this bug notification because

[Qemu-devel] [Bug 1796754] Re: ioctl SIOCGIFCONF causes qemu-aarch64-static to crash with "received signal outside vCPU context"

2018-10-08 Thread Ke Liu
I was hit by this issue when I tried to run some Java program. And it turns out jdk sets the buf to NULL: http://hg.openjdk.java.net/jdk7/jdk7/jdk/file/887e525597f8/src/solaris/native/java/net/NetworkInterface.c#l1042 Setting to NULL is valid according to http://man7.org/linux/man-

[Qemu-devel] [Bug 1796754] [NEW] ioctl SIOCGIFCONF causes qemu-aarch64-static to crash with "received signal outside vCPU context"

2018-10-08 Thread Ke Liu
Public bug reported: To reproduce it, compile the attached crash.c under aarch64 to a.out and execute on x86_64 qemu-aarch64-static ./a.out It will print the following and crash: socket=3 qemu:handle_cpu_signal received signal outside vCPU context @ pc=0x60038cd6 qemu:handle_cpu_signal

[Qemu-devel] [Bug 1779955] Re: qemu linux-user requires read permissions on memory passed to syscalls that should only need write access

2018-07-12 Thread Ke Liu
Thanks Peter for your information. I was hit by the bug when trying to compile bazel (a build system open- sourced by Google: https://bazel.build) and the code is at https://github.com/bazelbuild/bazel/blob/master/third_party/ijar/mapped_file_unix.cc#L116 Of course I can send PR to fix that in

[Qemu-devel] [Bug 1779955] Re: qemu-arm-static read() doesn't accept mmap address as destination

2018-07-03 Thread Ke Liu
** Tags added: arm ** Tags added: linux-user ** Tags added: qemu -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1779955 Title: qemu-arm-static read() doesn't accept mmap address as destination

[Qemu-devel] [Bug 1779955] [NEW] qemu-arm-static read() doesn't accept mmap address as destination

2018-07-03 Thread Ke Liu
Public bug reported: When read() function takes an mmap'ed address as output buffer, it returns EFAULT. The expected behavior is it should just work. The following code works for qemu-system-arm, but not for qemu-arm- static. QEMU version affected: latest release 2.12.0. Steps to reproduce