• Stuart Menefy's avatar
    sh: Fix syscall tracing ordering. · e0969e0c
    Stuart Menefy authored
    The implementation of system call tracing in the kernel has a
    couple of ordering problems:
    
     - the validity of the system call number is checked before
       calling out to system call tracing code, and should be
       done after
    
     - the system call number used when tracing is the one the
       system call was invoked with, while the system call tracing
       code can legitimatly change the call number (for example
       strace permutes fork into clone)
    
    This patch fixes both of these problems, and also reoders the
    code slightly to make the direct path through the code the
    common case.
    Signed-off-by: default avatarStuart Menefy <stuart.menefy@st.com>
    Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
    e0969e0c
entry-common.S 7.96 KB