]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] Missing acess_ok() check in aio
authorAndrea Arcangeli <andrea@suse.de>
Wed, 4 Sep 2002 10:59:15 +0000 (03:59 -0700)
committerLinus Torvalds <torvalds@home.transmeta.com>
Wed, 4 Sep 2002 10:59:15 +0000 (03:59 -0700)
BTW, while merging aio from 2.5 to 2.4 and fixing and porting the libaio
(in particular thanks to one of Ben's testcases that was checkin for
this specific case) I found this bug in 2.5

fs/aio.c

index 11e2e91bcf85e316f92343ed4de6a6a3e2b2d0b0..1eedbcda29e0e40c40de36f826b4d3d30d494369 100644 (file)
--- a/fs/aio.c
+++ b/fs/aio.c
@@ -992,7 +992,7 @@ asmlinkage long sys_io_submit(aio_context_t ctx_id, long nr,
                        break;
                }
 
-               if (unlikely(__copy_from_user(&tmp, user_iocb, sizeof(tmp)))) {
+               if (unlikely(copy_from_user(&tmp, user_iocb, sizeof(tmp)))) {
                        ret = -EFAULT;
                        break;
                }