• Jeff Dike's avatar
    [PATCH] uml: clear singlestep · 29af4232
    Jeff Dike authored
    The patch syscall-security-3 is wrong (provided by me, sorry).  I missed,
    that singlestepping_skas() used to reset PT_DTRACE.  This was handled
    differently in tt and skas.  With syscall-security-3 applied, a process in
    SKAS that singlestepped once continues to singlestep until the next
    systemcall occurs, even if it is resumed with PTRACE_CONT or
    PTRACE_SYSCALL.
    
    This fix unifies the usage of PT_DTRACE in TT and SKAS.  PT_DTRACE now is
    set by ptrace(PTRACE_SINGLESTEP,...) and reset by singlestepping() and it
    is evaluated in kern_do_signal().
    Signed-off-by: default avatarBodo Stroesser <bstroesser@fujitsu-siemens.com>
    Signed-off-by: default avatarJeff Dike <jdike@addtoit.com>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    29af4232
process_kern.c 9.31 KB