Skip to content
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 UBSAN reported access within misaligned addresses #12

Merged
merged 2 commits into from
Aug 7, 2024

Conversation

sergio-nsk
Copy link

@sergio-nsk sergio-nsk commented Aug 6, 2024

This is can be an issue on ARM, it can cause a hang of CrashReportTest.MiniDump test on macOS, that I quite often observe.

I will propose these changes to Chromium.

@sergio-nsk sergio-nsk added the bug Something isn't working label Aug 6, 2024
@nmoinvaz nmoinvaz changed the base branch from snxd_v2024.07.30 to dev August 6, 2024 22:37
@nmoinvaz nmoinvaz changed the base branch from dev to snxd_v2024.07.30 August 6, 2024 22:37
@nmoinvaz
Copy link

nmoinvaz commented Aug 6, 2024

Should be target toward dev branch.

@sergio-nsk sergio-nsk force-pushed the sergey/ubsan/1 branch 3 times, most recently from 5e33775 to 299e092 Compare August 7, 2024 18:33
@sergio-nsk sergio-nsk marked this pull request as ready for review August 7, 2024 18:54
@sergio-nsk
Copy link
Author

Should be target toward dev branch.

Merge to dev and re-point client to the current dev HEAD after the PR merge?

@sergio-nsk sergio-nsk changed the base branch from snxd_v2024.07.30 to dev August 7, 2024 19:04
@sergio-nsk sergio-nsk changed the base branch from dev to snxd_v2024.07.30 August 7, 2024 19:04
@sergio-nsk sergio-nsk changed the title Fix UBSAN reported access to kernel_dirent withing misaligned address Fix UBSAN reported access within misaligned addresses Aug 7, 2024
@sergio-nsk sergio-nsk added the backport Porting to an older branch label Aug 7, 2024
This is can be an issue on ARM, it can cause a hang of
CrashReportTest.MiniDump test on macOS.
It passed null pointer as a second argument to std::memcpy() when
crash_exception_info was empty. This exhibited the undefined behavior.
@sergio-nsk sergio-nsk merged commit 6b9e5d4 into snxd_v2024.07.30 Aug 7, 2024
0 of 3 checks passed
@sergio-nsk sergio-nsk deleted the sergey/ubsan/1 branch August 7, 2024 19:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport Porting to an older branch bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants