-
Notifications
You must be signed in to change notification settings - Fork 125
[DeviceSanitizer] Check out-of-bounds on sycl::local_accessor #1532
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
Changes from all commits
5eafafe
ca8e651
6addfea
f2c4a82
bef3850
f04b44c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,6 +62,23 @@ struct DeviceSanitizerReport { | |
bool IsRecover = false; | ||
}; | ||
|
||
struct LocalArgsInfo { | ||
uint64_t Size = 0; | ||
uint64_t SizeWithRedZone = 0; | ||
}; | ||
|
||
struct LaunchInfo { | ||
uintptr_t PrivateShadowOffset = | ||
0; // don't move this field, we use it in AddressSanitizerPass | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. to help me better understand the above comment, can we move other fields? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, you can reorder other fields except |
||
|
||
uintptr_t LocalShadowOffset = 0; | ||
uintptr_t LocalShadowOffsetEnd = 0; | ||
DeviceSanitizerReport SanitizerReport; | ||
|
||
uint32_t NumLocalArgs = 0; | ||
LocalArgsInfo *LocalArgs = nullptr; // ordered by ArgIndex | ||
}; | ||
|
||
constexpr unsigned ASAN_SHADOW_SCALE = 3; | ||
constexpr unsigned ASAN_SHADOW_GRANULARITY = 1ULL << ASAN_SHADOW_SCALE; | ||
|
||
|
Uh oh!
There was an error while loading. Please reload this page.
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.
Just a note:
KernelInfo
related codes are duplicated with sycl::buffer PR #1533 (under review).