diff options
| author | Dan Carpenter <[email protected]> | 2011-11-04 18:20:43 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2011-11-27 02:34:15 +0000 |
| commit | e384a41141949843899affcf51f4e6e646c1fe9f (patch) | |
| tree | 402bbdb1c4d89e0fb354d168da2ac56332ecfd79 /fs/btrfs/async-thread.c | |
| parent | Staging: comedi: fix signal handling in read and write (diff) | |
| download | kernel-e384a41141949843899affcf51f4e6e646c1fe9f.tar.gz kernel-e384a41141949843899affcf51f4e6e646c1fe9f.zip | |
Staging: comedi: integer overflow in do_insnlist_ioctl()
There is an integer overflow here that could cause memory corruption
on 32 bit systems.
insnlist.n_insns could be a very high value size calculation for
kmalloc() could overflow resulting in a smaller "insns" than
expected. In the for (i = 0; i < insnlist.n_insns; i++) {... loop
we would read past the end of the buffer, possibly corrupting memory
as well.
Signed-off-by: Dan Carpenter <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'fs/btrfs/async-thread.c')
0 files changed, 0 insertions, 0 deletions
