Skip to content

block/fops: fix refcount underflow in __blkdev_direct_IO()#924

Open
blktests-ci[bot] wants to merge 1 commit into
linus-master_basefrom
series/1104964=>linus-master
Open

block/fops: fix refcount underflow in __blkdev_direct_IO()#924
blktests-ci[bot] wants to merge 1 commit into
linus-master_basefrom
series/1104964=>linus-master

Conversation

@blktests-ci

@blktests-ci blktests-ci Bot commented Jun 3, 2026

Copy link
Copy Markdown

Pull request for series with
subject: block/fops: fix refcount underflow in __blkdev_direct_IO()
version: 1
url: https://patchwork.kernel.org/project/linux-block/list/?series=1104964

@blktests-ci

blktests-ci Bot commented Jun 3, 2026

Copy link
Copy Markdown
Author

Upstream branch: e43ffb6
series: https://patchwork.kernel.org/project/linux-block/list/?series=1104964
version: 1

@blktests-ci

blktests-ci Bot commented Jun 3, 2026

Copy link
Copy Markdown
Author

Upstream branch: ba3e43a
series: https://patchwork.kernel.org/project/linux-block/list/?series=1104964
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/1104964=>linus-master branch from 2769fd0 to 1910171 Compare June 3, 2026 14:15
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from fc36596 to 7bed9c3 Compare June 5, 2026 09:48
@blktests-ci

blktests-ci Bot commented Jun 5, 2026

Copy link
Copy Markdown
Author

Upstream branch: ddd664b
series: https://patchwork.kernel.org/project/linux-block/list/?series=1104964
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/1104964=>linus-master branch from 1910171 to 0625c6c Compare June 5, 2026 10:02
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from 7bed9c3 to a7bb5c5 Compare June 7, 2026 14:54
@blktests-ci

blktests-ci Bot commented Jun 7, 2026

Copy link
Copy Markdown
Author

Upstream branch: 979c294
series: https://patchwork.kernel.org/project/linux-block/list/?series=1104964
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/1104964=>linus-master branch from 0625c6c to 548f304 Compare June 7, 2026 15:09
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from a7bb5c5 to 5e41a3b Compare June 10, 2026 13:31
@blktests-ci

blktests-ci Bot commented Jun 10, 2026

Copy link
Copy Markdown
Author

Upstream branch: acb7500
series: https://patchwork.kernel.org/project/linux-block/list/?series=1104964
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/1104964=>linus-master branch from 548f304 to 1bc053b Compare June 10, 2026 13:47
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from 5e41a3b to c3a084b Compare June 10, 2026 20:26
@blktests-ci

blktests-ci Bot commented Jun 11, 2026

Copy link
Copy Markdown
Author

Upstream branch: 9716c08
series: https://patchwork.kernel.org/project/linux-block/list/?series=1104964
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/1104964=>linus-master branch from 1bc053b to 7fb9e4e Compare June 11, 2026 09:32
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from c3a084b to 5f78e5d Compare June 12, 2026 22:27
@blktests-ci

blktests-ci Bot commented Jun 12, 2026

Copy link
Copy Markdown
Author

Upstream branch: 2a2974b
series: https://patchwork.kernel.org/project/linux-block/list/?series=1104964
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/1104964=>linus-master branch from 7fb9e4e to 0810607 Compare June 12, 2026 22:57
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from 5f78e5d to e48f9db Compare June 13, 2026 01:19
@blktests-ci

blktests-ci Bot commented Jun 13, 2026

Copy link
Copy Markdown
Author

Upstream branch: 062871f
series: https://patchwork.kernel.org/project/linux-block/list/?series=1104964
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/1104964=>linus-master branch from 0810607 to e808c9b Compare June 13, 2026 01:54
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch 2 times, most recently from 199644a to e6d9eb8 Compare June 17, 2026 12:02
@blktests-ci

blktests-ci Bot commented Jun 17, 2026

Copy link
Copy Markdown
Author

Upstream branch: 66affa3
series: https://patchwork.kernel.org/project/linux-block/list/?series=1104964
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/1104964=>linus-master branch from e808c9b to aa3de51 Compare June 17, 2026 13:51
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from e6d9eb8 to 7d8604f Compare June 24, 2026 01:11
@blktests-ci

blktests-ci Bot commented Jun 24, 2026

Copy link
Copy Markdown
Author

Upstream branch: bade58e
series: https://patchwork.kernel.org/project/linux-block/list/?series=1104964
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/1104964=>linus-master branch from aa3de51 to 9e22a04 Compare June 24, 2026 01:46
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from 7d8604f to 4cc45a3 Compare June 26, 2026 08:14
@blktests-ci

blktests-ci Bot commented Jun 26, 2026

Copy link
Copy Markdown
Author

Upstream branch: 4edcdef
series: https://patchwork.kernel.org/project/linux-block/list/?series=1104964
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/1104964=>linus-master branch from 9e22a04 to 193cf32 Compare June 26, 2026 09:05
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from 4cc45a3 to 90ffd56 Compare June 29, 2026 17:14
__blkdev_direct_IO() calls bio_get() and bio_put() around
I/O operations, but if the I/O fails, the error path may call
bio_put() twice, causing a refcount underflow.

Fix this by moving the bio_put() call from the error path into
the cleanup section that is only executed once, regardless of
whether the I/O succeeded or failed.

Fixes: 3d8b5a2 ("block: add support to pass user meta buffer")
Cc: stable@vger.kernel.org
Signed-off-by: Wentao Liang <vulab@iscas.ac.cn>
@blktests-ci

blktests-ci Bot commented Jun 29, 2026

Copy link
Copy Markdown
Author

Upstream branch: dc59e4f
series: https://patchwork.kernel.org/project/linux-block/list/?series=1104964
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/1104964=>linus-master branch from 193cf32 to 615d2f9 Compare June 29, 2026 18:06
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