linux-stable/drivers/gpu/drm/tegra
Thierry Reding dc6057ecb3 drm/tegra: gem: dumb: pitch and size are outputs
When creating a dumb buffer object using the DRM_IOCTL_MODE_CREATE_DUMB
IOCTL, only the width, height, bpp and flags parameters are inputs. The
caller is not guaranteed to zero out or set handle, pitch and size, so
the driver must not treat these values as possible inputs.

Fixes a bug where running the Weston compositor on Tegra DRM would cause
an attempt to allocate a 3 GiB framebuffer to be allocated.

Fixes: de2ba664c3 ("gpu: host1x: drm: Add memory manager and fb")
Cc: stable@vger.kernel.org
Signed-off-by: Thierry Reding <treding@nvidia.com>
2014-11-13 16:18:31 +01:00
..
dc.c drm/tegra: dc: Universal plane support 2014-11-13 16:18:28 +01:00
dc.h drm/tegra: Implement more tiling modes 2014-08-04 10:07:34 +02:00
dpaux.c drm/tegra: Renaming DP training vswing pre emph defines 2014-09-03 11:05:41 +02:00
dpaux.h drm/tegra: dp: Support address-only I2C-over-AUX transactions 2014-04-08 16:12:36 +02:00
drm.c drm/tegra: Add IOMMU support 2014-11-13 16:14:48 +01:00
drm.h drm/tegra: dc: Registers are 32 bits wide 2014-11-13 16:17:03 +01:00
dsi.c drm/tegra: dsi: Set up PHY_TIMING & BTA_TIMING registers earlier 2014-11-13 16:12:44 +01:00
dsi.h drm/tegra: dsi: Implement host transfers 2014-11-13 16:12:36 +01:00
fb.c drm/tegra: Add IOMMU support 2014-11-13 16:14:48 +01:00
gem.c drm/tegra: gem: dumb: pitch and size are outputs 2014-11-13 16:18:31 +01:00
gem.h drm/tegra: Add IOMMU support 2014-11-13 16:14:48 +01:00
gr2d.c drm/tegra: add MODULE_DEVICE_TABLEs 2014-08-04 10:07:39 +02:00
gr2d.h drm/tegra: Use symbolic names for gr2d registers 2013-10-31 09:55:44 +01:00
gr3d.c ARM: SoC cleanups for 3.17 2014-08-08 11:00:26 -07:00
gr3d.h drm/tegra: Add 3D support 2013-10-31 09:55:45 +01:00
hdmi.c drm/tegra: add MODULE_DEVICE_TABLEs 2014-08-04 10:07:39 +02:00
hdmi.h drm/tegra: hdmi - Disable LVDS mode 2014-06-05 23:09:25 +02:00
Kconfig drm/tegra: Depend on COMMON_CLK 2014-11-13 16:10:27 +01:00
Makefile drm/tegra: Remove host1x drm_bus implementation 2014-06-05 23:14:46 +02:00
mipi-phy.c drm/tegra: Relicense under GPL v2 2014-04-04 09:12:51 +02:00
mipi-phy.h drm/tegra: Relicense under GPL v2 2014-04-04 09:12:51 +02:00
output.c drm/tegra: Enable the hotplug interrupt only when necessary 2014-11-13 16:18:31 +01:00
rgb.c drm/tegra: dc - Compute shift clock divider in output drivers 2014-06-05 23:09:33 +02:00
sor.c ARM: SoC cleanups for 3.17 2014-08-08 11:00:26 -07:00
sor.h drm/tegra: sor - Add CRC debugfs support 2014-06-05 23:09:17 +02:00