fs/compat_ioctl.c: VIDEO_SET_SPU_PALETTE missing error check
authorKees Cook <[email protected]>
Thu, 25 Oct 2012 20:38:16 +0000 (13:38 -0700)
committerLinus Torvalds <[email protected]>
Thu, 25 Oct 2012 21:37:53 +0000 (14:37 -0700)
commit12176503366885edd542389eed3aaf94be163fdb
tree34b48c84987a3f217987106783cac352974af9d2
parent20f1de659b77364d55d4e7fad2ef657e7730323f
fs/compat_ioctl.c: VIDEO_SET_SPU_PALETTE missing error check

The compat ioctl for VIDEO_SET_SPU_PALETTE was missing an error check
while converting ioctl arguments.  This could lead to leaking kernel
stack contents into userspace.

Patch extracted from existing fix in grsecurity.

Signed-off-by: Kees Cook <[email protected]>
Cc: David Miller <[email protected]>
Cc: Brad Spengler <[email protected]>
Cc: PaX Team <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
fs/compat_ioctl.c