Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upqemu in sys-net-dm crashes in libc.so with some PCI Ethernet devices, pv mode and hvm with another Ethernet device works fine #3233
Comments
andrewdavidwong
added
bug
C: core
labels
Oct 28, 2017
andrewdavidwong
added this to the Release 4.0 milestone
Oct 28, 2017
qubesuser
changed the title from
qemu in sys-net-dm crashes in libc.so, pv mode works fine
to
qemu in sys-net-dm crashes in libc.so with 2 PCI Ethernet devices, pv mode and hvm with 1 Ethernet device works fine
Oct 28, 2017
qubesuser
changed the title from
qemu in sys-net-dm crashes in libc.so with 2 PCI Ethernet devices, pv mode and hvm with 1 Ethernet device works fine
to
qemu in sys-net-dm crashes in libc.so with some PCI Ethernet devices, pv mode and hvm with another Ethernet device works fine
Oct 28, 2017
qubesuser
referenced this issue
Oct 28, 2017
Open
Manual PCI rescan required after using qvm-pci to attach PCI devices to HVMs #3245
HW42
referenced this issue
in QubesOS/qubes-vmm-xen-stubdom-linux
Oct 31, 2017
Merged
qemu: Add fix for out-of-bounds write in pass-through device init #7
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
HW42
commented
Oct 31, 2017
|
(Very likely) fixed by QubesOS/qubes-vmm-xen-stubdom-linux#7. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
|
@qubesuser can you confirm it's fixed with current stubdom? |
marmarek
closed this
Dec 10, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
qubesuser commentedOct 27, 2017
•
edited
Edited 3 times
-
qubesuser
edited Oct 28, 2017 (most recent)
-
qubesuser
edited Oct 28, 2017
-
andrewdavidwong
edited Oct 28, 2017
Qubes OS version:
R4.0-rc2
Steps to reproduce the behavior:
Expected behavior:
It starts.
Actual behavior:
It fails to start.
If the PCI devices are removed or virt_mode is set to pv, then it works properly.
Also, it seems it only happens for one of two of my Ethernet devices.
Hotplugging them also triggers the issue after rescanning the PCI bus with echo 1 > /sys/bus/pci/rescan
Connecting to sys-net-dm with xl console -t pv gives the following output (I just included the final lines), that seems to indicate qemu crashing in libc (haven't investigated which code is it, by guess would be a null pointer passed to memcpy/memset):