Skip to content

block: bio-integrity: fix memory leak in bio_integrity_map_user()#826

Open
blktests-ci[bot] wants to merge 1 commit into
for-next_basefrom
series/1093959=>for-next
Open

block: bio-integrity: fix memory leak in bio_integrity_map_user()#826
blktests-ci[bot] wants to merge 1 commit into
for-next_basefrom
series/1093959=>for-next

Conversation

@blktests-ci
Copy link
Copy Markdown

@blktests-ci blktests-ci Bot commented May 13, 2026

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

@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented May 13, 2026

Upstream branch: 31fea07
series: https://patchwork.kernel.org/project/linux-block/list/?series=1093959
version: 1

Pull request is NOT updated. Failed to apply https://patchwork.kernel.org/project/linux-block/list/?series=1093959
error message:

Cmd('git') failed due to: exit code(128)
  cmdline: git am --3way
  stdout: 'Applying: block: bio-integrity: fix memory leak in bio_integrity_map_user()
Patch failed at 0001 block: bio-integrity: fix memory leak in bio_integrity_map_user()
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".'
  stderr: 'error: sha1 information is lacking or useless (block/bio-integrity.c).
error: could not build fake ancestor
hint: Use 'git am --show-current-patch=diff' to see the failed patch'

conflict:


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>
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented May 15, 2026

Upstream branch: 09ec486
series: https://patchwork.kernel.org/project/linux-block/list/?series=1093959
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/1093959=>for-next branch from d160185 to 81df0ae Compare May 15, 2026 08:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant