Skip to content

Arm backend: Validate VGF resource references before use - #26006

Open
per wants to merge 1 commit into
pytorch:mainfrom
per:vgf-validation-fixes
Open

per wants to merge 1 commit into
pytorch:mainfrom
per:vgf-validation-fixes

Conversation

@per

@per per commented Dec 3, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

VGF sections are decoded independently. A graph constant or segment binding can refer to an MRT entry beyond the resource table, so the descriptor check may read out of bounds before reporting an error.

Reject invalid constant and binding references immediately after decoding, before Vulkan setup. Add host-side and loader regression tests for malformed VGF inputs.

This commit was authored with Codex AI assistance.

Test plan

Added related test and tested through existing CI tests.

cc @digantdesai @freddan80 @zingo @oscarandersson8218 @mansnils @Sebastian-Larsson @robell @rascani

VGF sections are decoded independently. A graph constant or segment
binding can refer to an MRT entry beyond the resource table, so the
descriptor check may read out of bounds before reporting an error.

Reject invalid constant and binding references immediately after
decoding, before Vulkan setup. Add host-side and loader regression
tests for malformed VGF inputs.

This commit was authored with Codex AI assistance.

Change-Id: I5380104e43651ee30209ad15e565277eb8933b6e
Signed-off-by: Per Åstrand <per.astrand@arm.com>
@per per added partner: arm For backend delegation, kernels, demo, etc. from the 3rd-party partner, Arm release notes: none Do not include this in the release notes ciflow/trunk-arm labels Dec 3, 2026
@pytorch-bot

pytorch-bot Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/26006

Note: Links to docs will display an error until the docs builds have been completed.

⏳ No Failures, 3 Pending

As of commit 692388c with merge base 11ce711 (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Dec 3, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/trunk-arm CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. partner: arm For backend delegation, kernels, demo, etc. from the 3rd-party partner, Arm release notes: none Do not include this in the release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant