summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2014-11-03 12:08:24 +0100
committerThierry Reding <treding@nvidia.com>2014-11-13 13:27:26 +0100
commit7e295a36b3af5d588e585e2300febbb191463939 (patch)
tree15ecabacf9ebe9a2c0ac99e867e8f49e2e137025 /usr
parentbdb2b933f2622578b8f737ad21504eb83620024a (diff)
downloadop-kernel-dev-7e295a36b3af5d588e585e2300febbb191463939.zip
op-kernel-dev-7e295a36b3af5d588e585e2300febbb191463939.tar.gz
drm/rcar: gem: dumb: pitch is an output
When creating a dumb buffer object using the DRM_IOCTL_MODE_CREATE_DUMB IOCTL, only the width, height, bpp and flags fields are inputs. The caller is not guaranteed to zero out or set handle, pitch and size. Drivers must not treat these values as possible inputs, otherwise they may use uninitialized memory during the computation of the framebuffer size. The R-Car DU driver treats the pitch passed in from userspace as minimum and will only overwrite it when the driver-computed pitch is larger, allowing userspace to, intentionally or not, overallocate framebuffers. Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'usr')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud