Skip to content

ublk: use unchecked copy helpers for bio page data#693

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

ublk: use unchecked copy helpers for bio page data#693
blktests-ci[bot] wants to merge 1 commit intolinus-master_basefrom
series/1073962=>linus-master

Conversation

@blktests-ci
Copy link
Copy Markdown

@blktests-ci blktests-ci Bot commented Mar 28, 2026

Pull request for series with
subject: ublk: use unchecked copy helpers for bio page data
version: 1
url: https://patchwork.kernel.org/project/linux-block/list/?series=1073962

@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Mar 28, 2026

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

@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Mar 29, 2026

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

@blktests-ci blktests-ci Bot force-pushed the series/1073962=>linus-master branch from 633b090 to ad90533 Compare March 29, 2026 11:51
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from 0bd4175 to c781e1e Compare March 30, 2026 14:55
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Mar 30, 2026

Upstream branch: 7aaa804
series: https://patchwork.kernel.org/project/linux-block/list/?series=1073962
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/1073962=>linus-master branch from ad90533 to a07c60b Compare March 30, 2026 14:59
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from c781e1e to 255b4bf Compare March 31, 2026 12:54
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Mar 31, 2026

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

@blktests-ci blktests-ci Bot force-pushed the series/1073962=>linus-master branch from a07c60b to e7cec3f Compare March 31, 2026 12:59
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Apr 1, 2026

Upstream branch: d0c3bcd
series: https://patchwork.kernel.org/project/linux-block/list/?series=1075507
version: 2

@blktests-ci blktests-ci Bot added V2 and removed V1 V1-ci-fail labels Apr 1, 2026
@blktests-ci blktests-ci Bot force-pushed the series/1073962=>linus-master branch from e7cec3f to a5d6dc2 Compare April 1, 2026 01:34
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from 255b4bf to 3236861 Compare April 1, 2026 02:20
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Apr 1, 2026

Upstream branch: 9147566
series: https://patchwork.kernel.org/project/linux-block/list/?series=1075507
version: 2

@blktests-ci blktests-ci Bot force-pushed the series/1073962=>linus-master branch from a5d6dc2 to d7d94ae Compare April 1, 2026 02:25
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Apr 1, 2026

Upstream branch: 9147566
series: https://patchwork.kernel.org/project/linux-block/list/?series=1075507
version: 2

@blktests-ci blktests-ci Bot force-pushed the series/1073962=>linus-master branch from d7d94ae to 02e3a8e Compare April 1, 2026 15:24
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch 2 times, most recently from ecbdbb4 to 480b162 Compare April 2, 2026 07:52
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Apr 2, 2026

Upstream branch: 9147566
series: https://patchwork.kernel.org/project/linux-block/list/?series=1075507
version: 2

@blktests-ci blktests-ci Bot force-pushed the series/1073962=>linus-master branch from 02e3a8e to 0502ec8 Compare April 2, 2026 07:55
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch 2 times, most recently from a96fba7 to 0cd6ac2 Compare April 3, 2026 07:51
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Apr 10, 2026

Upstream branch: 9a9c8ce
series: https://patchwork.kernel.org/project/linux-block/list/?series=1075507
version: 2

@blktests-ci blktests-ci Bot force-pushed the series/1073962=>linus-master branch from 3e1fadb to 455b899 Compare April 10, 2026 01:01
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from 78a4682 to 8f17195 Compare April 13, 2026 06:19
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Apr 13, 2026

Upstream branch: 028ef9c
series: https://patchwork.kernel.org/project/linux-block/list/?series=1075507
version: 2

@blktests-ci blktests-ci Bot force-pushed the series/1073962=>linus-master branch from 455b899 to 116358c Compare April 13, 2026 06:30
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from 8f17195 to 6b4d829 Compare April 14, 2026 06:46
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Apr 14, 2026

Upstream branch: d60bc14
series: https://patchwork.kernel.org/project/linux-block/list/?series=1075507
version: 2

@blktests-ci blktests-ci Bot force-pushed the series/1073962=>linus-master branch from 116358c to b0d16e7 Compare April 14, 2026 06:57
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Apr 15, 2026

Upstream branch: d60bc14
series: https://patchwork.kernel.org/project/linux-block/list/?series=1081785
version: 3

@blktests-ci blktests-ci Bot added V3 and removed V2 V2-ci-pass labels Apr 15, 2026
@blktests-ci blktests-ci Bot force-pushed the series/1073962=>linus-master branch from b0d16e7 to 3be6034 Compare April 15, 2026 23:09
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from 6b4d829 to ceec5ed Compare April 21, 2026 06:51
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Apr 21, 2026

Upstream branch: b4e0758
series: https://patchwork.kernel.org/project/linux-block/list/?series=1081785
version: 3

@blktests-ci blktests-ci Bot force-pushed the series/1073962=>linus-master branch from 3be6034 to 41eff06 Compare April 21, 2026 07:01
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from ceec5ed to 3b54e52 Compare April 22, 2026 20:20
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Apr 22, 2026

Upstream branch: 6596a02
series: https://patchwork.kernel.org/project/linux-block/list/?series=1081785
version: 3

@blktests-ci blktests-ci Bot force-pushed the series/1073962=>linus-master branch from 41eff06 to 45298f0 Compare April 22, 2026 20:23
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from 3b54e52 to 6a0b974 Compare April 23, 2026 16:58
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Apr 23, 2026

Upstream branch: 507bd4b
series: https://patchwork.kernel.org/project/linux-block/list/?series=1081785
version: 3

@blktests-ci blktests-ci Bot force-pushed the series/1073962=>linus-master branch from 45298f0 to a2d3153 Compare April 23, 2026 17:08
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from 6a0b974 to 59ca59b Compare April 24, 2026 00:56
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Apr 24, 2026

Upstream branch: dd6c438
series: https://patchwork.kernel.org/project/linux-block/list/?series=1081785
version: 3

@blktests-ci blktests-ci Bot force-pushed the series/1073962=>linus-master branch from a2d3153 to 431b119 Compare April 24, 2026 01:05
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch 2 times, most recently from 94f0438 to 857ada9 Compare April 24, 2026 07:54
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Apr 24, 2026

Upstream branch: dd6c438
series: https://patchwork.kernel.org/project/linux-block/list/?series=1081785
version: 3

Bio pages may originate from slab caches that lack a usercopy region
(e.g. jbd2 frozen metadata buffers allocated via jbd2_alloc()).
When CONFIG_HARDENED_USERCOPY is enabled, copy_to_iter() calls
check_copy_size() which rejects these slab pages, triggering a
kernel BUG in usercopy_abort().

This is a false positive: the data is ordinary block I/O content —
the same data the loop driver writes to its backing file via
vfs_iter_write().  The bvec length is always trusted, so the size
check in check_copy_size() is not needed either.

Switch to _copy_to_iter()/_copy_from_iter() which skip the
check_copy_size() wrapper while the underlying copy_to_user()
remains unchanged.

Acked-by: Caleb Sander Mateos <[email protected]>
Fixes: 2299cee ("ublk: use copy_{to,from}_iter() for user copy")
Signed-off-by: Ming Lei <[email protected]>
@blktests-ci blktests-ci Bot force-pushed the series/1073962=>linus-master branch from 431b119 to 8105fbe Compare April 24, 2026 08:00
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