Commit e1d7727
io_uring: don't assume uaddr alignment in io_vec_fill_bvec
There is no guaranteed alignment for user pointers. Don't use mask
trickery and adjust the offset by bv_offset.
Cc: [email protected]
Reported-by: David Hildenbrand <[email protected]>
Fixes: 9ef4cbb ("io_uring: add infra for importing vectored reg buffers")
Signed-off-by: Pavel Begunkov <[email protected]>
Link: https://lore.kernel.org/io-uring/19530391f5c361a026ac9b401ff8e123bde55d98.1750771718.git.asml.silence@gmail.com/
Signed-off-by: Jens Axboe <[email protected]>1 parent 3a3c6d6 commit e1d7727
1 file changed
+7
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1339 | 1339 | | |
1340 | 1340 | | |
1341 | 1341 | | |
1342 | | - | |
1343 | 1342 | | |
1344 | 1343 | | |
1345 | 1344 | | |
| |||
1361 | 1360 | | |
1362 | 1361 | | |
1363 | 1362 | | |
1364 | | - | |
1365 | | - | |
| 1363 | + | |
| 1364 | + | |
| 1365 | + | |
| 1366 | + | |
| 1367 | + | |
| 1368 | + | |
| 1369 | + | |
1366 | 1370 | | |
1367 | 1371 | | |
1368 | 1372 | | |
| |||
0 commit comments