Skip to content
This repository was archived by the owner on May 20, 2026. It is now read-only.
This repository was archived by the owner on May 20, 2026. It is now read-only.

usb: abort due to Packet_stream_base::Transport_dataspace_too_small #5869

Description

@nfeske

While using the USB API directly, the USB host driver aborted with the following message:

[usb] Error: Uncaught exception of type 'Genode::Packet_stream_base::Transport_dataspace_too_small'
[usb] Warning: abort called - thread: ep

The problem was triggered by creating a Usb::Interface instance with the size parameter set to 64 (I mistook the argument as URB size instead of the dataspace size for the communication buffer). May we sanitize the argument to a sensible lower bound that always satisfies the packet-stream preconditions?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions