Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 210662
b: refs/heads/master
c: 75e1c70
h: refs/heads/master
v: v3
  • Loading branch information
Jeff Moyer authored and Linus Torvalds committed Sep 15, 2010
1 parent 371c3ee commit c285868
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bfa88ea7ee9e6b4fd673e45a8cc0a8e0b7ef4761
refs/heads/master: 75e1c70fc31490ef8a373ea2a4bea2524099b478
3 changes: 3 additions & 0 deletions trunk/fs/aio.c
Original file line number Diff line number Diff line change
Expand Up @@ -1659,6 +1659,9 @@ long do_io_submit(aio_context_t ctx_id, long nr,
if (unlikely(nr < 0))
return -EINVAL;

if (unlikely(nr > LONG_MAX/sizeof(*iocbpp)))
nr = LONG_MAX/sizeof(*iocbpp);

if (unlikely(!access_ok(VERIFY_READ, iocbpp, (nr*sizeof(*iocbpp)))))
return -EFAULT;

Expand Down

0 comments on commit c285868

Please sign in to comment.