ublk: use unchecked copy helpers for bio page data#693
ublk: use unchecked copy helpers for bio page data#693blktests-ci[bot] wants to merge 1 commit intolinus-master_basefrom
Conversation
|
Upstream branch: be762d8 |
4439509 to
0bd4175
Compare
|
Upstream branch: cbfffcc |
633b090 to
ad90533
Compare
0bd4175 to
c781e1e
Compare
|
Upstream branch: 7aaa804 |
ad90533 to
a07c60b
Compare
c781e1e to
255b4bf
Compare
|
Upstream branch: d0c3bcd |
a07c60b to
e7cec3f
Compare
|
Upstream branch: d0c3bcd |
e7cec3f to
a5d6dc2
Compare
255b4bf to
3236861
Compare
|
Upstream branch: 9147566 |
a5d6dc2 to
d7d94ae
Compare
|
Upstream branch: 9147566 |
d7d94ae to
02e3a8e
Compare
ecbdbb4 to
480b162
Compare
|
Upstream branch: 9147566 |
02e3a8e to
0502ec8
Compare
a96fba7 to
0cd6ac2
Compare
|
Upstream branch: 9a9c8ce |
3e1fadb to
455b899
Compare
78a4682 to
8f17195
Compare
|
Upstream branch: 028ef9c |
455b899 to
116358c
Compare
8f17195 to
6b4d829
Compare
|
Upstream branch: d60bc14 |
116358c to
b0d16e7
Compare
|
Upstream branch: d60bc14 |
b0d16e7 to
3be6034
Compare
6b4d829 to
ceec5ed
Compare
|
Upstream branch: b4e0758 |
3be6034 to
41eff06
Compare
ceec5ed to
3b54e52
Compare
|
Upstream branch: 6596a02 |
41eff06 to
45298f0
Compare
3b54e52 to
6a0b974
Compare
|
Upstream branch: 507bd4b |
45298f0 to
a2d3153
Compare
6a0b974 to
59ca59b
Compare
|
Upstream branch: dd6c438 |
a2d3153 to
431b119
Compare
94f0438 to
857ada9
Compare
|
Upstream branch: dd6c438 |
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]>
431b119 to
8105fbe
Compare
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