Skip to content

fix(vmm): bound the event name a guest reports over the host API - #1363

Merged
kvinwang merged 5 commits into
nextfrom
fix/vmm-event-name-bound
Sep 24, 2026
Merged

kvinwang merged 5 commits into
nextfrom
fix/vmm-event-name-bound

Conversation

@kvinwang

@kvinwang kvinwang commented Sep 24, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

A guest picks its event names. The body is capped at 4 KiB, but the name is limited only by the 10 MiB prpc body limit. It is logged verbatim and kept in the 20-entry event ring, so a guest can make the host hold about 200 MiB per VM.

Fix

Reject names longer than max_event_name_len (vmm.toml, default 128 bytes) before logging. The four names the VMM acts on are all under 20 bytes.

Verification

cargo test -p dstack-vmm, fmt and clippy clean.

Touches vm_event_report like #1271. The two merge cleanly.

Split out of #1282.

@kvinwang
kvinwang merged commit 2a9db6a into next Sep 24, 2026
11 checks passed
@kvinwang
kvinwang deleted the fix/vmm-event-name-bound branch September 24, 2026 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant