ioctl SIOCGIFCONF causes qemu-aarch64-static to crash with "received signal outside vCPU context"
Bug #1796754 reported by
Kan Li
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
QEMU |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
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_
qemu:handle_
The version of qemu-aarch64-static is
qemu-aarch64 version 3.0.0 (qemu-3.0.0-1.fc29)
Copyright (c) 2003-2017 Fabrice Bellard and the QEMU Project developers
But it did also happen in previous versions so it is not a regression but a bug existed ever since.
tags: | added: arm |
Changed in qemu: | |
status: | New → In Progress |
Changed in qemu: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
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/ NetworkInterfac e.c#l1042
Setting to NULL is valid according to http:// man7.org/ linux/man- pages/man7/ netdevice. 7.html
But qemu doesn’t handle the case: https:/ /github. com/qemu/ qemu/blob/ aa8e26de9617756 febcbf794dda965 df307fdaaa/ linux-user/ syscall. c#L4105
I guess qemu developers didn’t handle the case because the Linux kernel changed and they were based on behavior of old version: https:/ /linux. die.net/ man/7/netdevice
Please add the support for it otherwise a wide range of network related Java programs won’t run.