block: bio-integrity: fix memory leak in bio_integrity_map_user()#826
Open
blktests-ci[bot] wants to merge 1 commit into
Open
block: bio-integrity: fix memory leak in bio_integrity_map_user()#826blktests-ci[bot] wants to merge 1 commit into
blktests-ci[bot] wants to merge 1 commit into
Conversation
Author
|
Upstream branch: 31fea07 Pull request is NOT updated. Failed to apply https://patchwork.kernel.org/project/linux-block/list/?series=1093959 conflict: |
2a80064 to
2cbf0fd
Compare
Since 'iov_iter_extract_pages()' may allocate new array of pages even when it returns non-zero error value, matching cleanup with 'vfree()' should be performed on all return paths afterwards. So adjust 'bio_integrity_map_user()' to ensure that both 'pages' and 'bvec' arrays are always freed on return. Fixes: 8582792 ("block: bio-integrity: Fix null-ptr-deref in bio_integrity_map_user()") Fixes: 492c5d4 ("block: bio-integrity: directly map user buffers") Signed-off-by: Dmitry Antipov <dmantipov@yandex.ru>
Author
|
Upstream branch: 09ec486 |
d160185 to
81df0ae
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull request for series with
subject: block: bio-integrity: fix memory leak in bio_integrity_map_user()
version: 1
url: https://patchwork.kernel.org/project/linux-block/list/?series=1093959