summaryrefslogtreecommitdiff
path: root/include/asm-generic/mmu.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-10-16 11:22:44 +0100
committerBen Hutchings <ben@decadent.org.uk>2013-11-28 14:02:05 +0000
commitb60ff9bf0fa3a0a1e5b81055383ddbef42002f18 (patch)
tree80ab662686ff7f88660ee29f5c7439493a4df5a0 /include/asm-generic/mmu.h
parent640c4ad6d759b60a64049ff46c9acff5954f18d6 (diff)
drm: Prevent overwriting from userspace underallocating core ioctl structs
commit b062672e305ce071f21eb9e18b102c2a430e0999 upstream. Apply the protections from commit 1b2f1489633888d4a06028315dc19d65768a1c05 Author: Dave Airlie <airlied@redhat.com> Date: Sat Aug 14 20:20:34 2010 +1000 drm: block userspace under allocating buffer and having drivers overwrite it (v2) to the core ioctl structs as well, for we found one instance where there is a 32-/64-bit size mismatch and were guilty of writing beyond the end of the user's buffer. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: Dave Airlie <airlied@redhat.com> Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Cc: dri-devel@lists.freedesktop.org Signed-off-by: Dave Airlie <airlied@redhat.com> Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'include/asm-generic/mmu.h')
0 files changed, 0 insertions, 0 deletions