aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/async-thread.c
diff options
context:
space:
mode:
authorXi Wang <[email protected]>2011-11-25 21:46:51 +0000
committerGreg Kroah-Hartman <[email protected]>2011-11-27 19:38:45 +0000
commitdfd8ee92a9192d78aa38cf8699df3630a7c88c85 (patch)
tree6d567e20e8bc4d185e402636d3a5b2ae84355114 /fs/btrfs/async-thread.c
parentRevert "Staging: comedi: integer overflow in do_insnlist_ioctl()" (diff)
downloadkernel-dfd8ee92a9192d78aa38cf8699df3630a7c88c85.tar.gz
kernel-dfd8ee92a9192d78aa38cf8699df3630a7c88c85.zip
Staging: comedi: fix integer overflow in do_insnlist_ioctl()
There is a potential integer overflow in do_insnlist_ioctl() if userspace passes in a large insnlist.n_insns. The call to kmalloc() would allocate a small buffer, leading to a memory corruption. The bug was reported by Dan Carpenter <[email protected]> and Haogang Chen <[email protected]>. The patch was suggested by Ian Abbott <[email protected]> and Lars-Peter Clausen <[email protected]>. Reported-by: Dan Carpenter <[email protected]> Reported-by: Haogang Chen <[email protected]>. Cc: Ian Abbott <[email protected]> Cc: Lars-Peter Clausen <[email protected]> Signed-off-by: Xi Wang <[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