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

librados: do not write to user buffer after timeout #2427

Merged
merged 3 commits into from Sep 9, 2014
Merged

Conversation

liewegas
Copy link
Member

@liewegas liewegas commented Sep 8, 2014

No description provided.

Signed-off-by: Sage Weil <sage@redhat.com>
Verify we don't receive data after a timeout.

Based on reproducer for #9362 written by
Matthias Kiefer <matthias.kiefer@1und1.de>.

Signed-off-by: Sage Weil <sage@redhat.com>
If we cancel a read, revoke the rx buffers to avoid a use-after-free and/or
other undefined badness by using user buffers that may no longer be
present.

Fixes: #9362
Backport: firefly, dumpling
Reported-by: Matthias Kiefer <matthias.kiefer@1und1.de>
Signed-off-by: Sage Weil <sage@redhat.com>
gregsfortytwo added a commit that referenced this pull request Sep 9, 2014
librados: do not write to user buffer after timeout

Reviewed-by: Greg Farnum <greg@inktank.com>
@gregsfortytwo gregsfortytwo merged commit 0d66922 into master Sep 9, 2014
@gregsfortytwo gregsfortytwo deleted the wip-9362 branch September 9, 2014 20:11
@ghost ghost added the core label Feb 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants