gfx: pvr: check the size of SGX_READ_HWPERF IOCTL parameters
authorImre Deak <imre.deak@intel.com>
Fri, 27 Jan 2012 16:27:32 +0000 (18:27 +0200)
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Tue, 3 Jul 2012 09:29:42 +0000 (12:29 +0300)
commit65c9dbd24404846a8740643da07a367dde3dc1ae
tree9b29ccd53c1886059e24bf033cc9709cb35c4972
parent17720d6ec581ccb1d181ee8075192c7cc5f47086
gfx: pvr: check the size of SGX_READ_HWPERF IOCTL parameters

We need to add a separate size check for this IOCTL's parameters, since
they are passed by a pointer in the IOCTL's input structure. We do check
the size for all IOCTL's input structure already, but we need to cover
such derefenced objects separately.

Increase the driver's minor version too. This will still let the current
user space libraries work, except for this IOCTL, which was broken
before anyway. A related user space library fix will be submitted to
make the IOCTL work.

Signed-off-by: Imre Deak <imre.deak@intel.com>
Tested-by: Pauli Nieminen <pauli.nieminen@linux.intel.com>
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
drivers/staging/mrst/pvr/services4/include/sgx_bridge.h
drivers/staging/mrst/pvr/services4/srvkm/bridged/sgx/bridged_sgx_bridge.c
include/drm/pvr_drm.h