• Jeff Dike's avatar
    [PATCH] uml: Add TRACESYSGOOD support · 77ddaa4b
    Jeff Dike authored
    From: Bodo Stroesser
    
    Patch 1/3 to implement usage of PTRACE_O_TRACESYSGOOD
    This is necessary, to fix UMLs bad behavior when a process does
    a systemcall with syscall-number less than 0.
    
    Insert a check for availability and function of
    ptrace(PTRACE_SETOPTIONS,,,PTRACE_O_TRACESYSGOOD)
    into the normal ptrace checks at startup.
    
    Patch 2/3 to implement usage of PTRACE_O_TRACESYSGOOD
    This is necessary, to fix UMLs bad behavior when a process does
    a systemcall with syscall-number less than 0.
    
    This patch makes SKAS-mode use PTRACE_O_TRACESYSGOOD and fixes
    the problems in SKAS.
    
    Patch 3/3 to implement usage of PTRACE_O_TRACESYSGOOD
    This is necessary, to fix UMLs bad behavior when a process does
    a systemcall with syscall-number less than 0.
    
    This patch makes TT-mode use PTRACE_O_TRACESYSGOOD and fixes
    the problems in TT.
    I'm not quite sure, that this patch doesn't cause problems with
    debugger usage. It should be testet by someone, who has more
    know how about TT-mode debugger.
    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>
    77ddaa4b
tracer.c 11.6 KB