aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/async-thread.c
diff options
context:
space:
mode:
authorXi Wang <[email protected]>2011-11-28 11:25:43 +0000
committerDave Airlie <[email protected]>2011-12-02 10:49:41 +0000
commitbab9efc206ba89766c53a9042eb771e87e68c42b (patch)
tree7413fe6517587d631fca96960ec806d5e8b7e61a /fs/btrfs/async-thread.c
parentdrm/radeon/kms: fix 2D tiling CS support on EG/CM (diff)
downloadkernel-bab9efc206ba89766c53a9042eb771e87e68c42b.tar.gz
kernel-bab9efc206ba89766c53a9042eb771e87e68c42b.zip
vmwgfx: integer overflow in vmw_kms_update_layout_ioctl()
There are two issues in vmw_kms_update_layout_ioctl(). First, the for loop forgets to index rects and only checks the first element. Second, there is a potential integer overflow if userspace passes in a large arg->num_outputs. The call to kzalloc() would allocate a small buffer, leading to out-of-bounds read. Reported-by: Haogang Chen <[email protected]> Signed-off-by: Xi Wang <[email protected]> Signed-off-by: Thomas Hellstrom <[email protected]> Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'fs/btrfs/async-thread.c')
0 files changed, 0 insertions, 0 deletions