From c678e810cd08a83ba296b2539ff9c0ff04f6e863 Mon Sep 17 00:00:00 2001 From: Alex Zenla Date: Tue, 17 Nov 2026 13:36:24 -0800 Subject: [PATCH] virtio-devices: allow sendto in the virtio-mem thread A vfio-user DMA unmap on virtio-mem unplug writes to the client socket with send(2), which the virtio-mem seccomp filter refused, so the VMM died with SIGSYS when a guest with a vfio-user device shrank its memory. Signed-off-by: Alex Zenla --- virtio-devices/src/seccomp_filters.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/virtio-devices/src/seccomp_filters.rs b/virtio-devices/src/seccomp_filters.rs index 37cc6befef..de0df20ec3 100644 --- a/virtio-devices/src/seccomp_filters.rs +++ b/virtio-devices/src/seccomp_filters.rs @@ -170,6 +170,8 @@ fn virtio_mem_thread_rules() -> Vec<(i64, Vec)> { (libc::SYS_ioctl, create_virtio_mem_ioctl_seccomp_rule()), (libc::SYS_recvfrom, vec![]), (libc::SYS_sendmsg, vec![]), + // vfio-user DMA unmap on unplug writes to the client socket, which is send(2). + (libc::SYS_sendto, vec![]), ] }