aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/cpu.c
diff options
context:
space:
mode:
authorPavel Begunkov <[email protected]>2025-06-24 13:40:35 +0000
committerJens Axboe <[email protected]>2025-06-25 02:51:08 +0000
commite1d7727b73a1f78035316ac35ee184d477059f0b (patch)
tree780b6b9d70758a8e88d6969cfca095712034aed8 /rust/helpers/cpu.c
parentio_uring/rsrc: don't rely on user vaddr alignment (diff)
downloadkernel-e1d7727b73a1f78035316ac35ee184d477059f0b.tar.gz
kernel-e1d7727b73a1f78035316ac35ee184d477059f0b.zip
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: 9ef4cbbcb4ac3 ("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]>
Diffstat (limited to 'rust/helpers/cpu.c')
0 files changed, 0 insertions, 0 deletions