Thread (16 messages) 16 messages, 6 authors, 2022-08-18

Re: upstream kernel crashes

flat view

From: Andres Freund <hidden>
Date: 2022-08-16 01:19:29
Also in: lkml, virtualization

Possibly related (same subject, not in this thread)

Hi,

On 2022-08-15 14:04:37 -0700, Andres Freund wrote:
Booting with the equivalent change, atop 5.19, in the legacy setup_vq()
reliably causes boot to hang:
I don't know much virtio, so take this with a rock of salt:

Legacy setup_vq() doesn't tell the host about the queue size. The modern one
does:
	vp_modern_set_queue_size(mdev, index, virtqueue_get_vring_size(vq));
but the legacy one doesn't.

I assume this means the host will assume the queue is of the size suggested by
vp_legacy_get_queue_size(). If the host continues to write into the space
after the "assumed end" of the queue, but the guest puts other stuff in that
space, well, I'd expect fun roughly like the stuff we've been seeing in this
and related threads.

Greetings,

Andres Freund
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help