]> git.karo-electronics.de Git - karo-tx-linux.git/commit
fs/compat_ioctl.c: VIDEO_SET_SPU_PALETTE missing error check
authorKees Cook <keescook@chromium.org>
Thu, 25 Oct 2012 01:13:58 +0000 (12:13 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 25 Oct 2012 01:13:58 +0000 (12:13 +1100)
commit58c50b45909baa508864fc68b81a410210d89fef
treeb273fbc6ac8bd8450436c8f6fe1c95bf4970a952
parent499f8d7e7591156df33e4d6cab5be8cbcd8a610c
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 <keescook@chromium.org>
Cc: David Miller <davem@davemloft.net>
Cc: Brad Spengler <spender@grsecurity.net>
Cc: PaX Team <pageexec@freemail.hu>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/compat_ioctl.c