Skip to content

[SYCL][Driver] Match sanitizer metadata globals by prefix in .tgtsym filter - #22927

Open
zhaomaosu wants to merge 1 commit into
intel:syclfrom
zhaomaosu:fix-san-global-match
Open

[SYCL][Driver] Match sanitizer metadata globals by prefix in .tgtsym filter#22927
zhaomaosu wants to merge 1 commit into
intel:syclfrom
zhaomaosu:fix-san-global-match

Conversation

@zhaomaosu

Copy link
Copy Markdown
Contributor

Commit 0941896 ("[DeviceSanitizer] Make sanitizer metadata globals per-module unique") appended a per-module unique id to those names (_AsanKernelMetadata), so none of the six comparisons matched anymore and all of the metadata globals leaked into .tgtsym. Extract the check into isSpecialBitcodeSymbol() and match the sanitizer globals by prefix.

…filter

Commit 0941896 ("[DeviceSanitizer] Make sanitizer metadata globals
per-module unique") appended a per-module unique id to those names
(__AsanKernelMetadata_<id>), so none of the six comparisons matched
anymore and all of the metadata globals leaked into .tgtsym.
Extract the check into isSpecialBitcodeSymbol() and match the sanitizer
globals by prefix.
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.

1 participant