lkml.org 
[lkml]   [2015]   [Jan]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    SubjectRe: [PATCH 1/2] ARM: entry-common: fix forgotten set of thread_info->syscall
    From
    On Sat, Jan 17, 2015 at 12:59 AM, Russell King - ARM Linux
    <linux@arm.linux.org.uk> wrote:
    > On Sat, Jan 17, 2015 at 12:57:02AM +0900, Roman Peniaev wrote:
    >> On Fri, Jan 16, 2015 at 7:54 AM, Kees Cook <keescook@chromium.org> wrote:
    >> > One interesting thing I noticed (which is unchanged by this series),
    >> > but pulling ARM_r7 during the seccomp ptrace event shows __NR_poll,
    >> > not __NR_restart_syscall, even though it was a __NR_restart_syscall
    >> > trap from seccomp. Is there a better place to see the actual syscall?
    >>
    >> As I understand we do not push new r7 to the stack, and ptrace uses the
    >> old value.
    >
    > And why should we push r7 to the stack? ptrace should be using the
    > recorded system call number, rather than poking about on the stack
    > itself.

    Probably we should not, but the behaviour comparing arm to x86 is different.

    Also there is no any way from userspace to figure out what syscall was
    restarted,
    if you do not trace each syscall enter and exit from the very beginning.

    --
    Roman


    \
     
     \ /
      Last update: 2015-01-16 17:21    [W:3.056 / U:0.024 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site