Will Deacon 42309ab450 ARM: 8087/1: ptrace: reload syscall number after secure_computing() check
On the syscall tracing path, we call out to secure_computing() to allow
seccomp to check the syscall number being attempted. As part of this, a
SIGTRAP may be sent to the tracer and the syscall could be re-written by
a subsequent SET_SYSCALL ptrace request. Unfortunately, this new syscall
is ignored by the current code unless TIF_SYSCALL_TRACE is also set on
the current thread.

This patch slightly reworks the enter path of the syscall tracing code
so that we always reload the syscall number from
current_thread_info()->syscall after the potential ptrace traps.

Acked-by: Kees Cook <keescook@chromium.org>
Tested-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2014-06-29 10:29:35 +01:00
..
2008-08-12 19:54:09 +01:00
2014-04-03 22:46:34 +01:00
2014-06-01 01:17:12 +01:00
2014-04-23 11:27:42 +01:00
2012-03-28 18:30:01 +01:00
2013-12-13 20:25:30 +00:00
2012-03-24 09:38:56 +00:00
2014-01-28 14:06:25 +00:00
2010-10-29 13:14:40 -05:00
2014-03-18 16:39:40 -04:00
2013-10-19 20:46:33 +01:00
2013-05-05 00:07:22 -04:00
2014-03-18 16:39:40 -04:00
2014-03-18 16:39:40 -04:00