Skip to content

[SYCL] Remove idle assert from releaseCG function #2766

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

Merged
merged 1 commit into from
Nov 12, 2020

Conversation

s-kanaev
Copy link
Contributor

@s-kanaev s-kanaev commented Nov 12, 2020

The removed assert contains access to invalid memory, which is read-after-free. The free'd memory is native kernel CG. We don't control execution of this CG, hence we shouldn't assume on memory allocation status here.

@s-kanaev s-kanaev requested a review from a team as a code owner November 12, 2020 07:34
@bader bader changed the title [SYCL] Assert was removed from releaseCG function [SYCL] Remove idle assert from releaseCG function Nov 12, 2020
@mlychkov
Copy link
Contributor

It would be nice to aligh commit message with new title of this PR because it describes the reason of deletion of assert.

@s-kanaev
Copy link
Contributor Author

It would be nice to aligh commit message with new title of this PR because it describes the reason of deletion of assert.

Added.

@againull againull merged commit 719a25b into intel:sycl Nov 12, 2020
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.

5 participants