arm: oabi compat: add missing access checks
authorDave Weinstein <olorin@google.com>
Thu, 28 Jul 2016 18:55:41 +0000 (11:55 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 10 Aug 2016 19:57:45 +0000 (12:57 -0700)
commit7de249964f5578e67b99699c5f0b405738d820a2
tree2aab15125670ef4ec443563156d6808b612dd18b
parent9512c47ec2e4f7e1f28ba66e09de536987a6057f
arm: oabi compat: add missing access checks

Add access checks to sys_oabi_epoll_wait() and sys_oabi_semtimedop().
This fixes CVE-2016-3857, a local privilege escalation under
CONFIG_OABI_COMPAT.

Cc: stable@vger.kernel.org
Reported-by: Chiachih Wu <wuchiachih@gmail.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Nicolas Pitre <nico@linaro.org>
Signed-off-by: Dave Weinstein <olorin@google.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/arm/kernel/sys_oabi-compat.c