-
Notifications
You must be signed in to change notification settings - Fork 796
[DeviceSaniitizer] Force outline call for setting private shadow memory #14818
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
Conversation
By default, address sanitizer will inline call for setting private shadow memory with small size. However, if work group size is too large, the private shadow memory may allocate failed. We need to check if shadow base is null before trying to poison it.
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.
lgtm, but let's wait for another approval.
llvm/test/Instrumentation/AddressSanitizer/SPIRV/instrument_private_address_space.ll
Show resolved
Hide resolved
sycl/test-e2e/AddressSanitizer/out-of-bounds/USM/large_group_size.cpp
Outdated
Show resolved
Hide resolved
…ize.cpp Co-authored-by: Yang Zhao <allanzyne@outlook.com>
|
Hi @intel/llvm-gatekeepers, this PR is ready to be merged. And pre-ci failures are unrelated to this change. |
|
Hi @intel/llvm-gatekeepers, could you please help merge this PR? Thanks. |
|
@zhaomaosu This PR failed in post-commit, can you take a look if the failure is related to your changes: Specifically: |
|
Hi @sommerlukas, I believe this failure is unrelated to my change. My change only affect device sanitizer. And the failed test doesn't use device sanitizer. |
|
Reported the unrelated failure in #14863 |
…ry (intel#14818) By default, address sanitizer will inline call for setting private shadow memory with small size. However, if work group size is too large, the private shadow memory may allocate failed. We need to check if shadow base is null before trying to poison it. --------- Co-authored-by: Yang Zhao <allanzyne@outlook.com>
By default, address sanitizer will inline call for setting private shadow memory with small size. However, if work group size is too large, the private shadow memory may allocate failed. We need to check if shadow base is null before trying to poison it.