-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
dumpwriterelf: increase buffer to fit a RHEL8 arm64 page. #91865
Conversation
Tagging subscribers to this area: @tommcdon Issue DetailsFixes #91864. @mikem8361 ptal.
|
We need to change the MacOS dump writer's m_tempBuffer in dumpwritermacho.h to 64K also for arm64/M1. I think M1 has a 64K PAGE_SIZE. |
Another way to fix this is to change the size of the SpecialDiagInfo block to 4K always instead of PAGE_SIZE here. Adding a SPECIAL_DIAGINFO_SIZE define to specialdiaginfo.h is probably a good idea if you make this change. |
This fixes out-of-bounds access when trying to write the diagnostics info on platforms where the PAGE_SIZE is larger than the DumpWriter's 16KiB m_tempBuffer.
34104cd
to
7d3b041
Compare
I've adopted this suggestion, and validated it works on RHEL 8 arm64. |
/backport to release/8.0 |
Started backporting to release/8.0: https://github.com/dotnet/runtime/actions/runs/6163089000 |
Fixes #91864.
@mikem8361 ptal.