1. 11 Sep, 2007 1 commit
    • Roland McGrath's avatar
      Fix spurious syscall tracing after PTRACE_DETACH + PTRACE_ATTACH · 7d941432
      Roland McGrath authored
      When PTRACE_SYSCALL was used and then PTRACE_DETACH is used, the
      TIF_SYSCALL_TRACE flag is left set on the formerly-traced task.  This
      means that when a new tracer comes along and does PTRACE_ATTACH, it's
      possible he gets a syscall tracing stop even though he's never used
      PTRACE_SYSCALL.  This happens if the task was in the middle of a system
      call when the second PTRACE_ATTACH was done.  The symptom is an
      unexpected SIGTRAP when the tracer thinks that only SIGSTOP should have
      been provoked by his ptrace calls so far.
      
      A few machines already fixed this in ptrace_disable (i386, ia64, m68k).
      But all other machines do not, and still have this bug.  On x86_64, this
      constitutes a regression in IA32 compatibility support.
      
      Since all machines now use TIF_SYSCALL_TRACE for this, I put the
      clearing of TIF_SYSCALL_TRACE in the generic ptrace_detach code rather
      than adding it to every other machine's ptrace_disable.
      Signed-off-by: default avatarRoland McGrath <roland@redhat.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      7d941432
  2. 10 Sep, 2007 24 commits
  3. 09 Sep, 2007 5 commits
  4. 07 Sep, 2007 1 commit
  5. 06 Sep, 2007 2 commits
    • Hirokazu Takata's avatar
      m32r: Rename STI/CLI macros · 7071b291
      Hirokazu Takata authored
      The names of STI and CLI macros were derived from i386 arch historically,
      but their name are incomprehensible.
      So, for easy to understand, rename these macros to ENABLE_INTERRUPTS
      and DISABLE_INTERRUPTS, respectively.
      Signed-off-by: default avatarHirokazu Takata <takata@linux-m32r.org>
      7071b291
    • Hirokazu Takata's avatar
      m32r: build fix of entry.S · 33205613
      Hirokazu Takata authored
      This patch fixes the following compile error:
      <--  snip  -->
       ...
        AS      arch/m32r/kernel/entry.o
      /home/bunk/linux/kernel-2.6/linux-2.6.23-rc3-mm1/arch/m32r/kernel/entry.S: Assembler messages:
      /home/bunk/linux/kernel-2.6/linux-2.6.23-rc3-mm1/arch/m32r/kernel/entry.S:358: Error: bad instruction `addi r0,#(((((0)+(64))+(32))+(32)))'
      make[2]: *** [arch/m32r/kernel/entry.o] Error 1
      <--  snip  -->
      Signed-off-by: default avatarHirokazu Takata <takata@linux-m32r.org>
      Cc: Adrian Bunk <bunk@kernel.org>
      33205613
  6. 05 Sep, 2007 7 commits