Fix OOB write to S_data in batched linalg_svd (#18625)#18625
Fix OOB write to S_data in batched linalg_svd (#18625)#18625meta-codesync[bot] merged 1 commit intopytorch:mainfrom
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/18625
Note: Links to docs will display an error until the docs builds have been completed. ❌ 2 New Failures, 2 Unrelated FailuresAs of commit 560aba9 with merge base fcccda3 ( NEW FAILURES - The following jobs have failed:
BROKEN TRUNK - The following jobs failed but were present on the merge base:👉 Rebase onto the `viable/strict` branch to avoid these failures
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This PR needs a
|
Summary: S has 3 elements per batch (diagonal of 3x3), but was indexed with the same offset as U and Vh (9 elements per batch), causing out-of-bounds writes and corrupted singular values for batch_size > 1. Reviewed By: DrJessop Differential Revision: D99002350
f783968 to
560aba9
Compare
Differential Revision: D99002350 Pull Request resolved: pytorch#18625
Summary:
S has 3 elements per batch (diagonal of 3x3), but was indexed with the same offset as U and Vh (9 elements per batch), causing out-of-bounds writes and corrupted singular values for batch_size > 1.
Reviewed By: DrJessop
Differential Revision: D99002350