Skip to content

VIRTIO_IOC_EXPORT_FD_REQ behavior when exporting the same FD multiple times #624

@valpackett

Description

@valpackett

exports.insert((self.cfg.export_fsid, handle), fd);

I just noticed that the VIRTIO_IOC_EXPORT_FD_REQ handler always writes new FDs to the export table without checking whether an entry already existed. So the previous entry is dropped there and replaced with a new one if the same handle is exported twice. This is probably fine?? but it probably would be better to reuse the fd?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions