-
Notifications
You must be signed in to change notification settings - Fork 21.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix access to unitialized memory in VSX vector functions #89833
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/89833
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 215ba85: This comment was automatically generated by Dr. CI and updates every 15 minutes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a test would be nice
@pytorchbot merge |
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
Merge failedReason: 2 additional jobs have failed, first few of them are: trunk ,trunk / cuda11.6-py3.10-gcc7-sm86 / test (default, 4, 4, linux.g5.4xlarge.nvidia.gpu) Details for Dev Infra teamRaised by workflow job |
I'd normally agree but you cannot test for undefined behavior although UBSAN or valgrind may catch this if run on PPC. It may be possible to add tests for Also not sure why the test failed:
That's surely unrelated to this PR. |
@pytorchbot rebase |
I think when we fixed it in non VSX, we relied on UBSAN to tell us about it. But I guess we don't have UBSAN setup on this platform, so meh |
@pytorchbot successfully started a rebase job. Check the current status here |
This results in e.g. failures in TestNNDeviceTypeCPU.test_groupnorm_nhwc_cpu_float32 Fixes pytorch#32502
Successfully rebased |
6f314bc
to
215ba85
Compare
@pytorchbot merge |
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
This results in e.g. failures in TestNNDeviceTypeCPU.test_groupnorm_nhwc_cpu_float32 So simply initialize the stack array with zeroes as expected and done in other implementations Fixes pytorch#32502 Pull Request resolved: pytorch#89833 Approved by: https://github.com/ezyang
…d values Similar to pytorch#89833 those function may access uninitialized memory leading to undefined behavior/results. Initialize with zeros as done before.
…d values (#122399) Similar to #89833 those function may access uninitialized memory leading to undefined behavior/results. Initialize with zeros as done before. Pull Request resolved: #122399 Approved by: https://github.com/ezyang
…d values (#122399) Similar to #89833 those function may access uninitialized memory leading to undefined behavior/results. Initialize with zeros as done before. Pull Request resolved: #122399 Approved by: https://github.com/ezyang
This results in e.g. failures in TestNNDeviceTypeCPU.test_groupnorm_nhwc_cpu_float32
So simply initialize the stack array with zeroes as expected and done in other implementations
Fixes #32502
cc @VitalyFedyunin @jgong5 @mingfeima @XiaobingSuper @sanchitintel @ashokei @jingxu10