Commit edd05bb
Ming Lei
io_uring: don't assume uaddr alignment in io_vec_fill_bvec
JIRA: https://issues.redhat.com/browse/RHEL-106845
commit e1d7727
Author: Pavel Begunkov <asml.silence@gmail.com>
Date: Tue Jun 24 14:40:35 2025 +0100
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: stable@vger.kernel.org
Reported-by: David Hildenbrand <david@redhat.com>
Fixes: 9ef4cbb ("io_uring: add infra for importing vectored reg buffers")
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/io-uring/19530391f5c361a026ac9b401ff8e123bde55d98.1750771718.git.asml.silence@gmail.com/
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Ming Lei <ming.lei@redhat.com>1 parent 86b8485 commit edd05bb
1 file changed
+7
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1331 | 1331 | | |
1332 | 1332 | | |
1333 | 1333 | | |
1334 | | - | |
1335 | 1334 | | |
1336 | 1335 | | |
1337 | 1336 | | |
| |||
1353 | 1352 | | |
1354 | 1353 | | |
1355 | 1354 | | |
1356 | | - | |
1357 | | - | |
| 1355 | + | |
| 1356 | + | |
| 1357 | + | |
| 1358 | + | |
| 1359 | + | |
| 1360 | + | |
| 1361 | + | |
1358 | 1362 | | |
1359 | 1363 | | |
1360 | 1364 | | |
| |||
0 commit comments