cloud-hypervisor/vmm/src
Rob Bradford 419870ae45 vmm: Add epoll_ctl() syscall to vCPU seccomp filter
Fix seccomp violation when trying to add the out FD to the epoll loop
when the serial buffer needs to be flushed.

0x00007ffff7dc093e in epoll_ctl () at ../sysdeps/unix/syscall-template.S:120
0x0000555555db9b6d in epoll::ctl (epfd=56, op=epoll::ControlOptions::EPOLL_CTL_MOD, fd=55, event=...)
    at /home/rob/.cargo/registry/src/github.com-1ecc6299db9ec823/epoll-4.3.1/src/lib.rs:155
0x00005555556f5127 in vmm::serial_buffer::SerialBuffer::add_out_poll (self=0x7fffe800b5d0) at vmm/src/serial_buffer.rs:101
0x00005555556f583d in vmm::serial_buffer::{impl#1}::write (self=0x7fffe800b5d0, buf=...) at vmm/src/serial_buffer.rs:139
0x0000555555a30b10 in std::io::Write::write_all<vmm::serial_buffer::SerialBuffer> (self=0x7fffe800b5d0, buf=...)
    at /rustc/59eed8a2aac0230a8b53e89d4e99d55912ba6b35/library/std/src/io/mod.rs:1527
0x0000555555ab82fb in devices::legacy::serial::Serial::handle_write (self=0x7fffe800b520, offset=0, v=13) at devices/src/legacy/serial.rs:217
0x0000555555ab897f in devices::legacy::serial::{impl#2}::write (self=0x7fffe800b520, _base=1016, offset=0, data=...) at devices/src/legacy/serial.rs:295
0x0000555555f30e95 in vm_device:🚌:Bus::write (self=0x7fffe8006ce0, addr=1016, data=...) at vm-device/src/bus.rs:235
0x00005555559406d4 in vmm::vm::{impl#4}::pio_write (self=0x7fffe8009640, port=1016, data=...) at vmm/src/vm.rs:459

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
2021-11-16 07:27:46 -08:00
..
api vmm: Add CPU affinity support 2021-11-12 09:40:37 +00:00
acpi.rs vmm: acpi: Use Aml::append_aml_bytes() to generate DSDT 2021-11-08 16:46:30 +00:00
clone3.rs vmm: notify virtio-console of pty resizes 2021-09-14 15:43:25 +01:00
config.rs vmm: Fix CpusConfig validation error message 2021-11-15 17:27:23 +01:00
cpu.rs vmm: Add CPU affinity support 2021-11-12 09:40:37 +00:00
device_manager.rs vmm: Cache whether io_uring is supported in DeviceManager 2021-11-12 18:09:55 +00:00
device_tree.rs vmm: Remove segment_id from DeviceNode 2021-11-02 16:55:42 +00:00
interrupt.rs clippy: Fix redundant allocations 2021-07-29 13:28:57 +02:00
lib.rs clippy: Make sure to initialize data 2021-11-10 10:23:43 +01:00
memory_manager.rs vmm: Port MemoryManager to Aml::append_aml_bytes() 2021-11-08 16:46:30 +00:00
migration.rs vmm: Simplify snapshot/restore path handling 2021-03-12 13:03:01 +01:00
pci_segment.rs vmm: Port PciSegment to Aml::append_aml_bytes() 2021-11-08 16:46:30 +00:00
seccomp_filters.rs vmm: Add epoll_ctl() syscall to vCPU seccomp filter 2021-11-16 07:27:46 -08:00
serial_buffer.rs vmm: Refactor serial buffer to allow flush on PTY when writable 2021-09-27 14:18:21 +01:00
serial_manager.rs vmm: Refactor serial buffer to allow flush on PTY when writable 2021-09-27 14:18:21 +01:00
sigwinch_listener.rs vmm: Fix panic in SIGWINCH listener thread when no seccomp filter set 2021-11-16 14:28:02 +00:00
vm.rs vmm: Refactor SGX setup to inside MemoryManager::new() 2021-11-02 16:55:42 +00:00