Skip to content

[Runtime] Validate scribble data when metadata allocation scribbling is enabled. #34828

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

Merged
merged 1 commit into from
Dec 2, 2020

Conversation

mikeash
Copy link
Contributor

@mikeash mikeash commented Nov 19, 2020

Instead of scribbling each allocation as it's parceled out, scribble the entire chunk up-front. Then, when handing out an allocation, check to make sure it still has the right scribbled data in it.

@mikeash
Copy link
Contributor Author

mikeash commented Nov 19, 2020

This catches the overflow fixed by #34822.

@mikeash
Copy link
Contributor Author

mikeash commented Nov 19, 2020

@swift-ci please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 4f8a64b56fc24b805fa91be1c45008f7df3d8a00

@mikeash mikeash force-pushed the metadata-allocator-scribble-check branch from 4f8a64b to e2d1095 Compare November 19, 2020 18:48
@mikeash
Copy link
Contributor Author

mikeash commented Nov 19, 2020

@swift-ci please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - e2d109528f1667cd3ba296c5288cb9a336462dea

@mikeash
Copy link
Contributor Author

mikeash commented Nov 20, 2020

@swift-ci please test os x platform

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - e2d109528f1667cd3ba296c5288cb9a336462dea

@mikeash mikeash force-pushed the metadata-allocator-scribble-check branch from e2d1095 to d94cbe9 Compare November 30, 2020 15:28
@mikeash
Copy link
Contributor Author

mikeash commented Nov 30, 2020

@swift-ci please test os x platform

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - d94cbe909846a16a03ab9052a2100eaf738f2f21

@mikeash
Copy link
Contributor Author

mikeash commented Nov 30, 2020

@swift-ci please test os x platform

@mikeash mikeash force-pushed the metadata-allocator-scribble-check branch from d94cbe9 to e0cd86c Compare December 1, 2020 21:01
…is enabled.

Instead of scribbling each allocation as it's parceled out, scribble the entire chunk up-front. Then, when handing out an allocation, check to make sure it still has the right scribbled data in it.
@mikeash mikeash force-pushed the metadata-allocator-scribble-check branch from e0cd86c to b47607c Compare December 1, 2020 21:05
@mikeash
Copy link
Contributor Author

mikeash commented Dec 1, 2020

@swift-ci please test

@swift-ci
Copy link
Contributor

swift-ci commented Dec 1, 2020

Build failed
Swift Test OS X Platform
Git Sha - b47607c

@mikeash
Copy link
Contributor Author

mikeash commented Dec 1, 2020

@swift-ci please test os x platform

@swift-ci
Copy link
Contributor

swift-ci commented Dec 1, 2020

Build failed
Swift Test OS X Platform
Git Sha - b47607c

@mikeash
Copy link
Contributor Author

mikeash commented Dec 2, 2020

@swift-ci please test windows platform

@mikeash mikeash merged commit 2b88336 into swiftlang:main Dec 2, 2020
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.

3 participants