Skip to content

aio: fix the vectored aio routines

Jeff Moyer lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2compat: factor out compat_rw_copy_check_uvector from compat_do_readv_writevfs/compat.c include/linux/compat.h+81 -530 replies
2/2aio: fix the compat vectored operationsfs/aio.c fs/compat.c include/linux/aio.h+45 -250 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] aio: fix the vectored aio routines

Hi,

It was reported[1] that 32 bit readv and writev AIO operations were not functioning properly. It turns out that the code to convert the 32bit io vectors to 64 bits was never written. The results of that can be pretty bad, but in my testing, it mostly ended up in generating EFAULT as we walked off the list of I/O vectors provided.

This patch set fixes the problem in my environment. Comments, as always, are greatly appreciated.

Cheers,
Jeff

[1] http://lkml.org/lkml/2010/3/8/309

[PATCH 1/2] compat: factor out compat_rw_copy_check_uvector from compat_do_readv_writev [PATCH 2/2] aio: fix the compat vectored operations