1. 03 12月, 2008 1 次提交
  2. 13 9月, 2008 2 次提交
  3. 25 8月, 2008 1 次提交
  4. 28 7月, 2008 1 次提交
  5. 11 5月, 2008 2 次提交
    • D
      sparc: Fix debugger syscall restart interactions. · 28e61036
      David S. Miller 提交于
      So, forever, we've had this ptrace_signal_deliver implementation
      which tries to handle all of the nasties that can occur when the
      debugger looks at a process about to take a signal.  It's meant
      to address all of these issues inside of the kernel so that the
      debugger need not be mindful of such things.
      
      Problem is, this doesn't work.
      
      The idea was that we should do the syscall restart business first, so
      that the debugger captures that state.  Otherwise, if the debugger for
      example saves the child's state, makes the child execute something
      else, then restores the saved state, we won't handle the syscall
      restart properly because we lose the "we're in a syscall" state.
      
      The code here worked for most cases, but if the debugger actually
      passes the signal through to the child unaltered, it's possible that
      we would do a syscall restart when we shouldn't have.
      
      In particular this breaks the case of debugging a process under a gdb
      which is being debugged by yet another gdb.  gdb uses sigsuspend
      to wait for SIGCHLD of the inferior, but if gdb itself is being
      debugged by a top-level gdb we get a ptrace_stop().  The top-level gdb
      does a PTRACE_CONT with SIGCHLD to let the inferior gdb see the
      signal.  But ptrace_signal_deliver() assumed the debugger would cancel
      out the signal and therefore did a syscall restart, because the return
      error was ERESTARTNOHAND.
      
      Fix this by simply making ptrace_signal_deliver() a nop, and providing
      a way for the debugger to control system call restarting properly:
      
      1) Report a "in syscall" software bit in regs->{tstate,psr}.
         It is set early on in trap entry to a system call and is fully
         visible to the debugger via ptrace() and regsets.
      
      2) Test this bit right before doing a syscall restart.  We have
         to do a final recheck right after get_signal_to_deliver() in
         case the debugger cleared the bit during ptrace_stop().
      
      3) Clear the bit in trap return so we don't accidently try to set
         that bit in the real register.
      
      As a result we also get a ptrace_{is,clear}_syscall() for sparc32 just
      like sparc64 has.
      
      M68K has this same exact bug, and is now the only other user of the
      ptrace_signal_deliver hook.  It needs to be fixed in the same exact
      way as sparc.
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      28e61036
    • D
      sparc: Fix ptrace() detach. · 986bef85
      David S. Miller 提交于
      Forever we had a PTRACE_SUNOS_DETACH which was unconditionally
      recognized, regardless of the personality of the process.
      
      Unfortunately, this value is what ended up in the GLIBC sys/ptrace.h
      header file on sparc as PTRACE_DETACH and PT_DETACH.
      
      So continue to recognize this old value.  Luckily, it doesn't conflict
      with anything we actually care about.
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      986bef85
  6. 10 4月, 2008 1 次提交
    • D
      [SPARC]: Fix several regset and ptrace bugs. · d786a4a6
      David S. Miller 提交于
      1) ptrace should pass 'current' to task_user_regset_view()
      
      2) When fetching general registers using a 64-bit view, and
         the target is 32-bit, we have to convert.
      
      3) Skip the whole register window get/set code block if
         the user isn't asking to access anything in there.
      
         Otherwise we have problems if the user doesn't have
         an address space setup.  Fetching ptrace register is
         still valid at such a time, and ptrace does not try
         to access the register window area of the regset.
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      d786a4a6
  7. 04 4月, 2008 1 次提交
  8. 26 3月, 2008 3 次提交
  9. 08 2月, 2008 1 次提交
  10. 07 2月, 2008 6 次提交
  11. 10 12月, 2006 1 次提交
  12. 01 5月, 2006 1 次提交
  13. 10 4月, 2006 2 次提交
  14. 20 3月, 2006 1 次提交
  15. 13 1月, 2006 2 次提交
  16. 09 1月, 2006 1 次提交
  17. 30 9月, 2005 1 次提交
  18. 20 9月, 2005 1 次提交
  19. 11 7月, 2005 3 次提交
  20. 01 5月, 2005 1 次提交
  21. 18 4月, 2005 2 次提交
    • D
      [PATCH] sparc64: Reduce ptrace cache flushing · dadeafdf
      David S. Miller 提交于
      We were flushing the D-cache excessively for ptrace() processing
      and this makes debugging threads so slow as to be totally unusable.
      
      All process page accesses via ptrace() go via access_process_vm().
      This routine, for each process page, uses get_user_pages().  That
      in turn does a flush_dcache_page() on the child pages before we
      copy in/out the ptrace request data.
      
      Therefore, all we need to do after the data movement is:
      
      1) Flush the D-cache pages if the kernel maps the page to a different
         color than userspace does.
      2) If we wrote to the page, we need to flush the I-cache on older cpus.
      
      Previously we just flushed the entire cache at the end of a ptrace()
      request, and that was beyond stupid.
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      dadeafdf
    • D
      [PATCH] sparc: Fix PTRACE_CONT bogosity · fb65b961
      David S. Miller 提交于
      SunOS aparently had this weird PTRACE_CONT semantic which
      we copied.  If the addr argument is something other than
      1, it sets the process program counter to whatever that
      value is.
      
      This is different from every other Linux architecture, which
      don't do anything with the addr and data args.
      
      This difference in particular breaks the Linux native GDB support
      for fork and vfork tracing on sparc and sparc64.
      
      There is no interest in running SunOS binaries using this weird
      PTRACE_CONT behavior, so just delete it so we behave like other
      platforms do.
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      fb65b961
  22. 17 4月, 2005 1 次提交
    • L
      Linux-2.6.12-rc2 · 1da177e4
      Linus Torvalds 提交于
      Initial git repository build. I'm not bothering with the full history,
      even though we have it. We can create a separate "historical" git
      archive of that later if we want to, and in the meantime it's about
      3.2GB when imported into git - space that would just make the early
      git days unnecessarily complicated, when we don't have a lot of good
      infrastructure for it.
      
      Let it rip!
      1da177e4