arm: oabi compat: add missing access checks
authorDave Weinstein <olorin@google.com>
Thu, 28 Jul 2016 18:55:41 +0000 (11:55 -0700)
committerWilly Tarreau <w@1wt.eu>
Mon, 22 Aug 2016 05:31:40 +0000 (07:31 +0200)
commitd948109df11c8485e972b4cc0eb4820d4b754615
treec4fbc4621ca26de7bbf0c7ab8effcdcecde28159
parent951b391d266e93a56559d28817663a10128e0159
arm: oabi compat: add missing access checks

commit 7de249964f5578e67b99699c5f0b405738d820a2 upstream.

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>
Signed-off-by: Willy Tarreau <w@1wt.eu>
arch/arm/kernel/sys_oabi-compat.c