[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1420986751-30364-1-git-send-email-r.peniaev@gmail.com>
Date: Sun, 11 Jan 2015 23:32:29 +0900
From: Roman Pen <r.peniaev@...il.com>
To: unlisted-recipients:; (no To-header on input)
Cc: Roman Pen <r.peniaev@...il.com>,
Russell King <linux@....linux.org.uk>,
Christoffer Dall <christoffer.dall@...aro.org>,
Stefano Stabellini <stefano.stabellini@...citrix.com>,
Sekhar Nori <nsekhar@...com>,
Kees Cook <keescook@...omium.org>,
Andy Lutomirski <luto@...capital.net>,
Eric Paris <eparis@...hat.com>,
Will Deacon <will.deacon@....com>,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
Marc Zyngier <marc.zyngier@....com>,
Catalin Marinas <catalin.marinas@....com>,
stable@...r.kernel.org
Subject: [PATCH 0/2] ARM: set thread_info->syscall just before sys_* execution
Hello.
It turned out to be that on ARM 'syscall_get_nr' call and
corresponding userspace proc access '/proc/*/syscall' always
return 0 instead of correct syscall number:
# cat /proc/*/syscall
0 0xffffffff 0x0 0x0 0x0 0x0 0x0 0xbea33cc0 0xb6f32f2c
0 0x5 0x16e99a8 0x0 0x0 0x0 0xbeec03b4 0xbeec02a0 0xb6cc85e0
0 0x3 0xbeee5d44 0xbeee5d40 0xbeee5d40 0x0 0x0 0xbeee5d3c 0xb6ef40ac
0 0xffffffff 0xbed757f8 0x2 0x0 0x2 0xbed757f8 0xbed757e0 0xb6e4af2c
[snip]
Where first digit should be not 0, but correct syscall number.
The first patch fixes this and the second one does minor tweaks.
Roman Pen (2):
ARM: entry-common: fix forgotten set of thread_info->syscall
ARM: entry-common,ptrace: do not pass scno to syscall_trace_enter
arch/arm/kernel/asm-offsets.c | 1 +
arch/arm/kernel/entry-common.S | 2 +-
arch/arm/kernel/ptrace.c | 6 ++++--
3 files changed, 6 insertions(+), 3 deletions(-)
Signed-off-by: Roman Pen <r.peniaev@...il.com>
Cc: Russell King <linux@....linux.org.uk>
Cc: Christoffer Dall <christoffer.dall@...aro.org>
Cc: Stefano Stabellini <stefano.stabellini@...citrix.com>
Cc: Sekhar Nori <nsekhar@...com>
Cc: Kees Cook <keescook@...omium.org>
Cc: Andy Lutomirski <luto@...capital.net>
Cc: Eric Paris <eparis@...hat.com>
Cc: Will Deacon <will.deacon@....com>
Cc: linux-arm-kernel@...ts.infradead.org
Cc: linux-kernel@...r.kernel.org
Cc: Marc Zyngier <marc.zyngier@....com>
Cc: Catalin Marinas <catalin.marinas@....com>
Cc: stable@...r.kernel.org
--
2.1.3
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists